From 3efd43963d91bed401ab7b14baf74816de9e98fb Mon Sep 17 00:00:00 2001 From: bogdandina Date: Tue, 16 Sep 2025 00:18:00 +0300 Subject: [PATCH 01/11] feat(64970): autoformatting --- .github/workflows/test-and-build.yml | 4 + eclipse-java-formatter.xml | 18 + pom.xml | 28 + .../google/transit/realtime/GtfsRealtime.java | 48141 ++++++++-------- .../fi/hsl/common/config/ConfigParser.java | 3 +- .../fi/hsl/common/config/ConfigUtils.java | 9 +- .../hsl/common/gtfsrt/FeedMessageFactory.java | 51 +- .../fi/hsl/common/health/HealthServer.java | 12 +- src/main/java/fi/hsl/common/hfp/HfpJson.java | 9 +- .../java/fi/hsl/common/hfp/HfpParser.java | 57 +- .../java/fi/hsl/common/hfp/HfpValidator.java | 13 +- .../java/fi/hsl/common/hfp/proto/Hfp.java | 21945 ++++--- .../java/fi/hsl/common/mqtt/proto/Mqtt.java | 1569 +- .../passengercount/PassengerCountParser.java | 46 +- .../hsl/common/passengercount/json/Count.java | 2 +- .../common/passengercount/json/DoorCount.java | 2 +- .../passengercount/proto/PassengerCount.java | 17580 +++--- .../hsl/common/pulsar/PulsarApplication.java | 74 +- .../pulsar/PulsarApplicationContext.java | 3 +- .../java/fi/hsl/common/redis/RedisUtils.java | 14 +- .../hsl/common/transitdata/JoreDateTime.java | 8 +- .../common/transitdata/PubtransFactory.java | 16 +- .../hsl/common/transitdata/RouteIdUtils.java | 3 +- .../transitdata/TransitdataProperties.java | 40 +- .../common/transitdata/TransitdataSchema.java | 10 +- .../fi/hsl/common/transitdata/proto/Eke.java | 1594 +- .../transitdata/proto/InternalMessages.java | 36154 ++++++------ .../transitdata/proto/MetroAtsProtos.java | 11196 ++-- .../proto/PubtransTableProtos.java | 12191 ++-- .../hsl/common/health/HealthServerTest.java | 43 +- .../java/fi/hsl/common/hfp/HfpParserTest.java | 43 +- .../PassengerCountParserTest.java | 24 +- .../common/transitdata/RouteIdUtilsTest.java | 2 +- 33 files changed, 74373 insertions(+), 76531 deletions(-) create mode 100644 eclipse-java-formatter.xml diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml index bd01c2dc..40781059 100644 --- a/.github/workflows/test-and-build.yml +++ b/.github/workflows/test-and-build.yml @@ -13,6 +13,10 @@ jobs: distribution: 'temurin' java-version: '11' cache: 'maven' + - name: Run Spotless Apply + run: mvn spotless:apply + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build with Maven run: mvn clean package -Dmaven.javadoc.skip=true -B -V - name: Run integration tests diff --git a/eclipse-java-formatter.xml b/eclipse-java-formatter.xml new file mode 100644 index 00000000..4ae144a9 --- /dev/null +++ b/eclipse-java-formatter.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 774af02f..f31b37ee 100644 --- a/pom.xml +++ b/pom.xml @@ -11,6 +11,8 @@ 11 3.0.7 1.18.3 + 2.43.0 + 1.17.0 @@ -321,6 +323,32 @@ + + com.diffplug.spotless + spotless-maven-plugin + ${spotlessMavenPlugin.version} + + + + ${project.basedir}/eclipse-java-formatter.xml + + + + + + spotless-check + + check + + + + spotless-apply + + apply + + + + diff --git a/src/main/java/com/google/transit/realtime/GtfsRealtime.java b/src/main/java/com/google/transit/realtime/GtfsRealtime.java index a5582507..2a1bfd85 100644 --- a/src/main/java/com/google/transit/realtime/GtfsRealtime.java +++ b/src/main/java/com/google/transit/realtime/GtfsRealtime.java @@ -4,444 +4,86 @@ package com.google.transit.realtime; public final class GtfsRealtime { - private GtfsRealtime() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface FeedMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.FeedMessage) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { - - /** - *
-     * Metadata about this feed and feed message.
-     * 
- * - * required .transit_realtime.FeedHeader header = 1; - * @return Whether the header field is set. - */ - boolean hasHeader(); - /** - *
-     * Metadata about this feed and feed message.
-     * 
- * - * required .transit_realtime.FeedHeader header = 1; - * @return The header. - */ - com.google.transit.realtime.GtfsRealtime.FeedHeader getHeader(); - /** - *
-     * Metadata about this feed and feed message.
-     * 
- * - * required .transit_realtime.FeedHeader header = 1; - */ - com.google.transit.realtime.GtfsRealtime.FeedHeaderOrBuilder getHeaderOrBuilder(); - - /** - *
-     * Contents of the feed.
-     * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - java.util.List - getEntityList(); - /** - *
-     * Contents of the feed.
-     * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - com.google.transit.realtime.GtfsRealtime.FeedEntity getEntity(int index); - /** - *
-     * Contents of the feed.
-     * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - int getEntityCount(); - /** - *
-     * Contents of the feed.
-     * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - java.util.List - getEntityOrBuilderList(); - /** - *
-     * Contents of the feed.
-     * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - com.google.transit.realtime.GtfsRealtime.FeedEntityOrBuilder getEntityOrBuilder( - int index); - } - /** - *
-   * The contents of a feed message.
-   * A feed is a continuous stream of feed messages. Each message in the stream is
-   * obtained as a response to an appropriate HTTP GET request.
-   * A realtime feed is always defined with relation to an existing GTFS feed.
-   * All the entity ids are resolved with respect to the GTFS feed.
-   * Note that "required" and "optional" as stated in this file refer to Protocol
-   * Buffer cardinality, not semantic cardinality.  See reference.md at
-   * https://github.com/google/transit/tree/master/gtfs-realtime for field
-   * semantic cardinality.
-   * 
- * - * Protobuf type {@code transit_realtime.FeedMessage} - */ - public static final class FeedMessage extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - FeedMessage> implements - // @@protoc_insertion_point(message_implements:transit_realtime.FeedMessage) - FeedMessageOrBuilder { - private static final long serialVersionUID = 0L; - // Use FeedMessage.newBuilder() to construct. - private FeedMessage(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private FeedMessage() { - entity_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FeedMessage(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.FeedMessage.class, com.google.transit.realtime.GtfsRealtime.FeedMessage.Builder.class); - } - - private int bitField0_; - public static final int HEADER_FIELD_NUMBER = 1; - private com.google.transit.realtime.GtfsRealtime.FeedHeader header_; - /** - *
-     * Metadata about this feed and feed message.
-     * 
- * - * required .transit_realtime.FeedHeader header = 1; - * @return Whether the header field is set. - */ - @java.lang.Override - public boolean hasHeader() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Metadata about this feed and feed message.
-     * 
- * - * required .transit_realtime.FeedHeader header = 1; - * @return The header. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.FeedHeader getHeader() { - return header_ == null ? com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance() : header_; - } - /** - *
-     * Metadata about this feed and feed message.
-     * 
- * - * required .transit_realtime.FeedHeader header = 1; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.FeedHeaderOrBuilder getHeaderOrBuilder() { - return header_ == null ? com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance() : header_; - } - - public static final int ENTITY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List entity_; - /** - *
-     * Contents of the feed.
-     * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - @java.lang.Override - public java.util.List getEntityList() { - return entity_; - } - /** - *
-     * Contents of the feed.
-     * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - @java.lang.Override - public java.util.List - getEntityOrBuilderList() { - return entity_; - } - /** - *
-     * Contents of the feed.
-     * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - @java.lang.Override - public int getEntityCount() { - return entity_.size(); - } - /** - *
-     * Contents of the feed.
-     * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.FeedEntity getEntity(int index) { - return entity_.get(index); - } - /** - *
-     * Contents of the feed.
-     * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.FeedEntityOrBuilder getEntityOrBuilder( - int index) { - 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(2000, output); - getUnknownFields().writeTo(output); + private GtfsRealtime() { } - - @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 com.google.transit.realtime.GtfsRealtime.FeedMessage)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.FeedMessage other = (com.google.transit.realtime.GtfsRealtime.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 void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { } - public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + public interface FeedMessageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.FeedMessage) + com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder { - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.FeedMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + *
+         * Metadata about this feed and feed message.
+         * 
+ * + * required .transit_realtime.FeedHeader header = 1; + * @return Whether the header field is set. + */ + boolean hasHeader(); + /** + *
+         * Metadata about this feed and feed message.
+         * 
+ * + * required .transit_realtime.FeedHeader header = 1; + * @return The header. + */ + com.google.transit.realtime.GtfsRealtime.FeedHeader getHeader(); + /** + *
+         * Metadata about this feed and feed message.
+         * 
+ * + * required .transit_realtime.FeedHeader header = 1; + */ + com.google.transit.realtime.GtfsRealtime.FeedHeaderOrBuilder getHeaderOrBuilder(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + *
+         * Contents of the feed.
+         * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + java.util.List getEntityList(); + /** + *
+         * Contents of the feed.
+         * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + com.google.transit.realtime.GtfsRealtime.FeedEntity getEntity(int index); + /** + *
+         * Contents of the feed.
+         * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + int getEntityCount(); + /** + *
+         * Contents of the feed.
+         * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + java.util.List getEntityOrBuilderList(); + /** + *
+         * Contents of the feed.
+         * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + com.google.transit.realtime.GtfsRealtime.FeedEntityOrBuilder getEntityOrBuilder(int index); } /** *
@@ -458,7898 +100,3964 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code transit_realtime.FeedMessage}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<
-          com.google.transit.realtime.GtfsRealtime.FeedMessage, Builder> implements
-        // @@protoc_insertion_point(builder_implements:transit_realtime.FeedMessage)
-        com.google.transit.realtime.GtfsRealtime.FeedMessageOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedMessage_descriptor;
-      }
-
-      @java.lang.Override
-      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-          internalGetFieldAccessorTable() {
-        return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedMessage_fieldAccessorTable
-            .ensureFieldAccessorsInitialized(
-                com.google.transit.realtime.GtfsRealtime.FeedMessage.class, com.google.transit.realtime.GtfsRealtime.FeedMessage.Builder.class);
-      }
-
-      // Construct using com.google.transit.realtime.GtfsRealtime.FeedMessage.newBuilder()
-      private Builder() {
-        maybeForceBuilderInitialization();
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
-        maybeForceBuilderInitialization();
-      }
-      private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-          getHeaderFieldBuilder();
-          getEntityFieldBuilder();
-        }
-      }
-      @java.lang.Override
-      public Builder clear() {
-        super.clear();
-        bitField0_ = 0;
-        header_ = null;
-        if (headerBuilder_ != null) {
-          headerBuilder_.dispose();
-          headerBuilder_ = null;
-        }
-        if (entityBuilder_ == null) {
-          entity_ = java.util.Collections.emptyList();
-        } else {
-          entity_ = null;
-          entityBuilder_.clear();
-        }
-        bitField0_ = (bitField0_ & ~0x00000002);
-        return this;
-      }
-
-      @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedMessage_descriptor;
-      }
-
-      @java.lang.Override
-      public com.google.transit.realtime.GtfsRealtime.FeedMessage getDefaultInstanceForType() {
-        return com.google.transit.realtime.GtfsRealtime.FeedMessage.getDefaultInstance();
-      }
-
-      @java.lang.Override
-      public com.google.transit.realtime.GtfsRealtime.FeedMessage build() {
-        com.google.transit.realtime.GtfsRealtime.FeedMessage result = buildPartial();
-        if (!result.isInitialized()) {
-          throw newUninitializedMessageException(result);
-        }
-        return result;
-      }
-
-      @java.lang.Override
-      public com.google.transit.realtime.GtfsRealtime.FeedMessage buildPartial() {
-        com.google.transit.realtime.GtfsRealtime.FeedMessage result = new com.google.transit.realtime.GtfsRealtime.FeedMessage(this);
-        buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) { buildPartial0(result); }
-        onBuilt();
-        return result;
-      }
-
-      private void buildPartialRepeatedFields(com.google.transit.realtime.GtfsRealtime.FeedMessage result) {
-        if (entityBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0)) {
-            entity_ = java.util.Collections.unmodifiableList(entity_);
-            bitField0_ = (bitField0_ & ~0x00000002);
-          }
-          result.entity_ = entity_;
-        } else {
-          result.entity_ = entityBuilder_.build();
-        }
-      }
-
-      private void buildPartial0(com.google.transit.realtime.GtfsRealtime.FeedMessage result) {
-        int from_bitField0_ = bitField0_;
-        int to_bitField0_ = 0;
-        if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.header_ = headerBuilder_ == null
-              ? header_
-              : headerBuilder_.build();
-          to_bitField0_ |= 0x00000001;
-        }
-        result.bitField0_ |= to_bitField0_;
-      }
-
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
-        return super.setField(field, value);
-      }
-      @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-      @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
-        return super.addRepeatedField(field, value);
-      }
-      @java.lang.Override
-      public  Builder setExtension(
-          com.google.protobuf.GeneratedMessage.GeneratedExtension<
-              com.google.transit.realtime.GtfsRealtime.FeedMessage, Type> extension,
-          Type value) {
-        return super.setExtension(extension, value);
-      }
-      @java.lang.Override
-      public  Builder setExtension(
-          com.google.protobuf.GeneratedMessage.GeneratedExtension<
-              com.google.transit.realtime.GtfsRealtime.FeedMessage, java.util.List> extension,
-          int index, Type value) {
-        return super.setExtension(extension, index, value);
-      }
-      @java.lang.Override
-      public  Builder addExtension(
-          com.google.protobuf.GeneratedMessage.GeneratedExtension<
-              com.google.transit.realtime.GtfsRealtime.FeedMessage, java.util.List> extension,
-          Type value) {
-        return super.addExtension(extension, value);
-      }
-      @java.lang.Override
-      public  Builder clearExtension(
-          com.google.protobuf.GeneratedMessage.GeneratedExtension<
-              com.google.transit.realtime.GtfsRealtime.FeedMessage, ?> extension) {
-        return super.clearExtension(extension);
-      }
-      @java.lang.Override
-      public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof com.google.transit.realtime.GtfsRealtime.FeedMessage) {
-          return mergeFrom((com.google.transit.realtime.GtfsRealtime.FeedMessage)other);
-        } else {
-          super.mergeFrom(other);
-          return this;
-        }
-      }
-
-      public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.FeedMessage other) {
-        if (other == com.google.transit.realtime.GtfsRealtime.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: {
-                com.google.transit.realtime.GtfsRealtime.FeedEntity m =
-                    input.readMessage(
-                        com.google.transit.realtime.GtfsRealtime.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 com.google.transit.realtime.GtfsRealtime.FeedHeader header_;
-      private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.transit.realtime.GtfsRealtime.FeedHeader, com.google.transit.realtime.GtfsRealtime.FeedHeader.Builder, com.google.transit.realtime.GtfsRealtime.FeedHeaderOrBuilder> headerBuilder_;
-      /**
-       * 
-       * Metadata about this feed and feed message.
-       * 
- * - * required .transit_realtime.FeedHeader header = 1; - * @return Whether the header field is set. - */ - public boolean hasHeader() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Metadata about this feed and feed message.
-       * 
- * - * required .transit_realtime.FeedHeader header = 1; - * @return The header. - */ - public com.google.transit.realtime.GtfsRealtime.FeedHeader getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - *
-       * Metadata about this feed and feed message.
-       * 
- * - * required .transit_realtime.FeedHeader header = 1; - */ - public Builder setHeader(com.google.transit.realtime.GtfsRealtime.FeedHeader value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - } else { - headerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Metadata about this feed and feed message.
-       * 
- * - * required .transit_realtime.FeedHeader header = 1; - */ - public Builder setHeader( - com.google.transit.realtime.GtfsRealtime.FeedHeader.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Metadata about this feed and feed message.
-       * 
- * - * required .transit_realtime.FeedHeader header = 1; - */ - public Builder mergeHeader(com.google.transit.realtime.GtfsRealtime.FeedHeader value) { - if (headerBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - header_ != null && - header_ != com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance()) { - getHeaderBuilder().mergeFrom(value); - } else { - header_ = value; - } - } else { - headerBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Metadata about this feed and feed message.
-       * 
- * - * required .transit_realtime.FeedHeader header = 1; - */ - public Builder clearHeader() { - bitField0_ = (bitField0_ & ~0x00000001); - header_ = null; - if (headerBuilder_ != null) { - headerBuilder_.dispose(); - headerBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Metadata about this feed and feed message.
-       * 
- * - * required .transit_realtime.FeedHeader header = 1; - */ - public com.google.transit.realtime.GtfsRealtime.FeedHeader.Builder getHeaderBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - *
-       * Metadata about this feed and feed message.
-       * 
- * - * required .transit_realtime.FeedHeader header = 1; - */ - public com.google.transit.realtime.GtfsRealtime.FeedHeaderOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance() : header_; - } - } - /** - *
-       * Metadata about this feed and feed message.
-       * 
- * - * required .transit_realtime.FeedHeader header = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.FeedHeader, com.google.transit.realtime.GtfsRealtime.FeedHeader.Builder, com.google.transit.realtime.GtfsRealtime.FeedHeaderOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.FeedHeader, com.google.transit.realtime.GtfsRealtime.FeedHeader.Builder, com.google.transit.realtime.GtfsRealtime.FeedHeaderOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - - private java.util.List entity_ = - java.util.Collections.emptyList(); - private void ensureEntityIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - entity_ = new java.util.ArrayList(entity_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.FeedEntity, com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder, com.google.transit.realtime.GtfsRealtime.FeedEntityOrBuilder> entityBuilder_; - - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public java.util.List getEntityList() { - if (entityBuilder_ == null) { - return java.util.Collections.unmodifiableList(entity_); - } else { - return entityBuilder_.getMessageList(); - } - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public int getEntityCount() { - if (entityBuilder_ == null) { - return entity_.size(); - } else { - return entityBuilder_.getCount(); - } - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public com.google.transit.realtime.GtfsRealtime.FeedEntity getEntity(int index) { - if (entityBuilder_ == null) { - return entity_.get(index); - } else { - return entityBuilder_.getMessage(index); - } - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public Builder setEntity( - int index, com.google.transit.realtime.GtfsRealtime.FeedEntity value) { - if (entityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntityIsMutable(); - entity_.set(index, value); - onChanged(); - } else { - entityBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public Builder setEntity( - int index, com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder builderForValue) { - if (entityBuilder_ == null) { - ensureEntityIsMutable(); - entity_.set(index, builderForValue.build()); - onChanged(); - } else { - entityBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public Builder addEntity(com.google.transit.realtime.GtfsRealtime.FeedEntity value) { - if (entityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntityIsMutable(); - entity_.add(value); - onChanged(); - } else { - entityBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public Builder addEntity( - int index, com.google.transit.realtime.GtfsRealtime.FeedEntity value) { - if (entityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntityIsMutable(); - entity_.add(index, value); - onChanged(); - } else { - entityBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public Builder addEntity( - com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder builderForValue) { - if (entityBuilder_ == null) { - ensureEntityIsMutable(); - entity_.add(builderForValue.build()); - onChanged(); - } else { - entityBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public Builder addEntity( - int index, com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder builderForValue) { - if (entityBuilder_ == null) { - ensureEntityIsMutable(); - entity_.add(index, builderForValue.build()); - onChanged(); - } else { - entityBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public Builder addAllEntity( - java.lang.Iterable values) { - if (entityBuilder_ == null) { - ensureEntityIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entity_); - onChanged(); - } else { - entityBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public Builder clearEntity() { - if (entityBuilder_ == null) { - entity_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - entityBuilder_.clear(); - } - return this; - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public Builder removeEntity(int index) { - if (entityBuilder_ == null) { - ensureEntityIsMutable(); - entity_.remove(index); - onChanged(); - } else { - entityBuilder_.remove(index); - } - return this; - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder getEntityBuilder( - int index) { - return getEntityFieldBuilder().getBuilder(index); - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public com.google.transit.realtime.GtfsRealtime.FeedEntityOrBuilder getEntityOrBuilder( - int index) { - if (entityBuilder_ == null) { - return entity_.get(index); } else { - return entityBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public java.util.List - getEntityOrBuilderList() { - if (entityBuilder_ != null) { - return entityBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entity_); - } - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder addEntityBuilder() { - return getEntityFieldBuilder().addBuilder( - com.google.transit.realtime.GtfsRealtime.FeedEntity.getDefaultInstance()); - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder addEntityBuilder( - int index) { - return getEntityFieldBuilder().addBuilder( - index, com.google.transit.realtime.GtfsRealtime.FeedEntity.getDefaultInstance()); - } - /** - *
-       * Contents of the feed.
-       * 
- * - * repeated .transit_realtime.FeedEntity entity = 2; - */ - public java.util.List - getEntityBuilderList() { - return getEntityFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.FeedEntity, com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder, com.google.transit.realtime.GtfsRealtime.FeedEntityOrBuilder> - getEntityFieldBuilder() { - if (entityBuilder_ == null) { - entityBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.FeedEntity, com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder, com.google.transit.realtime.GtfsRealtime.FeedEntityOrBuilder>( - entity_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - entity_ = null; - } - return entityBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:transit_realtime.FeedMessage) - } + public static final class FeedMessage extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage + implements + // @@protoc_insertion_point(message_implements:transit_realtime.FeedMessage) + FeedMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use FeedMessage.newBuilder() to construct. + private FeedMessage( + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { + super(builder); + } + private FeedMessage() { + entity_ = java.util.Collections.emptyList(); + } - // @@protoc_insertion_point(class_scope:transit_realtime.FeedMessage) - private static final com.google.transit.realtime.GtfsRealtime.FeedMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.FeedMessage(); - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FeedMessage(); + } - public static com.google.transit.realtime.GtfsRealtime.FeedMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedMessage_descriptor; + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.FeedMessage.class, + com.google.transit.realtime.GtfsRealtime.FeedMessage.Builder.class); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private int bitField0_; + public static final int HEADER_FIELD_NUMBER = 1; + private com.google.transit.realtime.GtfsRealtime.FeedHeader header_; + /** + *
+         * Metadata about this feed and feed message.
+         * 
+ * + * required .transit_realtime.FeedHeader header = 1; + * @return Whether the header field is set. + */ + @java.lang.Override + public boolean hasHeader() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Metadata about this feed and feed message.
+         * 
+ * + * required .transit_realtime.FeedHeader header = 1; + * @return The header. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.FeedHeader getHeader() { + return header_ == null ? com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance() : header_; + } + /** + *
+         * Metadata about this feed and feed message.
+         * 
+ * + * required .transit_realtime.FeedHeader header = 1; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.FeedHeaderOrBuilder getHeaderOrBuilder() { + return header_ == null ? com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance() : header_; + } - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.FeedMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int ENTITY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List entity_; + /** + *
+         * Contents of the feed.
+         * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + @java.lang.Override + public java.util.List getEntityList() { + return entity_; + } + /** + *
+         * Contents of the feed.
+         * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + @java.lang.Override + public java.util.List getEntityOrBuilderList() { + return entity_; + } + /** + *
+         * Contents of the feed.
+         * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + @java.lang.Override + public int getEntityCount() { + return entity_.size(); + } + /** + *
+         * Contents of the feed.
+         * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.FeedEntity getEntity(int index) { + return entity_.get(index); + } + /** + *
+         * Contents of the feed.
+         * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.FeedEntityOrBuilder getEntityOrBuilder(int index) { + 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; + } - public interface FeedHeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.FeedHeader) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { + @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(2000, output); + getUnknownFields().writeTo(output); + } - /** - *
-     * Version of the feed specification.
-     * The current version is 2.0.  Valid versions are "2.0", "1.0".
-     * 
- * - * required string gtfs_realtime_version = 1; - * @return Whether the gtfsRealtimeVersion field is set. - */ - boolean hasGtfsRealtimeVersion(); - /** - *
-     * Version of the feed specification.
-     * The current version is 2.0.  Valid versions are "2.0", "1.0".
-     * 
- * - * required string gtfs_realtime_version = 1; - * @return The gtfsRealtimeVersion. - */ - java.lang.String getGtfsRealtimeVersion(); - /** - *
-     * Version of the feed specification.
-     * The current version is 2.0.  Valid versions are "2.0", "1.0".
-     * 
- * - * required string gtfs_realtime_version = 1; - * @return The bytes for gtfsRealtimeVersion. - */ - com.google.protobuf.ByteString - getGtfsRealtimeVersionBytes(); + @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; + } - /** - * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; - * @return Whether the incrementality field is set. - */ - boolean hasIncrementality(); - /** - * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; - * @return The incrementality. - */ - com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality getIncrementality(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.FeedMessage)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.FeedMessage other = (com.google.transit.realtime.GtfsRealtime.FeedMessage) obj; - /** - *
-     * This timestamp identifies the moment when the content of this feed has been
-     * created (in server time). In POSIX time (i.e., number of seconds since
-     * January 1st 1970 00:00:00 UTC).
-     * 
- * - * optional uint64 timestamp = 3; - * @return Whether the timestamp field is set. - */ - boolean hasTimestamp(); - /** - *
-     * This timestamp identifies the moment when the content of this feed has been
-     * created (in server time). In POSIX time (i.e., number of seconds since
-     * January 1st 1970 00:00:00 UTC).
-     * 
- * - * optional uint64 timestamp = 3; - * @return The timestamp. - */ - long getTimestamp(); - } - /** - *
-   * Metadata about a feed, included in feed messages.
-   * 
- * - * Protobuf type {@code transit_realtime.FeedHeader} - */ - public static final class FeedHeader extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - FeedHeader> implements - // @@protoc_insertion_point(message_implements:transit_realtime.FeedHeader) - FeedHeaderOrBuilder { - private static final long serialVersionUID = 0L; - // Use FeedHeader.newBuilder() to construct. - private FeedHeader(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private FeedHeader() { - gtfsRealtimeVersion_ = ""; - incrementality_ = 0; - } + 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 - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FeedHeader(); - } + @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 com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.FeedMessage parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedHeader_descriptor; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.FeedMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.FeedHeader.class, com.google.transit.realtime.GtfsRealtime.FeedHeader.Builder.class); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * The contents of a feed message.
+         * A feed is a continuous stream of feed messages. Each message in the stream is
+         * obtained as a response to an appropriate HTTP GET request.
+         * A realtime feed is always defined with relation to an existing GTFS feed.
+         * All the entity ids are resolved with respect to the GTFS feed.
+         * Note that "required" and "optional" as stated in this file refer to Protocol
+         * Buffer cardinality, not semantic cardinality.  See reference.md at
+         * https://github.com/google/transit/tree/master/gtfs-realtime for field
+         * semantic cardinality.
+         * 
+ * + * Protobuf type {@code transit_realtime.FeedMessage} + */ + public static final class Builder + extends + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.FeedMessage) + com.google.transit.realtime.GtfsRealtime.FeedMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedMessage_descriptor; + } - /** - *
-     * Determines whether the current fetch is incremental.  Currently,
-     * DIFFERENTIAL mode is unsupported and behavior is unspecified for feeds
-     * that use this mode.  There are discussions on the GTFS Realtime mailing
-     * list around fully specifying the behavior of DIFFERENTIAL mode and the
-     * documentation will be updated when those discussions are finalized.
-     * 
- * - * Protobuf enum {@code transit_realtime.FeedHeader.Incrementality} - */ - public enum Incrementality - implements com.google.protobuf.ProtocolMessageEnum { - /** - * FULL_DATASET = 0; - */ - FULL_DATASET(0), - /** - * DIFFERENTIAL = 1; - */ - DIFFERENTIAL(1), - ; - - /** - * FULL_DATASET = 0; - */ - public static final int FULL_DATASET_VALUE = 0; - /** - * DIFFERENTIAL = 1; - */ - public static final int DIFFERENTIAL_VALUE = 1; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Incrementality valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Incrementality forNumber(int value) { - switch (value) { - case 0: return FULL_DATASET; - case 1: return DIFFERENTIAL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Incrementality> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Incrementality findValueByNumber(int number) { - return Incrementality.forNumber(number); - } - }; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.FeedMessage.class, + com.google.transit.realtime.GtfsRealtime.FeedMessage.Builder.class); + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.FeedHeader.getDescriptor().getEnumTypes().get(0); - } - - private static final Incrementality[] VALUES = values(); - - public static Incrementality valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Incrementality(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:transit_realtime.FeedHeader.Incrementality) - } + // Construct using com.google.transit.realtime.GtfsRealtime.FeedMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private int bitField0_; - public static final int GTFS_REALTIME_VERSION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object gtfsRealtimeVersion_ = ""; - /** - *
-     * Version of the feed specification.
-     * The current version is 2.0.  Valid versions are "2.0", "1.0".
-     * 
- * - * required string gtfs_realtime_version = 1; - * @return Whether the gtfsRealtimeVersion field is set. - */ - @java.lang.Override - public boolean hasGtfsRealtimeVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Version of the feed specification.
-     * The current version is 2.0.  Valid versions are "2.0", "1.0".
-     * 
- * - * required string gtfs_realtime_version = 1; - * @return The gtfsRealtimeVersion. - */ - @java.lang.Override - public java.lang.String getGtfsRealtimeVersion() { - java.lang.Object ref = gtfsRealtimeVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - gtfsRealtimeVersion_ = s; - } - return s; - } - } - /** - *
-     * Version of the feed specification.
-     * The current version is 2.0.  Valid versions are "2.0", "1.0".
-     * 
- * - * required string gtfs_realtime_version = 1; - * @return The bytes for gtfsRealtimeVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGtfsRealtimeVersionBytes() { - java.lang.Object ref = gtfsRealtimeVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gtfsRealtimeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHeaderFieldBuilder(); + getEntityFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + header_ = null; + if (headerBuilder_ != null) { + headerBuilder_.dispose(); + headerBuilder_ = null; + } + if (entityBuilder_ == null) { + entity_ = java.util.Collections.emptyList(); + } else { + entity_ = null; + entityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } - public static final int INCREMENTALITY_FIELD_NUMBER = 2; - private int incrementality_ = 0; - /** - * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; - * @return Whether the incrementality field is set. - */ - @java.lang.Override public boolean hasIncrementality() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; - * @return The incrementality. - */ - @java.lang.Override public com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality getIncrementality() { - com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality result = com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality.forNumber(incrementality_); - return result == null ? com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality.FULL_DATASET : result; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedMessage_descriptor; + } - public static final int TIMESTAMP_FIELD_NUMBER = 3; - private long timestamp_ = 0L; - /** - *
-     * This timestamp identifies the moment when the content of this feed has been
-     * created (in server time). In POSIX time (i.e., number of seconds since
-     * January 1st 1970 00:00:00 UTC).
-     * 
- * - * optional uint64 timestamp = 3; - * @return Whether the timestamp field is set. - */ - @java.lang.Override - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * This timestamp identifies the moment when the content of this feed has been
-     * created (in server time). In POSIX time (i.e., number of seconds since
-     * January 1st 1970 00:00:00 UTC).
-     * 
- * - * optional uint64 timestamp = 3; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.FeedMessage getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.FeedMessage.getDefaultInstance(); + } - 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 com.google.transit.realtime.GtfsRealtime.FeedMessage build() { + com.google.transit.realtime.GtfsRealtime.FeedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @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(2000, output); - getUnknownFields().writeTo(output); - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.FeedMessage buildPartial() { + com.google.transit.realtime.GtfsRealtime.FeedMessage result = new com.google.transit.realtime.GtfsRealtime.FeedMessage( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @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; - } + private void buildPartialRepeatedFields(com.google.transit.realtime.GtfsRealtime.FeedMessage result) { + if (entityBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + entity_ = java.util.Collections.unmodifiableList(entity_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.entity_ = entity_; + } else { + result.entity_ = entityBuilder_.build(); + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.FeedHeader)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.FeedHeader other = (com.google.transit.realtime.GtfsRealtime.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; - } + private void buildPartial0(com.google.transit.realtime.GtfsRealtime.FeedMessage result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.header_ = headerBuilder_ == null ? header_ : headerBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - @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; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension, + Type value) { + return super.setExtension(extension, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + int index, Type value) { + return super.setExtension(extension, index, value); + } + @java.lang.Override + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + Type value) { + return super.addExtension(extension, value); + } + @java.lang.Override + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension) { + return super.clearExtension(extension); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.FeedMessage) { + return mergeFrom((com.google.transit.realtime.GtfsRealtime.FeedMessage) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.FeedMessage other) { + if (other == com.google.transit.realtime.GtfsRealtime.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 Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.FeedHeader prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(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 - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Metadata about a feed, included in feed messages.
-     * 
- * - * Protobuf type {@code transit_realtime.FeedHeader} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< - com.google.transit.realtime.GtfsRealtime.FeedHeader, Builder> implements - // @@protoc_insertion_point(builder_implements:transit_realtime.FeedHeader) - com.google.transit.realtime.GtfsRealtime.FeedHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.FeedHeader.class, com.google.transit.realtime.GtfsRealtime.FeedHeader.Builder.class); - } - - // Construct using com.google.transit.realtime.GtfsRealtime.FeedHeader.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - gtfsRealtimeVersion_ = ""; - incrementality_ = 0; - timestamp_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedHeader_descriptor; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.FeedHeader getDefaultInstanceForType() { - return com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.FeedHeader build() { - com.google.transit.realtime.GtfsRealtime.FeedHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.FeedHeader buildPartial() { - com.google.transit.realtime.GtfsRealtime.FeedHeader result = new com.google.transit.realtime.GtfsRealtime.FeedHeader(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.transit.realtime.GtfsRealtime.FeedHeader result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.gtfsRealtimeVersion_ = gtfsRealtimeVersion_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.incrementality_ = incrementality_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.timestamp_ = timestamp_; - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.FeedHeader, Type> extension, - Type value) { - return super.setExtension(extension, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.FeedHeader, java.util.List> extension, - int index, Type value) { - return super.setExtension(extension, index, value); - } - @java.lang.Override - public Builder addExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.FeedHeader, java.util.List> extension, - Type value) { - return super.addExtension(extension, value); - } - @java.lang.Override - public Builder clearExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.FeedHeader, ?> extension) { - return super.clearExtension(extension); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.transit.realtime.GtfsRealtime.FeedHeader) { - return mergeFrom((com.google.transit.realtime.GtfsRealtime.FeedHeader)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.FeedHeader other) { - if (other == com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance()) return this; - if (other.hasGtfsRealtimeVersion()) { - 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(); + @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 : { + com.google.transit.realtime.GtfsRealtime.FeedEntity m = input.readMessage( + com.google.transit.realtime.GtfsRealtime.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 com.google.transit.realtime.GtfsRealtime.FeedHeader header_; + private com.google.protobuf.SingleFieldBuilderV3 headerBuilder_; + /** + *
+             * Metadata about this feed and feed message.
+             * 
+ * + * required .transit_realtime.FeedHeader header = 1; + * @return Whether the header field is set. + */ + public boolean hasHeader() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Metadata about this feed and feed message.
+             * 
+ * + * required .transit_realtime.FeedHeader header = 1; + * @return The header. + */ + public com.google.transit.realtime.GtfsRealtime.FeedHeader getHeader() { + if (headerBuilder_ == null) { + return header_ == null + ? com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance() + : header_; + } else { + return headerBuilder_.getMessage(); + } + } + /** + *
+             * Metadata about this feed and feed message.
+             * 
+ * + * required .transit_realtime.FeedHeader header = 1; + */ + public Builder setHeader(com.google.transit.realtime.GtfsRealtime.FeedHeader value) { + if (headerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + header_ = value; + } else { + headerBuilder_.setMessage(value); + } bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - int tmpRaw = input.readEnum(); - com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality tmpValue = - com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(2, tmpRaw); + onChanged(); + return this; + } + /** + *
+             * Metadata about this feed and feed message.
+             * 
+ * + * required .transit_realtime.FeedHeader header = 1; + */ + public Builder setHeader(com.google.transit.realtime.GtfsRealtime.FeedHeader.Builder builderForValue) { + if (headerBuilder_ == null) { + header_ = builderForValue.build(); } else { - incrementality_ = tmpRaw; - bitField0_ |= 0x00000002; + headerBuilder_.setMessage(builderForValue.build()); } - 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_ = ""; - /** - *
-       * Version of the feed specification.
-       * The current version is 2.0.  Valid versions are "2.0", "1.0".
-       * 
- * - * required string gtfs_realtime_version = 1; - * @return Whether the gtfsRealtimeVersion field is set. - */ - public boolean hasGtfsRealtimeVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Version of the feed specification.
-       * The current version is 2.0.  Valid versions are "2.0", "1.0".
-       * 
- * - * required string gtfs_realtime_version = 1; - * @return The gtfsRealtimeVersion. - */ - public java.lang.String getGtfsRealtimeVersion() { - java.lang.Object ref = gtfsRealtimeVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - gtfsRealtimeVersion_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Version of the feed specification.
-       * The current version is 2.0.  Valid versions are "2.0", "1.0".
-       * 
- * - * required string gtfs_realtime_version = 1; - * @return The bytes for gtfsRealtimeVersion. - */ - public com.google.protobuf.ByteString - getGtfsRealtimeVersionBytes() { - java.lang.Object ref = gtfsRealtimeVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gtfsRealtimeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Version of the feed specification.
-       * The current version is 2.0.  Valid versions are "2.0", "1.0".
-       * 
- * - * required string gtfs_realtime_version = 1; - * @param value The gtfsRealtimeVersion to set. - * @return This builder for chaining. - */ - public Builder setGtfsRealtimeVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - gtfsRealtimeVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Version of the feed specification.
-       * The current version is 2.0.  Valid versions are "2.0", "1.0".
-       * 
- * - * required string gtfs_realtime_version = 1; - * @return This builder for chaining. - */ - public Builder clearGtfsRealtimeVersion() { - gtfsRealtimeVersion_ = getDefaultInstance().getGtfsRealtimeVersion(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Version of the feed specification.
-       * The current version is 2.0.  Valid versions are "2.0", "1.0".
-       * 
- * - * required string gtfs_realtime_version = 1; - * @param value The bytes for gtfsRealtimeVersion to set. - * @return This builder for chaining. - */ - public Builder setGtfsRealtimeVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - gtfsRealtimeVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int incrementality_ = 0; - /** - * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; - * @return Whether the incrementality field is set. - */ - @java.lang.Override public boolean hasIncrementality() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; - * @return The incrementality. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality getIncrementality() { - com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality result = com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality.forNumber(incrementality_); - return result == null ? com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality.FULL_DATASET : result; - } - /** - * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; - * @param value The incrementality to set. - * @return This builder for chaining. - */ - public Builder setIncrementality(com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - incrementality_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; - * @return This builder for chaining. - */ - public Builder clearIncrementality() { - bitField0_ = (bitField0_ & ~0x00000002); - incrementality_ = 0; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - *
-       * This timestamp identifies the moment when the content of this feed has been
-       * created (in server time). In POSIX time (i.e., number of seconds since
-       * January 1st 1970 00:00:00 UTC).
-       * 
- * - * optional uint64 timestamp = 3; - * @return Whether the timestamp field is set. - */ - @java.lang.Override - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * This timestamp identifies the moment when the content of this feed has been
-       * created (in server time). In POSIX time (i.e., number of seconds since
-       * January 1st 1970 00:00:00 UTC).
-       * 
- * - * optional uint64 timestamp = 3; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - *
-       * This timestamp identifies the moment when the content of this feed has been
-       * created (in server time). In POSIX time (i.e., number of seconds since
-       * January 1st 1970 00:00:00 UTC).
-       * 
- * - * optional uint64 timestamp = 3; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * This timestamp identifies the moment when the content of this feed has been
-       * created (in server time). In POSIX time (i.e., number of seconds since
-       * January 1st 1970 00:00:00 UTC).
-       * 
- * - * optional uint64 timestamp = 3; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000004); - timestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:transit_realtime.FeedHeader) - } - - // @@protoc_insertion_point(class_scope:transit_realtime.FeedHeader) - private static final com.google.transit.realtime.GtfsRealtime.FeedHeader DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.FeedHeader(); - } - - public static com.google.transit.realtime.GtfsRealtime.FeedHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeedHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.FeedHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FeedEntityOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.FeedEntity) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Metadata about this feed and feed message.
+             * 
+ * + * required .transit_realtime.FeedHeader header = 1; + */ + public Builder mergeHeader(com.google.transit.realtime.GtfsRealtime.FeedHeader value) { + if (headerBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && header_ != null + && header_ != com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance()) { + getHeaderBuilder().mergeFrom(value); + } else { + header_ = value; + } + } else { + headerBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Metadata about this feed and feed message.
+             * 
+ * + * required .transit_realtime.FeedHeader header = 1; + */ + public Builder clearHeader() { + bitField0_ = (bitField0_ & ~0x00000001); + header_ = null; + if (headerBuilder_ != null) { + headerBuilder_.dispose(); + headerBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * Metadata about this feed and feed message.
+             * 
+ * + * required .transit_realtime.FeedHeader header = 1; + */ + public com.google.transit.realtime.GtfsRealtime.FeedHeader.Builder getHeaderBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getHeaderFieldBuilder().getBuilder(); + } + /** + *
+             * Metadata about this feed and feed message.
+             * 
+ * + * required .transit_realtime.FeedHeader header = 1; + */ + public com.google.transit.realtime.GtfsRealtime.FeedHeaderOrBuilder getHeaderOrBuilder() { + if (headerBuilder_ != null) { + return headerBuilder_.getMessageOrBuilder(); + } else { + return header_ == null + ? com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance() + : header_; + } + } + /** + *
+             * Metadata about this feed and feed message.
+             * 
+ * + * required .transit_realtime.FeedHeader header = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getHeaderFieldBuilder() { + if (headerBuilder_ == null) { + headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getHeader(), getParentForChildren(), isClean()); + header_ = null; + } + return headerBuilder_; + } - /** - *
-     * The ids are used only to provide incrementality support. The id should be
-     * unique within a FeedMessage. Consequent FeedMessages may contain
-     * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
-     * FeedEntity with some id will replace the old FeedEntity with the same id
-     * (or delete it - see is_deleted below).
-     * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
-     * feed must be specified by explicit selectors (see EntitySelector below for
-     * more info).
-     * 
- * - * required string id = 1; - * @return Whether the id field is set. - */ - boolean hasId(); - /** - *
-     * The ids are used only to provide incrementality support. The id should be
-     * unique within a FeedMessage. Consequent FeedMessages may contain
-     * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
-     * FeedEntity with some id will replace the old FeedEntity with the same id
-     * (or delete it - see is_deleted below).
-     * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
-     * feed must be specified by explicit selectors (see EntitySelector below for
-     * more info).
-     * 
- * - * required string id = 1; - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * The ids are used only to provide incrementality support. The id should be
-     * unique within a FeedMessage. Consequent FeedMessages may contain
-     * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
-     * FeedEntity with some id will replace the old FeedEntity with the same id
-     * (or delete it - see is_deleted below).
-     * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
-     * feed must be specified by explicit selectors (see EntitySelector below for
-     * more info).
-     * 
- * - * required string id = 1; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); + private java.util.List entity_ = java.util.Collections + .emptyList(); + private void ensureEntityIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + entity_ = new java.util.ArrayList(entity_); + bitField0_ |= 0x00000002; + } + } - /** - *
-     * Whether this entity is to be deleted. Relevant only for incremental
-     * fetches.
-     * 
- * - * optional bool is_deleted = 2 [default = false]; - * @return Whether the isDeleted field is set. - */ - boolean hasIsDeleted(); - /** - *
-     * Whether this entity is to be deleted. Relevant only for incremental
-     * fetches.
-     * 
- * - * optional bool is_deleted = 2 [default = false]; - * @return The isDeleted. - */ - boolean getIsDeleted(); + private com.google.protobuf.RepeatedFieldBuilderV3 entityBuilder_; - /** - *
-     * Data about the entity itself. Exactly one of the following fields must be
-     * present (unless the entity is being deleted).
-     * 
- * - * optional .transit_realtime.TripUpdate trip_update = 3; - * @return Whether the tripUpdate field is set. - */ - boolean hasTripUpdate(); - /** - *
-     * Data about the entity itself. Exactly one of the following fields must be
-     * present (unless the entity is being deleted).
-     * 
- * - * optional .transit_realtime.TripUpdate trip_update = 3; - * @return The tripUpdate. - */ - com.google.transit.realtime.GtfsRealtime.TripUpdate getTripUpdate(); - /** - *
-     * Data about the entity itself. Exactly one of the following fields must be
-     * present (unless the entity is being deleted).
-     * 
- * - * optional .transit_realtime.TripUpdate trip_update = 3; - */ - com.google.transit.realtime.GtfsRealtime.TripUpdateOrBuilder getTripUpdateOrBuilder(); - - /** - * optional .transit_realtime.VehiclePosition vehicle = 4; - * @return Whether the vehicle field is set. - */ - boolean hasVehicle(); - /** - * optional .transit_realtime.VehiclePosition vehicle = 4; - * @return The vehicle. - */ - com.google.transit.realtime.GtfsRealtime.VehiclePosition getVehicle(); - /** - * optional .transit_realtime.VehiclePosition vehicle = 4; - */ - com.google.transit.realtime.GtfsRealtime.VehiclePositionOrBuilder getVehicleOrBuilder(); - - /** - * optional .transit_realtime.Alert alert = 5; - * @return Whether the alert field is set. - */ - boolean hasAlert(); - /** - * optional .transit_realtime.Alert alert = 5; - * @return The alert. - */ - com.google.transit.realtime.GtfsRealtime.Alert getAlert(); - /** - * optional .transit_realtime.Alert alert = 5; - */ - com.google.transit.realtime.GtfsRealtime.AlertOrBuilder getAlertOrBuilder(); - } - /** - *
-   * A definition (or update) of an entity in the transit feed.
-   * 
- * - * Protobuf type {@code transit_realtime.FeedEntity} - */ - public static final class FeedEntity extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - FeedEntity> implements - // @@protoc_insertion_point(message_implements:transit_realtime.FeedEntity) - FeedEntityOrBuilder { - private static final long serialVersionUID = 0L; - // Use FeedEntity.newBuilder() to construct. - private FeedEntity(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private FeedEntity() { - id_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FeedEntity(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedEntity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedEntity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.FeedEntity.class, com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder.class); - } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public java.util.List getEntityList() { + if (entityBuilder_ == null) { + return java.util.Collections.unmodifiableList(entity_); + } else { + return entityBuilder_.getMessageList(); + } + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public int getEntityCount() { + if (entityBuilder_ == null) { + return entity_.size(); + } else { + return entityBuilder_.getCount(); + } + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public com.google.transit.realtime.GtfsRealtime.FeedEntity getEntity(int index) { + if (entityBuilder_ == null) { + return entity_.get(index); + } else { + return entityBuilder_.getMessage(index); + } + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public Builder setEntity(int index, com.google.transit.realtime.GtfsRealtime.FeedEntity value) { + if (entityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntityIsMutable(); + entity_.set(index, value); + onChanged(); + } else { + entityBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public Builder setEntity(int index, + com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder builderForValue) { + if (entityBuilder_ == null) { + ensureEntityIsMutable(); + entity_.set(index, builderForValue.build()); + onChanged(); + } else { + entityBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public Builder addEntity(com.google.transit.realtime.GtfsRealtime.FeedEntity value) { + if (entityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntityIsMutable(); + entity_.add(value); + onChanged(); + } else { + entityBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public Builder addEntity(int index, com.google.transit.realtime.GtfsRealtime.FeedEntity value) { + if (entityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntityIsMutable(); + entity_.add(index, value); + onChanged(); + } else { + entityBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public Builder addEntity(com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder builderForValue) { + if (entityBuilder_ == null) { + ensureEntityIsMutable(); + entity_.add(builderForValue.build()); + onChanged(); + } else { + entityBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public Builder addEntity(int index, + com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder builderForValue) { + if (entityBuilder_ == null) { + ensureEntityIsMutable(); + entity_.add(index, builderForValue.build()); + onChanged(); + } else { + entityBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public Builder addAllEntity( + java.lang.Iterable values) { + if (entityBuilder_ == null) { + ensureEntityIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entity_); + onChanged(); + } else { + entityBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public Builder clearEntity() { + if (entityBuilder_ == null) { + entity_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + entityBuilder_.clear(); + } + return this; + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public Builder removeEntity(int index) { + if (entityBuilder_ == null) { + ensureEntityIsMutable(); + entity_.remove(index); + onChanged(); + } else { + entityBuilder_.remove(index); + } + return this; + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder getEntityBuilder(int index) { + return getEntityFieldBuilder().getBuilder(index); + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public com.google.transit.realtime.GtfsRealtime.FeedEntityOrBuilder getEntityOrBuilder(int index) { + if (entityBuilder_ == null) { + return entity_.get(index); + } else { + return entityBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public java.util.List getEntityOrBuilderList() { + if (entityBuilder_ != null) { + return entityBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entity_); + } + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder addEntityBuilder() { + return getEntityFieldBuilder() + .addBuilder(com.google.transit.realtime.GtfsRealtime.FeedEntity.getDefaultInstance()); + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder addEntityBuilder(int index) { + return getEntityFieldBuilder().addBuilder(index, + com.google.transit.realtime.GtfsRealtime.FeedEntity.getDefaultInstance()); + } + /** + *
+             * Contents of the feed.
+             * 
+ * + * repeated .transit_realtime.FeedEntity entity = 2; + */ + public java.util.List getEntityBuilderList() { + return getEntityFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getEntityFieldBuilder() { + if (entityBuilder_ == null) { + entityBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + entity_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + entity_ = null; + } + return entityBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - *
-     * The ids are used only to provide incrementality support. The id should be
-     * unique within a FeedMessage. Consequent FeedMessages may contain
-     * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
-     * FeedEntity with some id will replace the old FeedEntity with the same id
-     * (or delete it - see is_deleted below).
-     * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
-     * feed must be specified by explicit selectors (see EntitySelector below for
-     * more info).
-     * 
- * - * required string id = 1; - * @return Whether the id field is set. - */ - @java.lang.Override - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The ids are used only to provide incrementality support. The id should be
-     * unique within a FeedMessage. Consequent FeedMessages may contain
-     * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
-     * FeedEntity with some id will replace the old FeedEntity with the same id
-     * (or delete it - see is_deleted below).
-     * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
-     * feed must be specified by explicit selectors (see EntitySelector below for
-     * more info).
-     * 
- * - * required string id = 1; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } - } - /** - *
-     * The ids are used only to provide incrementality support. The id should be
-     * unique within a FeedMessage. Consequent FeedMessages may contain
-     * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
-     * FeedEntity with some id will replace the old FeedEntity with the same id
-     * (or delete it - see is_deleted below).
-     * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
-     * feed must be specified by explicit selectors (see EntitySelector below for
-     * more info).
-     * 
- * - * required string id = 1; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static final int IS_DELETED_FIELD_NUMBER = 2; - private boolean isDeleted_ = false; - /** - *
-     * Whether this entity is to be deleted. Relevant only for incremental
-     * fetches.
-     * 
- * - * optional bool is_deleted = 2 [default = false]; - * @return Whether the isDeleted field is set. - */ - @java.lang.Override - public boolean hasIsDeleted() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Whether this entity is to be deleted. Relevant only for incremental
-     * fetches.
-     * 
- * - * optional bool is_deleted = 2 [default = false]; - * @return The isDeleted. - */ - @java.lang.Override - public boolean getIsDeleted() { - return isDeleted_; - } + // @@protoc_insertion_point(builder_scope:transit_realtime.FeedMessage) + } - public static final int TRIP_UPDATE_FIELD_NUMBER = 3; - private com.google.transit.realtime.GtfsRealtime.TripUpdate tripUpdate_; - /** - *
-     * Data about the entity itself. Exactly one of the following fields must be
-     * present (unless the entity is being deleted).
-     * 
- * - * optional .transit_realtime.TripUpdate trip_update = 3; - * @return Whether the tripUpdate field is set. - */ - @java.lang.Override - public boolean hasTripUpdate() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Data about the entity itself. Exactly one of the following fields must be
-     * present (unless the entity is being deleted).
-     * 
- * - * optional .transit_realtime.TripUpdate trip_update = 3; - * @return The tripUpdate. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate getTripUpdate() { - return tripUpdate_ == null ? com.google.transit.realtime.GtfsRealtime.TripUpdate.getDefaultInstance() : tripUpdate_; - } - /** - *
-     * Data about the entity itself. Exactly one of the following fields must be
-     * present (unless the entity is being deleted).
-     * 
- * - * optional .transit_realtime.TripUpdate trip_update = 3; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdateOrBuilder getTripUpdateOrBuilder() { - return tripUpdate_ == null ? com.google.transit.realtime.GtfsRealtime.TripUpdate.getDefaultInstance() : tripUpdate_; - } + // @@protoc_insertion_point(class_scope:transit_realtime.FeedMessage) + private static final com.google.transit.realtime.GtfsRealtime.FeedMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.FeedMessage(); + } - public static final int VEHICLE_FIELD_NUMBER = 4; - private com.google.transit.realtime.GtfsRealtime.VehiclePosition vehicle_; - /** - * optional .transit_realtime.VehiclePosition vehicle = 4; - * @return Whether the vehicle field is set. - */ - @java.lang.Override - public boolean hasVehicle() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional .transit_realtime.VehiclePosition vehicle = 4; - * @return The vehicle. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehiclePosition getVehicle() { - return vehicle_ == null ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDefaultInstance() : vehicle_; - } - /** - * optional .transit_realtime.VehiclePosition vehicle = 4; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehiclePositionOrBuilder getVehicleOrBuilder() { - return vehicle_ == null ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDefaultInstance() : vehicle_; - } + public static com.google.transit.realtime.GtfsRealtime.FeedMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int ALERT_FIELD_NUMBER = 5; - private com.google.transit.realtime.GtfsRealtime.Alert alert_; - /** - * optional .transit_realtime.Alert alert = 5; - * @return Whether the alert field is set. - */ - @java.lang.Override - public boolean hasAlert() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional .transit_realtime.Alert alert = 5; - * @return The alert. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.Alert getAlert() { - return alert_ == null ? com.google.transit.realtime.GtfsRealtime.Alert.getDefaultInstance() : alert_; - } - /** - * optional .transit_realtime.Alert alert = 5; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.AlertOrBuilder getAlertOrBuilder() { - return alert_ == null ? com.google.transit.realtime.GtfsRealtime.Alert.getDefaultInstance() : alert_; - } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeedMessage parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - 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; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @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(2000, output); - getUnknownFields().writeTo(output); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @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 com.google.transit.realtime.GtfsRealtime.FeedMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.FeedEntity)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.FeedEntity other = (com.google.transit.realtime.GtfsRealtime.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 interface FeedHeaderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.FeedHeader) + com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder { - public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + /** + *
+         * Version of the feed specification.
+         * The current version is 2.0.  Valid versions are "2.0", "1.0".
+         * 
+ * + * required string gtfs_realtime_version = 1; + * @return Whether the gtfsRealtimeVersion field is set. + */ + boolean hasGtfsRealtimeVersion(); + /** + *
+         * Version of the feed specification.
+         * The current version is 2.0.  Valid versions are "2.0", "1.0".
+         * 
+ * + * required string gtfs_realtime_version = 1; + * @return The gtfsRealtimeVersion. + */ + java.lang.String getGtfsRealtimeVersion(); + /** + *
+         * Version of the feed specification.
+         * The current version is 2.0.  Valid versions are "2.0", "1.0".
+         * 
+ * + * required string gtfs_realtime_version = 1; + * @return The bytes for gtfsRealtimeVersion. + */ + com.google.protobuf.ByteString getGtfsRealtimeVersionBytes(); - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.FeedEntity prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + /** + * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; + * @return Whether the incrementality field is set. + */ + boolean hasIncrementality(); + /** + * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; + * @return The incrementality. + */ + com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality getIncrementality(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + *
+         * This timestamp identifies the moment when the content of this feed has been
+         * created (in server time). In POSIX time (i.e., number of seconds since
+         * January 1st 1970 00:00:00 UTC).
+         * 
+ * + * optional uint64 timestamp = 3; + * @return Whether the timestamp field is set. + */ + boolean hasTimestamp(); + /** + *
+         * This timestamp identifies the moment when the content of this feed has been
+         * created (in server time). In POSIX time (i.e., number of seconds since
+         * January 1st 1970 00:00:00 UTC).
+         * 
+ * + * optional uint64 timestamp = 3; + * @return The timestamp. + */ + long getTimestamp(); } /** *
-     * A definition (or update) of an entity in the transit feed.
+     * Metadata about a feed, included in feed messages.
      * 
* - * Protobuf type {@code transit_realtime.FeedEntity} + * Protobuf type {@code transit_realtime.FeedHeader} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< - com.google.transit.realtime.GtfsRealtime.FeedEntity, Builder> implements - // @@protoc_insertion_point(builder_implements:transit_realtime.FeedEntity) - com.google.transit.realtime.GtfsRealtime.FeedEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedEntity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedEntity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.FeedEntity.class, com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder.class); - } - - // Construct using com.google.transit.realtime.GtfsRealtime.FeedEntity.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTripUpdateFieldBuilder(); - getVehicleFieldBuilder(); - getAlertFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - isDeleted_ = false; - tripUpdate_ = null; - if (tripUpdateBuilder_ != null) { - tripUpdateBuilder_.dispose(); - tripUpdateBuilder_ = null; - } - vehicle_ = null; - if (vehicleBuilder_ != null) { - vehicleBuilder_.dispose(); - vehicleBuilder_ = null; - } - alert_ = null; - if (alertBuilder_ != null) { - alertBuilder_.dispose(); - alertBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedEntity_descriptor; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.FeedEntity getDefaultInstanceForType() { - return com.google.transit.realtime.GtfsRealtime.FeedEntity.getDefaultInstance(); - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.FeedEntity build() { - com.google.transit.realtime.GtfsRealtime.FeedEntity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.FeedEntity buildPartial() { - com.google.transit.realtime.GtfsRealtime.FeedEntity result = new com.google.transit.realtime.GtfsRealtime.FeedEntity(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.transit.realtime.GtfsRealtime.FeedEntity result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.isDeleted_ = isDeleted_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.tripUpdate_ = tripUpdateBuilder_ == null - ? tripUpdate_ - : tripUpdateBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.vehicle_ = vehicleBuilder_ == null - ? vehicle_ - : vehicleBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.alert_ = alertBuilder_ == null - ? alert_ - : alertBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.FeedEntity, Type> extension, - Type value) { - return super.setExtension(extension, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.FeedEntity, java.util.List> extension, - int index, Type value) { - return super.setExtension(extension, index, value); - } - @java.lang.Override - public Builder addExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.FeedEntity, java.util.List> extension, - Type value) { - return super.addExtension(extension, value); - } - @java.lang.Override - public Builder clearExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.FeedEntity, ?> extension) { - return super.clearExtension(extension); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.transit.realtime.GtfsRealtime.FeedEntity) { - return mergeFrom((com.google.transit.realtime.GtfsRealtime.FeedEntity)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.FeedEntity other) { - if (other == com.google.transit.realtime.GtfsRealtime.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_ = ""; - /** - *
-       * The ids are used only to provide incrementality support. The id should be
-       * unique within a FeedMessage. Consequent FeedMessages may contain
-       * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
-       * FeedEntity with some id will replace the old FeedEntity with the same id
-       * (or delete it - see is_deleted below).
-       * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
-       * feed must be specified by explicit selectors (see EntitySelector below for
-       * more info).
-       * 
- * - * required string id = 1; - * @return Whether the id field is set. - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * The ids are used only to provide incrementality support. The id should be
-       * unique within a FeedMessage. Consequent FeedMessages may contain
-       * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
-       * FeedEntity with some id will replace the old FeedEntity with the same id
-       * (or delete it - see is_deleted below).
-       * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
-       * feed must be specified by explicit selectors (see EntitySelector below for
-       * more info).
-       * 
- * - * required string id = 1; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The ids are used only to provide incrementality support. The id should be
-       * unique within a FeedMessage. Consequent FeedMessages may contain
-       * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
-       * FeedEntity with some id will replace the old FeedEntity with the same id
-       * (or delete it - see is_deleted below).
-       * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
-       * feed must be specified by explicit selectors (see EntitySelector below for
-       * more info).
-       * 
- * - * required string id = 1; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The ids are used only to provide incrementality support. The id should be
-       * unique within a FeedMessage. Consequent FeedMessages may contain
-       * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
-       * FeedEntity with some id will replace the old FeedEntity with the same id
-       * (or delete it - see is_deleted below).
-       * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
-       * feed must be specified by explicit selectors (see EntitySelector below for
-       * more info).
-       * 
- * - * required string id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The ids are used only to provide incrementality support. The id should be
-       * unique within a FeedMessage. Consequent FeedMessages may contain
-       * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
-       * FeedEntity with some id will replace the old FeedEntity with the same id
-       * (or delete it - see is_deleted below).
-       * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
-       * feed must be specified by explicit selectors (see EntitySelector below for
-       * more info).
-       * 
- * - * required string id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The ids are used only to provide incrementality support. The id should be
-       * unique within a FeedMessage. Consequent FeedMessages may contain
-       * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
-       * FeedEntity with some id will replace the old FeedEntity with the same id
-       * (or delete it - see is_deleted below).
-       * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
-       * feed must be specified by explicit selectors (see EntitySelector below for
-       * more info).
-       * 
- * - * required string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean isDeleted_ ; - /** - *
-       * Whether this entity is to be deleted. Relevant only for incremental
-       * fetches.
-       * 
- * - * optional bool is_deleted = 2 [default = false]; - * @return Whether the isDeleted field is set. - */ - @java.lang.Override - public boolean hasIsDeleted() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Whether this entity is to be deleted. Relevant only for incremental
-       * fetches.
-       * 
- * - * optional bool is_deleted = 2 [default = false]; - * @return The isDeleted. - */ - @java.lang.Override - public boolean getIsDeleted() { - return isDeleted_; - } - /** - *
-       * Whether this entity is to be deleted. Relevant only for incremental
-       * fetches.
-       * 
- * - * optional bool is_deleted = 2 [default = false]; - * @param value The isDeleted to set. - * @return This builder for chaining. - */ - public Builder setIsDeleted(boolean value) { - - isDeleted_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Whether this entity is to be deleted. Relevant only for incremental
-       * fetches.
-       * 
- * - * optional bool is_deleted = 2 [default = false]; - * @return This builder for chaining. - */ - public Builder clearIsDeleted() { - bitField0_ = (bitField0_ & ~0x00000002); - isDeleted_ = false; - onChanged(); - return this; - } - - private com.google.transit.realtime.GtfsRealtime.TripUpdate tripUpdate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripUpdate, com.google.transit.realtime.GtfsRealtime.TripUpdate.Builder, com.google.transit.realtime.GtfsRealtime.TripUpdateOrBuilder> tripUpdateBuilder_; - /** - *
-       * Data about the entity itself. Exactly one of the following fields must be
-       * present (unless the entity is being deleted).
-       * 
- * - * optional .transit_realtime.TripUpdate trip_update = 3; - * @return Whether the tripUpdate field is set. - */ - public boolean hasTripUpdate() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * Data about the entity itself. Exactly one of the following fields must be
-       * present (unless the entity is being deleted).
-       * 
- * - * optional .transit_realtime.TripUpdate trip_update = 3; - * @return The tripUpdate. - */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate getTripUpdate() { - if (tripUpdateBuilder_ == null) { - return tripUpdate_ == null ? com.google.transit.realtime.GtfsRealtime.TripUpdate.getDefaultInstance() : tripUpdate_; - } else { - return tripUpdateBuilder_.getMessage(); - } - } - /** - *
-       * Data about the entity itself. Exactly one of the following fields must be
-       * present (unless the entity is being deleted).
-       * 
- * - * optional .transit_realtime.TripUpdate trip_update = 3; - */ - public Builder setTripUpdate(com.google.transit.realtime.GtfsRealtime.TripUpdate value) { - if (tripUpdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tripUpdate_ = value; - } else { - tripUpdateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Data about the entity itself. Exactly one of the following fields must be
-       * present (unless the entity is being deleted).
-       * 
- * - * optional .transit_realtime.TripUpdate trip_update = 3; - */ - public Builder setTripUpdate( - com.google.transit.realtime.GtfsRealtime.TripUpdate.Builder builderForValue) { - if (tripUpdateBuilder_ == null) { - tripUpdate_ = builderForValue.build(); - } else { - tripUpdateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Data about the entity itself. Exactly one of the following fields must be
-       * present (unless the entity is being deleted).
-       * 
- * - * optional .transit_realtime.TripUpdate trip_update = 3; - */ - public Builder mergeTripUpdate(com.google.transit.realtime.GtfsRealtime.TripUpdate value) { - if (tripUpdateBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - tripUpdate_ != null && - tripUpdate_ != com.google.transit.realtime.GtfsRealtime.TripUpdate.getDefaultInstance()) { - getTripUpdateBuilder().mergeFrom(value); - } else { - tripUpdate_ = value; - } - } else { - tripUpdateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Data about the entity itself. Exactly one of the following fields must be
-       * present (unless the entity is being deleted).
-       * 
- * - * optional .transit_realtime.TripUpdate trip_update = 3; - */ - public Builder clearTripUpdate() { - bitField0_ = (bitField0_ & ~0x00000004); - tripUpdate_ = null; - if (tripUpdateBuilder_ != null) { - tripUpdateBuilder_.dispose(); - tripUpdateBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Data about the entity itself. Exactly one of the following fields must be
-       * present (unless the entity is being deleted).
-       * 
- * - * optional .transit_realtime.TripUpdate trip_update = 3; - */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate.Builder getTripUpdateBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getTripUpdateFieldBuilder().getBuilder(); - } - /** - *
-       * Data about the entity itself. Exactly one of the following fields must be
-       * present (unless the entity is being deleted).
-       * 
- * - * optional .transit_realtime.TripUpdate trip_update = 3; - */ - public com.google.transit.realtime.GtfsRealtime.TripUpdateOrBuilder getTripUpdateOrBuilder() { - if (tripUpdateBuilder_ != null) { - return tripUpdateBuilder_.getMessageOrBuilder(); - } else { - return tripUpdate_ == null ? - com.google.transit.realtime.GtfsRealtime.TripUpdate.getDefaultInstance() : tripUpdate_; - } - } - /** - *
-       * Data about the entity itself. Exactly one of the following fields must be
-       * present (unless the entity is being deleted).
-       * 
- * - * optional .transit_realtime.TripUpdate trip_update = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripUpdate, com.google.transit.realtime.GtfsRealtime.TripUpdate.Builder, com.google.transit.realtime.GtfsRealtime.TripUpdateOrBuilder> - getTripUpdateFieldBuilder() { - if (tripUpdateBuilder_ == null) { - tripUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripUpdate, com.google.transit.realtime.GtfsRealtime.TripUpdate.Builder, com.google.transit.realtime.GtfsRealtime.TripUpdateOrBuilder>( - getTripUpdate(), - getParentForChildren(), - isClean()); - tripUpdate_ = null; - } - return tripUpdateBuilder_; - } - - private com.google.transit.realtime.GtfsRealtime.VehiclePosition vehicle_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.VehiclePosition, com.google.transit.realtime.GtfsRealtime.VehiclePosition.Builder, com.google.transit.realtime.GtfsRealtime.VehiclePositionOrBuilder> vehicleBuilder_; - /** - * optional .transit_realtime.VehiclePosition vehicle = 4; - * @return Whether the vehicle field is set. - */ - public boolean hasVehicle() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional .transit_realtime.VehiclePosition vehicle = 4; - * @return The vehicle. - */ - public com.google.transit.realtime.GtfsRealtime.VehiclePosition getVehicle() { - if (vehicleBuilder_ == null) { - return vehicle_ == null ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDefaultInstance() : vehicle_; - } else { - return vehicleBuilder_.getMessage(); - } - } - /** - * optional .transit_realtime.VehiclePosition vehicle = 4; - */ - public Builder setVehicle(com.google.transit.realtime.GtfsRealtime.VehiclePosition value) { - if (vehicleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vehicle_ = value; - } else { - vehicleBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * optional .transit_realtime.VehiclePosition vehicle = 4; - */ - public Builder setVehicle( - com.google.transit.realtime.GtfsRealtime.VehiclePosition.Builder builderForValue) { - if (vehicleBuilder_ == null) { - vehicle_ = builderForValue.build(); - } else { - vehicleBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * optional .transit_realtime.VehiclePosition vehicle = 4; - */ - public Builder mergeVehicle(com.google.transit.realtime.GtfsRealtime.VehiclePosition value) { - if (vehicleBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - vehicle_ != null && - vehicle_ != com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDefaultInstance()) { - getVehicleBuilder().mergeFrom(value); - } else { - vehicle_ = value; - } - } else { - vehicleBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * optional .transit_realtime.VehiclePosition vehicle = 4; - */ - public Builder clearVehicle() { - bitField0_ = (bitField0_ & ~0x00000008); - vehicle_ = null; - if (vehicleBuilder_ != null) { - vehicleBuilder_.dispose(); - vehicleBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .transit_realtime.VehiclePosition vehicle = 4; - */ - public com.google.transit.realtime.GtfsRealtime.VehiclePosition.Builder getVehicleBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getVehicleFieldBuilder().getBuilder(); - } - /** - * optional .transit_realtime.VehiclePosition vehicle = 4; - */ - public com.google.transit.realtime.GtfsRealtime.VehiclePositionOrBuilder getVehicleOrBuilder() { - if (vehicleBuilder_ != null) { - return vehicleBuilder_.getMessageOrBuilder(); - } else { - return vehicle_ == null ? - com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDefaultInstance() : vehicle_; - } - } - /** - * optional .transit_realtime.VehiclePosition vehicle = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.VehiclePosition, com.google.transit.realtime.GtfsRealtime.VehiclePosition.Builder, com.google.transit.realtime.GtfsRealtime.VehiclePositionOrBuilder> - getVehicleFieldBuilder() { - if (vehicleBuilder_ == null) { - vehicleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.VehiclePosition, com.google.transit.realtime.GtfsRealtime.VehiclePosition.Builder, com.google.transit.realtime.GtfsRealtime.VehiclePositionOrBuilder>( - getVehicle(), - getParentForChildren(), - isClean()); - vehicle_ = null; - } - return vehicleBuilder_; - } - - private com.google.transit.realtime.GtfsRealtime.Alert alert_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.Alert, com.google.transit.realtime.GtfsRealtime.Alert.Builder, com.google.transit.realtime.GtfsRealtime.AlertOrBuilder> alertBuilder_; - /** - * optional .transit_realtime.Alert alert = 5; - * @return Whether the alert field is set. - */ - public boolean hasAlert() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional .transit_realtime.Alert alert = 5; - * @return The alert. - */ - public com.google.transit.realtime.GtfsRealtime.Alert getAlert() { - if (alertBuilder_ == null) { - return alert_ == null ? com.google.transit.realtime.GtfsRealtime.Alert.getDefaultInstance() : alert_; - } else { - return alertBuilder_.getMessage(); - } - } - /** - * optional .transit_realtime.Alert alert = 5; - */ - public Builder setAlert(com.google.transit.realtime.GtfsRealtime.Alert value) { - if (alertBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - alert_ = value; - } else { - alertBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * optional .transit_realtime.Alert alert = 5; - */ - public Builder setAlert( - com.google.transit.realtime.GtfsRealtime.Alert.Builder builderForValue) { - if (alertBuilder_ == null) { - alert_ = builderForValue.build(); - } else { - alertBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * optional .transit_realtime.Alert alert = 5; - */ - public Builder mergeAlert(com.google.transit.realtime.GtfsRealtime.Alert value) { - if (alertBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - alert_ != null && - alert_ != com.google.transit.realtime.GtfsRealtime.Alert.getDefaultInstance()) { - getAlertBuilder().mergeFrom(value); - } else { - alert_ = value; - } - } else { - alertBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * optional .transit_realtime.Alert alert = 5; - */ - public Builder clearAlert() { - bitField0_ = (bitField0_ & ~0x00000010); - alert_ = null; - if (alertBuilder_ != null) { - alertBuilder_.dispose(); - alertBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .transit_realtime.Alert alert = 5; - */ - public com.google.transit.realtime.GtfsRealtime.Alert.Builder getAlertBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getAlertFieldBuilder().getBuilder(); - } - /** - * optional .transit_realtime.Alert alert = 5; - */ - public com.google.transit.realtime.GtfsRealtime.AlertOrBuilder getAlertOrBuilder() { - if (alertBuilder_ != null) { - return alertBuilder_.getMessageOrBuilder(); - } else { - return alert_ == null ? - com.google.transit.realtime.GtfsRealtime.Alert.getDefaultInstance() : alert_; - } - } - /** - * optional .transit_realtime.Alert alert = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.Alert, com.google.transit.realtime.GtfsRealtime.Alert.Builder, com.google.transit.realtime.GtfsRealtime.AlertOrBuilder> - getAlertFieldBuilder() { - if (alertBuilder_ == null) { - alertBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.Alert, com.google.transit.realtime.GtfsRealtime.Alert.Builder, com.google.transit.realtime.GtfsRealtime.AlertOrBuilder>( - getAlert(), - getParentForChildren(), - isClean()); - alert_ = null; - } - return alertBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:transit_realtime.FeedEntity) - } - - // @@protoc_insertion_point(class_scope:transit_realtime.FeedEntity) - private static final com.google.transit.realtime.GtfsRealtime.FeedEntity DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.FeedEntity(); - } + public static final class FeedHeader extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage + implements + // @@protoc_insertion_point(message_implements:transit_realtime.FeedHeader) + FeedHeaderOrBuilder { + private static final long serialVersionUID = 0L; + // Use FeedHeader.newBuilder() to construct. + private FeedHeader( + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { + super(builder); + } + private FeedHeader() { + gtfsRealtimeVersion_ = ""; + incrementality_ = 0; + } - public static com.google.transit.realtime.GtfsRealtime.FeedEntity getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FeedHeader(); + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeedEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedHeader_descriptor; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.FeedHeader.class, + com.google.transit.realtime.GtfsRealtime.FeedHeader.Builder.class); + } - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.FeedEntity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + *
+         * Determines whether the current fetch is incremental.  Currently,
+         * DIFFERENTIAL mode is unsupported and behavior is unspecified for feeds
+         * that use this mode.  There are discussions on the GTFS Realtime mailing
+         * list around fully specifying the behavior of DIFFERENTIAL mode and the
+         * documentation will be updated when those discussions are finalized.
+         * 
+ * + * Protobuf enum {@code transit_realtime.FeedHeader.Incrementality} + */ + public enum Incrementality implements com.google.protobuf.ProtocolMessageEnum { + /** + * FULL_DATASET = 0; + */ + FULL_DATASET(0), + /** + * DIFFERENTIAL = 1; + */ + DIFFERENTIAL(1),; + + /** + * FULL_DATASET = 0; + */ + public static final int FULL_DATASET_VALUE = 0; + /** + * DIFFERENTIAL = 1; + */ + public static final int DIFFERENTIAL_VALUE = 1; + + public final int getNumber() { + return value; + } - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Incrementality valueOf(int value) { + return forNumber(value); + } - public interface TripUpdateOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.TripUpdate) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Incrementality forNumber(int value) { + switch (value) { + case 0 : + return FULL_DATASET; + case 1 : + return DIFFERENTIAL; + default : + return null; + } + } - /** - *
-     * The Trip that this message applies to. There can be at most one
-     * TripUpdate entity for each actual trip instance.
-     * If there is none, that means there is no prediction information available.
-     * It does *not* mean that the trip is progressing according to schedule.
-     * 
- * - * required .transit_realtime.TripDescriptor trip = 1; - * @return Whether the trip field is set. - */ - boolean hasTrip(); - /** - *
-     * The Trip that this message applies to. There can be at most one
-     * TripUpdate entity for each actual trip instance.
-     * If there is none, that means there is no prediction information available.
-     * It does *not* mean that the trip is progressing according to schedule.
-     * 
- * - * required .transit_realtime.TripDescriptor trip = 1; - * @return The trip. - */ - com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip(); - /** - *
-     * The Trip that this message applies to. There can be at most one
-     * TripUpdate entity for each actual trip instance.
-     * If there is none, that means there is no prediction information available.
-     * It does *not* mean that the trip is progressing according to schedule.
-     * 
- * - * required .transit_realtime.TripDescriptor trip = 1; - */ - com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder(); - - /** - *
-     * Additional information on the vehicle that is serving this trip.
-     * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 3; - * @return Whether the vehicle field is set. - */ - boolean hasVehicle(); - /** - *
-     * Additional information on the vehicle that is serving this trip.
-     * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 3; - * @return The vehicle. - */ - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getVehicle(); - /** - *
-     * Additional information on the vehicle that is serving this trip.
-     * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 3; - */ - com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder(); - - /** - *
-     * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-     * some cases, past ones, i.e., those that already happened).
-     * The updates must be sorted by stop_sequence, and apply for all the
-     * following stops of the trip up to the next specified one.
-     * Example 1:
-     * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-     * delay of 0 for stop_sequence of the current stop means that the trip is
-     * exactly on time.
-     * Example 2:
-     * For the same trip instance, 3 StopTimeUpdates are provided:
-     * - delay of 5 min for stop_sequence 3
-     * - delay of 1 min for stop_sequence 8
-     * - delay of unspecified duration for stop_sequence 10
-     * This will be interpreted as:
-     * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-     * - stop_sequences 8,9 have delay of 1 min.
-     * - stop_sequences 10,... have unknown delay.
-     * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - java.util.List - getStopTimeUpdateList(); - /** - *
-     * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-     * some cases, past ones, i.e., those that already happened).
-     * The updates must be sorted by stop_sequence, and apply for all the
-     * following stops of the trip up to the next specified one.
-     * Example 1:
-     * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-     * delay of 0 for stop_sequence of the current stop means that the trip is
-     * exactly on time.
-     * Example 2:
-     * For the same trip instance, 3 StopTimeUpdates are provided:
-     * - delay of 5 min for stop_sequence 3
-     * - delay of 1 min for stop_sequence 8
-     * - delay of unspecified duration for stop_sequence 10
-     * This will be interpreted as:
-     * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-     * - stop_sequences 8,9 have delay of 1 min.
-     * - stop_sequences 10,... have unknown delay.
-     * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate getStopTimeUpdate(int index); - /** - *
-     * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-     * some cases, past ones, i.e., those that already happened).
-     * The updates must be sorted by stop_sequence, and apply for all the
-     * following stops of the trip up to the next specified one.
-     * Example 1:
-     * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-     * delay of 0 for stop_sequence of the current stop means that the trip is
-     * exactly on time.
-     * Example 2:
-     * For the same trip instance, 3 StopTimeUpdates are provided:
-     * - delay of 5 min for stop_sequence 3
-     * - delay of 1 min for stop_sequence 8
-     * - delay of unspecified duration for stop_sequence 10
-     * This will be interpreted as:
-     * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-     * - stop_sequences 8,9 have delay of 1 min.
-     * - stop_sequences 10,... have unknown delay.
-     * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - int getStopTimeUpdateCount(); - /** - *
-     * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-     * some cases, past ones, i.e., those that already happened).
-     * The updates must be sorted by stop_sequence, and apply for all the
-     * following stops of the trip up to the next specified one.
-     * Example 1:
-     * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-     * delay of 0 for stop_sequence of the current stop means that the trip is
-     * exactly on time.
-     * Example 2:
-     * For the same trip instance, 3 StopTimeUpdates are provided:
-     * - delay of 5 min for stop_sequence 3
-     * - delay of 1 min for stop_sequence 8
-     * - delay of unspecified duration for stop_sequence 10
-     * This will be interpreted as:
-     * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-     * - stop_sequences 8,9 have delay of 1 min.
-     * - stop_sequences 10,... have unknown delay.
-     * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - java.util.List - getStopTimeUpdateOrBuilderList(); - /** - *
-     * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-     * some cases, past ones, i.e., those that already happened).
-     * The updates must be sorted by stop_sequence, and apply for all the
-     * following stops of the trip up to the next specified one.
-     * Example 1:
-     * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-     * delay of 0 for stop_sequence of the current stop means that the trip is
-     * exactly on time.
-     * Example 2:
-     * For the same trip instance, 3 StopTimeUpdates are provided:
-     * - delay of 5 min for stop_sequence 3
-     * - delay of 1 min for stop_sequence 8
-     * - delay of unspecified duration for stop_sequence 10
-     * This will be interpreted as:
-     * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-     * - stop_sequences 8,9 have delay of 1 min.
-     * - stop_sequences 10,... have unknown delay.
-     * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder getStopTimeUpdateOrBuilder( - int index); - - /** - *
-     * Moment at which the vehicle's real-time progress was measured. In POSIX
-     * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
-     * 
- * - * optional uint64 timestamp = 4; - * @return Whether the timestamp field is set. - */ - boolean hasTimestamp(); - /** - *
-     * Moment at which the vehicle's real-time progress was measured. In POSIX
-     * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
-     * 
- * - * optional uint64 timestamp = 4; - * @return The timestamp. - */ - long getTimestamp(); - - /** - *
-     * The current schedule deviation for the trip.  Delay should only be
-     * specified when the prediction is given relative to some existing schedule
-     * in GTFS.
-     * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-     * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-     * means that the vehicle is exactly on time.
-     * Delay information in StopTimeUpdates take precedent of trip-level delay
-     * information, such that trip-level delay is only propagated until the next
-     * stop along the trip with a StopTimeUpdate delay value specified.
-     * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
-     * value indicating when the delay value was last updated, in order to
-     * evaluate the freshness of the data.
-     * NOTE: This field is still experimental, and subject to change. It may be
-     * formally adopted in the future.
-     * 
- * - * optional int32 delay = 5; - * @return Whether the delay field is set. - */ - boolean hasDelay(); - /** - *
-     * The current schedule deviation for the trip.  Delay should only be
-     * specified when the prediction is given relative to some existing schedule
-     * in GTFS.
-     * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-     * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-     * means that the vehicle is exactly on time.
-     * Delay information in StopTimeUpdates take precedent of trip-level delay
-     * information, such that trip-level delay is only propagated until the next
-     * stop along the trip with a StopTimeUpdate delay value specified.
-     * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
-     * value indicating when the delay value was last updated, in order to
-     * evaluate the freshness of the data.
-     * NOTE: This field is still experimental, and subject to change. It may be
-     * formally adopted in the future.
-     * 
- * - * optional int32 delay = 5; - * @return The delay. - */ - int getDelay(); - } - /** - *
-   * Realtime update of the progress of a vehicle along a trip.
-   * Depending on the value of ScheduleRelationship, a TripUpdate can specify:
-   * - A trip that proceeds along the schedule.
-   * - A trip that proceeds along a route but has no fixed schedule.
-   * - A trip that have been added or removed with regard to schedule.
-   * The updates can be for future, predicted arrival/departure events, or for
-   * past events that already occurred.
-   * Normally, updates should get more precise and more certain (see
-   * uncertainty below) as the events gets closer to current time.
-   * Even if that is not possible, the information for past events should be
-   * precise and certain. In particular, if an update points to time in the past
-   * but its update's uncertainty is not 0, the client should conclude that the
-   * update is a (wrong) prediction and that the trip has not completed yet.
-   * Note that the update can describe a trip that is already completed.
-   * To this end, it is enough to provide an update for the last stop of the trip.
-   * If the time of that is in the past, the client will conclude from that that
-   * the whole trip is in the past (it is possible, although inconsequential, to
-   * also provide updates for preceding stops).
-   * This option is most relevant for a trip that has completed ahead of schedule,
-   * but according to the schedule, the trip is still proceeding at the current
-   * time. Removing the updates for this trip could make the client assume
-   * that the trip is still proceeding.
-   * Note that the feed provider is allowed, but not required, to purge past
-   * updates - this is one case where this would be practically useful.
-   * 
- * - * Protobuf type {@code transit_realtime.TripUpdate} - */ - public static final class TripUpdate extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - TripUpdate> implements - // @@protoc_insertion_point(message_implements:transit_realtime.TripUpdate) - TripUpdateOrBuilder { - private static final long serialVersionUID = 0L; - // Use TripUpdate.newBuilder() to construct. - private TripUpdate(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private TripUpdate() { - stopTimeUpdate_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TripUpdate(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.TripUpdate.class, com.google.transit.realtime.GtfsRealtime.TripUpdate.Builder.class); - } - - public interface StopTimeEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.TripUpdate.StopTimeEvent) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { - - /** - *
-       * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-       * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-       * means that the vehicle is exactly on time.
-       * 
- * - * optional int32 delay = 1; - * @return Whether the delay field is set. - */ - boolean hasDelay(); - /** - *
-       * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-       * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-       * means that the vehicle is exactly on time.
-       * 
- * - * optional int32 delay = 1; - * @return The delay. - */ - int getDelay(); - - /** - *
-       * Event as absolute time.
-       * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
-       * UTC).
-       * 
- * - * optional int64 time = 2; - * @return Whether the time field is set. - */ - boolean hasTime(); - /** - *
-       * Event as absolute time.
-       * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
-       * UTC).
-       * 
- * - * optional int64 time = 2; - * @return The time. - */ - long getTime(); - - /** - *
-       * If uncertainty is omitted, it is interpreted as unknown.
-       * If the prediction is unknown or too uncertain, the delay (or time) field
-       * should be empty. In such case, the uncertainty field is ignored.
-       * To specify a completely certain prediction, set its uncertainty to 0.
-       * 
- * - * optional int32 uncertainty = 3; - * @return Whether the uncertainty field is set. - */ - boolean hasUncertainty(); - /** - *
-       * If uncertainty is omitted, it is interpreted as unknown.
-       * If the prediction is unknown or too uncertain, the delay (or time) field
-       * should be empty. In such case, the uncertainty field is ignored.
-       * To specify a completely certain prediction, set its uncertainty to 0.
-       * 
- * - * optional int32 uncertainty = 3; - * @return The uncertainty. - */ - int getUncertainty(); - } - /** - *
-     * Timing information for a single predicted event (either arrival or
-     * departure).
-     * Timing consists of delay and/or estimated time, and uncertainty.
-     * - delay should be used when the prediction is given relative to some
-     *   existing schedule in GTFS.
-     * - time should be given whether there is a predicted schedule or not. If
-     *   both time and delay are specified, time will take precedence
-     *   (although normally, time, if given for a scheduled trip, should be
-     *   equal to scheduled time in GTFS + delay).
-     * Uncertainty applies equally to both time and delay.
-     * The uncertainty roughly specifies the expected error in true delay (but
-     * note, we don't yet define its precise statistical meaning). It's possible
-     * for the uncertainty to be 0, for example for trains that are driven under
-     * computer timing control.
-     * 
- * - * Protobuf type {@code transit_realtime.TripUpdate.StopTimeEvent} - */ - public static final class StopTimeEvent extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - StopTimeEvent> implements - // @@protoc_insertion_point(message_implements:transit_realtime.TripUpdate.StopTimeEvent) - StopTimeEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use StopTimeEvent.newBuilder() to construct. - private StopTimeEvent(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private StopTimeEvent() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StopTimeEvent(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.class, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder.class); - } - - private int bitField0_; - public static final int DELAY_FIELD_NUMBER = 1; - private int delay_ = 0; - /** - *
-       * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-       * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-       * means that the vehicle is exactly on time.
-       * 
- * - * optional int32 delay = 1; - * @return Whether the delay field is set. - */ - @java.lang.Override - public boolean hasDelay() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-       * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-       * means that the vehicle is exactly on time.
-       * 
- * - * optional int32 delay = 1; - * @return The delay. - */ - @java.lang.Override - public int getDelay() { - return delay_; - } - - public static final int TIME_FIELD_NUMBER = 2; - private long time_ = 0L; - /** - *
-       * Event as absolute time.
-       * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
-       * UTC).
-       * 
- * - * optional int64 time = 2; - * @return Whether the time field is set. - */ - @java.lang.Override - public boolean hasTime() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Event as absolute time.
-       * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
-       * UTC).
-       * 
- * - * optional int64 time = 2; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - - public static final int UNCERTAINTY_FIELD_NUMBER = 3; - private int uncertainty_ = 0; - /** - *
-       * If uncertainty is omitted, it is interpreted as unknown.
-       * If the prediction is unknown or too uncertain, the delay (or time) field
-       * should be empty. In such case, the uncertainty field is ignored.
-       * To specify a completely certain prediction, set its uncertainty to 0.
-       * 
- * - * optional int32 uncertainty = 3; - * @return Whether the uncertainty field is set. - */ - @java.lang.Override - public boolean hasUncertainty() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * If uncertainty is omitted, it is interpreted as unknown.
-       * If the prediction is unknown or too uncertain, the delay (or time) field
-       * should be empty. In such case, the uncertainty field is ignored.
-       * To specify a completely certain prediction, set its uncertainty to 0.
-       * 
- * - * optional int32 uncertainty = 3; - * @return The uncertainty. - */ - @java.lang.Override - public int getUncertainty() { - return uncertainty_; - } - - 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.writeInt32(1, delay_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt64(2, time_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeInt32(3, uncertainty_); - } - extensionWriter.writeUntil(2000, 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 - .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 com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent other = (com.google.transit.realtime.GtfsRealtime.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 com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * Timing information for a single predicted event (either arrival or
-       * departure).
-       * Timing consists of delay and/or estimated time, and uncertainty.
-       * - delay should be used when the prediction is given relative to some
-       *   existing schedule in GTFS.
-       * - time should be given whether there is a predicted schedule or not. If
-       *   both time and delay are specified, time will take precedence
-       *   (although normally, time, if given for a scheduled trip, should be
-       *   equal to scheduled time in GTFS + delay).
-       * Uncertainty applies equally to both time and delay.
-       * The uncertainty roughly specifies the expected error in true delay (but
-       * note, we don't yet define its precise statistical meaning). It's possible
-       * for the uncertainty to be 0, for example for trains that are driven under
-       * computer timing control.
-       * 
- * - * Protobuf type {@code transit_realtime.TripUpdate.StopTimeEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent, Builder> implements - // @@protoc_insertion_point(builder_implements:transit_realtime.TripUpdate.StopTimeEvent) - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.class, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder.class); - } - - // Construct using com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - delay_ = 0; - time_ = 0L; - uncertainty_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeEvent_descriptor; - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public Incrementality findValueByNumber(int number) { + return Incrementality.forNumber(number); + } + }; - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getDefaultInstanceForType() { - return com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance(); - } + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.FeedHeader.getDescriptor().getEnumTypes().get(0); + } - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent build() { - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + private static final Incrementality[] VALUES = values(); - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent buildPartial() { - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent result = new com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } + public static Incrementality valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } - private void buildPartial0(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.delay_ = delay_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.time_ = time_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.uncertainty_ = uncertainty_; - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } + private final int value; - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent, Type> extension, - Type value) { - return super.setExtension(extension, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent, java.util.List> extension, - int index, Type value) { - return super.setExtension(extension, index, value); - } - @java.lang.Override - public Builder addExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent, java.util.List> extension, - Type value) { - return super.addExtension(extension, value); - } - @java.lang.Override - public Builder clearExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent, ?> extension) { - return super.clearExtension(extension); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent) { - return mergeFrom((com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } + private Incrementality(int value) { + this.value = value; + } - public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent other) { - if (other == com.google.transit.realtime.GtfsRealtime.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; + // @@protoc_insertion_point(enum_scope:transit_realtime.FeedHeader.Incrementality) } - @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_ ; + public static final int GTFS_REALTIME_VERSION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object gtfsRealtimeVersion_ = ""; /** *
-         * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-         * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-         * means that the vehicle is exactly on time.
+         * Version of the feed specification.
+         * The current version is 2.0.  Valid versions are "2.0", "1.0".
          * 
* - * optional int32 delay = 1; - * @return Whether the delay field is set. + * required string gtfs_realtime_version = 1; + * @return Whether the gtfsRealtimeVersion field is set. */ @java.lang.Override - public boolean hasDelay() { - return ((bitField0_ & 0x00000001) != 0); + public boolean hasGtfsRealtimeVersion() { + return ((bitField0_ & 0x00000001) != 0); } /** *
-         * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-         * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-         * means that the vehicle is exactly on time.
+         * Version of the feed specification.
+         * The current version is 2.0.  Valid versions are "2.0", "1.0".
          * 
* - * optional int32 delay = 1; - * @return The delay. + * required string gtfs_realtime_version = 1; + * @return The gtfsRealtimeVersion. */ @java.lang.Override - public int getDelay() { - return delay_; - } - /** - *
-         * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-         * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-         * means that the vehicle is exactly on time.
-         * 
- * - * optional int32 delay = 1; - * @param value The delay to set. - * @return This builder for chaining. - */ - public Builder setDelay(int value) { - - delay_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public java.lang.String getGtfsRealtimeVersion() { + java.lang.Object ref = gtfsRealtimeVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + gtfsRealtimeVersion_ = s; + } + return s; + } } /** *
-         * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-         * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-         * means that the vehicle is exactly on time.
+         * Version of the feed specification.
+         * The current version is 2.0.  Valid versions are "2.0", "1.0".
          * 
* - * optional int32 delay = 1; - * @return This builder for chaining. + * required string gtfs_realtime_version = 1; + * @return The bytes for gtfsRealtimeVersion. */ - public Builder clearDelay() { - bitField0_ = (bitField0_ & ~0x00000001); - delay_ = 0; - onChanged(); - return this; + @java.lang.Override + public com.google.protobuf.ByteString getGtfsRealtimeVersionBytes() { + java.lang.Object ref = gtfsRealtimeVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gtfsRealtimeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - private long time_ ; + public static final int INCREMENTALITY_FIELD_NUMBER = 2; + private int incrementality_ = 0; /** - *
-         * Event as absolute time.
-         * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
-         * UTC).
-         * 
- * - * optional int64 time = 2; - * @return Whether the time field is set. + * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; + * @return Whether the incrementality field is set. */ @java.lang.Override - public boolean hasTime() { - return ((bitField0_ & 0x00000002) != 0); + public boolean hasIncrementality() { + return ((bitField0_ & 0x00000002) != 0); } /** - *
-         * Event as absolute time.
-         * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
-         * UTC).
-         * 
- * - * optional int64 time = 2; - * @return The time. + * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; + * @return The incrementality. */ @java.lang.Override - public long getTime() { - return time_; - } - /** - *
-         * Event as absolute time.
-         * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
-         * UTC).
-         * 
- * - * optional int64 time = 2; - * @param value The time to set. - * @return This builder for chaining. - */ - public Builder setTime(long value) { - - time_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-         * Event as absolute time.
-         * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
-         * UTC).
-         * 
- * - * optional int64 time = 2; - * @return This builder for chaining. - */ - public Builder clearTime() { - bitField0_ = (bitField0_ & ~0x00000002); - time_ = 0L; - onChanged(); - return this; + public com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality getIncrementality() { + com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality result = com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality + .forNumber(incrementality_); + return result == null + ? com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality.FULL_DATASET + : result; } - private int uncertainty_ ; - /** - *
-         * If uncertainty is omitted, it is interpreted as unknown.
-         * If the prediction is unknown or too uncertain, the delay (or time) field
-         * should be empty. In such case, the uncertainty field is ignored.
-         * To specify a completely certain prediction, set its uncertainty to 0.
-         * 
- * - * optional int32 uncertainty = 3; - * @return Whether the uncertainty field is set. - */ - @java.lang.Override - public boolean hasUncertainty() { - return ((bitField0_ & 0x00000004) != 0); - } + public static final int TIMESTAMP_FIELD_NUMBER = 3; + private long timestamp_ = 0L; /** *
-         * If uncertainty is omitted, it is interpreted as unknown.
-         * If the prediction is unknown or too uncertain, the delay (or time) field
-         * should be empty. In such case, the uncertainty field is ignored.
-         * To specify a completely certain prediction, set its uncertainty to 0.
+         * This timestamp identifies the moment when the content of this feed has been
+         * created (in server time). In POSIX time (i.e., number of seconds since
+         * January 1st 1970 00:00:00 UTC).
          * 
* - * optional int32 uncertainty = 3; - * @return The uncertainty. + * optional uint64 timestamp = 3; + * @return Whether the timestamp field is set. */ @java.lang.Override - public int getUncertainty() { - return uncertainty_; - } - /** - *
-         * If uncertainty is omitted, it is interpreted as unknown.
-         * If the prediction is unknown or too uncertain, the delay (or time) field
-         * should be empty. In such case, the uncertainty field is ignored.
-         * To specify a completely certain prediction, set its uncertainty to 0.
-         * 
- * - * optional int32 uncertainty = 3; - * @param value The uncertainty to set. - * @return This builder for chaining. - */ - public Builder setUncertainty(int value) { - - uncertainty_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000004) != 0); } /** *
-         * If uncertainty is omitted, it is interpreted as unknown.
-         * If the prediction is unknown or too uncertain, the delay (or time) field
-         * should be empty. In such case, the uncertainty field is ignored.
-         * To specify a completely certain prediction, set its uncertainty to 0.
+         * This timestamp identifies the moment when the content of this feed has been
+         * created (in server time). In POSIX time (i.e., number of seconds since
+         * January 1st 1970 00:00:00 UTC).
          * 
* - * optional int32 uncertainty = 3; - * @return This builder for chaining. + * optional uint64 timestamp = 3; + * @return The timestamp. */ - public Builder clearUncertainty() { - bitField0_ = (bitField0_ & ~0x00000004); - uncertainty_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public long getTimestamp() { + return timestamp_; } - - // @@protoc_insertion_point(builder_scope:transit_realtime.TripUpdate.StopTimeEvent) - } - - // @@protoc_insertion_point(class_scope:transit_realtime.TripUpdate.StopTimeEvent) - private static final com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent(); - } - - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private byte memoizedIsInitialized = -1; @java.lang.Override - public StopTimeEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StopTimePropertiesOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.TripUpdate.StopTimeProperties) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * Supports real-time stop assignments. Refers to a stop_id defined in the
-       * GTFS stops.txt.
-       * The new assigned_stop_id should not result in a significantly different
-       * trip experience for the end user than the stop_id defined in GTFS
-       * stop_times.txt. In other words, the end user should not view this new
-       * stop_id as an "unusual change" if the new stop was presented within an
-       * app without any additional context. For example, this field is intended
-       * to be used for platform assignments by using a stop_id that belongs to
-       * the same station as the stop originally defined in GTFS stop_times.txt.
-       * To assign a stop without providing any real-time arrival or departure
-       * predictions, populate this field and set
-       * StopTimeUpdate.schedule_relationship = NO_DATA.
-       * If this field is populated, StopTimeUpdate.stop_sequence must be
-       * populated and StopTimeUpdate.stop_id should not be populated. Stop
-       * assignments should be reflected in other GTFS-realtime fields as well
-       * (e.g., VehiclePosition.stop_id).
-       * Caution: this field is still experimental, and subject to change. It
-       * may be formally adopted in the future.
-       * 
- * - * optional string assigned_stop_id = 1; - * @return Whether the assignedStopId field is set. - */ - boolean hasAssignedStopId(); - /** - *
-       * Supports real-time stop assignments. Refers to a stop_id defined in the
-       * GTFS stops.txt.
-       * The new assigned_stop_id should not result in a significantly different
-       * trip experience for the end user than the stop_id defined in GTFS
-       * stop_times.txt. In other words, the end user should not view this new
-       * stop_id as an "unusual change" if the new stop was presented within an
-       * app without any additional context. For example, this field is intended
-       * to be used for platform assignments by using a stop_id that belongs to
-       * the same station as the stop originally defined in GTFS stop_times.txt.
-       * To assign a stop without providing any real-time arrival or departure
-       * predictions, populate this field and set
-       * StopTimeUpdate.schedule_relationship = NO_DATA.
-       * If this field is populated, StopTimeUpdate.stop_sequence must be
-       * populated and StopTimeUpdate.stop_id should not be populated. Stop
-       * assignments should be reflected in other GTFS-realtime fields as well
-       * (e.g., VehiclePosition.stop_id).
-       * Caution: this field is still experimental, and subject to change. It
-       * may be formally adopted in the future.
-       * 
- * - * optional string assigned_stop_id = 1; - * @return The assignedStopId. - */ - java.lang.String getAssignedStopId(); - /** - *
-       * Supports real-time stop assignments. Refers to a stop_id defined in the
-       * GTFS stops.txt.
-       * The new assigned_stop_id should not result in a significantly different
-       * trip experience for the end user than the stop_id defined in GTFS
-       * stop_times.txt. In other words, the end user should not view this new
-       * stop_id as an "unusual change" if the new stop was presented within an
-       * app without any additional context. For example, this field is intended
-       * to be used for platform assignments by using a stop_id that belongs to
-       * the same station as the stop originally defined in GTFS stop_times.txt.
-       * To assign a stop without providing any real-time arrival or departure
-       * predictions, populate this field and set
-       * StopTimeUpdate.schedule_relationship = NO_DATA.
-       * If this field is populated, StopTimeUpdate.stop_sequence must be
-       * populated and StopTimeUpdate.stop_id should not be populated. Stop
-       * assignments should be reflected in other GTFS-realtime fields as well
-       * (e.g., VehiclePosition.stop_id).
-       * Caution: this field is still experimental, and subject to change. It
-       * may be formally adopted in the future.
-       * 
- * - * optional string assigned_stop_id = 1; - * @return The bytes for assignedStopId. - */ - com.google.protobuf.ByteString - getAssignedStopIdBytes(); - } - /** - *
-     * Realtime update for certain properties defined within GTFS stop_times.txt.
-     * Caution: this message is still experimental, and subject to change. It
-     * may be formally adopted in the future.
-     * 
- * - * Protobuf type {@code transit_realtime.TripUpdate.StopTimeProperties} - */ - public static final class StopTimeProperties extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:transit_realtime.TripUpdate.StopTimeProperties) - StopTimePropertiesOrBuilder { - private static final long serialVersionUID = 0L; - // Use StopTimeProperties.newBuilder() to construct. - private StopTimeProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StopTimeProperties() { - assignedStopId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StopTimeProperties(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeProperties_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeProperties_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.class, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.Builder.class); - } - - private int bitField0_; - public static final int ASSIGNED_STOP_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object assignedStopId_ = ""; - /** - *
-       * Supports real-time stop assignments. Refers to a stop_id defined in the
-       * GTFS stops.txt.
-       * The new assigned_stop_id should not result in a significantly different
-       * trip experience for the end user than the stop_id defined in GTFS
-       * stop_times.txt. In other words, the end user should not view this new
-       * stop_id as an "unusual change" if the new stop was presented within an
-       * app without any additional context. For example, this field is intended
-       * to be used for platform assignments by using a stop_id that belongs to
-       * the same station as the stop originally defined in GTFS stop_times.txt.
-       * To assign a stop without providing any real-time arrival or departure
-       * predictions, populate this field and set
-       * StopTimeUpdate.schedule_relationship = NO_DATA.
-       * If this field is populated, StopTimeUpdate.stop_sequence must be
-       * populated and StopTimeUpdate.stop_id should not be populated. Stop
-       * assignments should be reflected in other GTFS-realtime fields as well
-       * (e.g., VehiclePosition.stop_id).
-       * Caution: this field is still experimental, and subject to change. It
-       * may be formally adopted in the future.
-       * 
- * - * optional string assigned_stop_id = 1; - * @return Whether the assignedStopId field is set. - */ - @java.lang.Override - public boolean hasAssignedStopId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Supports real-time stop assignments. Refers to a stop_id defined in the
-       * GTFS stops.txt.
-       * The new assigned_stop_id should not result in a significantly different
-       * trip experience for the end user than the stop_id defined in GTFS
-       * stop_times.txt. In other words, the end user should not view this new
-       * stop_id as an "unusual change" if the new stop was presented within an
-       * app without any additional context. For example, this field is intended
-       * to be used for platform assignments by using a stop_id that belongs to
-       * the same station as the stop originally defined in GTFS stop_times.txt.
-       * To assign a stop without providing any real-time arrival or departure
-       * predictions, populate this field and set
-       * StopTimeUpdate.schedule_relationship = NO_DATA.
-       * If this field is populated, StopTimeUpdate.stop_sequence must be
-       * populated and StopTimeUpdate.stop_id should not be populated. Stop
-       * assignments should be reflected in other GTFS-realtime fields as well
-       * (e.g., VehiclePosition.stop_id).
-       * Caution: this field is still experimental, and subject to change. It
-       * may be formally adopted in the future.
-       * 
- * - * optional string assigned_stop_id = 1; - * @return The assignedStopId. - */ - @java.lang.Override - public java.lang.String getAssignedStopId() { - java.lang.Object ref = assignedStopId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - assignedStopId_ = s; - } - return s; - } - } - /** - *
-       * Supports real-time stop assignments. Refers to a stop_id defined in the
-       * GTFS stops.txt.
-       * The new assigned_stop_id should not result in a significantly different
-       * trip experience for the end user than the stop_id defined in GTFS
-       * stop_times.txt. In other words, the end user should not view this new
-       * stop_id as an "unusual change" if the new stop was presented within an
-       * app without any additional context. For example, this field is intended
-       * to be used for platform assignments by using a stop_id that belongs to
-       * the same station as the stop originally defined in GTFS stop_times.txt.
-       * To assign a stop without providing any real-time arrival or departure
-       * predictions, populate this field and set
-       * StopTimeUpdate.schedule_relationship = NO_DATA.
-       * If this field is populated, StopTimeUpdate.stop_sequence must be
-       * populated and StopTimeUpdate.stop_id should not be populated. Stop
-       * assignments should be reflected in other GTFS-realtime fields as well
-       * (e.g., VehiclePosition.stop_id).
-       * Caution: this field is still experimental, and subject to change. It
-       * may be formally adopted in the future.
-       * 
- * - * optional string assigned_stop_id = 1; - * @return The bytes for assignedStopId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAssignedStopIdBytes() { - java.lang.Object ref = assignedStopId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assignedStopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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, assignedStopId_); - } - 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, assignedStopId_); - } - 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 com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties other = (com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties) obj; - - if (hasAssignedStopId() != other.hasAssignedStopId()) return false; - if (hasAssignedStopId()) { - if (!getAssignedStopId() - .equals(other.getAssignedStopId())) 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 (hasAssignedStopId()) { - hash = (37 * hash) + ASSIGNED_STOP_ID_FIELD_NUMBER; - hash = (53 * hash) + getAssignedStopId().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * Realtime update for certain properties defined within GTFS stop_times.txt.
-       * Caution: this message is still experimental, and subject to change. It
-       * may be formally adopted in the future.
-       * 
- * - * Protobuf type {@code transit_realtime.TripUpdate.StopTimeProperties} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:transit_realtime.TripUpdate.StopTimeProperties) - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeProperties_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeProperties_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.class, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.Builder.class); - } - - // Construct using com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - assignedStopId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeProperties_descriptor; + 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 com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties getDefaultInstanceForType() { - return com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.getDefaultInstance(); + 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(2000, output); + getUnknownFields().writeTo(output); } @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties build() { - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + 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 com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties buildPartial() { - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties result = new com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.FeedHeader)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.FeedHeader other = (com.google.transit.realtime.GtfsRealtime.FeedHeader) obj; - private void buildPartial0(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.assignedStopId_ = assignedStopId_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; + 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 Builder clone() { - return super.clone(); + 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 com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public static com.google.transit.realtime.GtfsRealtime.FeedHeader parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public Builder newBuilderForType() { + return newBuilder(); } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.FeedHeader prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties) { - return mergeFrom((com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties other) { - if (other == com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.getDefaultInstance()) return this; - if (other.hasAssignedStopId()) { - assignedStopId_ = other.assignedStopId_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(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: { - assignedStopId_ = 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 assignedStopId_ = ""; - /** - *
-         * Supports real-time stop assignments. Refers to a stop_id defined in the
-         * GTFS stops.txt.
-         * The new assigned_stop_id should not result in a significantly different
-         * trip experience for the end user than the stop_id defined in GTFS
-         * stop_times.txt. In other words, the end user should not view this new
-         * stop_id as an "unusual change" if the new stop was presented within an
-         * app without any additional context. For example, this field is intended
-         * to be used for platform assignments by using a stop_id that belongs to
-         * the same station as the stop originally defined in GTFS stop_times.txt.
-         * To assign a stop without providing any real-time arrival or departure
-         * predictions, populate this field and set
-         * StopTimeUpdate.schedule_relationship = NO_DATA.
-         * If this field is populated, StopTimeUpdate.stop_sequence must be
-         * populated and StopTimeUpdate.stop_id should not be populated. Stop
-         * assignments should be reflected in other GTFS-realtime fields as well
-         * (e.g., VehiclePosition.stop_id).
-         * Caution: this field is still experimental, and subject to change. It
-         * may be formally adopted in the future.
-         * 
- * - * optional string assigned_stop_id = 1; - * @return Whether the assignedStopId field is set. - */ - public boolean hasAssignedStopId() { - return ((bitField0_ & 0x00000001) != 0); + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** *
-         * Supports real-time stop assignments. Refers to a stop_id defined in the
-         * GTFS stops.txt.
-         * The new assigned_stop_id should not result in a significantly different
-         * trip experience for the end user than the stop_id defined in GTFS
-         * stop_times.txt. In other words, the end user should not view this new
-         * stop_id as an "unusual change" if the new stop was presented within an
-         * app without any additional context. For example, this field is intended
-         * to be used for platform assignments by using a stop_id that belongs to
-         * the same station as the stop originally defined in GTFS stop_times.txt.
-         * To assign a stop without providing any real-time arrival or departure
-         * predictions, populate this field and set
-         * StopTimeUpdate.schedule_relationship = NO_DATA.
-         * If this field is populated, StopTimeUpdate.stop_sequence must be
-         * populated and StopTimeUpdate.stop_id should not be populated. Stop
-         * assignments should be reflected in other GTFS-realtime fields as well
-         * (e.g., VehiclePosition.stop_id).
-         * Caution: this field is still experimental, and subject to change. It
-         * may be formally adopted in the future.
-         * 
- * - * optional string assigned_stop_id = 1; - * @return The assignedStopId. - */ - public java.lang.String getAssignedStopId() { - java.lang.Object ref = assignedStopId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - assignedStopId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-         * Supports real-time stop assignments. Refers to a stop_id defined in the
-         * GTFS stops.txt.
-         * The new assigned_stop_id should not result in a significantly different
-         * trip experience for the end user than the stop_id defined in GTFS
-         * stop_times.txt. In other words, the end user should not view this new
-         * stop_id as an "unusual change" if the new stop was presented within an
-         * app without any additional context. For example, this field is intended
-         * to be used for platform assignments by using a stop_id that belongs to
-         * the same station as the stop originally defined in GTFS stop_times.txt.
-         * To assign a stop without providing any real-time arrival or departure
-         * predictions, populate this field and set
-         * StopTimeUpdate.schedule_relationship = NO_DATA.
-         * If this field is populated, StopTimeUpdate.stop_sequence must be
-         * populated and StopTimeUpdate.stop_id should not be populated. Stop
-         * assignments should be reflected in other GTFS-realtime fields as well
-         * (e.g., VehiclePosition.stop_id).
-         * Caution: this field is still experimental, and subject to change. It
-         * may be formally adopted in the future.
+         * Metadata about a feed, included in feed messages.
          * 
* - * optional string assigned_stop_id = 1; - * @return The bytes for assignedStopId. - */ - public com.google.protobuf.ByteString - getAssignedStopIdBytes() { - java.lang.Object ref = assignedStopId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assignedStopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-         * Supports real-time stop assignments. Refers to a stop_id defined in the
-         * GTFS stops.txt.
-         * The new assigned_stop_id should not result in a significantly different
-         * trip experience for the end user than the stop_id defined in GTFS
-         * stop_times.txt. In other words, the end user should not view this new
-         * stop_id as an "unusual change" if the new stop was presented within an
-         * app without any additional context. For example, this field is intended
-         * to be used for platform assignments by using a stop_id that belongs to
-         * the same station as the stop originally defined in GTFS stop_times.txt.
-         * To assign a stop without providing any real-time arrival or departure
-         * predictions, populate this field and set
-         * StopTimeUpdate.schedule_relationship = NO_DATA.
-         * If this field is populated, StopTimeUpdate.stop_sequence must be
-         * populated and StopTimeUpdate.stop_id should not be populated. Stop
-         * assignments should be reflected in other GTFS-realtime fields as well
-         * (e.g., VehiclePosition.stop_id).
-         * Caution: this field is still experimental, and subject to change. It
-         * may be formally adopted in the future.
-         * 
- * - * optional string assigned_stop_id = 1; - * @param value The assignedStopId to set. - * @return This builder for chaining. - */ - public Builder setAssignedStopId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - assignedStopId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-         * Supports real-time stop assignments. Refers to a stop_id defined in the
-         * GTFS stops.txt.
-         * The new assigned_stop_id should not result in a significantly different
-         * trip experience for the end user than the stop_id defined in GTFS
-         * stop_times.txt. In other words, the end user should not view this new
-         * stop_id as an "unusual change" if the new stop was presented within an
-         * app without any additional context. For example, this field is intended
-         * to be used for platform assignments by using a stop_id that belongs to
-         * the same station as the stop originally defined in GTFS stop_times.txt.
-         * To assign a stop without providing any real-time arrival or departure
-         * predictions, populate this field and set
-         * StopTimeUpdate.schedule_relationship = NO_DATA.
-         * If this field is populated, StopTimeUpdate.stop_sequence must be
-         * populated and StopTimeUpdate.stop_id should not be populated. Stop
-         * assignments should be reflected in other GTFS-realtime fields as well
-         * (e.g., VehiclePosition.stop_id).
-         * Caution: this field is still experimental, and subject to change. It
-         * may be formally adopted in the future.
-         * 
- * - * optional string assigned_stop_id = 1; - * @return This builder for chaining. - */ - public Builder clearAssignedStopId() { - assignedStopId_ = getDefaultInstance().getAssignedStopId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-         * Supports real-time stop assignments. Refers to a stop_id defined in the
-         * GTFS stops.txt.
-         * The new assigned_stop_id should not result in a significantly different
-         * trip experience for the end user than the stop_id defined in GTFS
-         * stop_times.txt. In other words, the end user should not view this new
-         * stop_id as an "unusual change" if the new stop was presented within an
-         * app without any additional context. For example, this field is intended
-         * to be used for platform assignments by using a stop_id that belongs to
-         * the same station as the stop originally defined in GTFS stop_times.txt.
-         * To assign a stop without providing any real-time arrival or departure
-         * predictions, populate this field and set
-         * StopTimeUpdate.schedule_relationship = NO_DATA.
-         * If this field is populated, StopTimeUpdate.stop_sequence must be
-         * populated and StopTimeUpdate.stop_id should not be populated. Stop
-         * assignments should be reflected in other GTFS-realtime fields as well
-         * (e.g., VehiclePosition.stop_id).
-         * Caution: this field is still experimental, and subject to change. It
-         * may be formally adopted in the future.
-         * 
- * - * optional string assigned_stop_id = 1; - * @param value The bytes for assignedStopId to set. - * @return This builder for chaining. + * Protobuf type {@code transit_realtime.FeedHeader} */ - public Builder setAssignedStopIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - assignedStopId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } + public static final class Builder + extends + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.FeedHeader) + com.google.transit.realtime.GtfsRealtime.FeedHeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedHeader_descriptor; + } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.FeedHeader.class, + com.google.transit.realtime.GtfsRealtime.FeedHeader.Builder.class); + } + // Construct using com.google.transit.realtime.GtfsRealtime.FeedHeader.newBuilder() + private Builder() { - // @@protoc_insertion_point(builder_scope:transit_realtime.TripUpdate.StopTimeProperties) - } + } - // @@protoc_insertion_point(class_scope:transit_realtime.TripUpdate.StopTimeProperties) - private static final com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties(); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties getDefaultInstance() { - return DEFAULT_INSTANCE; - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gtfsRealtimeVersion_ = ""; + incrementality_ = 0; + timestamp_ = 0L; + return this; + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopTimeProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedHeader_descriptor; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.FeedHeader getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance(); + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.FeedHeader build() { + com.google.transit.realtime.GtfsRealtime.FeedHeader result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.FeedHeader buildPartial() { + com.google.transit.realtime.GtfsRealtime.FeedHeader result = new com.google.transit.realtime.GtfsRealtime.FeedHeader( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.transit.realtime.GtfsRealtime.FeedHeader result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gtfsRealtimeVersion_ = gtfsRealtimeVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.incrementality_ = incrementality_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timestamp_ = timestamp_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension, + Type value) { + return super.setExtension(extension, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + int index, Type value) { + return super.setExtension(extension, index, value); + } + @java.lang.Override + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + Type value) { + return super.addExtension(extension, value); + } + @java.lang.Override + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension) { + return super.clearExtension(extension); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.FeedHeader) { + return mergeFrom((com.google.transit.realtime.GtfsRealtime.FeedHeader) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.FeedHeader other) { + if (other == com.google.transit.realtime.GtfsRealtime.FeedHeader.getDefaultInstance()) + return this; + if (other.hasGtfsRealtimeVersion()) { + 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(); + com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality tmpValue = com.google.transit.realtime.GtfsRealtime.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_ = ""; + /** + *
+             * Version of the feed specification.
+             * The current version is 2.0.  Valid versions are "2.0", "1.0".
+             * 
+ * + * required string gtfs_realtime_version = 1; + * @return Whether the gtfsRealtimeVersion field is set. + */ + public boolean hasGtfsRealtimeVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Version of the feed specification.
+             * The current version is 2.0.  Valid versions are "2.0", "1.0".
+             * 
+ * + * required string gtfs_realtime_version = 1; + * @return The gtfsRealtimeVersion. + */ + public java.lang.String getGtfsRealtimeVersion() { + java.lang.Object ref = gtfsRealtimeVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + gtfsRealtimeVersion_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * Version of the feed specification.
+             * The current version is 2.0.  Valid versions are "2.0", "1.0".
+             * 
+ * + * required string gtfs_realtime_version = 1; + * @return The bytes for gtfsRealtimeVersion. + */ + public com.google.protobuf.ByteString getGtfsRealtimeVersionBytes() { + java.lang.Object ref = gtfsRealtimeVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + gtfsRealtimeVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * Version of the feed specification.
+             * The current version is 2.0.  Valid versions are "2.0", "1.0".
+             * 
+ * + * required string gtfs_realtime_version = 1; + * @param value The gtfsRealtimeVersion to set. + * @return This builder for chaining. + */ + public Builder setGtfsRealtimeVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gtfsRealtimeVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Version of the feed specification.
+             * The current version is 2.0.  Valid versions are "2.0", "1.0".
+             * 
+ * + * required string gtfs_realtime_version = 1; + * @return This builder for chaining. + */ + public Builder clearGtfsRealtimeVersion() { + gtfsRealtimeVersion_ = getDefaultInstance().getGtfsRealtimeVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+             * Version of the feed specification.
+             * The current version is 2.0.  Valid versions are "2.0", "1.0".
+             * 
+ * + * required string gtfs_realtime_version = 1; + * @param value The bytes for gtfsRealtimeVersion to set. + * @return This builder for chaining. + */ + public Builder setGtfsRealtimeVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + gtfsRealtimeVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int incrementality_ = 0; + /** + * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; + * @return Whether the incrementality field is set. + */ + @java.lang.Override + public boolean hasIncrementality() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; + * @return The incrementality. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality getIncrementality() { + com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality result = com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality + .forNumber(incrementality_); + return result == null + ? com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality.FULL_DATASET + : result; + } + /** + * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; + * @param value The incrementality to set. + * @return This builder for chaining. + */ + public Builder setIncrementality(com.google.transit.realtime.GtfsRealtime.FeedHeader.Incrementality value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + incrementality_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .transit_realtime.FeedHeader.Incrementality incrementality = 2 [default = FULL_DATASET]; + * @return This builder for chaining. + */ + public Builder clearIncrementality() { + bitField0_ = (bitField0_ & ~0x00000002); + incrementality_ = 0; + onChanged(); + return this; + } + + private long timestamp_; + /** + *
+             * This timestamp identifies the moment when the content of this feed has been
+             * created (in server time). In POSIX time (i.e., number of seconds since
+             * January 1st 1970 00:00:00 UTC).
+             * 
+ * + * optional uint64 timestamp = 3; + * @return Whether the timestamp field is set. + */ + @java.lang.Override + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * This timestamp identifies the moment when the content of this feed has been
+             * created (in server time). In POSIX time (i.e., number of seconds since
+             * January 1st 1970 00:00:00 UTC).
+             * 
+ * + * optional uint64 timestamp = 3; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + /** + *
+             * This timestamp identifies the moment when the content of this feed has been
+             * created (in server time). In POSIX time (i.e., number of seconds since
+             * January 1st 1970 00:00:00 UTC).
+             * 
+ * + * optional uint64 timestamp = 3; + * @param value The timestamp to set. + * @return This builder for chaining. + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * This timestamp identifies the moment when the content of this feed has been
+             * created (in server time). In POSIX time (i.e., number of seconds since
+             * January 1st 1970 00:00:00 UTC).
+             * 
+ * + * optional uint64 timestamp = 3; + * @return This builder for chaining. + */ + public Builder clearTimestamp() { + bitField0_ = (bitField0_ & ~0x00000004); + timestamp_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:transit_realtime.FeedHeader) } - }; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:transit_realtime.FeedHeader) + private static final com.google.transit.realtime.GtfsRealtime.FeedHeader DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.FeedHeader(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static com.google.transit.realtime.GtfsRealtime.FeedHeader getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeedHeader parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public interface StopTimeUpdateOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.TripUpdate.StopTimeUpdate) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { - - /** - *
-       * Must be the same as in stop_times.txt in the corresponding GTFS feed.
-       * 
- * - * optional uint32 stop_sequence = 1; - * @return Whether the stopSequence field is set. - */ - boolean hasStopSequence(); - /** - *
-       * Must be the same as in stop_times.txt in the corresponding GTFS feed.
-       * 
- * - * optional uint32 stop_sequence = 1; - * @return The stopSequence. - */ - int getStopSequence(); - - /** - *
-       * Must be the same as in stops.txt in the corresponding GTFS feed.
-       * 
- * - * optional string stop_id = 4; - * @return Whether the stopId field is set. - */ - boolean hasStopId(); - /** - *
-       * Must be the same as in stops.txt in the corresponding GTFS feed.
-       * 
- * - * optional string stop_id = 4; - * @return The stopId. - */ - java.lang.String getStopId(); - /** - *
-       * Must be the same as in stops.txt in the corresponding GTFS feed.
-       * 
- * - * optional string stop_id = 4; - * @return The bytes for stopId. - */ - com.google.protobuf.ByteString - getStopIdBytes(); - - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; - * @return Whether the arrival field is set. - */ - boolean hasArrival(); - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; - * @return The arrival. - */ - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getArrival(); - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; - */ - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder getArrivalOrBuilder(); - - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; - * @return Whether the departure field is set. - */ - boolean hasDeparture(); - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; - * @return The departure. - */ - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getDeparture(); - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; - */ - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder getDepartureOrBuilder(); - - /** - * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; - * @return Whether the scheduleRelationship field is set. - */ - boolean hasScheduleRelationship(); - /** - * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; - * @return The scheduleRelationship. - */ - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship getScheduleRelationship(); - - /** - * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; - * @return Whether the stopTimeProperties field is set. - */ - boolean hasStopTimeProperties(); - /** - * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; - * @return The stopTimeProperties. - */ - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties getStopTimeProperties(); - /** - * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; - */ - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimePropertiesOrBuilder getStopTimePropertiesOrBuilder(); - } - /** - *
-     * Realtime update for arrival and/or departure events for a given stop on a
-     * trip. Updates can be supplied for both past and future events.
-     * The producer is allowed, although not required, to drop past events.
-     * 
- * - * Protobuf type {@code transit_realtime.TripUpdate.StopTimeUpdate} - */ - public static final class StopTimeUpdate extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - StopTimeUpdate> implements - // @@protoc_insertion_point(message_implements:transit_realtime.TripUpdate.StopTimeUpdate) - StopTimeUpdateOrBuilder { - private static final long serialVersionUID = 0L; - // Use StopTimeUpdate.newBuilder() to construct. - private StopTimeUpdate(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private StopTimeUpdate() { - stopId_ = ""; - scheduleRelationship_ = 0; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StopTimeUpdate(); - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.FeedHeader getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeUpdate_descriptor; - } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.class, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder.class); - } + public interface FeedEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.FeedEntity) + com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder { - /** - *
-       * The relation between this StopTime and the static schedule.
-       * 
- * - * Protobuf enum {@code transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship} - */ - public enum ScheduleRelationship - implements com.google.protobuf.ProtocolMessageEnum { /** *
-         * The vehicle is proceeding in accordance with its static schedule of
-         * stops, although not necessarily according to the times of the schedule.
-         * At least one of arrival and departure must be provided. If the schedule
-         * for this stop contains both arrival and departure times then so must
-         * this update.
+         * The ids are used only to provide incrementality support. The id should be
+         * unique within a FeedMessage. Consequent FeedMessages may contain
+         * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
+         * FeedEntity with some id will replace the old FeedEntity with the same id
+         * (or delete it - see is_deleted below).
+         * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
+         * feed must be specified by explicit selectors (see EntitySelector below for
+         * more info).
          * 
* - * SCHEDULED = 0; + * required string id = 1; + * @return Whether the id field is set. */ - SCHEDULED(0), + boolean hasId(); /** *
-         * The stop is skipped, i.e., the vehicle will not stop at this stop.
-         * Arrival and departure are optional.
+         * The ids are used only to provide incrementality support. The id should be
+         * unique within a FeedMessage. Consequent FeedMessages may contain
+         * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
+         * FeedEntity with some id will replace the old FeedEntity with the same id
+         * (or delete it - see is_deleted below).
+         * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
+         * feed must be specified by explicit selectors (see EntitySelector below for
+         * more info).
          * 
* - * SKIPPED = 1; + * required string id = 1; + * @return The id. */ - SKIPPED(1), + java.lang.String getId(); /** *
-         * No data is given for this stop. The main intention for this value is to
-         * give the predictions only for part of a trip, i.e., if the last update
-         * for a trip has a NO_DATA specifier, then StopTimes for the rest of the
-         * stops in the trip are considered to be unspecified as well.
-         * Neither arrival nor departure should be supplied.
+         * The ids are used only to provide incrementality support. The id should be
+         * unique within a FeedMessage. Consequent FeedMessages may contain
+         * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
+         * FeedEntity with some id will replace the old FeedEntity with the same id
+         * (or delete it - see is_deleted below).
+         * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
+         * feed must be specified by explicit selectors (see EntitySelector below for
+         * more info).
          * 
* - * NO_DATA = 2; + * required string id = 1; + * @return The bytes for id. */ - NO_DATA(2), - ; + com.google.protobuf.ByteString getIdBytes(); /** *
-         * The vehicle is proceeding in accordance with its static schedule of
-         * stops, although not necessarily according to the times of the schedule.
-         * At least one of arrival and departure must be provided. If the schedule
-         * for this stop contains both arrival and departure times then so must
-         * this update.
+         * Whether this entity is to be deleted. Relevant only for incremental
+         * fetches.
          * 
* - * SCHEDULED = 0; + * optional bool is_deleted = 2 [default = false]; + * @return Whether the isDeleted field is set. */ - public static final int SCHEDULED_VALUE = 0; + boolean hasIsDeleted(); /** *
-         * The stop is skipped, i.e., the vehicle will not stop at this stop.
-         * Arrival and departure are optional.
+         * Whether this entity is to be deleted. Relevant only for incremental
+         * fetches.
          * 
* - * SKIPPED = 1; + * optional bool is_deleted = 2 [default = false]; + * @return The isDeleted. */ - public static final int SKIPPED_VALUE = 1; + boolean getIsDeleted(); + /** *
-         * No data is given for this stop. The main intention for this value is to
-         * give the predictions only for part of a trip, i.e., if the last update
-         * for a trip has a NO_DATA specifier, then StopTimes for the rest of the
-         * stops in the trip are considered to be unspecified as well.
-         * Neither arrival nor departure should be supplied.
+         * Data about the entity itself. Exactly one of the following fields must be
+         * present (unless the entity is being deleted).
          * 
* - * NO_DATA = 2; + * optional .transit_realtime.TripUpdate trip_update = 3; + * @return Whether the tripUpdate field is set. */ - public static final int NO_DATA_VALUE = 2; - - - public final int getNumber() { - return value; - } - + boolean hasTripUpdate(); /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. + *
+         * Data about the entity itself. Exactly one of the following fields must be
+         * present (unless the entity is being deleted).
+         * 
+ * + * optional .transit_realtime.TripUpdate trip_update = 3; + * @return The tripUpdate. */ - @java.lang.Deprecated - public static ScheduleRelationship valueOf(int value) { - return forNumber(value); - } + com.google.transit.realtime.GtfsRealtime.TripUpdate getTripUpdate(); + /** + *
+         * Data about the entity itself. Exactly one of the following fields must be
+         * present (unless the entity is being deleted).
+         * 
+ * + * optional .transit_realtime.TripUpdate trip_update = 3; + */ + com.google.transit.realtime.GtfsRealtime.TripUpdateOrBuilder getTripUpdateOrBuilder(); /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. + * optional .transit_realtime.VehiclePosition vehicle = 4; + * @return Whether the vehicle field is set. */ - public static ScheduleRelationship forNumber(int value) { - switch (value) { - case 0: return SCHEDULED; - case 1: return SKIPPED; - case 2: return NO_DATA; - default: return null; - } - } + boolean hasVehicle(); + /** + * optional .transit_realtime.VehiclePosition vehicle = 4; + * @return The vehicle. + */ + com.google.transit.realtime.GtfsRealtime.VehiclePosition getVehicle(); + /** + * optional .transit_realtime.VehiclePosition vehicle = 4; + */ + com.google.transit.realtime.GtfsRealtime.VehiclePositionOrBuilder getVehicleOrBuilder(); - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; + /** + * optional .transit_realtime.Alert alert = 5; + * @return Whether the alert field is set. + */ + boolean hasAlert(); + /** + * optional .transit_realtime.Alert alert = 5; + * @return The alert. + */ + com.google.transit.realtime.GtfsRealtime.Alert getAlert(); + /** + * optional .transit_realtime.Alert alert = 5; + */ + com.google.transit.realtime.GtfsRealtime.AlertOrBuilder getAlertOrBuilder(); + } + /** + *
+     * A definition (or update) of an entity in the transit feed.
+     * 
+ * + * Protobuf type {@code transit_realtime.FeedEntity} + */ + public static final class FeedEntity extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage + implements + // @@protoc_insertion_point(message_implements:transit_realtime.FeedEntity) + FeedEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use FeedEntity.newBuilder() to construct. + private FeedEntity( + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { + super(builder); } - private static final com.google.protobuf.Internal.EnumLiteMap< - ScheduleRelationship> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ScheduleRelationship findValueByNumber(int number) { - return ScheduleRelationship.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.getDescriptor().getEnumTypes().get(0); - } - - private static final ScheduleRelationship[] VALUES = values(); - - public static ScheduleRelationship valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ScheduleRelationship(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship) - } - - private int bitField0_; - public static final int STOP_SEQUENCE_FIELD_NUMBER = 1; - private int stopSequence_ = 0; - /** - *
-       * Must be the same as in stop_times.txt in the corresponding GTFS feed.
-       * 
- * - * optional uint32 stop_sequence = 1; - * @return Whether the stopSequence field is set. - */ - @java.lang.Override - public boolean hasStopSequence() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Must be the same as in stop_times.txt in the corresponding GTFS feed.
-       * 
- * - * optional uint32 stop_sequence = 1; - * @return The stopSequence. - */ - @java.lang.Override - public int getStopSequence() { - return stopSequence_; - } - - public static final int STOP_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object stopId_ = ""; - /** - *
-       * Must be the same as in stops.txt in the corresponding GTFS feed.
-       * 
- * - * optional string stop_id = 4; - * @return Whether the stopId field is set. - */ - @java.lang.Override - public boolean hasStopId() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Must be the same as in stops.txt in the corresponding GTFS feed.
-       * 
- * - * optional string stop_id = 4; - * @return The stopId. - */ - @java.lang.Override - public java.lang.String getStopId() { - java.lang.Object ref = stopId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopId_ = s; - } - return s; - } - } - /** - *
-       * Must be the same as in stops.txt in the corresponding GTFS feed.
-       * 
- * - * optional string stop_id = 4; - * @return The bytes for stopId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStopIdBytes() { - java.lang.Object ref = stopId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARRIVAL_FIELD_NUMBER = 2; - private com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent arrival_; - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; - * @return Whether the arrival field is set. - */ - @java.lang.Override - public boolean hasArrival() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; - * @return The arrival. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getArrival() { - return arrival_ == null ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() : arrival_; - } - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder getArrivalOrBuilder() { - return arrival_ == null ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() : arrival_; - } - - public static final int DEPARTURE_FIELD_NUMBER = 3; - private com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent departure_; - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; - * @return Whether the departure field is set. - */ - @java.lang.Override - public boolean hasDeparture() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; - * @return The departure. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getDeparture() { - return departure_ == null ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() : departure_; - } - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder getDepartureOrBuilder() { - return departure_ == null ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() : departure_; - } - - public static final int SCHEDULE_RELATIONSHIP_FIELD_NUMBER = 5; - private int scheduleRelationship_ = 0; - /** - * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; - * @return Whether the scheduleRelationship field is set. - */ - @java.lang.Override public boolean hasScheduleRelationship() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; - * @return The scheduleRelationship. - */ - @java.lang.Override public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship getScheduleRelationship() { - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship result = com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship.forNumber(scheduleRelationship_); - return result == null ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship.SCHEDULED : result; - } - - public static final int STOP_TIME_PROPERTIES_FIELD_NUMBER = 6; - private com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties stopTimeProperties_; - /** - * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; - * @return Whether the stopTimeProperties field is set. - */ - @java.lang.Override - public boolean hasStopTimeProperties() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; - * @return The stopTimeProperties. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties getStopTimeProperties() { - return stopTimeProperties_ == null ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.getDefaultInstance() : stopTimeProperties_; - } - /** - * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimePropertiesOrBuilder getStopTimePropertiesOrBuilder() { - return stopTimeProperties_ == null ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.getDefaultInstance() : stopTimeProperties_; - } - - 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_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(6, getStopTimeProperties()); - } - extensionWriter.writeUntil(2000, 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_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getStopTimeProperties()); - } - 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 com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate other = (com.google.transit.realtime.GtfsRealtime.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 (hasStopTimeProperties() != other.hasStopTimeProperties()) return false; - if (hasStopTimeProperties()) { - if (!getStopTimeProperties() - .equals(other.getStopTimeProperties())) 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_; - } - if (hasStopTimeProperties()) { - hash = (37 * hash) + STOP_TIME_PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + getStopTimeProperties().hashCode(); - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * Realtime update for arrival and/or departure events for a given stop on a
-       * trip. Updates can be supplied for both past and future events.
-       * The producer is allowed, although not required, to drop past events.
-       * 
- * - * Protobuf type {@code transit_realtime.TripUpdate.StopTimeUpdate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate, Builder> implements - // @@protoc_insertion_point(builder_implements:transit_realtime.TripUpdate.StopTimeUpdate) - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeUpdate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.class, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder.class); - } - - // Construct using com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getArrivalFieldBuilder(); - getDepartureFieldBuilder(); - getStopTimePropertiesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - stopSequence_ = 0; - stopId_ = ""; - arrival_ = null; - if (arrivalBuilder_ != null) { - arrivalBuilder_.dispose(); - arrivalBuilder_ = null; - } - departure_ = null; - if (departureBuilder_ != null) { - departureBuilder_.dispose(); - departureBuilder_ = null; - } - scheduleRelationship_ = 0; - stopTimeProperties_ = null; - if (stopTimePropertiesBuilder_ != null) { - stopTimePropertiesBuilder_.dispose(); - stopTimePropertiesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeUpdate_descriptor; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate getDefaultInstanceForType() { - return com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.getDefaultInstance(); - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate build() { - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate buildPartial() { - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate result = new com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.stopSequence_ = stopSequence_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.stopId_ = stopId_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.arrival_ = arrivalBuilder_ == null - ? arrival_ - : arrivalBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.departure_ = departureBuilder_ == null - ? departure_ - : departureBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.scheduleRelationship_ = scheduleRelationship_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.stopTimeProperties_ = stopTimePropertiesBuilder_ == null - ? stopTimeProperties_ - : stopTimePropertiesBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate, Type> extension, - Type value) { - return super.setExtension(extension, value); + private FeedEntity() { + id_ = ""; } + @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate, java.util.List> extension, - int index, Type value) { - return super.setExtension(extension, index, value); - } - @java.lang.Override - public Builder addExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate, java.util.List> extension, - Type value) { - return super.addExtension(extension, value); - } - @java.lang.Override - public Builder clearExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate, ?> extension) { - return super.clearExtension(extension); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate) { - return mergeFrom((com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate other) { - if (other == com.google.transit.realtime.GtfsRealtime.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()); - } - if (other.hasStopTimeProperties()) { - mergeStopTimeProperties(other.getStopTimeProperties()); - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FeedEntity(); } @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(); - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship tmpValue = - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(5, tmpRaw); - } else { - scheduleRelationship_ = tmpRaw; - bitField0_ |= 0x00000010; - } - break; - } // case 40 - case 50: { - input.readMessage( - getStopTimePropertiesFieldBuilder().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; + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedEntity_descriptor; } - private int bitField0_; - private int stopSequence_ ; - /** - *
-         * Must be the same as in stop_times.txt in the corresponding GTFS feed.
-         * 
- * - * optional uint32 stop_sequence = 1; - * @return Whether the stopSequence field is set. - */ @java.lang.Override - public boolean hasStopSequence() { - return ((bitField0_ & 0x00000001) != 0); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.FeedEntity.class, + com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder.class); } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** *
-         * Must be the same as in stop_times.txt in the corresponding GTFS feed.
+         * The ids are used only to provide incrementality support. The id should be
+         * unique within a FeedMessage. Consequent FeedMessages may contain
+         * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
+         * FeedEntity with some id will replace the old FeedEntity with the same id
+         * (or delete it - see is_deleted below).
+         * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
+         * feed must be specified by explicit selectors (see EntitySelector below for
+         * more info).
          * 
* - * optional uint32 stop_sequence = 1; - * @return The stopSequence. + * required string id = 1; + * @return Whether the id field is set. */ @java.lang.Override - public int getStopSequence() { - return stopSequence_; + public boolean hasId() { + return ((bitField0_ & 0x00000001) != 0); } /** *
-         * Must be the same as in stop_times.txt in the corresponding GTFS feed.
+         * The ids are used only to provide incrementality support. The id should be
+         * unique within a FeedMessage. Consequent FeedMessages may contain
+         * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
+         * FeedEntity with some id will replace the old FeedEntity with the same id
+         * (or delete it - see is_deleted below).
+         * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
+         * feed must be specified by explicit selectors (see EntitySelector below for
+         * more info).
          * 
* - * optional uint32 stop_sequence = 1; - * @param value The stopSequence to set. - * @return This builder for chaining. + * required string id = 1; + * @return The id. */ - public Builder setStopSequence(int value) { - - stopSequence_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + id_ = s; + } + return s; + } } /** *
-         * Must be the same as in stop_times.txt in the corresponding GTFS feed.
+         * The ids are used only to provide incrementality support. The id should be
+         * unique within a FeedMessage. Consequent FeedMessages may contain
+         * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
+         * FeedEntity with some id will replace the old FeedEntity with the same id
+         * (or delete it - see is_deleted below).
+         * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
+         * feed must be specified by explicit selectors (see EntitySelector below for
+         * more info).
          * 
* - * optional uint32 stop_sequence = 1; - * @return This builder for chaining. + * required string id = 1; + * @return The bytes for id. */ - public Builder clearStopSequence() { - bitField0_ = (bitField0_ & ~0x00000001); - stopSequence_ = 0; - onChanged(); - return this; + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - private java.lang.Object stopId_ = ""; - /** - *
-         * Must be the same as in stops.txt in the corresponding GTFS feed.
-         * 
- * - * optional string stop_id = 4; - * @return Whether the stopId field is set. - */ - public boolean hasStopId() { - return ((bitField0_ & 0x00000002) != 0); - } + public static final int IS_DELETED_FIELD_NUMBER = 2; + private boolean isDeleted_ = false; /** *
-         * Must be the same as in stops.txt in the corresponding GTFS feed.
+         * Whether this entity is to be deleted. Relevant only for incremental
+         * fetches.
          * 
* - * optional string stop_id = 4; - * @return The stopId. + * optional bool is_deleted = 2 [default = false]; + * @return Whether the isDeleted field is set. */ - public java.lang.String getStopId() { - java.lang.Object ref = stopId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public boolean hasIsDeleted() { + return ((bitField0_ & 0x00000002) != 0); } /** *
-         * Must be the same as in stops.txt in the corresponding GTFS feed.
+         * Whether this entity is to be deleted. Relevant only for incremental
+         * fetches.
          * 
* - * optional string stop_id = 4; - * @return The bytes for stopId. + * optional bool is_deleted = 2 [default = false]; + * @return The isDeleted. */ - public com.google.protobuf.ByteString - getStopIdBytes() { - java.lang.Object ref = stopId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public boolean getIsDeleted() { + return isDeleted_; } + + public static final int TRIP_UPDATE_FIELD_NUMBER = 3; + private com.google.transit.realtime.GtfsRealtime.TripUpdate tripUpdate_; /** *
-         * Must be the same as in stops.txt in the corresponding GTFS feed.
+         * Data about the entity itself. Exactly one of the following fields must be
+         * present (unless the entity is being deleted).
          * 
* - * optional string stop_id = 4; - * @param value The stopId to set. - * @return This builder for chaining. + * optional .transit_realtime.TripUpdate trip_update = 3; + * @return Whether the tripUpdate field is set. */ - public Builder setStopId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - stopId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + @java.lang.Override + public boolean hasTripUpdate() { + return ((bitField0_ & 0x00000004) != 0); } /** *
-         * Must be the same as in stops.txt in the corresponding GTFS feed.
+         * Data about the entity itself. Exactly one of the following fields must be
+         * present (unless the entity is being deleted).
          * 
* - * optional string stop_id = 4; - * @return This builder for chaining. + * optional .transit_realtime.TripUpdate trip_update = 3; + * @return The tripUpdate. */ - public Builder clearStopId() { - stopId_ = getDefaultInstance().getStopId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate getTripUpdate() { + return tripUpdate_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.getDefaultInstance() + : tripUpdate_; } /** *
-         * Must be the same as in stops.txt in the corresponding GTFS feed.
+         * Data about the entity itself. Exactly one of the following fields must be
+         * present (unless the entity is being deleted).
          * 
* - * optional string stop_id = 4; - * @param value The bytes for stopId to set. - * @return This builder for chaining. + * optional .transit_realtime.TripUpdate trip_update = 3; */ - public Builder setStopIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - stopId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdateOrBuilder getTripUpdateOrBuilder() { + return tripUpdate_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.getDefaultInstance() + : tripUpdate_; } - private com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent arrival_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder> arrivalBuilder_; - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; - * @return Whether the arrival field is set. - */ - public boolean hasArrival() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; - * @return The arrival. - */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getArrival() { - if (arrivalBuilder_ == null) { - return arrival_ == null ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() : arrival_; - } else { - return arrivalBuilder_.getMessage(); - } - } - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; - */ - public Builder setArrival(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent value) { - if (arrivalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - arrival_ = value; - } else { - arrivalBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + public static final int VEHICLE_FIELD_NUMBER = 4; + private com.google.transit.realtime.GtfsRealtime.VehiclePosition vehicle_; /** - * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + * optional .transit_realtime.VehiclePosition vehicle = 4; + * @return Whether the vehicle field is set. */ - public Builder setArrival( - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder builderForValue) { - if (arrivalBuilder_ == null) { - arrival_ = builderForValue.build(); - } else { - arrivalBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; + @java.lang.Override + public boolean hasVehicle() { + return ((bitField0_ & 0x00000008) != 0); } /** - * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + * optional .transit_realtime.VehiclePosition vehicle = 4; + * @return The vehicle. */ - public Builder mergeArrival(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent value) { - if (arrivalBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - arrival_ != null && - arrival_ != com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance()) { - getArrivalBuilder().mergeFrom(value); - } else { - arrival_ = value; - } - } else { - arrivalBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehiclePosition getVehicle() { + return vehicle_ == null + ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDefaultInstance() + : vehicle_; } /** - * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + * optional .transit_realtime.VehiclePosition vehicle = 4; */ - public Builder clearArrival() { - bitField0_ = (bitField0_ & ~0x00000004); - arrival_ = null; - if (arrivalBuilder_ != null) { - arrivalBuilder_.dispose(); - arrivalBuilder_ = null; - } - onChanged(); - return this; + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehiclePositionOrBuilder getVehicleOrBuilder() { + return vehicle_ == null + ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDefaultInstance() + : vehicle_; } + + public static final int ALERT_FIELD_NUMBER = 5; + private com.google.transit.realtime.GtfsRealtime.Alert alert_; /** - * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + * optional .transit_realtime.Alert alert = 5; + * @return Whether the alert field is set. */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder getArrivalBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getArrivalFieldBuilder().getBuilder(); + @java.lang.Override + public boolean hasAlert() { + return ((bitField0_ & 0x00000010) != 0); } /** - * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + * optional .transit_realtime.Alert alert = 5; + * @return The alert. */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder getArrivalOrBuilder() { - if (arrivalBuilder_ != null) { - return arrivalBuilder_.getMessageOrBuilder(); - } else { - return arrival_ == null ? - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() : arrival_; - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Alert getAlert() { + return alert_ == null ? com.google.transit.realtime.GtfsRealtime.Alert.getDefaultInstance() : alert_; } /** - * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + * optional .transit_realtime.Alert alert = 5; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder> - getArrivalFieldBuilder() { - if (arrivalBuilder_ == null) { - arrivalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder>( - getArrival(), - getParentForChildren(), - isClean()); - arrival_ = null; - } - return arrivalBuilder_; + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.AlertOrBuilder getAlertOrBuilder() { + return alert_ == null ? com.google.transit.realtime.GtfsRealtime.Alert.getDefaultInstance() : alert_; } - private com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent departure_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder> departureBuilder_; - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; - * @return Whether the departure field is set. - */ - public boolean hasDeparture() { - return ((bitField0_ & 0x00000008) != 0); + 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; } - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; - * @return The departure. - */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getDeparture() { - if (departureBuilder_ == null) { - return departure_ == null ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() : departure_; - } else { - return departureBuilder_.getMessage(); - } + + @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(2000, output); + getUnknownFields().writeTo(output); } - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; - */ - public Builder setDeparture(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent value) { - if (departureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + + @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()); } - departure_ = value; - } else { - departureBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; + 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; } - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; - */ - public Builder setDeparture( - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder builderForValue) { - if (departureBuilder_ == null) { - departure_ = builderForValue.build(); - } else { - departureBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.FeedEntity)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.FeedEntity other = (com.google.transit.realtime.GtfsRealtime.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; } - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; - */ - public Builder mergeDeparture(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent value) { - if (departureBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - departure_ != null && - departure_ != com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance()) { - getDepartureBuilder().mergeFrom(value); - } else { - departure_ = value; + + @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(); } - } else { - departureBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; + 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 com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); } - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; - */ - public Builder clearDeparture() { - bitField0_ = (bitField0_ & ~0x00000008); - departure_ = null; - if (departureBuilder_ != null) { - departureBuilder_.dispose(); - departureBuilder_ = null; - } - onChanged(); - return this; + public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; - */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder getDepartureBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getDepartureFieldBuilder().getBuilder(); + public static com.google.transit.realtime.GtfsRealtime.FeedEntity parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; - */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder getDepartureOrBuilder() { - if (departureBuilder_ != null) { - return departureBuilder_.getMessageOrBuilder(); - } else { - return departure_ == null ? - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() : departure_; - } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - /** - * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder> - getDepartureFieldBuilder() { - if (departureBuilder_ == null) { - departureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder>( - getDeparture(), - getParentForChildren(), - isClean()); - departure_ = null; - } - return departureBuilder_; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.FeedEntity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - private int scheduleRelationship_ = 0; - /** - * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; - * @return Whether the scheduleRelationship field is set. - */ - @java.lang.Override public boolean hasScheduleRelationship() { - return ((bitField0_ & 0x00000010) != 0); + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** - * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; - * @return The scheduleRelationship. + *
+         * A definition (or update) of an entity in the transit feed.
+         * 
+ * + * Protobuf type {@code transit_realtime.FeedEntity} */ + public static final class Builder + extends + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.FeedEntity) + com.google.transit.realtime.GtfsRealtime.FeedEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedEntity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.FeedEntity.class, + com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder.class); + } + + // Construct using com.google.transit.realtime.GtfsRealtime.FeedEntity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTripUpdateFieldBuilder(); + getVehicleFieldBuilder(); + getAlertFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + isDeleted_ = false; + tripUpdate_ = null; + if (tripUpdateBuilder_ != null) { + tripUpdateBuilder_.dispose(); + tripUpdateBuilder_ = null; + } + vehicle_ = null; + if (vehicleBuilder_ != null) { + vehicleBuilder_.dispose(); + vehicleBuilder_ = null; + } + alert_ = null; + if (alertBuilder_ != null) { + alertBuilder_.dispose(); + alertBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_FeedEntity_descriptor; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.FeedEntity getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.FeedEntity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.FeedEntity build() { + com.google.transit.realtime.GtfsRealtime.FeedEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.FeedEntity buildPartial() { + com.google.transit.realtime.GtfsRealtime.FeedEntity result = new com.google.transit.realtime.GtfsRealtime.FeedEntity( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.transit.realtime.GtfsRealtime.FeedEntity result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isDeleted_ = isDeleted_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tripUpdate_ = tripUpdateBuilder_ == null ? tripUpdate_ : tripUpdateBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.vehicle_ = vehicleBuilder_ == null ? vehicle_ : vehicleBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.alert_ = alertBuilder_ == null ? alert_ : alertBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension, + Type value) { + return super.setExtension(extension, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + int index, Type value) { + return super.setExtension(extension, index, value); + } + @java.lang.Override + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + Type value) { + return super.addExtension(extension, value); + } + @java.lang.Override + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension) { + return super.clearExtension(extension); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.FeedEntity) { + return mergeFrom((com.google.transit.realtime.GtfsRealtime.FeedEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.FeedEntity other) { + if (other == com.google.transit.realtime.GtfsRealtime.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_ = ""; + /** + *
+             * The ids are used only to provide incrementality support. The id should be
+             * unique within a FeedMessage. Consequent FeedMessages may contain
+             * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
+             * FeedEntity with some id will replace the old FeedEntity with the same id
+             * (or delete it - see is_deleted below).
+             * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
+             * feed must be specified by explicit selectors (see EntitySelector below for
+             * more info).
+             * 
+ * + * required string id = 1; + * @return Whether the id field is set. + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * The ids are used only to provide incrementality support. The id should be
+             * unique within a FeedMessage. Consequent FeedMessages may contain
+             * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
+             * FeedEntity with some id will replace the old FeedEntity with the same id
+             * (or delete it - see is_deleted below).
+             * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
+             * feed must be specified by explicit selectors (see EntitySelector below for
+             * more info).
+             * 
+ * + * required string id = 1; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + id_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * The ids are used only to provide incrementality support. The id should be
+             * unique within a FeedMessage. Consequent FeedMessages may contain
+             * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
+             * FeedEntity with some id will replace the old FeedEntity with the same id
+             * (or delete it - see is_deleted below).
+             * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
+             * feed must be specified by explicit selectors (see EntitySelector below for
+             * more info).
+             * 
+ * + * required string id = 1; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * The ids are used only to provide incrementality support. The id should be
+             * unique within a FeedMessage. Consequent FeedMessages may contain
+             * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
+             * FeedEntity with some id will replace the old FeedEntity with the same id
+             * (or delete it - see is_deleted below).
+             * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
+             * feed must be specified by explicit selectors (see EntitySelector below for
+             * more info).
+             * 
+ * + * required string id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * The ids are used only to provide incrementality support. The id should be
+             * unique within a FeedMessage. Consequent FeedMessages may contain
+             * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
+             * FeedEntity with some id will replace the old FeedEntity with the same id
+             * (or delete it - see is_deleted below).
+             * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
+             * feed must be specified by explicit selectors (see EntitySelector below for
+             * more info).
+             * 
+ * + * required string id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+             * The ids are used only to provide incrementality support. The id should be
+             * unique within a FeedMessage. Consequent FeedMessages may contain
+             * FeedEntities with the same id. In case of a DIFFERENTIAL update the new
+             * FeedEntity with some id will replace the old FeedEntity with the same id
+             * (or delete it - see is_deleted below).
+             * The actual GTFS entities (e.g. stations, routes, trips) referenced by the
+             * feed must be specified by explicit selectors (see EntitySelector below for
+             * more info).
+             * 
+ * + * required string id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean isDeleted_; + /** + *
+             * Whether this entity is to be deleted. Relevant only for incremental
+             * fetches.
+             * 
+ * + * optional bool is_deleted = 2 [default = false]; + * @return Whether the isDeleted field is set. + */ + @java.lang.Override + public boolean hasIsDeleted() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * Whether this entity is to be deleted. Relevant only for incremental
+             * fetches.
+             * 
+ * + * optional bool is_deleted = 2 [default = false]; + * @return The isDeleted. + */ + @java.lang.Override + public boolean getIsDeleted() { + return isDeleted_; + } + /** + *
+             * Whether this entity is to be deleted. Relevant only for incremental
+             * fetches.
+             * 
+ * + * optional bool is_deleted = 2 [default = false]; + * @param value The isDeleted to set. + * @return This builder for chaining. + */ + public Builder setIsDeleted(boolean value) { + + isDeleted_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Whether this entity is to be deleted. Relevant only for incremental
+             * fetches.
+             * 
+ * + * optional bool is_deleted = 2 [default = false]; + * @return This builder for chaining. + */ + public Builder clearIsDeleted() { + bitField0_ = (bitField0_ & ~0x00000002); + isDeleted_ = false; + onChanged(); + return this; + } + + private com.google.transit.realtime.GtfsRealtime.TripUpdate tripUpdate_; + private com.google.protobuf.SingleFieldBuilderV3 tripUpdateBuilder_; + /** + *
+             * Data about the entity itself. Exactly one of the following fields must be
+             * present (unless the entity is being deleted).
+             * 
+ * + * optional .transit_realtime.TripUpdate trip_update = 3; + * @return Whether the tripUpdate field is set. + */ + public boolean hasTripUpdate() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * Data about the entity itself. Exactly one of the following fields must be
+             * present (unless the entity is being deleted).
+             * 
+ * + * optional .transit_realtime.TripUpdate trip_update = 3; + * @return The tripUpdate. + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate getTripUpdate() { + if (tripUpdateBuilder_ == null) { + return tripUpdate_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.getDefaultInstance() + : tripUpdate_; + } else { + return tripUpdateBuilder_.getMessage(); + } + } + /** + *
+             * Data about the entity itself. Exactly one of the following fields must be
+             * present (unless the entity is being deleted).
+             * 
+ * + * optional .transit_realtime.TripUpdate trip_update = 3; + */ + public Builder setTripUpdate(com.google.transit.realtime.GtfsRealtime.TripUpdate value) { + if (tripUpdateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tripUpdate_ = value; + } else { + tripUpdateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * Data about the entity itself. Exactly one of the following fields must be
+             * present (unless the entity is being deleted).
+             * 
+ * + * optional .transit_realtime.TripUpdate trip_update = 3; + */ + public Builder setTripUpdate(com.google.transit.realtime.GtfsRealtime.TripUpdate.Builder builderForValue) { + if (tripUpdateBuilder_ == null) { + tripUpdate_ = builderForValue.build(); + } else { + tripUpdateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * Data about the entity itself. Exactly one of the following fields must be
+             * present (unless the entity is being deleted).
+             * 
+ * + * optional .transit_realtime.TripUpdate trip_update = 3; + */ + public Builder mergeTripUpdate(com.google.transit.realtime.GtfsRealtime.TripUpdate value) { + if (tripUpdateBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && tripUpdate_ != null + && tripUpdate_ != com.google.transit.realtime.GtfsRealtime.TripUpdate + .getDefaultInstance()) { + getTripUpdateBuilder().mergeFrom(value); + } else { + tripUpdate_ = value; + } + } else { + tripUpdateBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * Data about the entity itself. Exactly one of the following fields must be
+             * present (unless the entity is being deleted).
+             * 
+ * + * optional .transit_realtime.TripUpdate trip_update = 3; + */ + public Builder clearTripUpdate() { + bitField0_ = (bitField0_ & ~0x00000004); + tripUpdate_ = null; + if (tripUpdateBuilder_ != null) { + tripUpdateBuilder_.dispose(); + tripUpdateBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * Data about the entity itself. Exactly one of the following fields must be
+             * present (unless the entity is being deleted).
+             * 
+ * + * optional .transit_realtime.TripUpdate trip_update = 3; + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate.Builder getTripUpdateBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getTripUpdateFieldBuilder().getBuilder(); + } + /** + *
+             * Data about the entity itself. Exactly one of the following fields must be
+             * present (unless the entity is being deleted).
+             * 
+ * + * optional .transit_realtime.TripUpdate trip_update = 3; + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdateOrBuilder getTripUpdateOrBuilder() { + if (tripUpdateBuilder_ != null) { + return tripUpdateBuilder_.getMessageOrBuilder(); + } else { + return tripUpdate_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.getDefaultInstance() + : tripUpdate_; + } + } + /** + *
+             * Data about the entity itself. Exactly one of the following fields must be
+             * present (unless the entity is being deleted).
+             * 
+ * + * optional .transit_realtime.TripUpdate trip_update = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTripUpdateFieldBuilder() { + if (tripUpdateBuilder_ == null) { + tripUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTripUpdate(), getParentForChildren(), isClean()); + tripUpdate_ = null; + } + return tripUpdateBuilder_; + } + + private com.google.transit.realtime.GtfsRealtime.VehiclePosition vehicle_; + private com.google.protobuf.SingleFieldBuilderV3 vehicleBuilder_; + /** + * optional .transit_realtime.VehiclePosition vehicle = 4; + * @return Whether the vehicle field is set. + */ + public boolean hasVehicle() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .transit_realtime.VehiclePosition vehicle = 4; + * @return The vehicle. + */ + public com.google.transit.realtime.GtfsRealtime.VehiclePosition getVehicle() { + if (vehicleBuilder_ == null) { + return vehicle_ == null + ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDefaultInstance() + : vehicle_; + } else { + return vehicleBuilder_.getMessage(); + } + } + /** + * optional .transit_realtime.VehiclePosition vehicle = 4; + */ + public Builder setVehicle(com.google.transit.realtime.GtfsRealtime.VehiclePosition value) { + if (vehicleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vehicle_ = value; + } else { + vehicleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .transit_realtime.VehiclePosition vehicle = 4; + */ + public Builder setVehicle( + com.google.transit.realtime.GtfsRealtime.VehiclePosition.Builder builderForValue) { + if (vehicleBuilder_ == null) { + vehicle_ = builderForValue.build(); + } else { + vehicleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .transit_realtime.VehiclePosition vehicle = 4; + */ + public Builder mergeVehicle(com.google.transit.realtime.GtfsRealtime.VehiclePosition value) { + if (vehicleBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && vehicle_ != null + && vehicle_ != com.google.transit.realtime.GtfsRealtime.VehiclePosition + .getDefaultInstance()) { + getVehicleBuilder().mergeFrom(value); + } else { + vehicle_ = value; + } + } else { + vehicleBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .transit_realtime.VehiclePosition vehicle = 4; + */ + public Builder clearVehicle() { + bitField0_ = (bitField0_ & ~0x00000008); + vehicle_ = null; + if (vehicleBuilder_ != null) { + vehicleBuilder_.dispose(); + vehicleBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .transit_realtime.VehiclePosition vehicle = 4; + */ + public com.google.transit.realtime.GtfsRealtime.VehiclePosition.Builder getVehicleBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getVehicleFieldBuilder().getBuilder(); + } + /** + * optional .transit_realtime.VehiclePosition vehicle = 4; + */ + public com.google.transit.realtime.GtfsRealtime.VehiclePositionOrBuilder getVehicleOrBuilder() { + if (vehicleBuilder_ != null) { + return vehicleBuilder_.getMessageOrBuilder(); + } else { + return vehicle_ == null + ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDefaultInstance() + : vehicle_; + } + } + /** + * optional .transit_realtime.VehiclePosition vehicle = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3 getVehicleFieldBuilder() { + if (vehicleBuilder_ == null) { + vehicleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getVehicle(), getParentForChildren(), isClean()); + vehicle_ = null; + } + return vehicleBuilder_; + } + + private com.google.transit.realtime.GtfsRealtime.Alert alert_; + private com.google.protobuf.SingleFieldBuilderV3 alertBuilder_; + /** + * optional .transit_realtime.Alert alert = 5; + * @return Whether the alert field is set. + */ + public boolean hasAlert() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional .transit_realtime.Alert alert = 5; + * @return The alert. + */ + public com.google.transit.realtime.GtfsRealtime.Alert getAlert() { + if (alertBuilder_ == null) { + return alert_ == null + ? com.google.transit.realtime.GtfsRealtime.Alert.getDefaultInstance() + : alert_; + } else { + return alertBuilder_.getMessage(); + } + } + /** + * optional .transit_realtime.Alert alert = 5; + */ + public Builder setAlert(com.google.transit.realtime.GtfsRealtime.Alert value) { + if (alertBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + alert_ = value; + } else { + alertBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional .transit_realtime.Alert alert = 5; + */ + public Builder setAlert(com.google.transit.realtime.GtfsRealtime.Alert.Builder builderForValue) { + if (alertBuilder_ == null) { + alert_ = builderForValue.build(); + } else { + alertBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional .transit_realtime.Alert alert = 5; + */ + public Builder mergeAlert(com.google.transit.realtime.GtfsRealtime.Alert value) { + if (alertBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && alert_ != null + && alert_ != com.google.transit.realtime.GtfsRealtime.Alert.getDefaultInstance()) { + getAlertBuilder().mergeFrom(value); + } else { + alert_ = value; + } + } else { + alertBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional .transit_realtime.Alert alert = 5; + */ + public Builder clearAlert() { + bitField0_ = (bitField0_ & ~0x00000010); + alert_ = null; + if (alertBuilder_ != null) { + alertBuilder_.dispose(); + alertBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .transit_realtime.Alert alert = 5; + */ + public com.google.transit.realtime.GtfsRealtime.Alert.Builder getAlertBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getAlertFieldBuilder().getBuilder(); + } + /** + * optional .transit_realtime.Alert alert = 5; + */ + public com.google.transit.realtime.GtfsRealtime.AlertOrBuilder getAlertOrBuilder() { + if (alertBuilder_ != null) { + return alertBuilder_.getMessageOrBuilder(); + } else { + return alert_ == null + ? com.google.transit.realtime.GtfsRealtime.Alert.getDefaultInstance() + : alert_; + } + } + /** + * optional .transit_realtime.Alert alert = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3 getAlertFieldBuilder() { + if (alertBuilder_ == null) { + alertBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getAlert(), getParentForChildren(), isClean()); + alert_ = null; + } + return alertBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:transit_realtime.FeedEntity) + } + + // @@protoc_insertion_point(class_scope:transit_realtime.FeedEntity) + private static final com.google.transit.realtime.GtfsRealtime.FeedEntity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.FeedEntity(); + } + + public static com.google.transit.realtime.GtfsRealtime.FeedEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeedEntity parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship getScheduleRelationship() { - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship result = com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship.forNumber(scheduleRelationship_); - return result == null ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship.SCHEDULED : result; + public com.google.transit.realtime.GtfsRealtime.FeedEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + + } + + public interface TripUpdateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.TripUpdate) + com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder { + /** - * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; - * @param value The scheduleRelationship to set. - * @return This builder for chaining. + *
+         * The Trip that this message applies to. There can be at most one
+         * TripUpdate entity for each actual trip instance.
+         * If there is none, that means there is no prediction information available.
+         * It does *not* mean that the trip is progressing according to schedule.
+         * 
+ * + * required .transit_realtime.TripDescriptor trip = 1; + * @return Whether the trip field is set. */ - public Builder setScheduleRelationship(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - scheduleRelationship_ = value.getNumber(); - onChanged(); - return this; - } + boolean hasTrip(); /** - * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; - * @return This builder for chaining. + *
+         * The Trip that this message applies to. There can be at most one
+         * TripUpdate entity for each actual trip instance.
+         * If there is none, that means there is no prediction information available.
+         * It does *not* mean that the trip is progressing according to schedule.
+         * 
+ * + * required .transit_realtime.TripDescriptor trip = 1; + * @return The trip. */ - public Builder clearScheduleRelationship() { - bitField0_ = (bitField0_ & ~0x00000010); - scheduleRelationship_ = 0; - onChanged(); - return this; - } - - private com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties stopTimeProperties_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.Builder, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimePropertiesOrBuilder> stopTimePropertiesBuilder_; + com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip(); /** - * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; - * @return Whether the stopTimeProperties field is set. + *
+         * The Trip that this message applies to. There can be at most one
+         * TripUpdate entity for each actual trip instance.
+         * If there is none, that means there is no prediction information available.
+         * It does *not* mean that the trip is progressing according to schedule.
+         * 
+ * + * required .transit_realtime.TripDescriptor trip = 1; */ - public boolean hasStopTimeProperties() { - return ((bitField0_ & 0x00000020) != 0); - } + com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder(); + /** - * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; - * @return The stopTimeProperties. + *
+         * Additional information on the vehicle that is serving this trip.
+         * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 3; + * @return Whether the vehicle field is set. */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties getStopTimeProperties() { - if (stopTimePropertiesBuilder_ == null) { - return stopTimeProperties_ == null ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.getDefaultInstance() : stopTimeProperties_; - } else { - return stopTimePropertiesBuilder_.getMessage(); - } - } + boolean hasVehicle(); /** - * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + *
+         * Additional information on the vehicle that is serving this trip.
+         * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 3; + * @return The vehicle. */ - public Builder setStopTimeProperties(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties value) { - if (stopTimePropertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stopTimeProperties_ = value; - } else { - stopTimePropertiesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } + com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getVehicle(); /** - * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + *
+         * Additional information on the vehicle that is serving this trip.
+         * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 3; */ - public Builder setStopTimeProperties( - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.Builder builderForValue) { - if (stopTimePropertiesBuilder_ == null) { - stopTimeProperties_ = builderForValue.build(); - } else { - stopTimePropertiesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } + com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder(); + /** - * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + *
+         * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+         * some cases, past ones, i.e., those that already happened).
+         * The updates must be sorted by stop_sequence, and apply for all the
+         * following stops of the trip up to the next specified one.
+         * Example 1:
+         * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+         * delay of 0 for stop_sequence of the current stop means that the trip is
+         * exactly on time.
+         * Example 2:
+         * For the same trip instance, 3 StopTimeUpdates are provided:
+         * - delay of 5 min for stop_sequence 3
+         * - delay of 1 min for stop_sequence 8
+         * - delay of unspecified duration for stop_sequence 10
+         * This will be interpreted as:
+         * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+         * - stop_sequences 8,9 have delay of 1 min.
+         * - stop_sequences 10,... have unknown delay.
+         * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; */ - public Builder mergeStopTimeProperties(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties value) { - if (stopTimePropertiesBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - stopTimeProperties_ != null && - stopTimeProperties_ != com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.getDefaultInstance()) { - getStopTimePropertiesBuilder().mergeFrom(value); - } else { - stopTimeProperties_ = value; - } - } else { - stopTimePropertiesBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } + java.util.List getStopTimeUpdateList(); /** - * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + *
+         * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+         * some cases, past ones, i.e., those that already happened).
+         * The updates must be sorted by stop_sequence, and apply for all the
+         * following stops of the trip up to the next specified one.
+         * Example 1:
+         * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+         * delay of 0 for stop_sequence of the current stop means that the trip is
+         * exactly on time.
+         * Example 2:
+         * For the same trip instance, 3 StopTimeUpdates are provided:
+         * - delay of 5 min for stop_sequence 3
+         * - delay of 1 min for stop_sequence 8
+         * - delay of unspecified duration for stop_sequence 10
+         * This will be interpreted as:
+         * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+         * - stop_sequences 8,9 have delay of 1 min.
+         * - stop_sequences 10,... have unknown delay.
+         * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; */ - public Builder clearStopTimeProperties() { - bitField0_ = (bitField0_ & ~0x00000020); - stopTimeProperties_ = null; - if (stopTimePropertiesBuilder_ != null) { - stopTimePropertiesBuilder_.dispose(); - stopTimePropertiesBuilder_ = null; - } - onChanged(); - return this; - } + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate getStopTimeUpdate(int index); /** - * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + *
+         * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+         * some cases, past ones, i.e., those that already happened).
+         * The updates must be sorted by stop_sequence, and apply for all the
+         * following stops of the trip up to the next specified one.
+         * Example 1:
+         * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+         * delay of 0 for stop_sequence of the current stop means that the trip is
+         * exactly on time.
+         * Example 2:
+         * For the same trip instance, 3 StopTimeUpdates are provided:
+         * - delay of 5 min for stop_sequence 3
+         * - delay of 1 min for stop_sequence 8
+         * - delay of unspecified duration for stop_sequence 10
+         * This will be interpreted as:
+         * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+         * - stop_sequences 8,9 have delay of 1 min.
+         * - stop_sequences 10,... have unknown delay.
+         * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.Builder getStopTimePropertiesBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getStopTimePropertiesFieldBuilder().getBuilder(); - } + int getStopTimeUpdateCount(); /** - * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + *
+         * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+         * some cases, past ones, i.e., those that already happened).
+         * The updates must be sorted by stop_sequence, and apply for all the
+         * following stops of the trip up to the next specified one.
+         * Example 1:
+         * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+         * delay of 0 for stop_sequence of the current stop means that the trip is
+         * exactly on time.
+         * Example 2:
+         * For the same trip instance, 3 StopTimeUpdates are provided:
+         * - delay of 5 min for stop_sequence 3
+         * - delay of 1 min for stop_sequence 8
+         * - delay of unspecified duration for stop_sequence 10
+         * This will be interpreted as:
+         * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+         * - stop_sequences 8,9 have delay of 1 min.
+         * - stop_sequences 10,... have unknown delay.
+         * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimePropertiesOrBuilder getStopTimePropertiesOrBuilder() { - if (stopTimePropertiesBuilder_ != null) { - return stopTimePropertiesBuilder_.getMessageOrBuilder(); - } else { - return stopTimeProperties_ == null ? - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.getDefaultInstance() : stopTimeProperties_; - } - } + java.util.List getStopTimeUpdateOrBuilderList(); /** - * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + *
+         * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+         * some cases, past ones, i.e., those that already happened).
+         * The updates must be sorted by stop_sequence, and apply for all the
+         * following stops of the trip up to the next specified one.
+         * Example 1:
+         * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+         * delay of 0 for stop_sequence of the current stop means that the trip is
+         * exactly on time.
+         * Example 2:
+         * For the same trip instance, 3 StopTimeUpdates are provided:
+         * - delay of 5 min for stop_sequence 3
+         * - delay of 1 min for stop_sequence 8
+         * - delay of unspecified duration for stop_sequence 10
+         * This will be interpreted as:
+         * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+         * - stop_sequences 8,9 have delay of 1 min.
+         * - stop_sequences 10,... have unknown delay.
+         * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.Builder, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimePropertiesOrBuilder> - getStopTimePropertiesFieldBuilder() { - if (stopTimePropertiesBuilder_ == null) { - stopTimePropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.Builder, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimePropertiesOrBuilder>( - getStopTimeProperties(), - getParentForChildren(), - isClean()); - stopTimeProperties_ = null; - } - return stopTimePropertiesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder getStopTimeUpdateOrBuilder( + int index); + /** + *
+         * Moment at which the vehicle's real-time progress was measured. In POSIX
+         * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
+         * 
+ * + * optional uint64 timestamp = 4; + * @return Whether the timestamp field is set. + */ + boolean hasTimestamp(); + /** + *
+         * Moment at which the vehicle's real-time progress was measured. In POSIX
+         * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
+         * 
+ * + * optional uint64 timestamp = 4; + * @return The timestamp. + */ + long getTimestamp(); - // @@protoc_insertion_point(builder_scope:transit_realtime.TripUpdate.StopTimeUpdate) - } - - // @@protoc_insertion_point(class_scope:transit_realtime.TripUpdate.StopTimeUpdate) - private static final com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate(); - } - - public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopTimeUpdate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int TRIP_FIELD_NUMBER = 1; - private com.google.transit.realtime.GtfsRealtime.TripDescriptor trip_; - /** - *
-     * The Trip that this message applies to. There can be at most one
-     * TripUpdate entity for each actual trip instance.
-     * If there is none, that means there is no prediction information available.
-     * It does *not* mean that the trip is progressing according to schedule.
-     * 
- * - * required .transit_realtime.TripDescriptor trip = 1; - * @return Whether the trip field is set. - */ - @java.lang.Override - public boolean hasTrip() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The Trip that this message applies to. There can be at most one
-     * TripUpdate entity for each actual trip instance.
-     * If there is none, that means there is no prediction information available.
-     * It does *not* mean that the trip is progressing according to schedule.
-     * 
- * - * required .transit_realtime.TripDescriptor trip = 1; - * @return The trip. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip() { - return trip_ == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; - } - /** - *
-     * The Trip that this message applies to. There can be at most one
-     * TripUpdate entity for each actual trip instance.
-     * If there is none, that means there is no prediction information available.
-     * It does *not* mean that the trip is progressing according to schedule.
-     * 
- * - * required .transit_realtime.TripDescriptor trip = 1; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder() { - return trip_ == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; - } - - public static final int VEHICLE_FIELD_NUMBER = 3; - private com.google.transit.realtime.GtfsRealtime.VehicleDescriptor vehicle_; - /** - *
-     * Additional information on the vehicle that is serving this trip.
-     * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 3; - * @return Whether the vehicle field is set. - */ - @java.lang.Override - public boolean hasVehicle() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Additional information on the vehicle that is serving this trip.
-     * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 3; - * @return The vehicle. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getVehicle() { - return vehicle_ == null ? com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() : vehicle_; - } - /** - *
-     * Additional information on the vehicle that is serving this trip.
-     * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 3; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder() { - return vehicle_ == null ? com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() : vehicle_; - } - - public static final int STOP_TIME_UPDATE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List stopTimeUpdate_; - /** - *
-     * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-     * some cases, past ones, i.e., those that already happened).
-     * The updates must be sorted by stop_sequence, and apply for all the
-     * following stops of the trip up to the next specified one.
-     * Example 1:
-     * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-     * delay of 0 for stop_sequence of the current stop means that the trip is
-     * exactly on time.
-     * Example 2:
-     * For the same trip instance, 3 StopTimeUpdates are provided:
-     * - delay of 5 min for stop_sequence 3
-     * - delay of 1 min for stop_sequence 8
-     * - delay of unspecified duration for stop_sequence 10
-     * This will be interpreted as:
-     * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-     * - stop_sequences 8,9 have delay of 1 min.
-     * - stop_sequences 10,... have unknown delay.
-     * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - @java.lang.Override - public java.util.List getStopTimeUpdateList() { - return stopTimeUpdate_; - } - /** - *
-     * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-     * some cases, past ones, i.e., those that already happened).
-     * The updates must be sorted by stop_sequence, and apply for all the
-     * following stops of the trip up to the next specified one.
-     * Example 1:
-     * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-     * delay of 0 for stop_sequence of the current stop means that the trip is
-     * exactly on time.
-     * Example 2:
-     * For the same trip instance, 3 StopTimeUpdates are provided:
-     * - delay of 5 min for stop_sequence 3
-     * - delay of 1 min for stop_sequence 8
-     * - delay of unspecified duration for stop_sequence 10
-     * This will be interpreted as:
-     * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-     * - stop_sequences 8,9 have delay of 1 min.
-     * - stop_sequences 10,... have unknown delay.
-     * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - @java.lang.Override - public java.util.List - getStopTimeUpdateOrBuilderList() { - return stopTimeUpdate_; - } - /** - *
-     * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-     * some cases, past ones, i.e., those that already happened).
-     * The updates must be sorted by stop_sequence, and apply for all the
-     * following stops of the trip up to the next specified one.
-     * Example 1:
-     * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-     * delay of 0 for stop_sequence of the current stop means that the trip is
-     * exactly on time.
-     * Example 2:
-     * For the same trip instance, 3 StopTimeUpdates are provided:
-     * - delay of 5 min for stop_sequence 3
-     * - delay of 1 min for stop_sequence 8
-     * - delay of unspecified duration for stop_sequence 10
-     * This will be interpreted as:
-     * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-     * - stop_sequences 8,9 have delay of 1 min.
-     * - stop_sequences 10,... have unknown delay.
-     * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - @java.lang.Override - public int getStopTimeUpdateCount() { - return stopTimeUpdate_.size(); - } - /** - *
-     * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-     * some cases, past ones, i.e., those that already happened).
-     * The updates must be sorted by stop_sequence, and apply for all the
-     * following stops of the trip up to the next specified one.
-     * Example 1:
-     * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-     * delay of 0 for stop_sequence of the current stop means that the trip is
-     * exactly on time.
-     * Example 2:
-     * For the same trip instance, 3 StopTimeUpdates are provided:
-     * - delay of 5 min for stop_sequence 3
-     * - delay of 1 min for stop_sequence 8
-     * - delay of unspecified duration for stop_sequence 10
-     * This will be interpreted as:
-     * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-     * - stop_sequences 8,9 have delay of 1 min.
-     * - stop_sequences 10,... have unknown delay.
-     * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate getStopTimeUpdate(int index) { - return stopTimeUpdate_.get(index); - } - /** - *
-     * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-     * some cases, past ones, i.e., those that already happened).
-     * The updates must be sorted by stop_sequence, and apply for all the
-     * following stops of the trip up to the next specified one.
-     * Example 1:
-     * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-     * delay of 0 for stop_sequence of the current stop means that the trip is
-     * exactly on time.
-     * Example 2:
-     * For the same trip instance, 3 StopTimeUpdates are provided:
-     * - delay of 5 min for stop_sequence 3
-     * - delay of 1 min for stop_sequence 8
-     * - delay of unspecified duration for stop_sequence 10
-     * This will be interpreted as:
-     * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-     * - stop_sequences 8,9 have delay of 1 min.
-     * - stop_sequences 10,... have unknown delay.
-     * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder getStopTimeUpdateOrBuilder( - int index) { - return stopTimeUpdate_.get(index); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 4; - private long timestamp_ = 0L; - /** - *
-     * Moment at which the vehicle's real-time progress was measured. In POSIX
-     * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
-     * 
- * - * optional uint64 timestamp = 4; - * @return Whether the timestamp field is set. - */ - @java.lang.Override - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Moment at which the vehicle's real-time progress was measured. In POSIX
-     * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
-     * 
- * - * optional uint64 timestamp = 4; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - public static final int DELAY_FIELD_NUMBER = 5; - private int delay_ = 0; - /** - *
-     * The current schedule deviation for the trip.  Delay should only be
-     * specified when the prediction is given relative to some existing schedule
-     * in GTFS.
-     * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-     * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-     * means that the vehicle is exactly on time.
-     * Delay information in StopTimeUpdates take precedent of trip-level delay
-     * information, such that trip-level delay is only propagated until the next
-     * stop along the trip with a StopTimeUpdate delay value specified.
-     * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
-     * value indicating when the delay value was last updated, in order to
-     * evaluate the freshness of the data.
-     * NOTE: This field is still experimental, and subject to change. It may be
-     * formally adopted in the future.
-     * 
- * - * optional int32 delay = 5; - * @return Whether the delay field is set. - */ - @java.lang.Override - public boolean hasDelay() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * The current schedule deviation for the trip.  Delay should only be
-     * specified when the prediction is given relative to some existing schedule
-     * in GTFS.
-     * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-     * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-     * means that the vehicle is exactly on time.
-     * Delay information in StopTimeUpdates take precedent of trip-level delay
-     * information, such that trip-level delay is only propagated until the next
-     * stop along the trip with a StopTimeUpdate delay value specified.
-     * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
-     * value indicating when the delay value was last updated, in order to
-     * evaluate the freshness of the data.
-     * NOTE: This field is still experimental, and subject to change. It may be
-     * formally adopted in the future.
-     * 
- * - * optional int32 delay = 5; - * @return The delay. - */ - @java.lang.Override - public int getDelay() { - return delay_; - } - - 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 (!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_); - } - extensionWriter.writeUntil(2000, 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_); - } - 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 com.google.transit.realtime.GtfsRealtime.TripUpdate)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.TripUpdate other = (com.google.transit.realtime.GtfsRealtime.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 (!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(); - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TripUpdate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + *
+         * The current schedule deviation for the trip.  Delay should only be
+         * specified when the prediction is given relative to some existing schedule
+         * in GTFS.
+         * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+         * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+         * means that the vehicle is exactly on time.
+         * Delay information in StopTimeUpdates take precedent of trip-level delay
+         * information, such that trip-level delay is only propagated until the next
+         * stop along the trip with a StopTimeUpdate delay value specified.
+         * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
+         * value indicating when the delay value was last updated, in order to
+         * evaluate the freshness of the data.
+         * NOTE: This field is still experimental, and subject to change. It may be
+         * formally adopted in the future.
+         * 
+ * + * optional int32 delay = 5; + * @return Whether the delay field is set. + */ + boolean hasDelay(); + /** + *
+         * The current schedule deviation for the trip.  Delay should only be
+         * specified when the prediction is given relative to some existing schedule
+         * in GTFS.
+         * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+         * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+         * means that the vehicle is exactly on time.
+         * Delay information in StopTimeUpdates take precedent of trip-level delay
+         * information, such that trip-level delay is only propagated until the next
+         * stop along the trip with a StopTimeUpdate delay value specified.
+         * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
+         * value indicating when the delay value was last updated, in order to
+         * evaluate the freshness of the data.
+         * NOTE: This field is still experimental, and subject to change. It may be
+         * formally adopted in the future.
+         * 
+ * + * optional int32 delay = 5; + * @return The delay. + */ + int getDelay(); } /** *
@@ -8381,16833 +4089,20330 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code transit_realtime.TripUpdate}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<
-          com.google.transit.realtime.GtfsRealtime.TripUpdate, Builder> implements
-        // @@protoc_insertion_point(builder_implements:transit_realtime.TripUpdate)
-        com.google.transit.realtime.GtfsRealtime.TripUpdateOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_descriptor;
-      }
-
-      @java.lang.Override
-      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-          internalGetFieldAccessorTable() {
-        return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_fieldAccessorTable
-            .ensureFieldAccessorsInitialized(
-                com.google.transit.realtime.GtfsRealtime.TripUpdate.class, com.google.transit.realtime.GtfsRealtime.TripUpdate.Builder.class);
-      }
-
-      // Construct using com.google.transit.realtime.GtfsRealtime.TripUpdate.newBuilder()
-      private Builder() {
-        maybeForceBuilderInitialization();
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
-        maybeForceBuilderInitialization();
-      }
-      private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-          getTripFieldBuilder();
-          getVehicleFieldBuilder();
-          getStopTimeUpdateFieldBuilder();
-        }
-      }
-      @java.lang.Override
-      public Builder clear() {
-        super.clear();
-        bitField0_ = 0;
-        trip_ = null;
-        if (tripBuilder_ != null) {
-          tripBuilder_.dispose();
-          tripBuilder_ = null;
-        }
-        vehicle_ = null;
-        if (vehicleBuilder_ != null) {
-          vehicleBuilder_.dispose();
-          vehicleBuilder_ = null;
-        }
-        if (stopTimeUpdateBuilder_ == null) {
-          stopTimeUpdate_ = java.util.Collections.emptyList();
-        } else {
-          stopTimeUpdate_ = null;
-          stopTimeUpdateBuilder_.clear();
-        }
-        bitField0_ = (bitField0_ & ~0x00000004);
-        timestamp_ = 0L;
-        delay_ = 0;
-        return this;
-      }
-
-      @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_descriptor;
-      }
-
-      @java.lang.Override
-      public com.google.transit.realtime.GtfsRealtime.TripUpdate getDefaultInstanceForType() {
-        return com.google.transit.realtime.GtfsRealtime.TripUpdate.getDefaultInstance();
-      }
-
-      @java.lang.Override
-      public com.google.transit.realtime.GtfsRealtime.TripUpdate build() {
-        com.google.transit.realtime.GtfsRealtime.TripUpdate result = buildPartial();
-        if (!result.isInitialized()) {
-          throw newUninitializedMessageException(result);
-        }
-        return result;
-      }
-
-      @java.lang.Override
-      public com.google.transit.realtime.GtfsRealtime.TripUpdate buildPartial() {
-        com.google.transit.realtime.GtfsRealtime.TripUpdate result = new com.google.transit.realtime.GtfsRealtime.TripUpdate(this);
-        buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) { buildPartial0(result); }
-        onBuilt();
-        return result;
-      }
-
-      private void buildPartialRepeatedFields(com.google.transit.realtime.GtfsRealtime.TripUpdate result) {
-        if (stopTimeUpdateBuilder_ == null) {
-          if (((bitField0_ & 0x00000004) != 0)) {
-            stopTimeUpdate_ = java.util.Collections.unmodifiableList(stopTimeUpdate_);
-            bitField0_ = (bitField0_ & ~0x00000004);
-          }
-          result.stopTimeUpdate_ = stopTimeUpdate_;
-        } else {
-          result.stopTimeUpdate_ = stopTimeUpdateBuilder_.build();
-        }
-      }
-
-      private void buildPartial0(com.google.transit.realtime.GtfsRealtime.TripUpdate result) {
-        int from_bitField0_ = bitField0_;
-        int to_bitField0_ = 0;
-        if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.trip_ = tripBuilder_ == null
-              ? trip_
-              : tripBuilder_.build();
-          to_bitField0_ |= 0x00000001;
-        }
-        if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.vehicle_ = vehicleBuilder_ == null
-              ? vehicle_
-              : vehicleBuilder_.build();
-          to_bitField0_ |= 0x00000002;
-        }
-        if (((from_bitField0_ & 0x00000008) != 0)) {
-          result.timestamp_ = timestamp_;
-          to_bitField0_ |= 0x00000004;
-        }
-        if (((from_bitField0_ & 0x00000010) != 0)) {
-          result.delay_ = delay_;
-          to_bitField0_ |= 0x00000008;
-        }
-        result.bitField0_ |= to_bitField0_;
-      }
-
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
-        return super.setField(field, value);
-      }
-      @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-      @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
-        return super.addRepeatedField(field, value);
-      }
-      @java.lang.Override
-      public  Builder setExtension(
-          com.google.protobuf.GeneratedMessage.GeneratedExtension<
-              com.google.transit.realtime.GtfsRealtime.TripUpdate, Type> extension,
-          Type value) {
-        return super.setExtension(extension, value);
-      }
-      @java.lang.Override
-      public  Builder setExtension(
-          com.google.protobuf.GeneratedMessage.GeneratedExtension<
-              com.google.transit.realtime.GtfsRealtime.TripUpdate, java.util.List> extension,
-          int index, Type value) {
-        return super.setExtension(extension, index, value);
-      }
-      @java.lang.Override
-      public  Builder addExtension(
-          com.google.protobuf.GeneratedMessage.GeneratedExtension<
-              com.google.transit.realtime.GtfsRealtime.TripUpdate, java.util.List> extension,
-          Type value) {
-        return super.addExtension(extension, value);
-      }
-      @java.lang.Override
-      public  Builder clearExtension(
-          com.google.protobuf.GeneratedMessage.GeneratedExtension<
-              com.google.transit.realtime.GtfsRealtime.TripUpdate, ?> extension) {
-        return super.clearExtension(extension);
-      }
-      @java.lang.Override
-      public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof com.google.transit.realtime.GtfsRealtime.TripUpdate) {
-          return mergeFrom((com.google.transit.realtime.GtfsRealtime.TripUpdate)other);
-        } else {
-          super.mergeFrom(other);
-          return this;
-        }
-      }
-
-      public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TripUpdate other) {
-        if (other == com.google.transit.realtime.GtfsRealtime.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());
-        }
-        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 (!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: {
-                com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate m =
-                    input.readMessage(
-                        com.google.transit.realtime.GtfsRealtime.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
-              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.transit.realtime.GtfsRealtime.TripDescriptor trip_;
-      private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.transit.realtime.GtfsRealtime.TripDescriptor, com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder> tripBuilder_;
-      /**
-       * 
-       * The Trip that this message applies to. There can be at most one
-       * TripUpdate entity for each actual trip instance.
-       * If there is none, that means there is no prediction information available.
-       * It does *not* mean that the trip is progressing according to schedule.
-       * 
- * - * required .transit_realtime.TripDescriptor trip = 1; - * @return Whether the trip field is set. - */ - public boolean hasTrip() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * The Trip that this message applies to. There can be at most one
-       * TripUpdate entity for each actual trip instance.
-       * If there is none, that means there is no prediction information available.
-       * It does *not* mean that the trip is progressing according to schedule.
-       * 
- * - * required .transit_realtime.TripDescriptor trip = 1; - * @return The trip. - */ - public com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip() { - if (tripBuilder_ == null) { - return trip_ == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; - } else { - return tripBuilder_.getMessage(); - } - } - /** - *
-       * The Trip that this message applies to. There can be at most one
-       * TripUpdate entity for each actual trip instance.
-       * If there is none, that means there is no prediction information available.
-       * It does *not* mean that the trip is progressing according to schedule.
-       * 
- * - * required .transit_realtime.TripDescriptor trip = 1; - */ - public Builder setTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { - if (tripBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trip_ = value; - } else { - tripBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The Trip that this message applies to. There can be at most one
-       * TripUpdate entity for each actual trip instance.
-       * If there is none, that means there is no prediction information available.
-       * It does *not* mean that the trip is progressing according to schedule.
-       * 
- * - * required .transit_realtime.TripDescriptor trip = 1; - */ - public Builder setTrip( - com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder builderForValue) { - if (tripBuilder_ == null) { - trip_ = builderForValue.build(); - } else { - tripBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The Trip that this message applies to. There can be at most one
-       * TripUpdate entity for each actual trip instance.
-       * If there is none, that means there is no prediction information available.
-       * It does *not* mean that the trip is progressing according to schedule.
-       * 
- * - * required .transit_realtime.TripDescriptor trip = 1; - */ - public Builder mergeTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { - if (tripBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - trip_ != null && - trip_ != com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance()) { - getTripBuilder().mergeFrom(value); - } else { - trip_ = value; - } - } else { - tripBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The Trip that this message applies to. There can be at most one
-       * TripUpdate entity for each actual trip instance.
-       * If there is none, that means there is no prediction information available.
-       * It does *not* mean that the trip is progressing according to schedule.
-       * 
- * - * required .transit_realtime.TripDescriptor trip = 1; - */ - public Builder clearTrip() { - bitField0_ = (bitField0_ & ~0x00000001); - trip_ = null; - if (tripBuilder_ != null) { - tripBuilder_.dispose(); - tripBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The Trip that this message applies to. There can be at most one
-       * TripUpdate entity for each actual trip instance.
-       * If there is none, that means there is no prediction information available.
-       * It does *not* mean that the trip is progressing according to schedule.
-       * 
- * - * required .transit_realtime.TripDescriptor trip = 1; - */ - public com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder getTripBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getTripFieldBuilder().getBuilder(); - } - /** - *
-       * The Trip that this message applies to. There can be at most one
-       * TripUpdate entity for each actual trip instance.
-       * If there is none, that means there is no prediction information available.
-       * It does *not* mean that the trip is progressing according to schedule.
-       * 
- * - * required .transit_realtime.TripDescriptor trip = 1; - */ - public com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder() { - if (tripBuilder_ != null) { - return tripBuilder_.getMessageOrBuilder(); - } else { - return trip_ == null ? - com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; - } - } - /** - *
-       * The Trip that this message applies to. There can be at most one
-       * TripUpdate entity for each actual trip instance.
-       * If there is none, that means there is no prediction information available.
-       * It does *not* mean that the trip is progressing according to schedule.
-       * 
- * - * required .transit_realtime.TripDescriptor trip = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripDescriptor, com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder> - getTripFieldBuilder() { - if (tripBuilder_ == null) { - tripBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripDescriptor, com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder>( - getTrip(), - getParentForChildren(), - isClean()); - trip_ = null; - } - return tripBuilder_; - } - - private com.google.transit.realtime.GtfsRealtime.VehicleDescriptor vehicle_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor, com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder> vehicleBuilder_; - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 3; - * @return Whether the vehicle field is set. - */ - public boolean hasVehicle() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 3; - * @return The vehicle. - */ - public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getVehicle() { - if (vehicleBuilder_ == null) { - return vehicle_ == null ? com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() : vehicle_; - } else { - return vehicleBuilder_.getMessage(); - } - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 3; - */ - public Builder setVehicle(com.google.transit.realtime.GtfsRealtime.VehicleDescriptor value) { - if (vehicleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vehicle_ = value; - } else { - vehicleBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 3; - */ - public Builder setVehicle( - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder builderForValue) { - if (vehicleBuilder_ == null) { - vehicle_ = builderForValue.build(); - } else { - vehicleBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 3; - */ - public Builder mergeVehicle(com.google.transit.realtime.GtfsRealtime.VehicleDescriptor value) { - if (vehicleBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - vehicle_ != null && - vehicle_ != com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance()) { - getVehicleBuilder().mergeFrom(value); - } else { - vehicle_ = value; - } - } else { - vehicleBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 3; - */ - public Builder clearVehicle() { - bitField0_ = (bitField0_ & ~0x00000002); - vehicle_ = null; - if (vehicleBuilder_ != null) { - vehicleBuilder_.dispose(); - vehicleBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 3; - */ - public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder getVehicleBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getVehicleFieldBuilder().getBuilder(); - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 3; - */ - public com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder() { - if (vehicleBuilder_ != null) { - return vehicleBuilder_.getMessageOrBuilder(); - } else { - return vehicle_ == null ? - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() : vehicle_; - } - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor, com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder> - getVehicleFieldBuilder() { - if (vehicleBuilder_ == null) { - vehicleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor, com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder>( - getVehicle(), - getParentForChildren(), - isClean()); - vehicle_ = null; - } - return vehicleBuilder_; - } - - private java.util.List stopTimeUpdate_ = - java.util.Collections.emptyList(); - private void ensureStopTimeUpdateIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - stopTimeUpdate_ = new java.util.ArrayList(stopTimeUpdate_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder> stopTimeUpdateBuilder_; - - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public java.util.List getStopTimeUpdateList() { - if (stopTimeUpdateBuilder_ == null) { - return java.util.Collections.unmodifiableList(stopTimeUpdate_); - } else { - return stopTimeUpdateBuilder_.getMessageList(); - } - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public int getStopTimeUpdateCount() { - if (stopTimeUpdateBuilder_ == null) { - return stopTimeUpdate_.size(); - } else { - return stopTimeUpdateBuilder_.getCount(); - } - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate getStopTimeUpdate(int index) { - if (stopTimeUpdateBuilder_ == null) { - return stopTimeUpdate_.get(index); - } else { - return stopTimeUpdateBuilder_.getMessage(index); - } - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public Builder setStopTimeUpdate( - int index, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate value) { - if (stopTimeUpdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStopTimeUpdateIsMutable(); - stopTimeUpdate_.set(index, value); - onChanged(); - } else { - stopTimeUpdateBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public Builder setStopTimeUpdate( - int index, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue) { - if (stopTimeUpdateBuilder_ == null) { - ensureStopTimeUpdateIsMutable(); - stopTimeUpdate_.set(index, builderForValue.build()); - onChanged(); - } else { - stopTimeUpdateBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public Builder addStopTimeUpdate(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate value) { - if (stopTimeUpdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStopTimeUpdateIsMutable(); - stopTimeUpdate_.add(value); - onChanged(); - } else { - stopTimeUpdateBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public Builder addStopTimeUpdate( - int index, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate value) { - if (stopTimeUpdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStopTimeUpdateIsMutable(); - stopTimeUpdate_.add(index, value); - onChanged(); - } else { - stopTimeUpdateBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public Builder addStopTimeUpdate( - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue) { - if (stopTimeUpdateBuilder_ == null) { - ensureStopTimeUpdateIsMutable(); - stopTimeUpdate_.add(builderForValue.build()); - onChanged(); - } else { - stopTimeUpdateBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public Builder addStopTimeUpdate( - int index, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue) { - if (stopTimeUpdateBuilder_ == null) { - ensureStopTimeUpdateIsMutable(); - stopTimeUpdate_.add(index, builderForValue.build()); - onChanged(); - } else { - stopTimeUpdateBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public Builder addAllStopTimeUpdate( - java.lang.Iterable values) { - if (stopTimeUpdateBuilder_ == null) { - ensureStopTimeUpdateIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stopTimeUpdate_); - onChanged(); - } else { - stopTimeUpdateBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public Builder clearStopTimeUpdate() { - if (stopTimeUpdateBuilder_ == null) { - stopTimeUpdate_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - stopTimeUpdateBuilder_.clear(); - } - return this; - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public Builder removeStopTimeUpdate(int index) { - if (stopTimeUpdateBuilder_ == null) { - ensureStopTimeUpdateIsMutable(); - stopTimeUpdate_.remove(index); - onChanged(); - } else { - stopTimeUpdateBuilder_.remove(index); - } - return this; - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder getStopTimeUpdateBuilder( - int index) { - return getStopTimeUpdateFieldBuilder().getBuilder(index); - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder getStopTimeUpdateOrBuilder( - int index) { - if (stopTimeUpdateBuilder_ == null) { - return stopTimeUpdate_.get(index); } else { - return stopTimeUpdateBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public java.util.List - getStopTimeUpdateOrBuilderList() { - if (stopTimeUpdateBuilder_ != null) { - return stopTimeUpdateBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(stopTimeUpdate_); - } - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder addStopTimeUpdateBuilder() { - return getStopTimeUpdateFieldBuilder().addBuilder( - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.getDefaultInstance()); - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder addStopTimeUpdateBuilder( - int index) { - return getStopTimeUpdateFieldBuilder().addBuilder( - index, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.getDefaultInstance()); - } - /** - *
-       * Updates to StopTimes for the trip (both future, i.e., predictions, and in
-       * some cases, past ones, i.e., those that already happened).
-       * The updates must be sorted by stop_sequence, and apply for all the
-       * following stops of the trip up to the next specified one.
-       * Example 1:
-       * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
-       * delay of 0 for stop_sequence of the current stop means that the trip is
-       * exactly on time.
-       * Example 2:
-       * For the same trip instance, 3 StopTimeUpdates are provided:
-       * - delay of 5 min for stop_sequence 3
-       * - delay of 1 min for stop_sequence 8
-       * - delay of unspecified duration for stop_sequence 10
-       * This will be interpreted as:
-       * - stop_sequences 3,4,5,6,7 have delay of 5 min.
-       * - stop_sequences 8,9 have delay of 1 min.
-       * - stop_sequences 10,... have unknown delay.
-       * 
- * - * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; - */ - public java.util.List - getStopTimeUpdateBuilderList() { - return getStopTimeUpdateFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder> - getStopTimeUpdateFieldBuilder() { - if (stopTimeUpdateBuilder_ == null) { - stopTimeUpdateBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder>( - stopTimeUpdate_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - stopTimeUpdate_ = null; - } - return stopTimeUpdateBuilder_; - } - - private long timestamp_ ; - /** - *
-       * Moment at which the vehicle's real-time progress was measured. In POSIX
-       * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
-       * 
- * - * optional uint64 timestamp = 4; - * @return Whether the timestamp field is set. - */ - @java.lang.Override - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-       * Moment at which the vehicle's real-time progress was measured. In POSIX
-       * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
-       * 
- * - * optional uint64 timestamp = 4; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - *
-       * Moment at which the vehicle's real-time progress was measured. In POSIX
-       * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
-       * 
- * - * optional uint64 timestamp = 4; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * Moment at which the vehicle's real-time progress was measured. In POSIX
-       * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
-       * 
- * - * optional uint64 timestamp = 4; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000008); - timestamp_ = 0L; - onChanged(); - return this; - } - - private int delay_ ; - /** - *
-       * The current schedule deviation for the trip.  Delay should only be
-       * specified when the prediction is given relative to some existing schedule
-       * in GTFS.
-       * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-       * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-       * means that the vehicle is exactly on time.
-       * Delay information in StopTimeUpdates take precedent of trip-level delay
-       * information, such that trip-level delay is only propagated until the next
-       * stop along the trip with a StopTimeUpdate delay value specified.
-       * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
-       * value indicating when the delay value was last updated, in order to
-       * evaluate the freshness of the data.
-       * NOTE: This field is still experimental, and subject to change. It may be
-       * formally adopted in the future.
-       * 
- * - * optional int32 delay = 5; - * @return Whether the delay field is set. - */ - @java.lang.Override - public boolean hasDelay() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-       * The current schedule deviation for the trip.  Delay should only be
-       * specified when the prediction is given relative to some existing schedule
-       * in GTFS.
-       * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-       * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-       * means that the vehicle is exactly on time.
-       * Delay information in StopTimeUpdates take precedent of trip-level delay
-       * information, such that trip-level delay is only propagated until the next
-       * stop along the trip with a StopTimeUpdate delay value specified.
-       * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
-       * value indicating when the delay value was last updated, in order to
-       * evaluate the freshness of the data.
-       * NOTE: This field is still experimental, and subject to change. It may be
-       * formally adopted in the future.
-       * 
- * - * optional int32 delay = 5; - * @return The delay. - */ - @java.lang.Override - public int getDelay() { - return delay_; - } - /** - *
-       * The current schedule deviation for the trip.  Delay should only be
-       * specified when the prediction is given relative to some existing schedule
-       * in GTFS.
-       * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-       * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-       * means that the vehicle is exactly on time.
-       * Delay information in StopTimeUpdates take precedent of trip-level delay
-       * information, such that trip-level delay is only propagated until the next
-       * stop along the trip with a StopTimeUpdate delay value specified.
-       * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
-       * value indicating when the delay value was last updated, in order to
-       * evaluate the freshness of the data.
-       * NOTE: This field is still experimental, and subject to change. It may be
-       * formally adopted in the future.
-       * 
- * - * optional int32 delay = 5; - * @param value The delay to set. - * @return This builder for chaining. - */ - public Builder setDelay(int value) { - - delay_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * The current schedule deviation for the trip.  Delay should only be
-       * specified when the prediction is given relative to some existing schedule
-       * in GTFS.
-       * Delay (in seconds) can be positive (meaning that the vehicle is late) or
-       * negative (meaning that the vehicle is ahead of schedule). Delay of 0
-       * means that the vehicle is exactly on time.
-       * Delay information in StopTimeUpdates take precedent of trip-level delay
-       * information, such that trip-level delay is only propagated until the next
-       * stop along the trip with a StopTimeUpdate delay value specified.
-       * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
-       * value indicating when the delay value was last updated, in order to
-       * evaluate the freshness of the data.
-       * NOTE: This field is still experimental, and subject to change. It may be
-       * formally adopted in the future.
-       * 
- * - * optional int32 delay = 5; - * @return This builder for chaining. - */ - public Builder clearDelay() { - bitField0_ = (bitField0_ & ~0x00000010); - delay_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:transit_realtime.TripUpdate) - } + public static final class TripUpdate extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage + implements + // @@protoc_insertion_point(message_implements:transit_realtime.TripUpdate) + TripUpdateOrBuilder { + private static final long serialVersionUID = 0L; + // Use TripUpdate.newBuilder() to construct. + private TripUpdate( + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { + super(builder); + } + private TripUpdate() { + stopTimeUpdate_ = java.util.Collections.emptyList(); + } - // @@protoc_insertion_point(class_scope:transit_realtime.TripUpdate) - private static final com.google.transit.realtime.GtfsRealtime.TripUpdate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TripUpdate(); - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TripUpdate(); + } - public static com.google.transit.realtime.GtfsRealtime.TripUpdate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_descriptor; + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TripUpdate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.TripUpdate.class, + com.google.transit.realtime.GtfsRealtime.TripUpdate.Builder.class); + } + + public interface StopTimeEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.TripUpdate.StopTimeEvent) + com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder { + + /** + *
+             * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+             * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+             * means that the vehicle is exactly on time.
+             * 
+ * + * optional int32 delay = 1; + * @return Whether the delay field is set. + */ + boolean hasDelay(); + /** + *
+             * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+             * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+             * means that the vehicle is exactly on time.
+             * 
+ * + * optional int32 delay = 1; + * @return The delay. + */ + int getDelay(); + + /** + *
+             * Event as absolute time.
+             * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
+             * UTC).
+             * 
+ * + * optional int64 time = 2; + * @return Whether the time field is set. + */ + boolean hasTime(); + /** + *
+             * Event as absolute time.
+             * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
+             * UTC).
+             * 
+ * + * optional int64 time = 2; + * @return The time. + */ + long getTime(); + + /** + *
+             * If uncertainty is omitted, it is interpreted as unknown.
+             * If the prediction is unknown or too uncertain, the delay (or time) field
+             * should be empty. In such case, the uncertainty field is ignored.
+             * To specify a completely certain prediction, set its uncertainty to 0.
+             * 
+ * + * optional int32 uncertainty = 3; + * @return Whether the uncertainty field is set. + */ + boolean hasUncertainty(); + /** + *
+             * If uncertainty is omitted, it is interpreted as unknown.
+             * If the prediction is unknown or too uncertain, the delay (or time) field
+             * should be empty. In such case, the uncertainty field is ignored.
+             * To specify a completely certain prediction, set its uncertainty to 0.
+             * 
+ * + * optional int32 uncertainty = 3; + * @return The uncertainty. + */ + int getUncertainty(); + } + /** + *
+         * Timing information for a single predicted event (either arrival or
+         * departure).
+         * Timing consists of delay and/or estimated time, and uncertainty.
+         * - delay should be used when the prediction is given relative to some
+         *   existing schedule in GTFS.
+         * - time should be given whether there is a predicted schedule or not. If
+         *   both time and delay are specified, time will take precedence
+         *   (although normally, time, if given for a scheduled trip, should be
+         *   equal to scheduled time in GTFS + delay).
+         * Uncertainty applies equally to both time and delay.
+         * The uncertainty roughly specifies the expected error in true delay (but
+         * note, we don't yet define its precise statistical meaning). It's possible
+         * for the uncertainty to be 0, for example for trains that are driven under
+         * computer timing control.
+         * 
+ * + * Protobuf type {@code transit_realtime.TripUpdate.StopTimeEvent} + */ + public static final class StopTimeEvent + extends + com.google.protobuf.GeneratedMessageV3.ExtendableMessage + implements + // @@protoc_insertion_point(message_implements:transit_realtime.TripUpdate.StopTimeEvent) + StopTimeEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use StopTimeEvent.newBuilder() to construct. + private StopTimeEvent( + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { + super(builder); + } + private StopTimeEvent() { + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StopTimeEvent(); + } - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripUpdate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeEvent_descriptor; + } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.class, + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder.class); + } - public interface VehiclePositionOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.VehiclePosition) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { + private int bitField0_; + public static final int DELAY_FIELD_NUMBER = 1; + private int delay_ = 0; + /** + *
+             * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+             * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+             * means that the vehicle is exactly on time.
+             * 
+ * + * optional int32 delay = 1; + * @return Whether the delay field is set. + */ + @java.lang.Override + public boolean hasDelay() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+             * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+             * means that the vehicle is exactly on time.
+             * 
+ * + * optional int32 delay = 1; + * @return The delay. + */ + @java.lang.Override + public int getDelay() { + return delay_; + } - /** - *
-     * The Trip that this vehicle is serving.
-     * Can be empty or partial if the vehicle can not be identified with a given
-     * trip instance.
-     * 
- * - * optional .transit_realtime.TripDescriptor trip = 1; - * @return Whether the trip field is set. - */ - boolean hasTrip(); - /** - *
-     * The Trip that this vehicle is serving.
-     * Can be empty or partial if the vehicle can not be identified with a given
-     * trip instance.
-     * 
- * - * optional .transit_realtime.TripDescriptor trip = 1; - * @return The trip. - */ - com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip(); - /** - *
-     * The Trip that this vehicle is serving.
-     * Can be empty or partial if the vehicle can not be identified with a given
-     * trip instance.
-     * 
- * - * optional .transit_realtime.TripDescriptor trip = 1; - */ - com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder(); + public static final int TIME_FIELD_NUMBER = 2; + private long time_ = 0L; + /** + *
+             * Event as absolute time.
+             * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
+             * UTC).
+             * 
+ * + * optional int64 time = 2; + * @return Whether the time field is set. + */ + @java.lang.Override + public boolean hasTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * Event as absolute time.
+             * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
+             * UTC).
+             * 
+ * + * optional int64 time = 2; + * @return The time. + */ + @java.lang.Override + public long getTime() { + return time_; + } - /** - *
-     * Additional information on the vehicle that is serving this trip.
-     * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 8; - * @return Whether the vehicle field is set. - */ - boolean hasVehicle(); - /** - *
-     * Additional information on the vehicle that is serving this trip.
-     * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 8; - * @return The vehicle. - */ - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getVehicle(); - /** - *
-     * Additional information on the vehicle that is serving this trip.
-     * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 8; - */ - com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder(); + public static final int UNCERTAINTY_FIELD_NUMBER = 3; + private int uncertainty_ = 0; + /** + *
+             * If uncertainty is omitted, it is interpreted as unknown.
+             * If the prediction is unknown or too uncertain, the delay (or time) field
+             * should be empty. In such case, the uncertainty field is ignored.
+             * To specify a completely certain prediction, set its uncertainty to 0.
+             * 
+ * + * optional int32 uncertainty = 3; + * @return Whether the uncertainty field is set. + */ + @java.lang.Override + public boolean hasUncertainty() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * If uncertainty is omitted, it is interpreted as unknown.
+             * If the prediction is unknown or too uncertain, the delay (or time) field
+             * should be empty. In such case, the uncertainty field is ignored.
+             * To specify a completely certain prediction, set its uncertainty to 0.
+             * 
+ * + * optional int32 uncertainty = 3; + * @return The uncertainty. + */ + @java.lang.Override + public int getUncertainty() { + return uncertainty_; + } - /** - *
-     * Current position of this vehicle.
-     * 
- * - * optional .transit_realtime.Position position = 2; - * @return Whether the position field is set. - */ - boolean hasPosition(); - /** - *
-     * Current position of this vehicle.
-     * 
- * - * optional .transit_realtime.Position position = 2; - * @return The position. - */ - com.google.transit.realtime.GtfsRealtime.Position getPosition(); - /** - *
-     * Current position of this vehicle.
-     * 
- * - * optional .transit_realtime.Position position = 2; - */ - com.google.transit.realtime.GtfsRealtime.PositionOrBuilder getPositionOrBuilder(); + 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; + } - /** - *
-     * The stop sequence index of the current stop. The meaning of
-     * current_stop_sequence (i.e., the stop that it refers to) is determined by
-     * current_status.
-     * If current_status is missing IN_TRANSIT_TO is assumed.
-     * 
- * - * optional uint32 current_stop_sequence = 3; - * @return Whether the currentStopSequence field is set. - */ - boolean hasCurrentStopSequence(); - /** - *
-     * The stop sequence index of the current stop. The meaning of
-     * current_stop_sequence (i.e., the stop that it refers to) is determined by
-     * current_status.
-     * If current_status is missing IN_TRANSIT_TO is assumed.
-     * 
- * - * optional uint32 current_stop_sequence = 3; - * @return The currentStopSequence. - */ - int getCurrentStopSequence(); + @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(2000, output); + getUnknownFields().writeTo(output); + } - /** - *
-     * Identifies the current stop. The value must be the same as in stops.txt in
-     * the corresponding GTFS feed.
-     * 
- * - * optional string stop_id = 7; - * @return Whether the stopId field is set. - */ - boolean hasStopId(); - /** - *
-     * Identifies the current stop. The value must be the same as in stops.txt in
-     * the corresponding GTFS feed.
-     * 
- * - * optional string stop_id = 7; - * @return The stopId. - */ - java.lang.String getStopId(); - /** - *
-     * Identifies the current stop. The value must be the same as in stops.txt in
-     * the corresponding GTFS feed.
-     * 
- * - * optional string stop_id = 7; - * @return The bytes for stopId. - */ - com.google.protobuf.ByteString - getStopIdBytes(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - /** - *
-     * The exact status of the vehicle with respect to the current stop.
-     * Ignored if current_stop_sequence is missing.
-     * 
- * - * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; - * @return Whether the currentStatus field is set. - */ - boolean hasCurrentStatus(); - /** - *
-     * The exact status of the vehicle with respect to the current stop.
-     * Ignored if current_stop_sequence is missing.
-     * 
- * - * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; - * @return The currentStatus. - */ - com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus getCurrentStatus(); + 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; + } - /** - *
-     * Moment at which the vehicle's position was measured. In POSIX time
-     * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
-     * 
- * - * optional uint64 timestamp = 5; - * @return Whether the timestamp field is set. - */ - boolean hasTimestamp(); - /** - *
-     * Moment at which the vehicle's position was measured. In POSIX time
-     * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
-     * 
- * - * optional uint64 timestamp = 5; - * @return The timestamp. - */ - long getTimestamp(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent other = (com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent) obj; - /** - * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; - * @return Whether the congestionLevel field is set. - */ - boolean hasCongestionLevel(); - /** - * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; - * @return The congestionLevel. - */ - com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel getCongestionLevel(); + 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; + } - /** - * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; - * @return Whether the occupancyStatus field is set. - */ - boolean hasOccupancyStatus(); - /** - * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; - * @return The occupancyStatus. - */ - com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus getOccupancyStatus(); - } - /** - *
-   * Realtime positioning information for a given vehicle.
-   * 
- * - * Protobuf type {@code transit_realtime.VehiclePosition} - */ - public static final class VehiclePosition extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - VehiclePosition> implements - // @@protoc_insertion_point(message_implements:transit_realtime.VehiclePosition) - VehiclePositionOrBuilder { - private static final long serialVersionUID = 0L; - // Use VehiclePosition.newBuilder() to construct. - private VehiclePosition(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private VehiclePosition() { - stopId_ = ""; - currentStatus_ = 2; - congestionLevel_ = 0; - occupancyStatus_ = 0; - } + @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; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VehiclePosition(); - } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehiclePosition_descriptor; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehiclePosition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.VehiclePosition.class, com.google.transit.realtime.GtfsRealtime.VehiclePosition.Builder.class); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+             * Timing information for a single predicted event (either arrival or
+             * departure).
+             * Timing consists of delay and/or estimated time, and uncertainty.
+             * - delay should be used when the prediction is given relative to some
+             *   existing schedule in GTFS.
+             * - time should be given whether there is a predicted schedule or not. If
+             *   both time and delay are specified, time will take precedence
+             *   (although normally, time, if given for a scheduled trip, should be
+             *   equal to scheduled time in GTFS + delay).
+             * Uncertainty applies equally to both time and delay.
+             * The uncertainty roughly specifies the expected error in true delay (but
+             * note, we don't yet define its precise statistical meaning). It's possible
+             * for the uncertainty to be 0, for example for trains that are driven under
+             * computer timing control.
+             * 
+ * + * Protobuf type {@code transit_realtime.TripUpdate.StopTimeEvent} + */ + public static final class Builder + extends + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.TripUpdate.StopTimeEvent) + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeEvent_descriptor; + } - /** - * Protobuf enum {@code transit_realtime.VehiclePosition.VehicleStopStatus} - */ - public enum VehicleStopStatus - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * The vehicle is just about to arrive at the stop (on a stop
-       * display, the vehicle symbol typically flashes).
-       * 
- * - * INCOMING_AT = 0; - */ - INCOMING_AT(0), - /** - *
-       * The vehicle is standing at the stop.
-       * 
- * - * STOPPED_AT = 1; - */ - STOPPED_AT(1), - /** - *
-       * The vehicle has departed and is in transit to the next stop.
-       * 
- * - * IN_TRANSIT_TO = 2; - */ - IN_TRANSIT_TO(2), - ; - - /** - *
-       * The vehicle is just about to arrive at the stop (on a stop
-       * display, the vehicle symbol typically flashes).
-       * 
- * - * INCOMING_AT = 0; - */ - public static final int INCOMING_AT_VALUE = 0; - /** - *
-       * The vehicle is standing at the stop.
-       * 
- * - * STOPPED_AT = 1; - */ - public static final int STOPPED_AT_VALUE = 1; - /** - *
-       * The vehicle has departed and is in transit to the next stop.
-       * 
- * - * IN_TRANSIT_TO = 2; - */ - public static final int IN_TRANSIT_TO_VALUE = 2; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static VehicleStopStatus valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static VehicleStopStatus forNumber(int value) { - switch (value) { - case 0: return INCOMING_AT; - case 1: return STOPPED_AT; - case 2: return IN_TRANSIT_TO; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - VehicleStopStatus> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public VehicleStopStatus findValueByNumber(int number) { - return VehicleStopStatus.forNumber(number); - } - }; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.class, + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder.class); + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDescriptor().getEnumTypes().get(0); - } - - private static final VehicleStopStatus[] VALUES = values(); - - public static VehicleStopStatus valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private VehicleStopStatus(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:transit_realtime.VehiclePosition.VehicleStopStatus) - } + // Construct using com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.newBuilder() + private Builder() { - /** - *
-     * Congestion level that is affecting this vehicle.
-     * 
- * - * Protobuf enum {@code transit_realtime.VehiclePosition.CongestionLevel} - */ - public enum CongestionLevel - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN_CONGESTION_LEVEL = 0; - */ - UNKNOWN_CONGESTION_LEVEL(0), - /** - * RUNNING_SMOOTHLY = 1; - */ - RUNNING_SMOOTHLY(1), - /** - * STOP_AND_GO = 2; - */ - STOP_AND_GO(2), - /** - * CONGESTION = 3; - */ - CONGESTION(3), - /** - *
-       * People leaving their cars.
-       * 
- * - * SEVERE_CONGESTION = 4; - */ - SEVERE_CONGESTION(4), - ; - - /** - * UNKNOWN_CONGESTION_LEVEL = 0; - */ - public static final int UNKNOWN_CONGESTION_LEVEL_VALUE = 0; - /** - * RUNNING_SMOOTHLY = 1; - */ - public static final int RUNNING_SMOOTHLY_VALUE = 1; - /** - * STOP_AND_GO = 2; - */ - public static final int STOP_AND_GO_VALUE = 2; - /** - * CONGESTION = 3; - */ - public static final int CONGESTION_VALUE = 3; - /** - *
-       * People leaving their cars.
-       * 
- * - * SEVERE_CONGESTION = 4; - */ - public static final int SEVERE_CONGESTION_VALUE = 4; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CongestionLevel valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static CongestionLevel forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_CONGESTION_LEVEL; - case 1: return RUNNING_SMOOTHLY; - case 2: return STOP_AND_GO; - case 3: return CONGESTION; - case 4: return SEVERE_CONGESTION; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CongestionLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CongestionLevel findValueByNumber(int number) { - return CongestionLevel.forNumber(number); - } - }; + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDescriptor().getEnumTypes().get(1); - } - - private static final CongestionLevel[] VALUES = values(); - - public static CongestionLevel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private CongestionLevel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:transit_realtime.VehiclePosition.CongestionLevel) - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - /** - *
-     * The degree of passenger occupancy of the vehicle. This field is still
-     * experimental, and subject to change. It may be formally adopted in the
-     * future.
-     * 
- * - * Protobuf enum {@code transit_realtime.VehiclePosition.OccupancyStatus} - */ - public enum OccupancyStatus - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * The vehicle is considered empty by most measures, and has few or no
-       * passengers onboard, but is still accepting passengers.
-       * 
- * - * EMPTY = 0; - */ - EMPTY(0), - /** - *
-       * The vehicle has a relatively large percentage of seats available.
-       * What percentage of free seats out of the total seats available is to be
-       * considered large enough to fall into this category is determined at the
-       * discretion of the producer.
-       * 
- * - * MANY_SEATS_AVAILABLE = 1; - */ - MANY_SEATS_AVAILABLE(1), - /** - *
-       * The vehicle has a relatively small percentage of seats available.
-       * What percentage of free seats out of the total seats available is to be
-       * considered small enough to fall into this category is determined at the
-       * discretion of the feed producer.
-       * 
- * - * FEW_SEATS_AVAILABLE = 2; - */ - FEW_SEATS_AVAILABLE(2), - /** - *
-       * The vehicle can currently accommodate only standing passengers.
-       * 
- * - * STANDING_ROOM_ONLY = 3; - */ - STANDING_ROOM_ONLY(3), - /** - *
-       * The vehicle can currently accommodate only standing passengers
-       * and has limited space for them.
-       * 
- * - * CRUSHED_STANDING_ROOM_ONLY = 4; - */ - CRUSHED_STANDING_ROOM_ONLY(4), - /** - *
-       * The vehicle is considered full by most measures, but may still be
-       * allowing passengers to board.
-       * 
- * - * FULL = 5; - */ - FULL(5), - /** - *
-       * The vehicle is not accepting additional passengers.
-       * 
- * - * NOT_ACCEPTING_PASSENGERS = 6; - */ - NOT_ACCEPTING_PASSENGERS(6), - ; - - /** - *
-       * The vehicle is considered empty by most measures, and has few or no
-       * passengers onboard, but is still accepting passengers.
-       * 
- * - * EMPTY = 0; - */ - public static final int EMPTY_VALUE = 0; - /** - *
-       * The vehicle has a relatively large percentage of seats available.
-       * What percentage of free seats out of the total seats available is to be
-       * considered large enough to fall into this category is determined at the
-       * discretion of the producer.
-       * 
- * - * MANY_SEATS_AVAILABLE = 1; - */ - public static final int MANY_SEATS_AVAILABLE_VALUE = 1; - /** - *
-       * The vehicle has a relatively small percentage of seats available.
-       * What percentage of free seats out of the total seats available is to be
-       * considered small enough to fall into this category is determined at the
-       * discretion of the feed producer.
-       * 
- * - * FEW_SEATS_AVAILABLE = 2; - */ - public static final int FEW_SEATS_AVAILABLE_VALUE = 2; - /** - *
-       * The vehicle can currently accommodate only standing passengers.
-       * 
- * - * STANDING_ROOM_ONLY = 3; - */ - public static final int STANDING_ROOM_ONLY_VALUE = 3; - /** - *
-       * The vehicle can currently accommodate only standing passengers
-       * and has limited space for them.
-       * 
- * - * CRUSHED_STANDING_ROOM_ONLY = 4; - */ - public static final int CRUSHED_STANDING_ROOM_ONLY_VALUE = 4; - /** - *
-       * The vehicle is considered full by most measures, but may still be
-       * allowing passengers to board.
-       * 
- * - * FULL = 5; - */ - public static final int FULL_VALUE = 5; - /** - *
-       * The vehicle is not accepting additional passengers.
-       * 
- * - * NOT_ACCEPTING_PASSENGERS = 6; - */ - public static final int NOT_ACCEPTING_PASSENGERS_VALUE = 6; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OccupancyStatus valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static OccupancyStatus forNumber(int value) { - switch (value) { - case 0: return EMPTY; - case 1: return MANY_SEATS_AVAILABLE; - case 2: return FEW_SEATS_AVAILABLE; - case 3: return STANDING_ROOM_ONLY; - case 4: return CRUSHED_STANDING_ROOM_ONLY; - case 5: return FULL; - case 6: return NOT_ACCEPTING_PASSENGERS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - OccupancyStatus> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OccupancyStatus findValueByNumber(int number) { - return OccupancyStatus.forNumber(number); - } - }; + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + delay_ = 0; + time_ = 0L; + uncertainty_ = 0; + return this; + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDescriptor().getEnumTypes().get(2); - } - - private static final OccupancyStatus[] VALUES = values(); - - public static OccupancyStatus valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private OccupancyStatus(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:transit_realtime.VehiclePosition.OccupancyStatus) - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeEvent_descriptor; + } - private int bitField0_; - public static final int TRIP_FIELD_NUMBER = 1; - private com.google.transit.realtime.GtfsRealtime.TripDescriptor trip_; - /** - *
-     * The Trip that this vehicle is serving.
-     * Can be empty or partial if the vehicle can not be identified with a given
-     * trip instance.
-     * 
- * - * optional .transit_realtime.TripDescriptor trip = 1; - * @return Whether the trip field is set. - */ - @java.lang.Override - public boolean hasTrip() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The Trip that this vehicle is serving.
-     * Can be empty or partial if the vehicle can not be identified with a given
-     * trip instance.
-     * 
- * - * optional .transit_realtime.TripDescriptor trip = 1; - * @return The trip. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip() { - return trip_ == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; - } - /** - *
-     * The Trip that this vehicle is serving.
-     * Can be empty or partial if the vehicle can not be identified with a given
-     * trip instance.
-     * 
- * - * optional .transit_realtime.TripDescriptor trip = 1; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder() { - return trip_ == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance(); + } - public static final int VEHICLE_FIELD_NUMBER = 8; - private com.google.transit.realtime.GtfsRealtime.VehicleDescriptor vehicle_; - /** - *
-     * Additional information on the vehicle that is serving this trip.
-     * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 8; - * @return Whether the vehicle field is set. - */ - @java.lang.Override - public boolean hasVehicle() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Additional information on the vehicle that is serving this trip.
-     * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 8; - * @return The vehicle. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getVehicle() { - return vehicle_ == null ? com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() : vehicle_; - } - /** - *
-     * Additional information on the vehicle that is serving this trip.
-     * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 8; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder() { - return vehicle_ == null ? com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() : vehicle_; - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent build() { + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int POSITION_FIELD_NUMBER = 2; - private com.google.transit.realtime.GtfsRealtime.Position position_; - /** - *
-     * Current position of this vehicle.
-     * 
- * - * optional .transit_realtime.Position position = 2; - * @return Whether the position field is set. - */ - @java.lang.Override - public boolean hasPosition() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Current position of this vehicle.
-     * 
- * - * optional .transit_realtime.Position position = 2; - * @return The position. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.Position getPosition() { - return position_ == null ? com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance() : position_; - } - /** - *
-     * Current position of this vehicle.
-     * 
- * - * optional .transit_realtime.Position position = 2; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.PositionOrBuilder getPositionOrBuilder() { - return position_ == null ? com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance() : position_; - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent buildPartial() { + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent result = new com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static final int CURRENT_STOP_SEQUENCE_FIELD_NUMBER = 3; - private int currentStopSequence_ = 0; - /** - *
-     * The stop sequence index of the current stop. The meaning of
-     * current_stop_sequence (i.e., the stop that it refers to) is determined by
-     * current_status.
-     * If current_status is missing IN_TRANSIT_TO is assumed.
-     * 
- * - * optional uint32 current_stop_sequence = 3; - * @return Whether the currentStopSequence field is set. - */ - @java.lang.Override - public boolean hasCurrentStopSequence() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * The stop sequence index of the current stop. The meaning of
-     * current_stop_sequence (i.e., the stop that it refers to) is determined by
-     * current_status.
-     * If current_status is missing IN_TRANSIT_TO is assumed.
-     * 
- * - * optional uint32 current_stop_sequence = 3; - * @return The currentStopSequence. - */ - @java.lang.Override - public int getCurrentStopSequence() { - return currentStopSequence_; - } + private void buildPartial0(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.delay_ = delay_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.time_ = time_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uncertainty_ = uncertainty_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } - public static final int STOP_ID_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private volatile java.lang.Object stopId_ = ""; - /** - *
-     * Identifies the current stop. The value must be the same as in stops.txt in
-     * the corresponding GTFS feed.
-     * 
- * - * optional string stop_id = 7; - * @return Whether the stopId field is set. - */ - @java.lang.Override - public boolean hasStopId() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * Identifies the current stop. The value must be the same as in stops.txt in
-     * the corresponding GTFS feed.
-     * 
- * - * optional string stop_id = 7; - * @return The stopId. - */ - @java.lang.Override - public java.lang.String getStopId() { - java.lang.Object ref = stopId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopId_ = s; - } - return s; - } - } - /** - *
-     * Identifies the current stop. The value must be the same as in stops.txt in
-     * the corresponding GTFS feed.
-     * 
- * - * optional string stop_id = 7; - * @return The bytes for stopId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStopIdBytes() { - java.lang.Object ref = stopId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension, + Type value) { + return super.setExtension(extension, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + int index, Type value) { + return super.setExtension(extension, index, value); + } + @java.lang.Override + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + Type value) { + return super.addExtension(extension, value); + } + @java.lang.Override + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension) { + return super.clearExtension(extension); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent) { + return mergeFrom((com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int CURRENT_STATUS_FIELD_NUMBER = 4; - private int currentStatus_ = 2; - /** - *
-     * The exact status of the vehicle with respect to the current stop.
-     * Ignored if current_stop_sequence is missing.
-     * 
- * - * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; - * @return Whether the currentStatus field is set. - */ - @java.lang.Override public boolean hasCurrentStatus() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * The exact status of the vehicle with respect to the current stop.
-     * Ignored if current_stop_sequence is missing.
-     * 
- * - * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; - * @return The currentStatus. - */ - @java.lang.Override public com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus getCurrentStatus() { - com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus result = com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus.forNumber(currentStatus_); - return result == null ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus.IN_TRANSIT_TO : result; - } + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent other) { + if (other == com.google.transit.realtime.GtfsRealtime.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; + } - public static final int TIMESTAMP_FIELD_NUMBER = 5; - private long timestamp_ = 0L; - /** - *
-     * Moment at which the vehicle's position was measured. In POSIX time
-     * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
-     * 
- * - * optional uint64 timestamp = 5; - * @return Whether the timestamp field is set. - */ - @java.lang.Override - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * Moment at which the vehicle's position was measured. In POSIX time
-     * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
-     * 
- * - * optional uint64 timestamp = 5; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } + @java.lang.Override + public final boolean isInitialized() { + if (!extensionsAreInitialized()) { + return false; + } + return true; + } - public static final int CONGESTION_LEVEL_FIELD_NUMBER = 6; - private int congestionLevel_ = 0; - /** - * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; - * @return Whether the congestionLevel field is set. - */ - @java.lang.Override public boolean hasCongestionLevel() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; - * @return The congestionLevel. - */ - @java.lang.Override public com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel getCongestionLevel() { - com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel result = com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel.forNumber(congestionLevel_); - return result == null ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel.UNKNOWN_CONGESTION_LEVEL : result; - } + @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_; + /** + *
+                 * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+                 * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+                 * means that the vehicle is exactly on time.
+                 * 
+ * + * optional int32 delay = 1; + * @return Whether the delay field is set. + */ + @java.lang.Override + public boolean hasDelay() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+                 * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+                 * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+                 * means that the vehicle is exactly on time.
+                 * 
+ * + * optional int32 delay = 1; + * @return The delay. + */ + @java.lang.Override + public int getDelay() { + return delay_; + } + /** + *
+                 * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+                 * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+                 * means that the vehicle is exactly on time.
+                 * 
+ * + * optional int32 delay = 1; + * @param value The delay to set. + * @return This builder for chaining. + */ + public Builder setDelay(int value) { + + delay_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+                 * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+                 * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+                 * means that the vehicle is exactly on time.
+                 * 
+ * + * optional int32 delay = 1; + * @return This builder for chaining. + */ + public Builder clearDelay() { + bitField0_ = (bitField0_ & ~0x00000001); + delay_ = 0; + onChanged(); + return this; + } - public static final int OCCUPANCY_STATUS_FIELD_NUMBER = 9; - private int occupancyStatus_ = 0; - /** - * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; - * @return Whether the occupancyStatus field is set. - */ - @java.lang.Override public boolean hasOccupancyStatus() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; - * @return The occupancyStatus. - */ - @java.lang.Override public com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus getOccupancyStatus() { - com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus result = com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus.forNumber(occupancyStatus_); - return result == null ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus.EMPTY : result; - } + private long time_; + /** + *
+                 * Event as absolute time.
+                 * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
+                 * UTC).
+                 * 
+ * + * optional int64 time = 2; + * @return Whether the time field is set. + */ + @java.lang.Override + public boolean hasTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+                 * Event as absolute time.
+                 * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
+                 * UTC).
+                 * 
+ * + * optional int64 time = 2; + * @return The time. + */ + @java.lang.Override + public long getTime() { + return time_; + } + /** + *
+                 * Event as absolute time.
+                 * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
+                 * UTC).
+                 * 
+ * + * optional int64 time = 2; + * @param value The time to set. + * @return This builder for chaining. + */ + public Builder setTime(long value) { + + time_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+                 * Event as absolute time.
+                 * In Unix time (i.e., number of seconds since January 1st 1970 00:00:00
+                 * UTC).
+                 * 
+ * + * optional int64 time = 2; + * @return This builder for chaining. + */ + public Builder clearTime() { + bitField0_ = (bitField0_ & ~0x00000002); + time_ = 0L; + onChanged(); + return this; + } - 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; - } - } - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + private int uncertainty_; + /** + *
+                 * If uncertainty is omitted, it is interpreted as unknown.
+                 * If the prediction is unknown or too uncertain, the delay (or time) field
+                 * should be empty. In such case, the uncertainty field is ignored.
+                 * To specify a completely certain prediction, set its uncertainty to 0.
+                 * 
+ * + * optional int32 uncertainty = 3; + * @return Whether the uncertainty field is set. + */ + @java.lang.Override + public boolean hasUncertainty() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+                 * If uncertainty is omitted, it is interpreted as unknown.
+                 * If the prediction is unknown or too uncertain, the delay (or time) field
+                 * should be empty. In such case, the uncertainty field is ignored.
+                 * To specify a completely certain prediction, set its uncertainty to 0.
+                 * 
+ * + * optional int32 uncertainty = 3; + * @return The uncertainty. + */ + @java.lang.Override + public int getUncertainty() { + return uncertainty_; + } + /** + *
+                 * If uncertainty is omitted, it is interpreted as unknown.
+                 * If the prediction is unknown or too uncertain, the delay (or time) field
+                 * should be empty. In such case, the uncertainty field is ignored.
+                 * To specify a completely certain prediction, set its uncertainty to 0.
+                 * 
+ * + * optional int32 uncertainty = 3; + * @param value The uncertainty to set. + * @return This builder for chaining. + */ + public Builder setUncertainty(int value) { + + uncertainty_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+                 * If uncertainty is omitted, it is interpreted as unknown.
+                 * If the prediction is unknown or too uncertain, the delay (or time) field
+                 * should be empty. In such case, the uncertainty field is ignored.
+                 * To specify a completely certain prediction, set its uncertainty to 0.
+                 * 
+ * + * optional int32 uncertainty = 3; + * @return This builder for chaining. + */ + public Builder clearUncertainty() { + bitField0_ = (bitField0_ & ~0x00000004); + uncertainty_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @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_); - } - extensionWriter.writeUntil(2000, output); - getUnknownFields().writeTo(output); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @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_); - } - size += extensionsSerializedSize(); - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + // @@protoc_insertion_point(builder_scope:transit_realtime.TripUpdate.StopTimeEvent) + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.VehiclePosition)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.VehiclePosition other = (com.google.transit.realtime.GtfsRealtime.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } + // @@protoc_insertion_point(class_scope:transit_realtime.TripUpdate.StopTimeEvent) + private static final com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent(); + } - @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_; - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopTimeEvent parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.VehiclePosition prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Realtime positioning information for a given vehicle.
-     * 
- * - * Protobuf type {@code transit_realtime.VehiclePosition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< - com.google.transit.realtime.GtfsRealtime.VehiclePosition, Builder> implements - // @@protoc_insertion_point(builder_implements:transit_realtime.VehiclePosition) - com.google.transit.realtime.GtfsRealtime.VehiclePositionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehiclePosition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehiclePosition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.VehiclePosition.class, com.google.transit.realtime.GtfsRealtime.VehiclePosition.Builder.class); - } - - // Construct using com.google.transit.realtime.GtfsRealtime.VehiclePosition.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTripFieldBuilder(); - getVehicleFieldBuilder(); - getPositionFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - trip_ = null; - if (tripBuilder_ != null) { - tripBuilder_.dispose(); - tripBuilder_ = null; - } - vehicle_ = null; - if (vehicleBuilder_ != null) { - vehicleBuilder_.dispose(); - vehicleBuilder_ = null; - } - position_ = null; - if (positionBuilder_ != null) { - positionBuilder_.dispose(); - positionBuilder_ = null; - } - currentStopSequence_ = 0; - stopId_ = ""; - currentStatus_ = 2; - timestamp_ = 0L; - congestionLevel_ = 0; - occupancyStatus_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehiclePosition_descriptor; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehiclePosition getDefaultInstanceForType() { - return com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDefaultInstance(); - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehiclePosition build() { - com.google.transit.realtime.GtfsRealtime.VehiclePosition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehiclePosition buildPartial() { - com.google.transit.realtime.GtfsRealtime.VehiclePosition result = new com.google.transit.realtime.GtfsRealtime.VehiclePosition(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.transit.realtime.GtfsRealtime.VehiclePosition result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.trip_ = tripBuilder_ == null - ? trip_ - : tripBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.vehicle_ = vehicleBuilder_ == null - ? vehicle_ - : vehicleBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.position_ = positionBuilder_ == null - ? position_ - : positionBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.currentStopSequence_ = currentStopSequence_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.stopId_ = stopId_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.currentStatus_ = currentStatus_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.timestamp_ = timestamp_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.congestionLevel_ = congestionLevel_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.occupancyStatus_ = occupancyStatus_; - to_bitField0_ |= 0x00000100; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.VehiclePosition, Type> extension, - Type value) { - return super.setExtension(extension, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.VehiclePosition, java.util.List> extension, - int index, Type value) { - return super.setExtension(extension, index, value); - } - @java.lang.Override - public Builder addExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.VehiclePosition, java.util.List> extension, - Type value) { - return super.addExtension(extension, value); - } - @java.lang.Override - public Builder clearExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.VehiclePosition, ?> extension) { - return super.clearExtension(extension); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.transit.realtime.GtfsRealtime.VehiclePosition) { - return mergeFrom((com.google.transit.realtime.GtfsRealtime.VehiclePosition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.VehiclePosition other) { - if (other == com.google.transit.realtime.GtfsRealtime.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()); - } - 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; - } - } - 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(); - com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus tmpValue = - com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(4, tmpRaw); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StopTimePropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.TripUpdate.StopTimeProperties) + com.google.protobuf.MessageOrBuilder { + + /** + *
+             * Supports real-time stop assignments. Refers to a stop_id defined in the
+             * GTFS stops.txt.
+             * The new assigned_stop_id should not result in a significantly different
+             * trip experience for the end user than the stop_id defined in GTFS
+             * stop_times.txt. In other words, the end user should not view this new
+             * stop_id as an "unusual change" if the new stop was presented within an
+             * app without any additional context. For example, this field is intended
+             * to be used for platform assignments by using a stop_id that belongs to
+             * the same station as the stop originally defined in GTFS stop_times.txt.
+             * To assign a stop without providing any real-time arrival or departure
+             * predictions, populate this field and set
+             * StopTimeUpdate.schedule_relationship = NO_DATA.
+             * If this field is populated, StopTimeUpdate.stop_sequence must be
+             * populated and StopTimeUpdate.stop_id should not be populated. Stop
+             * assignments should be reflected in other GTFS-realtime fields as well
+             * (e.g., VehiclePosition.stop_id).
+             * Caution: this field is still experimental, and subject to change. It
+             * may be formally adopted in the future.
+             * 
+ * + * optional string assigned_stop_id = 1; + * @return Whether the assignedStopId field is set. + */ + boolean hasAssignedStopId(); + /** + *
+             * Supports real-time stop assignments. Refers to a stop_id defined in the
+             * GTFS stops.txt.
+             * The new assigned_stop_id should not result in a significantly different
+             * trip experience for the end user than the stop_id defined in GTFS
+             * stop_times.txt. In other words, the end user should not view this new
+             * stop_id as an "unusual change" if the new stop was presented within an
+             * app without any additional context. For example, this field is intended
+             * to be used for platform assignments by using a stop_id that belongs to
+             * the same station as the stop originally defined in GTFS stop_times.txt.
+             * To assign a stop without providing any real-time arrival or departure
+             * predictions, populate this field and set
+             * StopTimeUpdate.schedule_relationship = NO_DATA.
+             * If this field is populated, StopTimeUpdate.stop_sequence must be
+             * populated and StopTimeUpdate.stop_id should not be populated. Stop
+             * assignments should be reflected in other GTFS-realtime fields as well
+             * (e.g., VehiclePosition.stop_id).
+             * Caution: this field is still experimental, and subject to change. It
+             * may be formally adopted in the future.
+             * 
+ * + * optional string assigned_stop_id = 1; + * @return The assignedStopId. + */ + java.lang.String getAssignedStopId(); + /** + *
+             * Supports real-time stop assignments. Refers to a stop_id defined in the
+             * GTFS stops.txt.
+             * The new assigned_stop_id should not result in a significantly different
+             * trip experience for the end user than the stop_id defined in GTFS
+             * stop_times.txt. In other words, the end user should not view this new
+             * stop_id as an "unusual change" if the new stop was presented within an
+             * app without any additional context. For example, this field is intended
+             * to be used for platform assignments by using a stop_id that belongs to
+             * the same station as the stop originally defined in GTFS stop_times.txt.
+             * To assign a stop without providing any real-time arrival or departure
+             * predictions, populate this field and set
+             * StopTimeUpdate.schedule_relationship = NO_DATA.
+             * If this field is populated, StopTimeUpdate.stop_sequence must be
+             * populated and StopTimeUpdate.stop_id should not be populated. Stop
+             * assignments should be reflected in other GTFS-realtime fields as well
+             * (e.g., VehiclePosition.stop_id).
+             * Caution: this field is still experimental, and subject to change. It
+             * may be formally adopted in the future.
+             * 
+ * + * optional string assigned_stop_id = 1; + * @return The bytes for assignedStopId. + */ + com.google.protobuf.ByteString getAssignedStopIdBytes(); + } + /** + *
+         * Realtime update for certain properties defined within GTFS stop_times.txt.
+         * Caution: this message is still experimental, and subject to change. It
+         * may be formally adopted in the future.
+         * 
+ * + * Protobuf type {@code transit_realtime.TripUpdate.StopTimeProperties} + */ + public static final class StopTimeProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:transit_realtime.TripUpdate.StopTimeProperties) + StopTimePropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use StopTimeProperties.newBuilder() to construct. + private StopTimeProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StopTimeProperties() { + assignedStopId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StopTimeProperties(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.class, + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.Builder.class); + } + + private int bitField0_; + public static final int ASSIGNED_STOP_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object assignedStopId_ = ""; + /** + *
+             * Supports real-time stop assignments. Refers to a stop_id defined in the
+             * GTFS stops.txt.
+             * The new assigned_stop_id should not result in a significantly different
+             * trip experience for the end user than the stop_id defined in GTFS
+             * stop_times.txt. In other words, the end user should not view this new
+             * stop_id as an "unusual change" if the new stop was presented within an
+             * app without any additional context. For example, this field is intended
+             * to be used for platform assignments by using a stop_id that belongs to
+             * the same station as the stop originally defined in GTFS stop_times.txt.
+             * To assign a stop without providing any real-time arrival or departure
+             * predictions, populate this field and set
+             * StopTimeUpdate.schedule_relationship = NO_DATA.
+             * If this field is populated, StopTimeUpdate.stop_sequence must be
+             * populated and StopTimeUpdate.stop_id should not be populated. Stop
+             * assignments should be reflected in other GTFS-realtime fields as well
+             * (e.g., VehiclePosition.stop_id).
+             * Caution: this field is still experimental, and subject to change. It
+             * may be formally adopted in the future.
+             * 
+ * + * optional string assigned_stop_id = 1; + * @return Whether the assignedStopId field is set. + */ + @java.lang.Override + public boolean hasAssignedStopId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Supports real-time stop assignments. Refers to a stop_id defined in the
+             * GTFS stops.txt.
+             * The new assigned_stop_id should not result in a significantly different
+             * trip experience for the end user than the stop_id defined in GTFS
+             * stop_times.txt. In other words, the end user should not view this new
+             * stop_id as an "unusual change" if the new stop was presented within an
+             * app without any additional context. For example, this field is intended
+             * to be used for platform assignments by using a stop_id that belongs to
+             * the same station as the stop originally defined in GTFS stop_times.txt.
+             * To assign a stop without providing any real-time arrival or departure
+             * predictions, populate this field and set
+             * StopTimeUpdate.schedule_relationship = NO_DATA.
+             * If this field is populated, StopTimeUpdate.stop_sequence must be
+             * populated and StopTimeUpdate.stop_id should not be populated. Stop
+             * assignments should be reflected in other GTFS-realtime fields as well
+             * (e.g., VehiclePosition.stop_id).
+             * Caution: this field is still experimental, and subject to change. It
+             * may be formally adopted in the future.
+             * 
+ * + * optional string assigned_stop_id = 1; + * @return The assignedStopId. + */ + @java.lang.Override + public java.lang.String getAssignedStopId() { + java.lang.Object ref = assignedStopId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - currentStatus_ = tmpRaw; - bitField0_ |= 0x00000020; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + assignedStopId_ = s; + } + return s; } - break; - } // case 32 - case 40: { - timestamp_ = input.readUInt64(); - bitField0_ |= 0x00000040; - break; - } // case 40 - case 48: { - int tmpRaw = input.readEnum(); - com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel tmpValue = - com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(6, tmpRaw); + } + /** + *
+             * Supports real-time stop assignments. Refers to a stop_id defined in the
+             * GTFS stops.txt.
+             * The new assigned_stop_id should not result in a significantly different
+             * trip experience for the end user than the stop_id defined in GTFS
+             * stop_times.txt. In other words, the end user should not view this new
+             * stop_id as an "unusual change" if the new stop was presented within an
+             * app without any additional context. For example, this field is intended
+             * to be used for platform assignments by using a stop_id that belongs to
+             * the same station as the stop originally defined in GTFS stop_times.txt.
+             * To assign a stop without providing any real-time arrival or departure
+             * predictions, populate this field and set
+             * StopTimeUpdate.schedule_relationship = NO_DATA.
+             * If this field is populated, StopTimeUpdate.stop_sequence must be
+             * populated and StopTimeUpdate.stop_id should not be populated. Stop
+             * assignments should be reflected in other GTFS-realtime fields as well
+             * (e.g., VehiclePosition.stop_id).
+             * Caution: this field is still experimental, and subject to change. It
+             * may be formally adopted in the future.
+             * 
+ * + * optional string assigned_stop_id = 1; + * @return The bytes for assignedStopId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssignedStopIdBytes() { + java.lang.Object ref = assignedStopId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + assignedStopId_ = b; + return b; } else { - congestionLevel_ = tmpRaw; - bitField0_ |= 0x00000080; + return (com.google.protobuf.ByteString) ref; } - 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(); - com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus tmpValue = - com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(9, tmpRaw); - } else { - occupancyStatus_ = tmpRaw; - bitField0_ |= 0x00000100; - } - break; - } // case 72 - 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.transit.realtime.GtfsRealtime.TripDescriptor trip_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripDescriptor, com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder> tripBuilder_; - /** - *
-       * The Trip that this vehicle is serving.
-       * Can be empty or partial if the vehicle can not be identified with a given
-       * trip instance.
-       * 
- * - * optional .transit_realtime.TripDescriptor trip = 1; - * @return Whether the trip field is set. - */ - public boolean hasTrip() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * The Trip that this vehicle is serving.
-       * Can be empty or partial if the vehicle can not be identified with a given
-       * trip instance.
-       * 
- * - * optional .transit_realtime.TripDescriptor trip = 1; - * @return The trip. - */ - public com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip() { - if (tripBuilder_ == null) { - return trip_ == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; - } else { - return tripBuilder_.getMessage(); - } - } - /** - *
-       * The Trip that this vehicle is serving.
-       * Can be empty or partial if the vehicle can not be identified with a given
-       * trip instance.
-       * 
- * - * optional .transit_realtime.TripDescriptor trip = 1; - */ - public Builder setTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { - if (tripBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trip_ = value; - } else { - tripBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The Trip that this vehicle is serving.
-       * Can be empty or partial if the vehicle can not be identified with a given
-       * trip instance.
-       * 
- * - * optional .transit_realtime.TripDescriptor trip = 1; - */ - public Builder setTrip( - com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder builderForValue) { - if (tripBuilder_ == null) { - trip_ = builderForValue.build(); - } else { - tripBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The Trip that this vehicle is serving.
-       * Can be empty or partial if the vehicle can not be identified with a given
-       * trip instance.
-       * 
- * - * optional .transit_realtime.TripDescriptor trip = 1; - */ - public Builder mergeTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { - if (tripBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - trip_ != null && - trip_ != com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance()) { - getTripBuilder().mergeFrom(value); - } else { - trip_ = value; - } - } else { - tripBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The Trip that this vehicle is serving.
-       * Can be empty or partial if the vehicle can not be identified with a given
-       * trip instance.
-       * 
- * - * optional .transit_realtime.TripDescriptor trip = 1; - */ - public Builder clearTrip() { - bitField0_ = (bitField0_ & ~0x00000001); - trip_ = null; - if (tripBuilder_ != null) { - tripBuilder_.dispose(); - tripBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The Trip that this vehicle is serving.
-       * Can be empty or partial if the vehicle can not be identified with a given
-       * trip instance.
-       * 
- * - * optional .transit_realtime.TripDescriptor trip = 1; - */ - public com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder getTripBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getTripFieldBuilder().getBuilder(); - } - /** - *
-       * The Trip that this vehicle is serving.
-       * Can be empty or partial if the vehicle can not be identified with a given
-       * trip instance.
-       * 
- * - * optional .transit_realtime.TripDescriptor trip = 1; - */ - public com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder() { - if (tripBuilder_ != null) { - return tripBuilder_.getMessageOrBuilder(); - } else { - return trip_ == null ? - com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; - } - } - /** - *
-       * The Trip that this vehicle is serving.
-       * Can be empty or partial if the vehicle can not be identified with a given
-       * trip instance.
-       * 
- * - * optional .transit_realtime.TripDescriptor trip = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripDescriptor, com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder> - getTripFieldBuilder() { - if (tripBuilder_ == null) { - tripBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripDescriptor, com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder>( - getTrip(), - getParentForChildren(), - isClean()); - trip_ = null; - } - return tripBuilder_; - } - - private com.google.transit.realtime.GtfsRealtime.VehicleDescriptor vehicle_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor, com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder> vehicleBuilder_; - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 8; - * @return Whether the vehicle field is set. - */ - public boolean hasVehicle() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 8; - * @return The vehicle. - */ - public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getVehicle() { - if (vehicleBuilder_ == null) { - return vehicle_ == null ? com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() : vehicle_; - } else { - return vehicleBuilder_.getMessage(); - } - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 8; - */ - public Builder setVehicle(com.google.transit.realtime.GtfsRealtime.VehicleDescriptor value) { - if (vehicleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vehicle_ = value; - } else { - vehicleBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 8; - */ - public Builder setVehicle( - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder builderForValue) { - if (vehicleBuilder_ == null) { - vehicle_ = builderForValue.build(); - } else { - vehicleBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 8; - */ - public Builder mergeVehicle(com.google.transit.realtime.GtfsRealtime.VehicleDescriptor value) { - if (vehicleBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - vehicle_ != null && - vehicle_ != com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance()) { - getVehicleBuilder().mergeFrom(value); - } else { - vehicle_ = value; - } - } else { - vehicleBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 8; - */ - public Builder clearVehicle() { - bitField0_ = (bitField0_ & ~0x00000002); - vehicle_ = null; - if (vehicleBuilder_ != null) { - vehicleBuilder_.dispose(); - vehicleBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 8; - */ - public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder getVehicleBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getVehicleFieldBuilder().getBuilder(); - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 8; - */ - public com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder() { - if (vehicleBuilder_ != null) { - return vehicleBuilder_.getMessageOrBuilder(); - } else { - return vehicle_ == null ? - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() : vehicle_; - } - } - /** - *
-       * Additional information on the vehicle that is serving this trip.
-       * 
- * - * optional .transit_realtime.VehicleDescriptor vehicle = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor, com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder> - getVehicleFieldBuilder() { - if (vehicleBuilder_ == null) { - vehicleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor, com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder>( - getVehicle(), - getParentForChildren(), - isClean()); - vehicle_ = null; - } - return vehicleBuilder_; - } - - private com.google.transit.realtime.GtfsRealtime.Position position_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.Position, com.google.transit.realtime.GtfsRealtime.Position.Builder, com.google.transit.realtime.GtfsRealtime.PositionOrBuilder> positionBuilder_; - /** - *
-       * Current position of this vehicle.
-       * 
- * - * optional .transit_realtime.Position position = 2; - * @return Whether the position field is set. - */ - public boolean hasPosition() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * Current position of this vehicle.
-       * 
- * - * optional .transit_realtime.Position position = 2; - * @return The position. - */ - public com.google.transit.realtime.GtfsRealtime.Position getPosition() { - if (positionBuilder_ == null) { - return position_ == null ? com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance() : position_; - } else { - return positionBuilder_.getMessage(); - } - } - /** - *
-       * Current position of this vehicle.
-       * 
- * - * optional .transit_realtime.Position position = 2; - */ - public Builder setPosition(com.google.transit.realtime.GtfsRealtime.Position value) { - if (positionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - position_ = value; - } else { - positionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Current position of this vehicle.
-       * 
- * - * optional .transit_realtime.Position position = 2; - */ - public Builder setPosition( - com.google.transit.realtime.GtfsRealtime.Position.Builder builderForValue) { - if (positionBuilder_ == null) { - position_ = builderForValue.build(); - } else { - positionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Current position of this vehicle.
-       * 
- * - * optional .transit_realtime.Position position = 2; - */ - public Builder mergePosition(com.google.transit.realtime.GtfsRealtime.Position value) { - if (positionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - position_ != null && - position_ != com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance()) { - getPositionBuilder().mergeFrom(value); - } else { - position_ = value; - } - } else { - positionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Current position of this vehicle.
-       * 
- * - * optional .transit_realtime.Position position = 2; - */ - public Builder clearPosition() { - bitField0_ = (bitField0_ & ~0x00000004); - position_ = null; - if (positionBuilder_ != null) { - positionBuilder_.dispose(); - positionBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Current position of this vehicle.
-       * 
- * - * optional .transit_realtime.Position position = 2; - */ - public com.google.transit.realtime.GtfsRealtime.Position.Builder getPositionBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getPositionFieldBuilder().getBuilder(); - } - /** - *
-       * Current position of this vehicle.
-       * 
- * - * optional .transit_realtime.Position position = 2; - */ - public com.google.transit.realtime.GtfsRealtime.PositionOrBuilder getPositionOrBuilder() { - if (positionBuilder_ != null) { - return positionBuilder_.getMessageOrBuilder(); - } else { - return position_ == null ? - com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance() : position_; - } - } - /** - *
-       * Current position of this vehicle.
-       * 
- * - * optional .transit_realtime.Position position = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.Position, com.google.transit.realtime.GtfsRealtime.Position.Builder, com.google.transit.realtime.GtfsRealtime.PositionOrBuilder> - getPositionFieldBuilder() { - if (positionBuilder_ == null) { - positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.Position, com.google.transit.realtime.GtfsRealtime.Position.Builder, com.google.transit.realtime.GtfsRealtime.PositionOrBuilder>( - getPosition(), - getParentForChildren(), - isClean()); - position_ = null; - } - return positionBuilder_; - } - - private int currentStopSequence_ ; - /** - *
-       * The stop sequence index of the current stop. The meaning of
-       * current_stop_sequence (i.e., the stop that it refers to) is determined by
-       * current_status.
-       * If current_status is missing IN_TRANSIT_TO is assumed.
-       * 
- * - * optional uint32 current_stop_sequence = 3; - * @return Whether the currentStopSequence field is set. - */ - @java.lang.Override - public boolean hasCurrentStopSequence() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-       * The stop sequence index of the current stop. The meaning of
-       * current_stop_sequence (i.e., the stop that it refers to) is determined by
-       * current_status.
-       * If current_status is missing IN_TRANSIT_TO is assumed.
-       * 
- * - * optional uint32 current_stop_sequence = 3; - * @return The currentStopSequence. - */ - @java.lang.Override - public int getCurrentStopSequence() { - return currentStopSequence_; - } - /** - *
-       * The stop sequence index of the current stop. The meaning of
-       * current_stop_sequence (i.e., the stop that it refers to) is determined by
-       * current_status.
-       * If current_status is missing IN_TRANSIT_TO is assumed.
-       * 
- * - * optional uint32 current_stop_sequence = 3; - * @param value The currentStopSequence to set. - * @return This builder for chaining. - */ - public Builder setCurrentStopSequence(int value) { - - currentStopSequence_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * The stop sequence index of the current stop. The meaning of
-       * current_stop_sequence (i.e., the stop that it refers to) is determined by
-       * current_status.
-       * If current_status is missing IN_TRANSIT_TO is assumed.
-       * 
- * - * optional uint32 current_stop_sequence = 3; - * @return This builder for chaining. - */ - public Builder clearCurrentStopSequence() { - bitField0_ = (bitField0_ & ~0x00000008); - currentStopSequence_ = 0; - onChanged(); - return this; - } - - private java.lang.Object stopId_ = ""; - /** - *
-       * Identifies the current stop. The value must be the same as in stops.txt in
-       * the corresponding GTFS feed.
-       * 
- * - * optional string stop_id = 7; - * @return Whether the stopId field is set. - */ - public boolean hasStopId() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-       * Identifies the current stop. The value must be the same as in stops.txt in
-       * the corresponding GTFS feed.
-       * 
- * - * optional string stop_id = 7; - * @return The stopId. - */ - public java.lang.String getStopId() { - java.lang.Object ref = stopId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Identifies the current stop. The value must be the same as in stops.txt in
-       * the corresponding GTFS feed.
-       * 
- * - * optional string stop_id = 7; - * @return The bytes for stopId. - */ - public com.google.protobuf.ByteString - getStopIdBytes() { - java.lang.Object ref = stopId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Identifies the current stop. The value must be the same as in stops.txt in
-       * the corresponding GTFS feed.
-       * 
- * - * optional string stop_id = 7; - * @param value The stopId to set. - * @return This builder for chaining. - */ - public Builder setStopId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - stopId_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * Identifies the current stop. The value must be the same as in stops.txt in
-       * the corresponding GTFS feed.
-       * 
- * - * optional string stop_id = 7; - * @return This builder for chaining. - */ - public Builder clearStopId() { - stopId_ = getDefaultInstance().getStopId(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-       * Identifies the current stop. The value must be the same as in stops.txt in
-       * the corresponding GTFS feed.
-       * 
- * - * optional string stop_id = 7; - * @param value The bytes for stopId to set. - * @return This builder for chaining. - */ - public Builder setStopIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - stopId_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private int currentStatus_ = 2; - /** - *
-       * The exact status of the vehicle with respect to the current stop.
-       * Ignored if current_stop_sequence is missing.
-       * 
- * - * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; - * @return Whether the currentStatus field is set. - */ - @java.lang.Override public boolean hasCurrentStatus() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-       * The exact status of the vehicle with respect to the current stop.
-       * Ignored if current_stop_sequence is missing.
-       * 
- * - * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; - * @return The currentStatus. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus getCurrentStatus() { - com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus result = com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus.forNumber(currentStatus_); - return result == null ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus.IN_TRANSIT_TO : result; - } - /** - *
-       * The exact status of the vehicle with respect to the current stop.
-       * Ignored if current_stop_sequence is missing.
-       * 
- * - * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; - * @param value The currentStatus to set. - * @return This builder for chaining. - */ - public Builder setCurrentStatus(com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - currentStatus_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The exact status of the vehicle with respect to the current stop.
-       * Ignored if current_stop_sequence is missing.
-       * 
- * - * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; - * @return This builder for chaining. - */ - public Builder clearCurrentStatus() { - bitField0_ = (bitField0_ & ~0x00000020); - currentStatus_ = 2; - onChanged(); - return this; - } - - private long timestamp_ ; - /** - *
-       * Moment at which the vehicle's position was measured. In POSIX time
-       * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
-       * 
- * - * optional uint64 timestamp = 5; - * @return Whether the timestamp field is set. - */ - @java.lang.Override - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-       * Moment at which the vehicle's position was measured. In POSIX time
-       * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
-       * 
- * - * optional uint64 timestamp = 5; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - *
-       * Moment at which the vehicle's position was measured. In POSIX time
-       * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
-       * 
- * - * optional uint64 timestamp = 5; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-       * Moment at which the vehicle's position was measured. In POSIX time
-       * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
-       * 
- * - * optional uint64 timestamp = 5; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000040); - timestamp_ = 0L; - onChanged(); - return this; - } - - private int congestionLevel_ = 0; - /** - * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; - * @return Whether the congestionLevel field is set. - */ - @java.lang.Override public boolean hasCongestionLevel() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; - * @return The congestionLevel. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel getCongestionLevel() { - com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel result = com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel.forNumber(congestionLevel_); - return result == null ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel.UNKNOWN_CONGESTION_LEVEL : result; - } - /** - * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; - * @param value The congestionLevel to set. - * @return This builder for chaining. - */ - public Builder setCongestionLevel(com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - congestionLevel_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; - * @return This builder for chaining. - */ - public Builder clearCongestionLevel() { - bitField0_ = (bitField0_ & ~0x00000080); - congestionLevel_ = 0; - onChanged(); - return this; - } - - private int occupancyStatus_ = 0; - /** - * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; - * @return Whether the occupancyStatus field is set. - */ - @java.lang.Override public boolean hasOccupancyStatus() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; - * @return The occupancyStatus. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus getOccupancyStatus() { - com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus result = com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus.forNumber(occupancyStatus_); - return result == null ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus.EMPTY : result; - } - /** - * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; - * @param value The occupancyStatus to set. - * @return This builder for chaining. - */ - public Builder setOccupancyStatus(com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - occupancyStatus_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; - * @return This builder for chaining. - */ - public Builder clearOccupancyStatus() { - bitField0_ = (bitField0_ & ~0x00000100); - occupancyStatus_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:transit_realtime.VehiclePosition) - } + } - // @@protoc_insertion_point(class_scope:transit_realtime.VehiclePosition) - private static final com.google.transit.realtime.GtfsRealtime.VehiclePosition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.VehiclePosition(); - } + 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; + } - public static com.google.transit.realtime.GtfsRealtime.VehiclePosition getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @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, assignedStopId_); + } + getUnknownFields().writeTo(output); + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VehiclePosition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, assignedStopId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehiclePosition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties other = (com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties) obj; - } + if (hasAssignedStopId() != other.hasAssignedStopId()) + return false; + if (hasAssignedStopId()) { + if (!getAssignedStopId().equals(other.getAssignedStopId())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } - public interface AlertOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.Alert) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAssignedStopId()) { + hash = (37 * hash) + ASSIGNED_STOP_ID_FIELD_NUMBER; + hash = (53 * hash) + getAssignedStopId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - *
-     * Time when the alert should be shown to the user. If missing, the
-     * alert will be shown as long as it appears in the feed.
-     * If multiple ranges are given, the alert will be shown during all of them.
-     * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - java.util.List - getActivePeriodList(); - /** - *
-     * Time when the alert should be shown to the user. If missing, the
-     * alert will be shown as long as it appears in the feed.
-     * If multiple ranges are given, the alert will be shown during all of them.
-     * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - com.google.transit.realtime.GtfsRealtime.TimeRange getActivePeriod(int index); - /** - *
-     * Time when the alert should be shown to the user. If missing, the
-     * alert will be shown as long as it appears in the feed.
-     * If multiple ranges are given, the alert will be shown during all of them.
-     * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - int getActivePeriodCount(); - /** - *
-     * Time when the alert should be shown to the user. If missing, the
-     * alert will be shown as long as it appears in the feed.
-     * If multiple ranges are given, the alert will be shown during all of them.
-     * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - java.util.List - getActivePeriodOrBuilderList(); - /** - *
-     * Time when the alert should be shown to the user. If missing, the
-     * alert will be shown as long as it appears in the feed.
-     * If multiple ranges are given, the alert will be shown during all of them.
-     * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - com.google.transit.realtime.GtfsRealtime.TimeRangeOrBuilder getActivePeriodOrBuilder( - int index); + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - *
-     * Entities whose users we should notify of this alert.
-     * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - java.util.List - getInformedEntityList(); - /** - *
-     * Entities whose users we should notify of this alert.
-     * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - com.google.transit.realtime.GtfsRealtime.EntitySelector getInformedEntity(int index); - /** - *
-     * Entities whose users we should notify of this alert.
-     * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - int getInformedEntityCount(); - /** - *
-     * Entities whose users we should notify of this alert.
-     * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - java.util.List - getInformedEntityOrBuilderList(); - /** - *
-     * Entities whose users we should notify of this alert.
-     * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - com.google.transit.realtime.GtfsRealtime.EntitySelectorOrBuilder getInformedEntityOrBuilder( - int index); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; - * @return Whether the cause field is set. - */ - boolean hasCause(); - /** - * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; - * @return The cause. - */ - com.google.transit.realtime.GtfsRealtime.Alert.Cause getCause(); + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+             * Realtime update for certain properties defined within GTFS stop_times.txt.
+             * Caution: this message is still experimental, and subject to change. It
+             * may be formally adopted in the future.
+             * 
+ * + * Protobuf type {@code transit_realtime.TripUpdate.StopTimeProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.TripUpdate.StopTimeProperties) + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimePropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeProperties_descriptor; + } - /** - * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; - * @return Whether the effect field is set. - */ - boolean hasEffect(); - /** - * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; - * @return The effect. - */ - com.google.transit.realtime.GtfsRealtime.Alert.Effect getEffect(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.class, + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.Builder.class); + } - /** - *
-     * The URL which provides additional information about the alert.
-     * 
- * - * optional .transit_realtime.TranslatedString url = 8; - * @return Whether the url field is set. - */ - boolean hasUrl(); - /** - *
-     * The URL which provides additional information about the alert.
-     * 
- * - * optional .transit_realtime.TranslatedString url = 8; - * @return The url. - */ - com.google.transit.realtime.GtfsRealtime.TranslatedString getUrl(); - /** - *
-     * The URL which provides additional information about the alert.
-     * 
- * - * optional .transit_realtime.TranslatedString url = 8; - */ - com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getUrlOrBuilder(); + // Construct using com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.newBuilder() + private Builder() { - /** - *
-     * Alert header. Contains a short summary of the alert text as plain-text.
-     * 
- * - * optional .transit_realtime.TranslatedString header_text = 10; - * @return Whether the headerText field is set. - */ - boolean hasHeaderText(); - /** - *
-     * Alert header. Contains a short summary of the alert text as plain-text.
-     * 
- * - * optional .transit_realtime.TranslatedString header_text = 10; - * @return The headerText. - */ - com.google.transit.realtime.GtfsRealtime.TranslatedString getHeaderText(); - /** - *
-     * Alert header. Contains a short summary of the alert text as plain-text.
-     * 
- * - * optional .transit_realtime.TranslatedString header_text = 10; - */ - com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getHeaderTextOrBuilder(); + } - /** - *
-     * Full description for the alert as plain-text. The information in the
-     * description should add to the information of the header.
-     * 
- * - * optional .transit_realtime.TranslatedString description_text = 11; - * @return Whether the descriptionText field is set. - */ - boolean hasDescriptionText(); - /** - *
-     * Full description for the alert as plain-text. The information in the
-     * description should add to the information of the header.
-     * 
- * - * optional .transit_realtime.TranslatedString description_text = 11; - * @return The descriptionText. - */ - com.google.transit.realtime.GtfsRealtime.TranslatedString getDescriptionText(); - /** - *
-     * Full description for the alert as plain-text. The information in the
-     * description should add to the information of the header.
-     * 
- * - * optional .transit_realtime.TranslatedString description_text = 11; - */ - com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getDescriptionTextOrBuilder(); + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - /** - *
-     * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
-     * This field is still experimental, and subject to change. It may be formally adopted in the future.
-     * 
- * - * optional .transit_realtime.TranslatedString tts_header_text = 12; - * @return Whether the ttsHeaderText field is set. - */ - boolean hasTtsHeaderText(); - /** - *
-     * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
-     * This field is still experimental, and subject to change. It may be formally adopted in the future.
-     * 
- * - * optional .transit_realtime.TranslatedString tts_header_text = 12; - * @return The ttsHeaderText. - */ - com.google.transit.realtime.GtfsRealtime.TranslatedString getTtsHeaderText(); - /** - *
-     * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
-     * This field is still experimental, and subject to change. It may be formally adopted in the future.
-     * 
- * - * optional .transit_realtime.TranslatedString tts_header_text = 12; - */ - com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getTtsHeaderTextOrBuilder(); + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + assignedStopId_ = ""; + return this; + } - /** - *
-     * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
-     * This field is still experimental, and subject to change. It may be formally adopted in the future.
-     * 
- * - * optional .transit_realtime.TranslatedString tts_description_text = 13; - * @return Whether the ttsDescriptionText field is set. - */ - boolean hasTtsDescriptionText(); - /** - *
-     * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
-     * This field is still experimental, and subject to change. It may be formally adopted in the future.
-     * 
- * - * optional .transit_realtime.TranslatedString tts_description_text = 13; - * @return The ttsDescriptionText. - */ - com.google.transit.realtime.GtfsRealtime.TranslatedString getTtsDescriptionText(); - /** - *
-     * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
-     * This field is still experimental, and subject to change. It may be formally adopted in the future.
-     * 
- * - * optional .transit_realtime.TranslatedString tts_description_text = 13; - */ - com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getTtsDescriptionTextOrBuilder(); - - /** - * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; - * @return Whether the severityLevel field is set. - */ - boolean hasSeverityLevel(); - /** - * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; - * @return The severityLevel. - */ - com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel getSeverityLevel(); - } - /** - *
-   * An alert, indicating some sort of incident in the public transit network.
-   * 
- * - * Protobuf type {@code transit_realtime.Alert} - */ - public static final class Alert extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - Alert> implements - // @@protoc_insertion_point(message_implements:transit_realtime.Alert) - AlertOrBuilder { - private static final long serialVersionUID = 0L; - // Use Alert.newBuilder() to construct. - private Alert(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private Alert() { - activePeriod_ = java.util.Collections.emptyList(); - informedEntity_ = java.util.Collections.emptyList(); - cause_ = 1; - effect_ = 8; - severityLevel_ = 1; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeProperties_descriptor; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Alert(); - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.getDefaultInstance(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Alert_descriptor; - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties build() { + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Alert_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.Alert.class, com.google.transit.realtime.GtfsRealtime.Alert.Builder.class); - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties buildPartial() { + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties result = new com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - *
-     * Cause of this alert.
-     * 
- * - * Protobuf enum {@code transit_realtime.Alert.Cause} - */ - public enum Cause - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN_CAUSE = 1; - */ - UNKNOWN_CAUSE(1), - /** - *
-       * Not machine-representable.
-       * 
- * - * OTHER_CAUSE = 2; - */ - OTHER_CAUSE(2), - /** - * TECHNICAL_PROBLEM = 3; - */ - TECHNICAL_PROBLEM(3), - /** - *
-       * Public transit agency employees stopped working.
-       * 
- * - * STRIKE = 4; - */ - STRIKE(4), - /** - *
-       * People are blocking the streets.
-       * 
- * - * DEMONSTRATION = 5; - */ - DEMONSTRATION(5), - /** - * ACCIDENT = 6; - */ - ACCIDENT(6), - /** - * HOLIDAY = 7; - */ - HOLIDAY(7), - /** - * WEATHER = 8; - */ - WEATHER(8), - /** - * MAINTENANCE = 9; - */ - MAINTENANCE(9), - /** - * CONSTRUCTION = 10; - */ - CONSTRUCTION(10), - /** - * POLICE_ACTIVITY = 11; - */ - POLICE_ACTIVITY(11), - /** - * MEDICAL_EMERGENCY = 12; - */ - MEDICAL_EMERGENCY(12), - ; - - /** - * UNKNOWN_CAUSE = 1; - */ - public static final int UNKNOWN_CAUSE_VALUE = 1; - /** - *
-       * Not machine-representable.
-       * 
- * - * OTHER_CAUSE = 2; - */ - public static final int OTHER_CAUSE_VALUE = 2; - /** - * TECHNICAL_PROBLEM = 3; - */ - public static final int TECHNICAL_PROBLEM_VALUE = 3; - /** - *
-       * Public transit agency employees stopped working.
-       * 
- * - * STRIKE = 4; - */ - public static final int STRIKE_VALUE = 4; - /** - *
-       * People are blocking the streets.
-       * 
- * - * DEMONSTRATION = 5; - */ - public static final int DEMONSTRATION_VALUE = 5; - /** - * ACCIDENT = 6; - */ - public static final int ACCIDENT_VALUE = 6; - /** - * HOLIDAY = 7; - */ - public static final int HOLIDAY_VALUE = 7; - /** - * WEATHER = 8; - */ - public static final int WEATHER_VALUE = 8; - /** - * MAINTENANCE = 9; - */ - public static final int MAINTENANCE_VALUE = 9; - /** - * CONSTRUCTION = 10; - */ - public static final int CONSTRUCTION_VALUE = 10; - /** - * POLICE_ACTIVITY = 11; - */ - public static final int POLICE_ACTIVITY_VALUE = 11; - /** - * MEDICAL_EMERGENCY = 12; - */ - public static final int MEDICAL_EMERGENCY_VALUE = 12; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Cause valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Cause forNumber(int value) { - switch (value) { - case 1: return UNKNOWN_CAUSE; - case 2: return OTHER_CAUSE; - case 3: return TECHNICAL_PROBLEM; - case 4: return STRIKE; - case 5: return DEMONSTRATION; - case 6: return ACCIDENT; - case 7: return HOLIDAY; - case 8: return WEATHER; - case 9: return MAINTENANCE; - case 10: return CONSTRUCTION; - case 11: return POLICE_ACTIVITY; - case 12: return MEDICAL_EMERGENCY; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Cause> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Cause findValueByNumber(int number) { - return Cause.forNumber(number); - } - }; + private void buildPartial0( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.assignedStopId_ = assignedStopId_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.Alert.getDescriptor().getEnumTypes().get(0); - } - - private static final Cause[] VALUES = values(); - - public static Cause valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Cause(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:transit_realtime.Alert.Cause) - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties) { + return mergeFrom( + (com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - *
-     * What is the effect of this problem on the affected entity.
-     * 
- * - * Protobuf enum {@code transit_realtime.Alert.Effect} - */ - public enum Effect - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NO_SERVICE = 1; - */ - NO_SERVICE(1), - /** - * REDUCED_SERVICE = 2; - */ - REDUCED_SERVICE(2), - /** - *
-       * We don't care about INsignificant delays: they are hard to detect, have
-       * little impact on the user, and would clutter the results as they are too
-       * frequent.
-       * 
- * - * SIGNIFICANT_DELAYS = 3; - */ - SIGNIFICANT_DELAYS(3), - /** - * DETOUR = 4; - */ - DETOUR(4), - /** - * ADDITIONAL_SERVICE = 5; - */ - ADDITIONAL_SERVICE(5), - /** - * MODIFIED_SERVICE = 6; - */ - MODIFIED_SERVICE(6), - /** - * OTHER_EFFECT = 7; - */ - OTHER_EFFECT(7), - /** - * UNKNOWN_EFFECT = 8; - */ - UNKNOWN_EFFECT(8), - /** - * STOP_MOVED = 9; - */ - STOP_MOVED(9), - /** - * NO_EFFECT = 10; - */ - NO_EFFECT(10), - ; - - /** - * NO_SERVICE = 1; - */ - public static final int NO_SERVICE_VALUE = 1; - /** - * REDUCED_SERVICE = 2; - */ - public static final int REDUCED_SERVICE_VALUE = 2; - /** - *
-       * We don't care about INsignificant delays: they are hard to detect, have
-       * little impact on the user, and would clutter the results as they are too
-       * frequent.
-       * 
- * - * SIGNIFICANT_DELAYS = 3; - */ - public static final int SIGNIFICANT_DELAYS_VALUE = 3; - /** - * DETOUR = 4; - */ - public static final int DETOUR_VALUE = 4; - /** - * ADDITIONAL_SERVICE = 5; - */ - public static final int ADDITIONAL_SERVICE_VALUE = 5; - /** - * MODIFIED_SERVICE = 6; - */ - public static final int MODIFIED_SERVICE_VALUE = 6; - /** - * OTHER_EFFECT = 7; - */ - public static final int OTHER_EFFECT_VALUE = 7; - /** - * UNKNOWN_EFFECT = 8; - */ - public static final int UNKNOWN_EFFECT_VALUE = 8; - /** - * STOP_MOVED = 9; - */ - public static final int STOP_MOVED_VALUE = 9; - /** - * NO_EFFECT = 10; - */ - public static final int NO_EFFECT_VALUE = 10; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Effect valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Effect forNumber(int value) { - switch (value) { - case 1: return NO_SERVICE; - case 2: return REDUCED_SERVICE; - case 3: return SIGNIFICANT_DELAYS; - case 4: return DETOUR; - case 5: return ADDITIONAL_SERVICE; - case 6: return MODIFIED_SERVICE; - case 7: return OTHER_EFFECT; - case 8: return UNKNOWN_EFFECT; - case 9: return STOP_MOVED; - case 10: return NO_EFFECT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Effect> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Effect findValueByNumber(int number) { - return Effect.forNumber(number); - } - }; + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties other) { + if (other == com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties + .getDefaultInstance()) + return this; + if (other.hasAssignedStopId()) { + assignedStopId_ = other.assignedStopId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.Alert.getDescriptor().getEnumTypes().get(1); - } - - private static final Effect[] VALUES = values(); - - public static Effect valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Effect(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:transit_realtime.Alert.Effect) - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - *
-     * Severity of this alert.
-     * This field is still experimental, and subject to change. It may be formally adopted in the future.
-     * 
- * - * Protobuf enum {@code transit_realtime.Alert.SeverityLevel} - */ - public enum SeverityLevel - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN_SEVERITY = 1; - */ - UNKNOWN_SEVERITY(1), - /** - * INFO = 2; - */ - INFO(2), - /** - * WARNING = 3; - */ - WARNING(3), - /** - * SEVERE = 4; - */ - SEVERE(4), - ; - - /** - * UNKNOWN_SEVERITY = 1; - */ - public static final int UNKNOWN_SEVERITY_VALUE = 1; - /** - * INFO = 2; - */ - public static final int INFO_VALUE = 2; - /** - * WARNING = 3; - */ - public static final int WARNING_VALUE = 3; - /** - * SEVERE = 4; - */ - public static final int SEVERE_VALUE = 4; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SeverityLevel valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static SeverityLevel forNumber(int value) { - switch (value) { - case 1: return UNKNOWN_SEVERITY; - case 2: return INFO; - case 3: return WARNING; - case 4: return SEVERE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - SeverityLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SeverityLevel findValueByNumber(int number) { - return SeverityLevel.forNumber(number); - } - }; + @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 : { + assignedStopId_ = 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 assignedStopId_ = ""; + /** + *
+                 * Supports real-time stop assignments. Refers to a stop_id defined in the
+                 * GTFS stops.txt.
+                 * The new assigned_stop_id should not result in a significantly different
+                 * trip experience for the end user than the stop_id defined in GTFS
+                 * stop_times.txt. In other words, the end user should not view this new
+                 * stop_id as an "unusual change" if the new stop was presented within an
+                 * app without any additional context. For example, this field is intended
+                 * to be used for platform assignments by using a stop_id that belongs to
+                 * the same station as the stop originally defined in GTFS stop_times.txt.
+                 * To assign a stop without providing any real-time arrival or departure
+                 * predictions, populate this field and set
+                 * StopTimeUpdate.schedule_relationship = NO_DATA.
+                 * If this field is populated, StopTimeUpdate.stop_sequence must be
+                 * populated and StopTimeUpdate.stop_id should not be populated. Stop
+                 * assignments should be reflected in other GTFS-realtime fields as well
+                 * (e.g., VehiclePosition.stop_id).
+                 * Caution: this field is still experimental, and subject to change. It
+                 * may be formally adopted in the future.
+                 * 
+ * + * optional string assigned_stop_id = 1; + * @return Whether the assignedStopId field is set. + */ + public boolean hasAssignedStopId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+                 * Supports real-time stop assignments. Refers to a stop_id defined in the
+                 * GTFS stops.txt.
+                 * The new assigned_stop_id should not result in a significantly different
+                 * trip experience for the end user than the stop_id defined in GTFS
+                 * stop_times.txt. In other words, the end user should not view this new
+                 * stop_id as an "unusual change" if the new stop was presented within an
+                 * app without any additional context. For example, this field is intended
+                 * to be used for platform assignments by using a stop_id that belongs to
+                 * the same station as the stop originally defined in GTFS stop_times.txt.
+                 * To assign a stop without providing any real-time arrival or departure
+                 * predictions, populate this field and set
+                 * StopTimeUpdate.schedule_relationship = NO_DATA.
+                 * If this field is populated, StopTimeUpdate.stop_sequence must be
+                 * populated and StopTimeUpdate.stop_id should not be populated. Stop
+                 * assignments should be reflected in other GTFS-realtime fields as well
+                 * (e.g., VehiclePosition.stop_id).
+                 * Caution: this field is still experimental, and subject to change. It
+                 * may be formally adopted in the future.
+                 * 
+ * + * optional string assigned_stop_id = 1; + * @return The assignedStopId. + */ + public java.lang.String getAssignedStopId() { + java.lang.Object ref = assignedStopId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + assignedStopId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+                 * Supports real-time stop assignments. Refers to a stop_id defined in the
+                 * GTFS stops.txt.
+                 * The new assigned_stop_id should not result in a significantly different
+                 * trip experience for the end user than the stop_id defined in GTFS
+                 * stop_times.txt. In other words, the end user should not view this new
+                 * stop_id as an "unusual change" if the new stop was presented within an
+                 * app without any additional context. For example, this field is intended
+                 * to be used for platform assignments by using a stop_id that belongs to
+                 * the same station as the stop originally defined in GTFS stop_times.txt.
+                 * To assign a stop without providing any real-time arrival or departure
+                 * predictions, populate this field and set
+                 * StopTimeUpdate.schedule_relationship = NO_DATA.
+                 * If this field is populated, StopTimeUpdate.stop_sequence must be
+                 * populated and StopTimeUpdate.stop_id should not be populated. Stop
+                 * assignments should be reflected in other GTFS-realtime fields as well
+                 * (e.g., VehiclePosition.stop_id).
+                 * Caution: this field is still experimental, and subject to change. It
+                 * may be formally adopted in the future.
+                 * 
+ * + * optional string assigned_stop_id = 1; + * @return The bytes for assignedStopId. + */ + public com.google.protobuf.ByteString getAssignedStopIdBytes() { + java.lang.Object ref = assignedStopId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + assignedStopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+                 * Supports real-time stop assignments. Refers to a stop_id defined in the
+                 * GTFS stops.txt.
+                 * The new assigned_stop_id should not result in a significantly different
+                 * trip experience for the end user than the stop_id defined in GTFS
+                 * stop_times.txt. In other words, the end user should not view this new
+                 * stop_id as an "unusual change" if the new stop was presented within an
+                 * app without any additional context. For example, this field is intended
+                 * to be used for platform assignments by using a stop_id that belongs to
+                 * the same station as the stop originally defined in GTFS stop_times.txt.
+                 * To assign a stop without providing any real-time arrival or departure
+                 * predictions, populate this field and set
+                 * StopTimeUpdate.schedule_relationship = NO_DATA.
+                 * If this field is populated, StopTimeUpdate.stop_sequence must be
+                 * populated and StopTimeUpdate.stop_id should not be populated. Stop
+                 * assignments should be reflected in other GTFS-realtime fields as well
+                 * (e.g., VehiclePosition.stop_id).
+                 * Caution: this field is still experimental, and subject to change. It
+                 * may be formally adopted in the future.
+                 * 
+ * + * optional string assigned_stop_id = 1; + * @param value The assignedStopId to set. + * @return This builder for chaining. + */ + public Builder setAssignedStopId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assignedStopId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+                 * Supports real-time stop assignments. Refers to a stop_id defined in the
+                 * GTFS stops.txt.
+                 * The new assigned_stop_id should not result in a significantly different
+                 * trip experience for the end user than the stop_id defined in GTFS
+                 * stop_times.txt. In other words, the end user should not view this new
+                 * stop_id as an "unusual change" if the new stop was presented within an
+                 * app without any additional context. For example, this field is intended
+                 * to be used for platform assignments by using a stop_id that belongs to
+                 * the same station as the stop originally defined in GTFS stop_times.txt.
+                 * To assign a stop without providing any real-time arrival or departure
+                 * predictions, populate this field and set
+                 * StopTimeUpdate.schedule_relationship = NO_DATA.
+                 * If this field is populated, StopTimeUpdate.stop_sequence must be
+                 * populated and StopTimeUpdate.stop_id should not be populated. Stop
+                 * assignments should be reflected in other GTFS-realtime fields as well
+                 * (e.g., VehiclePosition.stop_id).
+                 * Caution: this field is still experimental, and subject to change. It
+                 * may be formally adopted in the future.
+                 * 
+ * + * optional string assigned_stop_id = 1; + * @return This builder for chaining. + */ + public Builder clearAssignedStopId() { + assignedStopId_ = getDefaultInstance().getAssignedStopId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+                 * Supports real-time stop assignments. Refers to a stop_id defined in the
+                 * GTFS stops.txt.
+                 * The new assigned_stop_id should not result in a significantly different
+                 * trip experience for the end user than the stop_id defined in GTFS
+                 * stop_times.txt. In other words, the end user should not view this new
+                 * stop_id as an "unusual change" if the new stop was presented within an
+                 * app without any additional context. For example, this field is intended
+                 * to be used for platform assignments by using a stop_id that belongs to
+                 * the same station as the stop originally defined in GTFS stop_times.txt.
+                 * To assign a stop without providing any real-time arrival or departure
+                 * predictions, populate this field and set
+                 * StopTimeUpdate.schedule_relationship = NO_DATA.
+                 * If this field is populated, StopTimeUpdate.stop_sequence must be
+                 * populated and StopTimeUpdate.stop_id should not be populated. Stop
+                 * assignments should be reflected in other GTFS-realtime fields as well
+                 * (e.g., VehiclePosition.stop_id).
+                 * Caution: this field is still experimental, and subject to change. It
+                 * may be formally adopted in the future.
+                 * 
+ * + * optional string assigned_stop_id = 1; + * @param value The bytes for assignedStopId to set. + * @return This builder for chaining. + */ + public Builder setAssignedStopIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + assignedStopId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.Alert.getDescriptor().getEnumTypes().get(2); - } - - private static final SeverityLevel[] VALUES = values(); - - public static SeverityLevel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private SeverityLevel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:transit_realtime.Alert.SeverityLevel) - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - private int bitField0_; - public static final int ACTIVE_PERIOD_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List activePeriod_; - /** - *
-     * Time when the alert should be shown to the user. If missing, the
-     * alert will be shown as long as it appears in the feed.
-     * If multiple ranges are given, the alert will be shown during all of them.
-     * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - @java.lang.Override - public java.util.List getActivePeriodList() { - return activePeriod_; - } - /** - *
-     * Time when the alert should be shown to the user. If missing, the
-     * alert will be shown as long as it appears in the feed.
-     * If multiple ranges are given, the alert will be shown during all of them.
-     * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - @java.lang.Override - public java.util.List - getActivePeriodOrBuilderList() { - return activePeriod_; - } - /** - *
-     * Time when the alert should be shown to the user. If missing, the
-     * alert will be shown as long as it appears in the feed.
-     * If multiple ranges are given, the alert will be shown during all of them.
-     * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - @java.lang.Override - public int getActivePeriodCount() { - return activePeriod_.size(); - } - /** - *
-     * Time when the alert should be shown to the user. If missing, the
-     * alert will be shown as long as it appears in the feed.
-     * If multiple ranges are given, the alert will be shown during all of them.
-     * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TimeRange getActivePeriod(int index) { - return activePeriod_.get(index); - } - /** - *
-     * Time when the alert should be shown to the user. If missing, the
-     * alert will be shown as long as it appears in the feed.
-     * If multiple ranges are given, the alert will be shown during all of them.
-     * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TimeRangeOrBuilder getActivePeriodOrBuilder( - int index) { - return activePeriod_.get(index); - } + // @@protoc_insertion_point(builder_scope:transit_realtime.TripUpdate.StopTimeProperties) + } - public static final int INFORMED_ENTITY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private java.util.List informedEntity_; - /** - *
-     * Entities whose users we should notify of this alert.
-     * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - @java.lang.Override - public java.util.List getInformedEntityList() { - return informedEntity_; - } - /** - *
-     * Entities whose users we should notify of this alert.
-     * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - @java.lang.Override - public java.util.List - getInformedEntityOrBuilderList() { - return informedEntity_; - } - /** - *
-     * Entities whose users we should notify of this alert.
-     * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - @java.lang.Override - public int getInformedEntityCount() { - return informedEntity_.size(); - } - /** - *
-     * Entities whose users we should notify of this alert.
-     * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.EntitySelector getInformedEntity(int index) { - return informedEntity_.get(index); - } - /** - *
-     * Entities whose users we should notify of this alert.
-     * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.EntitySelectorOrBuilder getInformedEntityOrBuilder( - int index) { - return informedEntity_.get(index); - } + // @@protoc_insertion_point(class_scope:transit_realtime.TripUpdate.StopTimeProperties) + private static final com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties(); + } - public static final int CAUSE_FIELD_NUMBER = 6; - private int cause_ = 1; - /** - * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; - * @return Whether the cause field is set. - */ - @java.lang.Override public boolean hasCause() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; - * @return The cause. - */ - @java.lang.Override public com.google.transit.realtime.GtfsRealtime.Alert.Cause getCause() { - com.google.transit.realtime.GtfsRealtime.Alert.Cause result = com.google.transit.realtime.GtfsRealtime.Alert.Cause.forNumber(cause_); - return result == null ? com.google.transit.realtime.GtfsRealtime.Alert.Cause.UNKNOWN_CAUSE : result; - } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int EFFECT_FIELD_NUMBER = 7; - private int effect_ = 8; - /** - * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; - * @return Whether the effect field is set. - */ - @java.lang.Override public boolean hasEffect() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; - * @return The effect. - */ - @java.lang.Override public com.google.transit.realtime.GtfsRealtime.Alert.Effect getEffect() { - com.google.transit.realtime.GtfsRealtime.Alert.Effect result = com.google.transit.realtime.GtfsRealtime.Alert.Effect.forNumber(effect_); - return result == null ? com.google.transit.realtime.GtfsRealtime.Alert.Effect.UNKNOWN_EFFECT : result; - } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopTimeProperties parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static final int URL_FIELD_NUMBER = 8; - private com.google.transit.realtime.GtfsRealtime.TranslatedString url_; - /** - *
-     * The URL which provides additional information about the alert.
-     * 
- * - * optional .transit_realtime.TranslatedString url = 8; - * @return Whether the url field is set. - */ - @java.lang.Override - public boolean hasUrl() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * The URL which provides additional information about the alert.
-     * 
- * - * optional .transit_realtime.TranslatedString url = 8; - * @return The url. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedString getUrl() { - return url_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : url_; - } - /** - *
-     * The URL which provides additional information about the alert.
-     * 
- * - * optional .transit_realtime.TranslatedString url = 8; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getUrlOrBuilder() { - return url_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : url_; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int HEADER_TEXT_FIELD_NUMBER = 10; - private com.google.transit.realtime.GtfsRealtime.TranslatedString headerText_; - /** - *
-     * Alert header. Contains a short summary of the alert text as plain-text.
-     * 
- * - * optional .transit_realtime.TranslatedString header_text = 10; - * @return Whether the headerText field is set. - */ - @java.lang.Override - public boolean hasHeaderText() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Alert header. Contains a short summary of the alert text as plain-text.
-     * 
- * - * optional .transit_realtime.TranslatedString header_text = 10; - * @return The headerText. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedString getHeaderText() { - return headerText_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : headerText_; - } - /** - *
-     * Alert header. Contains a short summary of the alert text as plain-text.
-     * 
- * - * optional .transit_realtime.TranslatedString header_text = 10; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getHeaderTextOrBuilder() { - return headerText_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : headerText_; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static final int DESCRIPTION_TEXT_FIELD_NUMBER = 11; - private com.google.transit.realtime.GtfsRealtime.TranslatedString descriptionText_; - /** - *
-     * Full description for the alert as plain-text. The information in the
-     * description should add to the information of the header.
-     * 
- * - * optional .transit_realtime.TranslatedString description_text = 11; - * @return Whether the descriptionText field is set. - */ - @java.lang.Override - public boolean hasDescriptionText() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * Full description for the alert as plain-text. The information in the
-     * description should add to the information of the header.
-     * 
- * - * optional .transit_realtime.TranslatedString description_text = 11; - * @return The descriptionText. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedString getDescriptionText() { - return descriptionText_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : descriptionText_; - } - /** - *
-     * Full description for the alert as plain-text. The information in the
-     * description should add to the information of the header.
-     * 
- * - * optional .transit_realtime.TranslatedString description_text = 11; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getDescriptionTextOrBuilder() { - return descriptionText_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : descriptionText_; - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static final int TTS_HEADER_TEXT_FIELD_NUMBER = 12; - private com.google.transit.realtime.GtfsRealtime.TranslatedString ttsHeaderText_; - /** - *
-     * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
-     * This field is still experimental, and subject to change. It may be formally adopted in the future.
-     * 
- * - * optional .transit_realtime.TranslatedString tts_header_text = 12; - * @return Whether the ttsHeaderText field is set. - */ - @java.lang.Override - public boolean hasTtsHeaderText() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
-     * This field is still experimental, and subject to change. It may be formally adopted in the future.
-     * 
- * - * optional .transit_realtime.TranslatedString tts_header_text = 12; - * @return The ttsHeaderText. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedString getTtsHeaderText() { - return ttsHeaderText_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : ttsHeaderText_; - } - /** - *
-     * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
-     * This field is still experimental, and subject to change. It may be formally adopted in the future.
-     * 
- * - * optional .transit_realtime.TranslatedString tts_header_text = 12; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getTtsHeaderTextOrBuilder() { - return ttsHeaderText_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : ttsHeaderText_; - } + } - public static final int TTS_DESCRIPTION_TEXT_FIELD_NUMBER = 13; - private com.google.transit.realtime.GtfsRealtime.TranslatedString ttsDescriptionText_; - /** - *
-     * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
-     * This field is still experimental, and subject to change. It may be formally adopted in the future.
-     * 
- * - * optional .transit_realtime.TranslatedString tts_description_text = 13; - * @return Whether the ttsDescriptionText field is set. - */ - @java.lang.Override - public boolean hasTtsDescriptionText() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
-     * This field is still experimental, and subject to change. It may be formally adopted in the future.
-     * 
- * - * optional .transit_realtime.TranslatedString tts_description_text = 13; - * @return The ttsDescriptionText. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedString getTtsDescriptionText() { - return ttsDescriptionText_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : ttsDescriptionText_; - } - /** - *
-     * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
-     * This field is still experimental, and subject to change. It may be formally adopted in the future.
-     * 
- * - * optional .transit_realtime.TranslatedString tts_description_text = 13; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getTtsDescriptionTextOrBuilder() { - return ttsDescriptionText_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : ttsDescriptionText_; - } + public interface StopTimeUpdateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.TripUpdate.StopTimeUpdate) + com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder { + + /** + *
+             * Must be the same as in stop_times.txt in the corresponding GTFS feed.
+             * 
+ * + * optional uint32 stop_sequence = 1; + * @return Whether the stopSequence field is set. + */ + boolean hasStopSequence(); + /** + *
+             * Must be the same as in stop_times.txt in the corresponding GTFS feed.
+             * 
+ * + * optional uint32 stop_sequence = 1; + * @return The stopSequence. + */ + int getStopSequence(); + + /** + *
+             * Must be the same as in stops.txt in the corresponding GTFS feed.
+             * 
+ * + * optional string stop_id = 4; + * @return Whether the stopId field is set. + */ + boolean hasStopId(); + /** + *
+             * Must be the same as in stops.txt in the corresponding GTFS feed.
+             * 
+ * + * optional string stop_id = 4; + * @return The stopId. + */ + java.lang.String getStopId(); + /** + *
+             * Must be the same as in stops.txt in the corresponding GTFS feed.
+             * 
+ * + * optional string stop_id = 4; + * @return The bytes for stopId. + */ + com.google.protobuf.ByteString getStopIdBytes(); + + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + * @return Whether the arrival field is set. + */ + boolean hasArrival(); + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + * @return The arrival. + */ + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getArrival(); + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + */ + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder getArrivalOrBuilder(); + + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; + * @return Whether the departure field is set. + */ + boolean hasDeparture(); + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; + * @return The departure. + */ + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getDeparture(); + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; + */ + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder getDepartureOrBuilder(); + + /** + * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; + * @return Whether the scheduleRelationship field is set. + */ + boolean hasScheduleRelationship(); + /** + * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; + * @return The scheduleRelationship. + */ + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship getScheduleRelationship(); + + /** + * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + * @return Whether the stopTimeProperties field is set. + */ + boolean hasStopTimeProperties(); + /** + * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + * @return The stopTimeProperties. + */ + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties getStopTimeProperties(); + /** + * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + */ + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimePropertiesOrBuilder getStopTimePropertiesOrBuilder(); + } + /** + *
+         * Realtime update for arrival and/or departure events for a given stop on a
+         * trip. Updates can be supplied for both past and future events.
+         * The producer is allowed, although not required, to drop past events.
+         * 
+ * + * Protobuf type {@code transit_realtime.TripUpdate.StopTimeUpdate} + */ + public static final class StopTimeUpdate + extends + com.google.protobuf.GeneratedMessageV3.ExtendableMessage + implements + // @@protoc_insertion_point(message_implements:transit_realtime.TripUpdate.StopTimeUpdate) + StopTimeUpdateOrBuilder { + private static final long serialVersionUID = 0L; + // Use StopTimeUpdate.newBuilder() to construct. + private StopTimeUpdate( + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { + super(builder); + } + private StopTimeUpdate() { + stopId_ = ""; + scheduleRelationship_ = 0; + } - public static final int SEVERITY_LEVEL_FIELD_NUMBER = 14; - private int severityLevel_ = 1; - /** - * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; - * @return Whether the severityLevel field is set. - */ - @java.lang.Override public boolean hasSeverityLevel() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; - * @return The severityLevel. - */ - @java.lang.Override public com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel getSeverityLevel() { - com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel result = com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel.forNumber(severityLevel_); - return result == null ? com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel.UNKNOWN_SEVERITY : result; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StopTimeUpdate(); + } - 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 final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeUpdate_descriptor; + } - @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(2000, output); - getUnknownFields().writeTo(output); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.class, + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder.class); + } - @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; - } + /** + *
+             * The relation between this StopTime and the static schedule.
+             * 
+ * + * Protobuf enum {@code transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship} + */ + public enum ScheduleRelationship implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+                 * The vehicle is proceeding in accordance with its static schedule of
+                 * stops, although not necessarily according to the times of the schedule.
+                 * At least one of arrival and departure must be provided. If the schedule
+                 * for this stop contains both arrival and departure times then so must
+                 * this update.
+                 * 
+ * + * SCHEDULED = 0; + */ + SCHEDULED(0), + /** + *
+                 * The stop is skipped, i.e., the vehicle will not stop at this stop.
+                 * Arrival and departure are optional.
+                 * 
+ * + * SKIPPED = 1; + */ + SKIPPED(1), + /** + *
+                 * No data is given for this stop. The main intention for this value is to
+                 * give the predictions only for part of a trip, i.e., if the last update
+                 * for a trip has a NO_DATA specifier, then StopTimes for the rest of the
+                 * stops in the trip are considered to be unspecified as well.
+                 * Neither arrival nor departure should be supplied.
+                 * 
+ * + * NO_DATA = 2; + */ + NO_DATA(2),; + + /** + *
+                 * The vehicle is proceeding in accordance with its static schedule of
+                 * stops, although not necessarily according to the times of the schedule.
+                 * At least one of arrival and departure must be provided. If the schedule
+                 * for this stop contains both arrival and departure times then so must
+                 * this update.
+                 * 
+ * + * SCHEDULED = 0; + */ + public static final int SCHEDULED_VALUE = 0; + /** + *
+                 * The stop is skipped, i.e., the vehicle will not stop at this stop.
+                 * Arrival and departure are optional.
+                 * 
+ * + * SKIPPED = 1; + */ + public static final int SKIPPED_VALUE = 1; + /** + *
+                 * No data is given for this stop. The main intention for this value is to
+                 * give the predictions only for part of a trip, i.e., if the last update
+                 * for a trip has a NO_DATA specifier, then StopTimes for the rest of the
+                 * stops in the trip are considered to be unspecified as well.
+                 * Neither arrival nor departure should be supplied.
+                 * 
+ * + * NO_DATA = 2; + */ + public static final int NO_DATA_VALUE = 2; + + public final int getNumber() { + return value; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.Alert)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.Alert other = (com.google.transit.realtime.GtfsRealtime.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; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ScheduleRelationship valueOf(int value) { + return forNumber(value); + } - @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; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ScheduleRelationship forNumber(int value) { + switch (value) { + case 0 : + return SCHEDULED; + case 1 : + return SKIPPED; + case 2 : + return NO_DATA; + default : + return null; + } + } - public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.Alert parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.Alert parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public ScheduleRelationship findValueByNumber(int number) { + return ScheduleRelationship.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.getDescriptor() + .getEnumTypes().get(0); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.Alert prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private static final ScheduleRelationship[] VALUES = values(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * An alert, indicating some sort of incident in the public transit network.
-     * 
- * - * Protobuf type {@code transit_realtime.Alert} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< - com.google.transit.realtime.GtfsRealtime.Alert, Builder> implements - // @@protoc_insertion_point(builder_implements:transit_realtime.Alert) - com.google.transit.realtime.GtfsRealtime.AlertOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Alert_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Alert_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.Alert.class, com.google.transit.realtime.GtfsRealtime.Alert.Builder.class); - } - - // Construct using com.google.transit.realtime.GtfsRealtime.Alert.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getActivePeriodFieldBuilder(); - getInformedEntityFieldBuilder(); - getUrlFieldBuilder(); - getHeaderTextFieldBuilder(); - getDescriptionTextFieldBuilder(); - getTtsHeaderTextFieldBuilder(); - getTtsDescriptionTextFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (activePeriodBuilder_ == null) { - activePeriod_ = java.util.Collections.emptyList(); - } else { - activePeriod_ = null; - activePeriodBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (informedEntityBuilder_ == null) { - informedEntity_ = java.util.Collections.emptyList(); - } else { - informedEntity_ = null; - informedEntityBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - cause_ = 1; - effect_ = 8; - url_ = null; - if (urlBuilder_ != null) { - urlBuilder_.dispose(); - urlBuilder_ = null; - } - headerText_ = null; - if (headerTextBuilder_ != null) { - headerTextBuilder_.dispose(); - headerTextBuilder_ = null; - } - descriptionText_ = null; - if (descriptionTextBuilder_ != null) { - descriptionTextBuilder_.dispose(); - descriptionTextBuilder_ = null; - } - ttsHeaderText_ = null; - if (ttsHeaderTextBuilder_ != null) { - ttsHeaderTextBuilder_.dispose(); - ttsHeaderTextBuilder_ = null; - } - ttsDescriptionText_ = null; - if (ttsDescriptionTextBuilder_ != null) { - ttsDescriptionTextBuilder_.dispose(); - ttsDescriptionTextBuilder_ = null; - } - severityLevel_ = 1; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Alert_descriptor; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.Alert getDefaultInstanceForType() { - return com.google.transit.realtime.GtfsRealtime.Alert.getDefaultInstance(); - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.Alert build() { - com.google.transit.realtime.GtfsRealtime.Alert result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.Alert buildPartial() { - com.google.transit.realtime.GtfsRealtime.Alert result = new com.google.transit.realtime.GtfsRealtime.Alert(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.transit.realtime.GtfsRealtime.Alert result) { - if (activePeriodBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - activePeriod_ = java.util.Collections.unmodifiableList(activePeriod_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.activePeriod_ = activePeriod_; - } else { - result.activePeriod_ = activePeriodBuilder_.build(); - } - if (informedEntityBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - informedEntity_ = java.util.Collections.unmodifiableList(informedEntity_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.informedEntity_ = informedEntity_; - } else { - result.informedEntity_ = informedEntityBuilder_.build(); - } - } - - private void buildPartial0(com.google.transit.realtime.GtfsRealtime.Alert result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.cause_ = cause_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.effect_ = effect_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.url_ = urlBuilder_ == null - ? url_ - : urlBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.headerText_ = headerTextBuilder_ == null - ? headerText_ - : headerTextBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.descriptionText_ = descriptionTextBuilder_ == null - ? descriptionText_ - : descriptionTextBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.ttsHeaderText_ = ttsHeaderTextBuilder_ == null - ? ttsHeaderText_ - : ttsHeaderTextBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.ttsDescriptionText_ = ttsDescriptionTextBuilder_ == null - ? ttsDescriptionText_ - : ttsDescriptionTextBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.severityLevel_ = severityLevel_; - to_bitField0_ |= 0x00000080; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.Alert, Type> extension, - Type value) { - return super.setExtension(extension, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.Alert, java.util.List> extension, - int index, Type value) { - return super.setExtension(extension, index, value); - } - @java.lang.Override - public Builder addExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.Alert, java.util.List> extension, - Type value) { - return super.addExtension(extension, value); - } - @java.lang.Override - public Builder clearExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.Alert, ?> extension) { - return super.clearExtension(extension); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.transit.realtime.GtfsRealtime.Alert) { - return mergeFrom((com.google.transit.realtime.GtfsRealtime.Alert)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.Alert other) { - if (other == com.google.transit.realtime.GtfsRealtime.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: { - com.google.transit.realtime.GtfsRealtime.TimeRange m = - input.readMessage( - com.google.transit.realtime.GtfsRealtime.TimeRange.PARSER, - extensionRegistry); - if (activePeriodBuilder_ == null) { - ensureActivePeriodIsMutable(); - activePeriod_.add(m); - } else { - activePeriodBuilder_.addMessage(m); - } - break; - } // case 10 - case 42: { - com.google.transit.realtime.GtfsRealtime.EntitySelector m = - input.readMessage( - com.google.transit.realtime.GtfsRealtime.EntitySelector.PARSER, - extensionRegistry); - if (informedEntityBuilder_ == null) { - ensureInformedEntityIsMutable(); - informedEntity_.add(m); - } else { - informedEntityBuilder_.addMessage(m); - } - break; - } // case 42 - case 48: { - int tmpRaw = input.readEnum(); - com.google.transit.realtime.GtfsRealtime.Alert.Cause tmpValue = - com.google.transit.realtime.GtfsRealtime.Alert.Cause.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(6, tmpRaw); - } else { - cause_ = tmpRaw; - bitField0_ |= 0x00000004; - } - break; - } // case 48 - case 56: { - int tmpRaw = input.readEnum(); - com.google.transit.realtime.GtfsRealtime.Alert.Effect tmpValue = - com.google.transit.realtime.GtfsRealtime.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(); - com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel tmpValue = - com.google.transit.realtime.GtfsRealtime.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_ = - java.util.Collections.emptyList(); - private void ensureActivePeriodIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - activePeriod_ = new java.util.ArrayList(activePeriod_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TimeRange, com.google.transit.realtime.GtfsRealtime.TimeRange.Builder, com.google.transit.realtime.GtfsRealtime.TimeRangeOrBuilder> activePeriodBuilder_; - - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public java.util.List getActivePeriodList() { - if (activePeriodBuilder_ == null) { - return java.util.Collections.unmodifiableList(activePeriod_); - } else { - return activePeriodBuilder_.getMessageList(); - } - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public int getActivePeriodCount() { - if (activePeriodBuilder_ == null) { - return activePeriod_.size(); - } else { - return activePeriodBuilder_.getCount(); - } - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public com.google.transit.realtime.GtfsRealtime.TimeRange getActivePeriod(int index) { - if (activePeriodBuilder_ == null) { - return activePeriod_.get(index); - } else { - return activePeriodBuilder_.getMessage(index); - } - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public Builder setActivePeriod( - int index, com.google.transit.realtime.GtfsRealtime.TimeRange value) { - if (activePeriodBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivePeriodIsMutable(); - activePeriod_.set(index, value); - onChanged(); - } else { - activePeriodBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public Builder setActivePeriod( - int index, com.google.transit.realtime.GtfsRealtime.TimeRange.Builder builderForValue) { - if (activePeriodBuilder_ == null) { - ensureActivePeriodIsMutable(); - activePeriod_.set(index, builderForValue.build()); - onChanged(); - } else { - activePeriodBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public Builder addActivePeriod(com.google.transit.realtime.GtfsRealtime.TimeRange value) { - if (activePeriodBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivePeriodIsMutable(); - activePeriod_.add(value); - onChanged(); - } else { - activePeriodBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public Builder addActivePeriod( - int index, com.google.transit.realtime.GtfsRealtime.TimeRange value) { - if (activePeriodBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivePeriodIsMutable(); - activePeriod_.add(index, value); - onChanged(); - } else { - activePeriodBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public Builder addActivePeriod( - com.google.transit.realtime.GtfsRealtime.TimeRange.Builder builderForValue) { - if (activePeriodBuilder_ == null) { - ensureActivePeriodIsMutable(); - activePeriod_.add(builderForValue.build()); - onChanged(); - } else { - activePeriodBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public Builder addActivePeriod( - int index, com.google.transit.realtime.GtfsRealtime.TimeRange.Builder builderForValue) { - if (activePeriodBuilder_ == null) { - ensureActivePeriodIsMutable(); - activePeriod_.add(index, builderForValue.build()); - onChanged(); - } else { - activePeriodBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public Builder addAllActivePeriod( - java.lang.Iterable values) { - if (activePeriodBuilder_ == null) { - ensureActivePeriodIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, activePeriod_); - onChanged(); - } else { - activePeriodBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public Builder clearActivePeriod() { - if (activePeriodBuilder_ == null) { - activePeriod_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - activePeriodBuilder_.clear(); - } - return this; - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public Builder removeActivePeriod(int index) { - if (activePeriodBuilder_ == null) { - ensureActivePeriodIsMutable(); - activePeriod_.remove(index); - onChanged(); - } else { - activePeriodBuilder_.remove(index); - } - return this; - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public com.google.transit.realtime.GtfsRealtime.TimeRange.Builder getActivePeriodBuilder( - int index) { - return getActivePeriodFieldBuilder().getBuilder(index); - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public com.google.transit.realtime.GtfsRealtime.TimeRangeOrBuilder getActivePeriodOrBuilder( - int index) { - if (activePeriodBuilder_ == null) { - return activePeriod_.get(index); } else { - return activePeriodBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public java.util.List - getActivePeriodOrBuilderList() { - if (activePeriodBuilder_ != null) { - return activePeriodBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(activePeriod_); - } - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public com.google.transit.realtime.GtfsRealtime.TimeRange.Builder addActivePeriodBuilder() { - return getActivePeriodFieldBuilder().addBuilder( - com.google.transit.realtime.GtfsRealtime.TimeRange.getDefaultInstance()); - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public com.google.transit.realtime.GtfsRealtime.TimeRange.Builder addActivePeriodBuilder( - int index) { - return getActivePeriodFieldBuilder().addBuilder( - index, com.google.transit.realtime.GtfsRealtime.TimeRange.getDefaultInstance()); - } - /** - *
-       * Time when the alert should be shown to the user. If missing, the
-       * alert will be shown as long as it appears in the feed.
-       * If multiple ranges are given, the alert will be shown during all of them.
-       * 
- * - * repeated .transit_realtime.TimeRange active_period = 1; - */ - public java.util.List - getActivePeriodBuilderList() { - return getActivePeriodFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TimeRange, com.google.transit.realtime.GtfsRealtime.TimeRange.Builder, com.google.transit.realtime.GtfsRealtime.TimeRangeOrBuilder> - getActivePeriodFieldBuilder() { - if (activePeriodBuilder_ == null) { - activePeriodBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TimeRange, com.google.transit.realtime.GtfsRealtime.TimeRange.Builder, com.google.transit.realtime.GtfsRealtime.TimeRangeOrBuilder>( - activePeriod_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - activePeriod_ = null; - } - return activePeriodBuilder_; - } - - private java.util.List informedEntity_ = - java.util.Collections.emptyList(); - private void ensureInformedEntityIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - informedEntity_ = new java.util.ArrayList(informedEntity_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.EntitySelector, com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder, com.google.transit.realtime.GtfsRealtime.EntitySelectorOrBuilder> informedEntityBuilder_; - - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public java.util.List getInformedEntityList() { - if (informedEntityBuilder_ == null) { - return java.util.Collections.unmodifiableList(informedEntity_); - } else { - return informedEntityBuilder_.getMessageList(); - } - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public int getInformedEntityCount() { - if (informedEntityBuilder_ == null) { - return informedEntity_.size(); - } else { - return informedEntityBuilder_.getCount(); - } - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public com.google.transit.realtime.GtfsRealtime.EntitySelector getInformedEntity(int index) { - if (informedEntityBuilder_ == null) { - return informedEntity_.get(index); - } else { - return informedEntityBuilder_.getMessage(index); - } - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public Builder setInformedEntity( - int index, com.google.transit.realtime.GtfsRealtime.EntitySelector value) { - if (informedEntityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInformedEntityIsMutable(); - informedEntity_.set(index, value); - onChanged(); - } else { - informedEntityBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public Builder setInformedEntity( - int index, com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder builderForValue) { - if (informedEntityBuilder_ == null) { - ensureInformedEntityIsMutable(); - informedEntity_.set(index, builderForValue.build()); - onChanged(); - } else { - informedEntityBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public Builder addInformedEntity(com.google.transit.realtime.GtfsRealtime.EntitySelector value) { - if (informedEntityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInformedEntityIsMutable(); - informedEntity_.add(value); - onChanged(); - } else { - informedEntityBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public Builder addInformedEntity( - int index, com.google.transit.realtime.GtfsRealtime.EntitySelector value) { - if (informedEntityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInformedEntityIsMutable(); - informedEntity_.add(index, value); - onChanged(); - } else { - informedEntityBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public Builder addInformedEntity( - com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder builderForValue) { - if (informedEntityBuilder_ == null) { - ensureInformedEntityIsMutable(); - informedEntity_.add(builderForValue.build()); - onChanged(); - } else { - informedEntityBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public Builder addInformedEntity( - int index, com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder builderForValue) { - if (informedEntityBuilder_ == null) { - ensureInformedEntityIsMutable(); - informedEntity_.add(index, builderForValue.build()); - onChanged(); - } else { - informedEntityBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public Builder addAllInformedEntity( - java.lang.Iterable values) { - if (informedEntityBuilder_ == null) { - ensureInformedEntityIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, informedEntity_); - onChanged(); - } else { - informedEntityBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public Builder clearInformedEntity() { - if (informedEntityBuilder_ == null) { - informedEntity_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - informedEntityBuilder_.clear(); - } - return this; - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public Builder removeInformedEntity(int index) { - if (informedEntityBuilder_ == null) { - ensureInformedEntityIsMutable(); - informedEntity_.remove(index); - onChanged(); - } else { - informedEntityBuilder_.remove(index); - } - return this; - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder getInformedEntityBuilder( - int index) { - return getInformedEntityFieldBuilder().getBuilder(index); - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public com.google.transit.realtime.GtfsRealtime.EntitySelectorOrBuilder getInformedEntityOrBuilder( - int index) { - if (informedEntityBuilder_ == null) { - return informedEntity_.get(index); } else { - return informedEntityBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public java.util.List - getInformedEntityOrBuilderList() { - if (informedEntityBuilder_ != null) { - return informedEntityBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(informedEntity_); - } - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder addInformedEntityBuilder() { - return getInformedEntityFieldBuilder().addBuilder( - com.google.transit.realtime.GtfsRealtime.EntitySelector.getDefaultInstance()); - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder addInformedEntityBuilder( - int index) { - return getInformedEntityFieldBuilder().addBuilder( - index, com.google.transit.realtime.GtfsRealtime.EntitySelector.getDefaultInstance()); - } - /** - *
-       * Entities whose users we should notify of this alert.
-       * 
- * - * repeated .transit_realtime.EntitySelector informed_entity = 5; - */ - public java.util.List - getInformedEntityBuilderList() { - return getInformedEntityFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.EntitySelector, com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder, com.google.transit.realtime.GtfsRealtime.EntitySelectorOrBuilder> - getInformedEntityFieldBuilder() { - if (informedEntityBuilder_ == null) { - informedEntityBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.EntitySelector, com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder, com.google.transit.realtime.GtfsRealtime.EntitySelectorOrBuilder>( - informedEntity_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - informedEntity_ = null; - } - return informedEntityBuilder_; - } - - private int cause_ = 1; - /** - * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; - * @return Whether the cause field is set. - */ - @java.lang.Override public boolean hasCause() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; - * @return The cause. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.Alert.Cause getCause() { - com.google.transit.realtime.GtfsRealtime.Alert.Cause result = com.google.transit.realtime.GtfsRealtime.Alert.Cause.forNumber(cause_); - return result == null ? com.google.transit.realtime.GtfsRealtime.Alert.Cause.UNKNOWN_CAUSE : result; - } - /** - * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; - * @param value The cause to set. - * @return This builder for chaining. - */ - public Builder setCause(com.google.transit.realtime.GtfsRealtime.Alert.Cause value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - cause_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; - * @return This builder for chaining. - */ - public Builder clearCause() { - bitField0_ = (bitField0_ & ~0x00000004); - cause_ = 1; - onChanged(); - return this; - } - - private int effect_ = 8; - /** - * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; - * @return Whether the effect field is set. - */ - @java.lang.Override public boolean hasEffect() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; - * @return The effect. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.Alert.Effect getEffect() { - com.google.transit.realtime.GtfsRealtime.Alert.Effect result = com.google.transit.realtime.GtfsRealtime.Alert.Effect.forNumber(effect_); - return result == null ? com.google.transit.realtime.GtfsRealtime.Alert.Effect.UNKNOWN_EFFECT : result; - } - /** - * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; - * @param value The effect to set. - * @return This builder for chaining. - */ - public Builder setEffect(com.google.transit.realtime.GtfsRealtime.Alert.Effect value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - effect_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; - * @return This builder for chaining. - */ - public Builder clearEffect() { - bitField0_ = (bitField0_ & ~0x00000008); - effect_ = 8; - onChanged(); - return this; - } - - private com.google.transit.realtime.GtfsRealtime.TranslatedString url_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder> urlBuilder_; - /** - *
-       * The URL which provides additional information about the alert.
-       * 
- * - * optional .transit_realtime.TranslatedString url = 8; - * @return Whether the url field is set. - */ - public boolean hasUrl() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-       * The URL which provides additional information about the alert.
-       * 
- * - * optional .transit_realtime.TranslatedString url = 8; - * @return The url. - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedString getUrl() { - if (urlBuilder_ == null) { - return url_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : url_; - } else { - return urlBuilder_.getMessage(); - } - } - /** - *
-       * The URL which provides additional information about the alert.
-       * 
- * - * optional .transit_realtime.TranslatedString url = 8; - */ - public Builder setUrl(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { - if (urlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - url_ = value; - } else { - urlBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * The URL which provides additional information about the alert.
-       * 
- * - * optional .transit_realtime.TranslatedString url = 8; - */ - public Builder setUrl( - com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder builderForValue) { - if (urlBuilder_ == null) { - url_ = builderForValue.build(); - } else { - urlBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * The URL which provides additional information about the alert.
-       * 
- * - * optional .transit_realtime.TranslatedString url = 8; - */ - public Builder mergeUrl(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { - if (urlBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - url_ != null && - url_ != com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance()) { - getUrlBuilder().mergeFrom(value); - } else { - url_ = value; - } - } else { - urlBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * The URL which provides additional information about the alert.
-       * 
- * - * optional .transit_realtime.TranslatedString url = 8; - */ - public Builder clearUrl() { - bitField0_ = (bitField0_ & ~0x00000010); - url_ = null; - if (urlBuilder_ != null) { - urlBuilder_.dispose(); - urlBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * The URL which provides additional information about the alert.
-       * 
- * - * optional .transit_realtime.TranslatedString url = 8; - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder getUrlBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getUrlFieldBuilder().getBuilder(); - } - /** - *
-       * The URL which provides additional information about the alert.
-       * 
- * - * optional .transit_realtime.TranslatedString url = 8; - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getUrlOrBuilder() { - if (urlBuilder_ != null) { - return urlBuilder_.getMessageOrBuilder(); - } else { - return url_ == null ? - com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : url_; - } - } - /** - *
-       * The URL which provides additional information about the alert.
-       * 
- * - * optional .transit_realtime.TranslatedString url = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder> - getUrlFieldBuilder() { - if (urlBuilder_ == null) { - urlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder>( - getUrl(), - getParentForChildren(), - isClean()); - url_ = null; - } - return urlBuilder_; - } - - private com.google.transit.realtime.GtfsRealtime.TranslatedString headerText_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder> headerTextBuilder_; - /** - *
-       * Alert header. Contains a short summary of the alert text as plain-text.
-       * 
- * - * optional .transit_realtime.TranslatedString header_text = 10; - * @return Whether the headerText field is set. - */ - public boolean hasHeaderText() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-       * Alert header. Contains a short summary of the alert text as plain-text.
-       * 
- * - * optional .transit_realtime.TranslatedString header_text = 10; - * @return The headerText. - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedString getHeaderText() { - if (headerTextBuilder_ == null) { - return headerText_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : headerText_; - } else { - return headerTextBuilder_.getMessage(); - } - } - /** - *
-       * Alert header. Contains a short summary of the alert text as plain-text.
-       * 
- * - * optional .transit_realtime.TranslatedString header_text = 10; - */ - public Builder setHeaderText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { - if (headerTextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - headerText_ = value; - } else { - headerTextBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-       * Alert header. Contains a short summary of the alert text as plain-text.
-       * 
- * - * optional .transit_realtime.TranslatedString header_text = 10; - */ - public Builder setHeaderText( - com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder builderForValue) { - if (headerTextBuilder_ == null) { - headerText_ = builderForValue.build(); - } else { - headerTextBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-       * Alert header. Contains a short summary of the alert text as plain-text.
-       * 
- * - * optional .transit_realtime.TranslatedString header_text = 10; - */ - public Builder mergeHeaderText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { - if (headerTextBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - headerText_ != null && - headerText_ != com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance()) { - getHeaderTextBuilder().mergeFrom(value); - } else { - headerText_ = value; - } - } else { - headerTextBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-       * Alert header. Contains a short summary of the alert text as plain-text.
-       * 
- * - * optional .transit_realtime.TranslatedString header_text = 10; - */ - public Builder clearHeaderText() { - bitField0_ = (bitField0_ & ~0x00000020); - headerText_ = null; - if (headerTextBuilder_ != null) { - headerTextBuilder_.dispose(); - headerTextBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Alert header. Contains a short summary of the alert text as plain-text.
-       * 
- * - * optional .transit_realtime.TranslatedString header_text = 10; - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder getHeaderTextBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getHeaderTextFieldBuilder().getBuilder(); - } - /** - *
-       * Alert header. Contains a short summary of the alert text as plain-text.
-       * 
- * - * optional .transit_realtime.TranslatedString header_text = 10; - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getHeaderTextOrBuilder() { - if (headerTextBuilder_ != null) { - return headerTextBuilder_.getMessageOrBuilder(); - } else { - return headerText_ == null ? - com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : headerText_; - } - } - /** - *
-       * Alert header. Contains a short summary of the alert text as plain-text.
-       * 
- * - * optional .transit_realtime.TranslatedString header_text = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder> - getHeaderTextFieldBuilder() { - if (headerTextBuilder_ == null) { - headerTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder>( - getHeaderText(), - getParentForChildren(), - isClean()); - headerText_ = null; - } - return headerTextBuilder_; - } - - private com.google.transit.realtime.GtfsRealtime.TranslatedString descriptionText_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder> descriptionTextBuilder_; - /** - *
-       * Full description for the alert as plain-text. The information in the
-       * description should add to the information of the header.
-       * 
- * - * optional .transit_realtime.TranslatedString description_text = 11; - * @return Whether the descriptionText field is set. - */ - public boolean hasDescriptionText() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-       * Full description for the alert as plain-text. The information in the
-       * description should add to the information of the header.
-       * 
- * - * optional .transit_realtime.TranslatedString description_text = 11; - * @return The descriptionText. - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedString getDescriptionText() { - if (descriptionTextBuilder_ == null) { - return descriptionText_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : descriptionText_; - } else { - return descriptionTextBuilder_.getMessage(); - } - } - /** - *
-       * Full description for the alert as plain-text. The information in the
-       * description should add to the information of the header.
-       * 
- * - * optional .transit_realtime.TranslatedString description_text = 11; - */ - public Builder setDescriptionText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { - if (descriptionTextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - descriptionText_ = value; - } else { - descriptionTextBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-       * Full description for the alert as plain-text. The information in the
-       * description should add to the information of the header.
-       * 
- * - * optional .transit_realtime.TranslatedString description_text = 11; - */ - public Builder setDescriptionText( - com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder builderForValue) { - if (descriptionTextBuilder_ == null) { - descriptionText_ = builderForValue.build(); - } else { - descriptionTextBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-       * Full description for the alert as plain-text. The information in the
-       * description should add to the information of the header.
-       * 
- * - * optional .transit_realtime.TranslatedString description_text = 11; - */ - public Builder mergeDescriptionText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { - if (descriptionTextBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - descriptionText_ != null && - descriptionText_ != com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance()) { - getDescriptionTextBuilder().mergeFrom(value); - } else { - descriptionText_ = value; - } - } else { - descriptionTextBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-       * Full description for the alert as plain-text. The information in the
-       * description should add to the information of the header.
-       * 
- * - * optional .transit_realtime.TranslatedString description_text = 11; - */ - public Builder clearDescriptionText() { - bitField0_ = (bitField0_ & ~0x00000040); - descriptionText_ = null; - if (descriptionTextBuilder_ != null) { - descriptionTextBuilder_.dispose(); - descriptionTextBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Full description for the alert as plain-text. The information in the
-       * description should add to the information of the header.
-       * 
- * - * optional .transit_realtime.TranslatedString description_text = 11; - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder getDescriptionTextBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getDescriptionTextFieldBuilder().getBuilder(); - } - /** - *
-       * Full description for the alert as plain-text. The information in the
-       * description should add to the information of the header.
-       * 
- * - * optional .transit_realtime.TranslatedString description_text = 11; - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getDescriptionTextOrBuilder() { - if (descriptionTextBuilder_ != null) { - return descriptionTextBuilder_.getMessageOrBuilder(); - } else { - return descriptionText_ == null ? - com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : descriptionText_; - } - } - /** - *
-       * Full description for the alert as plain-text. The information in the
-       * description should add to the information of the header.
-       * 
- * - * optional .transit_realtime.TranslatedString description_text = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder> - getDescriptionTextFieldBuilder() { - if (descriptionTextBuilder_ == null) { - descriptionTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder>( - getDescriptionText(), - getParentForChildren(), - isClean()); - descriptionText_ = null; - } - return descriptionTextBuilder_; - } - - private com.google.transit.realtime.GtfsRealtime.TranslatedString ttsHeaderText_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder> ttsHeaderTextBuilder_; - /** - *
-       * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_header_text = 12; - * @return Whether the ttsHeaderText field is set. - */ - public boolean hasTtsHeaderText() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-       * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_header_text = 12; - * @return The ttsHeaderText. - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedString getTtsHeaderText() { - if (ttsHeaderTextBuilder_ == null) { - return ttsHeaderText_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : ttsHeaderText_; - } else { - return ttsHeaderTextBuilder_.getMessage(); - } - } - /** - *
-       * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_header_text = 12; - */ - public Builder setTtsHeaderText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { - if (ttsHeaderTextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ttsHeaderText_ = value; - } else { - ttsHeaderTextBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-       * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_header_text = 12; - */ - public Builder setTtsHeaderText( - com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder builderForValue) { - if (ttsHeaderTextBuilder_ == null) { - ttsHeaderText_ = builderForValue.build(); - } else { - ttsHeaderTextBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-       * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_header_text = 12; - */ - public Builder mergeTtsHeaderText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { - if (ttsHeaderTextBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - ttsHeaderText_ != null && - ttsHeaderText_ != com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance()) { - getTtsHeaderTextBuilder().mergeFrom(value); - } else { - ttsHeaderText_ = value; - } - } else { - ttsHeaderTextBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-       * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_header_text = 12; - */ - public Builder clearTtsHeaderText() { - bitField0_ = (bitField0_ & ~0x00000080); - ttsHeaderText_ = null; - if (ttsHeaderTextBuilder_ != null) { - ttsHeaderTextBuilder_.dispose(); - ttsHeaderTextBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_header_text = 12; - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder getTtsHeaderTextBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getTtsHeaderTextFieldBuilder().getBuilder(); - } - /** - *
-       * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_header_text = 12; - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getTtsHeaderTextOrBuilder() { - if (ttsHeaderTextBuilder_ != null) { - return ttsHeaderTextBuilder_.getMessageOrBuilder(); - } else { - return ttsHeaderText_ == null ? - com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : ttsHeaderText_; - } - } - /** - *
-       * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_header_text = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder> - getTtsHeaderTextFieldBuilder() { - if (ttsHeaderTextBuilder_ == null) { - ttsHeaderTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder>( - getTtsHeaderText(), - getParentForChildren(), - isClean()); - ttsHeaderText_ = null; - } - return ttsHeaderTextBuilder_; - } - - private com.google.transit.realtime.GtfsRealtime.TranslatedString ttsDescriptionText_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder> ttsDescriptionTextBuilder_; - /** - *
-       * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_description_text = 13; - * @return Whether the ttsDescriptionText field is set. - */ - public boolean hasTtsDescriptionText() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - *
-       * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_description_text = 13; - * @return The ttsDescriptionText. - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedString getTtsDescriptionText() { - if (ttsDescriptionTextBuilder_ == null) { - return ttsDescriptionText_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : ttsDescriptionText_; - } else { - return ttsDescriptionTextBuilder_.getMessage(); - } - } - /** - *
-       * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_description_text = 13; - */ - public Builder setTtsDescriptionText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { - if (ttsDescriptionTextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ttsDescriptionText_ = value; - } else { - ttsDescriptionTextBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-       * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_description_text = 13; - */ - public Builder setTtsDescriptionText( - com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder builderForValue) { - if (ttsDescriptionTextBuilder_ == null) { - ttsDescriptionText_ = builderForValue.build(); - } else { - ttsDescriptionTextBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-       * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_description_text = 13; - */ - public Builder mergeTtsDescriptionText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { - if (ttsDescriptionTextBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - ttsDescriptionText_ != null && - ttsDescriptionText_ != com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance()) { - getTtsDescriptionTextBuilder().mergeFrom(value); - } else { - ttsDescriptionText_ = value; - } - } else { - ttsDescriptionTextBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-       * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_description_text = 13; - */ - public Builder clearTtsDescriptionText() { - bitField0_ = (bitField0_ & ~0x00000100); - ttsDescriptionText_ = null; - if (ttsDescriptionTextBuilder_ != null) { - ttsDescriptionTextBuilder_.dispose(); - ttsDescriptionTextBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_description_text = 13; - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder getTtsDescriptionTextBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getTtsDescriptionTextFieldBuilder().getBuilder(); - } - /** - *
-       * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_description_text = 13; - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getTtsDescriptionTextOrBuilder() { - if (ttsDescriptionTextBuilder_ != null) { - return ttsDescriptionTextBuilder_.getMessageOrBuilder(); - } else { - return ttsDescriptionText_ == null ? - com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : ttsDescriptionText_; - } - } - /** - *
-       * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
-       * This field is still experimental, and subject to change. It may be formally adopted in the future.
-       * 
- * - * optional .transit_realtime.TranslatedString tts_description_text = 13; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder> - getTtsDescriptionTextFieldBuilder() { - if (ttsDescriptionTextBuilder_ == null) { - ttsDescriptionTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder>( - getTtsDescriptionText(), - getParentForChildren(), - isClean()); - ttsDescriptionText_ = null; - } - return ttsDescriptionTextBuilder_; - } - - private int severityLevel_ = 1; - /** - * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; - * @return Whether the severityLevel field is set. - */ - @java.lang.Override public boolean hasSeverityLevel() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; - * @return The severityLevel. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel getSeverityLevel() { - com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel result = com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel.forNumber(severityLevel_); - return result == null ? com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel.UNKNOWN_SEVERITY : result; - } - /** - * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; - * @param value The severityLevel to set. - * @return This builder for chaining. - */ - public Builder setSeverityLevel(com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - severityLevel_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; - * @return This builder for chaining. - */ - public Builder clearSeverityLevel() { - bitField0_ = (bitField0_ & ~0x00000200); - severityLevel_ = 1; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:transit_realtime.Alert) - } + public static ScheduleRelationship valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } - // @@protoc_insertion_point(class_scope:transit_realtime.Alert) - private static final com.google.transit.realtime.GtfsRealtime.Alert DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.Alert(); - } + private final int value; - public static com.google.transit.realtime.GtfsRealtime.Alert getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private ScheduleRelationship(int value) { + this.value = value; + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Alert parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(enum_scope:transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship) + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private int bitField0_; + public static final int STOP_SEQUENCE_FIELD_NUMBER = 1; + private int stopSequence_ = 0; + /** + *
+             * Must be the same as in stop_times.txt in the corresponding GTFS feed.
+             * 
+ * + * optional uint32 stop_sequence = 1; + * @return Whether the stopSequence field is set. + */ + @java.lang.Override + public boolean hasStopSequence() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Must be the same as in stop_times.txt in the corresponding GTFS feed.
+             * 
+ * + * optional uint32 stop_sequence = 1; + * @return The stopSequence. + */ + @java.lang.Override + public int getStopSequence() { + return stopSequence_; + } - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.Alert getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int STOP_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object stopId_ = ""; + /** + *
+             * Must be the same as in stops.txt in the corresponding GTFS feed.
+             * 
+ * + * optional string stop_id = 4; + * @return Whether the stopId field is set. + */ + @java.lang.Override + public boolean hasStopId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * Must be the same as in stops.txt in the corresponding GTFS feed.
+             * 
+ * + * optional string stop_id = 4; + * @return The stopId. + */ + @java.lang.Override + public java.lang.String getStopId() { + java.lang.Object ref = stopId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopId_ = s; + } + return s; + } + } + /** + *
+             * Must be the same as in stops.txt in the corresponding GTFS feed.
+             * 
+ * + * optional string stop_id = 4; + * @return The bytes for stopId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStopIdBytes() { + java.lang.Object ref = stopId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + stopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - } + public static final int ARRIVAL_FIELD_NUMBER = 2; + private com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent arrival_; + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + * @return Whether the arrival field is set. + */ + @java.lang.Override + public boolean hasArrival() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + * @return The arrival. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getArrival() { + return arrival_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() + : arrival_; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder getArrivalOrBuilder() { + return arrival_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() + : arrival_; + } - public interface TimeRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.TimeRange) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { + public static final int DEPARTURE_FIELD_NUMBER = 3; + private com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent departure_; + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; + * @return Whether the departure field is set. + */ + @java.lang.Override + public boolean hasDeparture() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; + * @return The departure. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getDeparture() { + return departure_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() + : departure_; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder getDepartureOrBuilder() { + return departure_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() + : departure_; + } - /** - *
-     * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
-     * 00:00:00 UTC).
-     * If missing, the interval starts at minus infinity.
-     * 
- * - * optional uint64 start = 1; - * @return Whether the start field is set. - */ - boolean hasStart(); - /** - *
-     * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
-     * 00:00:00 UTC).
-     * If missing, the interval starts at minus infinity.
-     * 
- * - * optional uint64 start = 1; - * @return The start. - */ - long getStart(); + public static final int SCHEDULE_RELATIONSHIP_FIELD_NUMBER = 5; + private int scheduleRelationship_ = 0; + /** + * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; + * @return Whether the scheduleRelationship field is set. + */ + @java.lang.Override + public boolean hasScheduleRelationship() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; + * @return The scheduleRelationship. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship getScheduleRelationship() { + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship result = com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship + .forNumber(scheduleRelationship_); + return result == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship.SCHEDULED + : result; + } - /** - *
-     * End time, in POSIX time (i.e., number of seconds since January 1st 1970
-     * 00:00:00 UTC).
-     * If missing, the interval ends at plus infinity.
-     * 
- * - * optional uint64 end = 2; - * @return Whether the end field is set. - */ - boolean hasEnd(); - /** - *
-     * End time, in POSIX time (i.e., number of seconds since January 1st 1970
-     * 00:00:00 UTC).
-     * If missing, the interval ends at plus infinity.
-     * 
- * - * optional uint64 end = 2; - * @return The end. - */ - long getEnd(); - } - /** - *
-   * A time interval. The interval is considered active at time 't' if 't' is
-   * greater than or equal to the start time and less than the end time.
-   * 
- * - * Protobuf type {@code transit_realtime.TimeRange} - */ - public static final class TimeRange extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - TimeRange> implements - // @@protoc_insertion_point(message_implements:transit_realtime.TimeRange) - TimeRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use TimeRange.newBuilder() to construct. - private TimeRange(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private TimeRange() { - } + public static final int STOP_TIME_PROPERTIES_FIELD_NUMBER = 6; + private com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties stopTimeProperties_; + /** + * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + * @return Whether the stopTimeProperties field is set. + */ + @java.lang.Override + public boolean hasStopTimeProperties() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + * @return The stopTimeProperties. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties getStopTimeProperties() { + return stopTimeProperties_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.getDefaultInstance() + : stopTimeProperties_; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimePropertiesOrBuilder getStopTimePropertiesOrBuilder() { + return stopTimeProperties_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.getDefaultInstance() + : stopTimeProperties_; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TimeRange(); - } + 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 final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TimeRange_descriptor; - } + @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_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getStopTimeProperties()); + } + extensionWriter.writeUntil(2000, output); + getUnknownFields().writeTo(output); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TimeRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.TimeRange.class, com.google.transit.realtime.GtfsRealtime.TimeRange.Builder.class); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - private int bitField0_; - public static final int START_FIELD_NUMBER = 1; - private long start_ = 0L; - /** - *
-     * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
-     * 00:00:00 UTC).
-     * If missing, the interval starts at minus infinity.
-     * 
- * - * optional uint64 start = 1; - * @return Whether the start field is set. - */ - @java.lang.Override - public boolean hasStart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
-     * 00:00:00 UTC).
-     * If missing, the interval starts at minus infinity.
-     * 
- * - * optional uint64 start = 1; - * @return The start. - */ - @java.lang.Override - public long getStart() { - return start_; - } + 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_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStopTimeProperties()); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int END_FIELD_NUMBER = 2; - private long end_ = 0L; - /** - *
-     * End time, in POSIX time (i.e., number of seconds since January 1st 1970
-     * 00:00:00 UTC).
-     * If missing, the interval ends at plus infinity.
-     * 
- * - * optional uint64 end = 2; - * @return Whether the end field is set. - */ - @java.lang.Override - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * End time, in POSIX time (i.e., number of seconds since January 1st 1970
-     * 00:00:00 UTC).
-     * If missing, the interval ends at plus infinity.
-     * 
- * - * optional uint64 end = 2; - * @return The end. - */ - @java.lang.Override - public long getEnd() { - return end_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate other = (com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate) obj; - 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; - } + 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 (hasStopTimeProperties() != other.hasStopTimeProperties()) + return false; + if (hasStopTimeProperties()) { + if (!getStopTimeProperties().equals(other.getStopTimeProperties())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + if (!getExtensionFields().equals(other.getExtensionFields())) + return false; + 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(2000, output); - getUnknownFields().writeTo(output); - } + @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_; + } + if (hasStopTimeProperties()) { + hash = (37 * hash) + STOP_TIME_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getStopTimeProperties().hashCode(); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @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; - } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.TimeRange)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.TimeRange other = (com.google.transit.realtime.GtfsRealtime.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 Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @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; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+             * Realtime update for arrival and/or departure events for a given stop on a
+             * trip. Updates can be supplied for both past and future events.
+             * The producer is allowed, although not required, to drop past events.
+             * 
+ * + * Protobuf type {@code transit_realtime.TripUpdate.StopTimeUpdate} + */ + public static final class Builder + extends + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.TripUpdate.StopTimeUpdate) + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeUpdate_descriptor; + } - public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TimeRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TimeRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.class, + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder.class); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TimeRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + // Construct using com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A time interval. The interval is considered active at time 't' if 't' is
-     * greater than or equal to the start time and less than the end time.
-     * 
- * - * Protobuf type {@code transit_realtime.TimeRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< - com.google.transit.realtime.GtfsRealtime.TimeRange, Builder> implements - // @@protoc_insertion_point(builder_implements:transit_realtime.TimeRange) - com.google.transit.realtime.GtfsRealtime.TimeRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TimeRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TimeRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.TimeRange.class, com.google.transit.realtime.GtfsRealtime.TimeRange.Builder.class); - } - - // Construct using com.google.transit.realtime.GtfsRealtime.TimeRange.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - start_ = 0L; - end_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TimeRange_descriptor; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TimeRange getDefaultInstanceForType() { - return com.google.transit.realtime.GtfsRealtime.TimeRange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TimeRange build() { - com.google.transit.realtime.GtfsRealtime.TimeRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TimeRange buildPartial() { - com.google.transit.realtime.GtfsRealtime.TimeRange result = new com.google.transit.realtime.GtfsRealtime.TimeRange(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.transit.realtime.GtfsRealtime.TimeRange result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.start_ = start_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.end_ = end_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TimeRange, Type> extension, - Type value) { - return super.setExtension(extension, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TimeRange, java.util.List> extension, - int index, Type value) { - return super.setExtension(extension, index, value); - } - @java.lang.Override - public Builder addExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TimeRange, java.util.List> extension, - Type value) { - return super.addExtension(extension, value); - } - @java.lang.Override - public Builder clearExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TimeRange, ?> extension) { - return super.clearExtension(extension); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.transit.realtime.GtfsRealtime.TimeRange) { - return mergeFrom((com.google.transit.realtime.GtfsRealtime.TimeRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TimeRange other) { - if (other == com.google.transit.realtime.GtfsRealtime.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_ ; - /** - *
-       * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
-       * 00:00:00 UTC).
-       * If missing, the interval starts at minus infinity.
-       * 
- * - * optional uint64 start = 1; - * @return Whether the start field is set. - */ - @java.lang.Override - public boolean hasStart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
-       * 00:00:00 UTC).
-       * If missing, the interval starts at minus infinity.
-       * 
- * - * optional uint64 start = 1; - * @return The start. - */ - @java.lang.Override - public long getStart() { - return start_; - } - /** - *
-       * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
-       * 00:00:00 UTC).
-       * If missing, the interval starts at minus infinity.
-       * 
- * - * optional uint64 start = 1; - * @param value The start to set. - * @return This builder for chaining. - */ - public Builder setStart(long value) { - - start_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
-       * 00:00:00 UTC).
-       * If missing, the interval starts at minus infinity.
-       * 
- * - * optional uint64 start = 1; - * @return This builder for chaining. - */ - public Builder clearStart() { - bitField0_ = (bitField0_ & ~0x00000001); - start_ = 0L; - onChanged(); - return this; - } - - private long end_ ; - /** - *
-       * End time, in POSIX time (i.e., number of seconds since January 1st 1970
-       * 00:00:00 UTC).
-       * If missing, the interval ends at plus infinity.
-       * 
- * - * optional uint64 end = 2; - * @return Whether the end field is set. - */ - @java.lang.Override - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * End time, in POSIX time (i.e., number of seconds since January 1st 1970
-       * 00:00:00 UTC).
-       * If missing, the interval ends at plus infinity.
-       * 
- * - * optional uint64 end = 2; - * @return The end. - */ - @java.lang.Override - public long getEnd() { - return end_; - } - /** - *
-       * End time, in POSIX time (i.e., number of seconds since January 1st 1970
-       * 00:00:00 UTC).
-       * If missing, the interval ends at plus infinity.
-       * 
- * - * optional uint64 end = 2; - * @param value The end to set. - * @return This builder for chaining. - */ - public Builder setEnd(long value) { - - end_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * End time, in POSIX time (i.e., number of seconds since January 1st 1970
-       * 00:00:00 UTC).
-       * If missing, the interval ends at plus infinity.
-       * 
- * - * optional uint64 end = 2; - * @return This builder for chaining. - */ - public Builder clearEnd() { - bitField0_ = (bitField0_ & ~0x00000002); - end_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:transit_realtime.TimeRange) - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getArrivalFieldBuilder(); + getDepartureFieldBuilder(); + getStopTimePropertiesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + stopSequence_ = 0; + stopId_ = ""; + arrival_ = null; + if (arrivalBuilder_ != null) { + arrivalBuilder_.dispose(); + arrivalBuilder_ = null; + } + departure_ = null; + if (departureBuilder_ != null) { + departureBuilder_.dispose(); + departureBuilder_ = null; + } + scheduleRelationship_ = 0; + stopTimeProperties_ = null; + if (stopTimePropertiesBuilder_ != null) { + stopTimePropertiesBuilder_.dispose(); + stopTimePropertiesBuilder_ = null; + } + return this; + } - // @@protoc_insertion_point(class_scope:transit_realtime.TimeRange) - private static final com.google.transit.realtime.GtfsRealtime.TimeRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TimeRange(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_StopTimeUpdate_descriptor; + } - public static com.google.transit.realtime.GtfsRealtime.TimeRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.getDefaultInstance(); + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate build() { + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate buildPartial() { + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate result = new com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TimeRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private void buildPartial0(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.stopSequence_ = stopSequence_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.stopId_ = stopId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.arrival_ = arrivalBuilder_ == null ? arrival_ : arrivalBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.departure_ = departureBuilder_ == null ? departure_ : departureBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.scheduleRelationship_ = scheduleRelationship_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.stopTimeProperties_ = stopTimePropertiesBuilder_ == null + ? stopTimeProperties_ + : stopTimePropertiesBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension, + Type value) { + return super.setExtension(extension, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + int index, Type value) { + return super.setExtension(extension, index, value); + } + @java.lang.Override + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + Type value) { + return super.addExtension(extension, value); + } + @java.lang.Override + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension) { + return super.clearExtension(extension); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate) { + return mergeFrom((com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate) other); + } else { + super.mergeFrom(other); + return this; + } + } - public interface PositionOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.Position) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate other) { + if (other == com.google.transit.realtime.GtfsRealtime.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()); + } + if (other.hasStopTimeProperties()) { + mergeStopTimeProperties(other.getStopTimeProperties()); + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - *
-     * Degrees North, in the WGS-84 coordinate system.
-     * 
- * - * required float latitude = 1; - * @return Whether the latitude field is set. - */ - boolean hasLatitude(); - /** - *
-     * Degrees North, in the WGS-84 coordinate system.
-     * 
- * - * required float latitude = 1; - * @return The latitude. - */ - float getLatitude(); + @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(); + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship tmpValue = com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(5, tmpRaw); + } else { + scheduleRelationship_ = tmpRaw; + bitField0_ |= 0x00000010; + } + break; + } // case 40 + case 50 : { + input.readMessage(getStopTimePropertiesFieldBuilder().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 int stopSequence_; + /** + *
+                 * Must be the same as in stop_times.txt in the corresponding GTFS feed.
+                 * 
+ * + * optional uint32 stop_sequence = 1; + * @return Whether the stopSequence field is set. + */ + @java.lang.Override + public boolean hasStopSequence() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+                 * Must be the same as in stop_times.txt in the corresponding GTFS feed.
+                 * 
+ * + * optional uint32 stop_sequence = 1; + * @return The stopSequence. + */ + @java.lang.Override + public int getStopSequence() { + return stopSequence_; + } + /** + *
+                 * Must be the same as in stop_times.txt in the corresponding GTFS feed.
+                 * 
+ * + * optional uint32 stop_sequence = 1; + * @param value The stopSequence to set. + * @return This builder for chaining. + */ + public Builder setStopSequence(int value) { + + stopSequence_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+                 * Must be the same as in stop_times.txt in the corresponding GTFS feed.
+                 * 
+ * + * optional uint32 stop_sequence = 1; + * @return This builder for chaining. + */ + public Builder clearStopSequence() { + bitField0_ = (bitField0_ & ~0x00000001); + stopSequence_ = 0; + onChanged(); + return this; + } + + private java.lang.Object stopId_ = ""; + /** + *
+                 * Must be the same as in stops.txt in the corresponding GTFS feed.
+                 * 
+ * + * optional string stop_id = 4; + * @return Whether the stopId field is set. + */ + public boolean hasStopId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+                 * Must be the same as in stops.txt in the corresponding GTFS feed.
+                 * 
+ * + * optional string stop_id = 4; + * @return The stopId. + */ + public java.lang.String getStopId() { + java.lang.Object ref = stopId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+                 * Must be the same as in stops.txt in the corresponding GTFS feed.
+                 * 
+ * + * optional string stop_id = 4; + * @return The bytes for stopId. + */ + public com.google.protobuf.ByteString getStopIdBytes() { + java.lang.Object ref = stopId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + stopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+                 * Must be the same as in stops.txt in the corresponding GTFS feed.
+                 * 
+ * + * optional string stop_id = 4; + * @param value The stopId to set. + * @return This builder for chaining. + */ + public Builder setStopId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + stopId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+                 * Must be the same as in stops.txt in the corresponding GTFS feed.
+                 * 
+ * + * optional string stop_id = 4; + * @return This builder for chaining. + */ + public Builder clearStopId() { + stopId_ = getDefaultInstance().getStopId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+                 * Must be the same as in stops.txt in the corresponding GTFS feed.
+                 * 
+ * + * optional string stop_id = 4; + * @param value The bytes for stopId to set. + * @return This builder for chaining. + */ + public Builder setStopIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + stopId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent arrival_; + private com.google.protobuf.SingleFieldBuilderV3 arrivalBuilder_; + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + * @return Whether the arrival field is set. + */ + public boolean hasArrival() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + * @return The arrival. + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getArrival() { + if (arrivalBuilder_ == null) { + return arrival_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() + : arrival_; + } else { + return arrivalBuilder_.getMessage(); + } + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + */ + public Builder setArrival(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent value) { + if (arrivalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + arrival_ = value; + } else { + arrivalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + */ + public Builder setArrival( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder builderForValue) { + if (arrivalBuilder_ == null) { + arrival_ = builderForValue.build(); + } else { + arrivalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + */ + public Builder mergeArrival(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent value) { + if (arrivalBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && arrival_ != null + && arrival_ != com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent + .getDefaultInstance()) { + getArrivalBuilder().mergeFrom(value); + } else { + arrival_ = value; + } + } else { + arrivalBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + */ + public Builder clearArrival() { + bitField0_ = (bitField0_ & ~0x00000004); + arrival_ = null; + if (arrivalBuilder_ != null) { + arrivalBuilder_.dispose(); + arrivalBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder getArrivalBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getArrivalFieldBuilder().getBuilder(); + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder getArrivalOrBuilder() { + if (arrivalBuilder_ != null) { + return arrivalBuilder_.getMessageOrBuilder(); + } else { + return arrival_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() + : arrival_; + } + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getArrivalFieldBuilder() { + if (arrivalBuilder_ == null) { + arrivalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getArrival(), getParentForChildren(), isClean()); + arrival_ = null; + } + return arrivalBuilder_; + } + + private com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent departure_; + private com.google.protobuf.SingleFieldBuilderV3 departureBuilder_; + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; + * @return Whether the departure field is set. + */ + public boolean hasDeparture() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; + * @return The departure. + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent getDeparture() { + if (departureBuilder_ == null) { + return departure_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() + : departure_; + } else { + return departureBuilder_.getMessage(); + } + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; + */ + public Builder setDeparture(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent value) { + if (departureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + departure_ = value; + } else { + departureBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; + */ + public Builder setDeparture( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder builderForValue) { + if (departureBuilder_ == null) { + departure_ = builderForValue.build(); + } else { + departureBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; + */ + public Builder mergeDeparture(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent value) { + if (departureBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && departure_ != null + && departure_ != com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent + .getDefaultInstance()) { + getDepartureBuilder().mergeFrom(value); + } else { + departure_ = value; + } + } else { + departureBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; + */ + public Builder clearDeparture() { + bitField0_ = (bitField0_ & ~0x00000008); + departure_ = null; + if (departureBuilder_ != null) { + departureBuilder_.dispose(); + departureBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder getDepartureBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getDepartureFieldBuilder().getBuilder(); + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEventOrBuilder getDepartureOrBuilder() { + if (departureBuilder_ != null) { + return departureBuilder_.getMessageOrBuilder(); + } else { + return departure_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance() + : departure_; + } + } + /** + * optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getDepartureFieldBuilder() { + if (departureBuilder_ == null) { + departureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getDeparture(), getParentForChildren(), isClean()); + departure_ = null; + } + return departureBuilder_; + } + + private int scheduleRelationship_ = 0; + /** + * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; + * @return Whether the scheduleRelationship field is set. + */ + @java.lang.Override + public boolean hasScheduleRelationship() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; + * @return The scheduleRelationship. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship getScheduleRelationship() { + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship result = com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship + .forNumber(scheduleRelationship_); + return result == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship.SCHEDULED + : result; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; + * @param value The scheduleRelationship to set. + * @return This builder for chaining. + */ + public Builder setScheduleRelationship( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + scheduleRelationship_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED]; + * @return This builder for chaining. + */ + public Builder clearScheduleRelationship() { + bitField0_ = (bitField0_ & ~0x00000010); + scheduleRelationship_ = 0; + onChanged(); + return this; + } + + private com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties stopTimeProperties_; + private com.google.protobuf.SingleFieldBuilderV3 stopTimePropertiesBuilder_; + /** + * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + * @return Whether the stopTimeProperties field is set. + */ + public boolean hasStopTimeProperties() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + * @return The stopTimeProperties. + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties getStopTimeProperties() { + if (stopTimePropertiesBuilder_ == null) { + return stopTimeProperties_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties + .getDefaultInstance() + : stopTimeProperties_; + } else { + return stopTimePropertiesBuilder_.getMessage(); + } + } + /** + * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + */ + public Builder setStopTimeProperties( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties value) { + if (stopTimePropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stopTimeProperties_ = value; + } else { + stopTimePropertiesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + */ + public Builder setStopTimeProperties( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.Builder builderForValue) { + if (stopTimePropertiesBuilder_ == null) { + stopTimeProperties_ = builderForValue.build(); + } else { + stopTimePropertiesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + */ + public Builder mergeStopTimeProperties( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties value) { + if (stopTimePropertiesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && stopTimeProperties_ != null + && stopTimeProperties_ != com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties + .getDefaultInstance()) { + getStopTimePropertiesBuilder().mergeFrom(value); + } else { + stopTimeProperties_ = value; + } + } else { + stopTimePropertiesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + */ + public Builder clearStopTimeProperties() { + bitField0_ = (bitField0_ & ~0x00000020); + stopTimeProperties_ = null; + if (stopTimePropertiesBuilder_ != null) { + stopTimePropertiesBuilder_.dispose(); + stopTimePropertiesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties.Builder getStopTimePropertiesBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getStopTimePropertiesFieldBuilder().getBuilder(); + } + /** + * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimePropertiesOrBuilder getStopTimePropertiesOrBuilder() { + if (stopTimePropertiesBuilder_ != null) { + return stopTimePropertiesBuilder_.getMessageOrBuilder(); + } else { + return stopTimeProperties_ == null + ? com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeProperties + .getDefaultInstance() + : stopTimeProperties_; + } + } + /** + * optional .transit_realtime.TripUpdate.StopTimeProperties stop_time_properties = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3 getStopTimePropertiesFieldBuilder() { + if (stopTimePropertiesBuilder_ == null) { + stopTimePropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getStopTimeProperties(), getParentForChildren(), isClean()); + stopTimeProperties_ = null; + } + return stopTimePropertiesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:transit_realtime.TripUpdate.StopTimeUpdate) + } + + // @@protoc_insertion_point(class_scope:transit_realtime.TripUpdate.StopTimeUpdate) + private static final com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate(); + } + + public static com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopTimeUpdate parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int TRIP_FIELD_NUMBER = 1; + private com.google.transit.realtime.GtfsRealtime.TripDescriptor trip_; + /** + *
+         * The Trip that this message applies to. There can be at most one
+         * TripUpdate entity for each actual trip instance.
+         * If there is none, that means there is no prediction information available.
+         * It does *not* mean that the trip is progressing according to schedule.
+         * 
+ * + * required .transit_realtime.TripDescriptor trip = 1; + * @return Whether the trip field is set. + */ + @java.lang.Override + public boolean hasTrip() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * The Trip that this message applies to. There can be at most one
+         * TripUpdate entity for each actual trip instance.
+         * If there is none, that means there is no prediction information available.
+         * It does *not* mean that the trip is progressing according to schedule.
+         * 
+ * + * required .transit_realtime.TripDescriptor trip = 1; + * @return The trip. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip() { + return trip_ == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; + } + /** + *
+         * The Trip that this message applies to. There can be at most one
+         * TripUpdate entity for each actual trip instance.
+         * If there is none, that means there is no prediction information available.
+         * It does *not* mean that the trip is progressing according to schedule.
+         * 
+ * + * required .transit_realtime.TripDescriptor trip = 1; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder() { + return trip_ == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; + } + + public static final int VEHICLE_FIELD_NUMBER = 3; + private com.google.transit.realtime.GtfsRealtime.VehicleDescriptor vehicle_; + /** + *
+         * Additional information on the vehicle that is serving this trip.
+         * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 3; + * @return Whether the vehicle field is set. + */ + @java.lang.Override + public boolean hasVehicle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * Additional information on the vehicle that is serving this trip.
+         * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 3; + * @return The vehicle. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getVehicle() { + return vehicle_ == null + ? com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() + : vehicle_; + } + /** + *
+         * Additional information on the vehicle that is serving this trip.
+         * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 3; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder() { + return vehicle_ == null + ? com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() + : vehicle_; + } + + public static final int STOP_TIME_UPDATE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List stopTimeUpdate_; + /** + *
+         * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+         * some cases, past ones, i.e., those that already happened).
+         * The updates must be sorted by stop_sequence, and apply for all the
+         * following stops of the trip up to the next specified one.
+         * Example 1:
+         * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+         * delay of 0 for stop_sequence of the current stop means that the trip is
+         * exactly on time.
+         * Example 2:
+         * For the same trip instance, 3 StopTimeUpdates are provided:
+         * - delay of 5 min for stop_sequence 3
+         * - delay of 1 min for stop_sequence 8
+         * - delay of unspecified duration for stop_sequence 10
+         * This will be interpreted as:
+         * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+         * - stop_sequences 8,9 have delay of 1 min.
+         * - stop_sequences 10,... have unknown delay.
+         * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + @java.lang.Override + public java.util.List getStopTimeUpdateList() { + return stopTimeUpdate_; + } + /** + *
+         * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+         * some cases, past ones, i.e., those that already happened).
+         * The updates must be sorted by stop_sequence, and apply for all the
+         * following stops of the trip up to the next specified one.
+         * Example 1:
+         * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+         * delay of 0 for stop_sequence of the current stop means that the trip is
+         * exactly on time.
+         * Example 2:
+         * For the same trip instance, 3 StopTimeUpdates are provided:
+         * - delay of 5 min for stop_sequence 3
+         * - delay of 1 min for stop_sequence 8
+         * - delay of unspecified duration for stop_sequence 10
+         * This will be interpreted as:
+         * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+         * - stop_sequences 8,9 have delay of 1 min.
+         * - stop_sequences 10,... have unknown delay.
+         * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + @java.lang.Override + public java.util.List getStopTimeUpdateOrBuilderList() { + return stopTimeUpdate_; + } + /** + *
+         * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+         * some cases, past ones, i.e., those that already happened).
+         * The updates must be sorted by stop_sequence, and apply for all the
+         * following stops of the trip up to the next specified one.
+         * Example 1:
+         * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+         * delay of 0 for stop_sequence of the current stop means that the trip is
+         * exactly on time.
+         * Example 2:
+         * For the same trip instance, 3 StopTimeUpdates are provided:
+         * - delay of 5 min for stop_sequence 3
+         * - delay of 1 min for stop_sequence 8
+         * - delay of unspecified duration for stop_sequence 10
+         * This will be interpreted as:
+         * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+         * - stop_sequences 8,9 have delay of 1 min.
+         * - stop_sequences 10,... have unknown delay.
+         * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + @java.lang.Override + public int getStopTimeUpdateCount() { + return stopTimeUpdate_.size(); + } + /** + *
+         * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+         * some cases, past ones, i.e., those that already happened).
+         * The updates must be sorted by stop_sequence, and apply for all the
+         * following stops of the trip up to the next specified one.
+         * Example 1:
+         * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+         * delay of 0 for stop_sequence of the current stop means that the trip is
+         * exactly on time.
+         * Example 2:
+         * For the same trip instance, 3 StopTimeUpdates are provided:
+         * - delay of 5 min for stop_sequence 3
+         * - delay of 1 min for stop_sequence 8
+         * - delay of unspecified duration for stop_sequence 10
+         * This will be interpreted as:
+         * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+         * - stop_sequences 8,9 have delay of 1 min.
+         * - stop_sequences 10,... have unknown delay.
+         * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate getStopTimeUpdate(int index) { + return stopTimeUpdate_.get(index); + } + /** + *
+         * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+         * some cases, past ones, i.e., those that already happened).
+         * The updates must be sorted by stop_sequence, and apply for all the
+         * following stops of the trip up to the next specified one.
+         * Example 1:
+         * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+         * delay of 0 for stop_sequence of the current stop means that the trip is
+         * exactly on time.
+         * Example 2:
+         * For the same trip instance, 3 StopTimeUpdates are provided:
+         * - delay of 5 min for stop_sequence 3
+         * - delay of 1 min for stop_sequence 8
+         * - delay of unspecified duration for stop_sequence 10
+         * This will be interpreted as:
+         * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+         * - stop_sequences 8,9 have delay of 1 min.
+         * - stop_sequences 10,... have unknown delay.
+         * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder getStopTimeUpdateOrBuilder( + int index) { + return stopTimeUpdate_.get(index); + } + + public static final int TIMESTAMP_FIELD_NUMBER = 4; + private long timestamp_ = 0L; + /** + *
+         * Moment at which the vehicle's real-time progress was measured. In POSIX
+         * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
+         * 
+ * + * optional uint64 timestamp = 4; + * @return Whether the timestamp field is set. + */ + @java.lang.Override + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * Moment at which the vehicle's real-time progress was measured. In POSIX
+         * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
+         * 
+ * + * optional uint64 timestamp = 4; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + + public static final int DELAY_FIELD_NUMBER = 5; + private int delay_ = 0; + /** + *
+         * The current schedule deviation for the trip.  Delay should only be
+         * specified when the prediction is given relative to some existing schedule
+         * in GTFS.
+         * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+         * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+         * means that the vehicle is exactly on time.
+         * Delay information in StopTimeUpdates take precedent of trip-level delay
+         * information, such that trip-level delay is only propagated until the next
+         * stop along the trip with a StopTimeUpdate delay value specified.
+         * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
+         * value indicating when the delay value was last updated, in order to
+         * evaluate the freshness of the data.
+         * NOTE: This field is still experimental, and subject to change. It may be
+         * formally adopted in the future.
+         * 
+ * + * optional int32 delay = 5; + * @return Whether the delay field is set. + */ + @java.lang.Override + public boolean hasDelay() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+         * The current schedule deviation for the trip.  Delay should only be
+         * specified when the prediction is given relative to some existing schedule
+         * in GTFS.
+         * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+         * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+         * means that the vehicle is exactly on time.
+         * Delay information in StopTimeUpdates take precedent of trip-level delay
+         * information, such that trip-level delay is only propagated until the next
+         * stop along the trip with a StopTimeUpdate delay value specified.
+         * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
+         * value indicating when the delay value was last updated, in order to
+         * evaluate the freshness of the data.
+         * NOTE: This field is still experimental, and subject to change. It may be
+         * formally adopted in the future.
+         * 
+ * + * optional int32 delay = 5; + * @return The delay. + */ + @java.lang.Override + public int getDelay() { + return delay_; + } + + 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 (!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_); + } + extensionWriter.writeUntil(2000, 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_); + } + 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 com.google.transit.realtime.GtfsRealtime.TripUpdate)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.TripUpdate other = (com.google.transit.realtime.GtfsRealtime.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 (!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(); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TripUpdate parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TripUpdate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * Realtime update of the progress of a vehicle along a trip.
+         * Depending on the value of ScheduleRelationship, a TripUpdate can specify:
+         * - A trip that proceeds along the schedule.
+         * - A trip that proceeds along a route but has no fixed schedule.
+         * - A trip that have been added or removed with regard to schedule.
+         * The updates can be for future, predicted arrival/departure events, or for
+         * past events that already occurred.
+         * Normally, updates should get more precise and more certain (see
+         * uncertainty below) as the events gets closer to current time.
+         * Even if that is not possible, the information for past events should be
+         * precise and certain. In particular, if an update points to time in the past
+         * but its update's uncertainty is not 0, the client should conclude that the
+         * update is a (wrong) prediction and that the trip has not completed yet.
+         * Note that the update can describe a trip that is already completed.
+         * To this end, it is enough to provide an update for the last stop of the trip.
+         * If the time of that is in the past, the client will conclude from that that
+         * the whole trip is in the past (it is possible, although inconsequential, to
+         * also provide updates for preceding stops).
+         * This option is most relevant for a trip that has completed ahead of schedule,
+         * but according to the schedule, the trip is still proceeding at the current
+         * time. Removing the updates for this trip could make the client assume
+         * that the trip is still proceeding.
+         * Note that the feed provider is allowed, but not required, to purge past
+         * updates - this is one case where this would be practically useful.
+         * 
+ * + * Protobuf type {@code transit_realtime.TripUpdate} + */ + public static final class Builder + extends + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.TripUpdate) + com.google.transit.realtime.GtfsRealtime.TripUpdateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.TripUpdate.class, + com.google.transit.realtime.GtfsRealtime.TripUpdate.Builder.class); + } + + // Construct using com.google.transit.realtime.GtfsRealtime.TripUpdate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTripFieldBuilder(); + getVehicleFieldBuilder(); + getStopTimeUpdateFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + trip_ = null; + if (tripBuilder_ != null) { + tripBuilder_.dispose(); + tripBuilder_ = null; + } + vehicle_ = null; + if (vehicleBuilder_ != null) { + vehicleBuilder_.dispose(); + vehicleBuilder_ = null; + } + if (stopTimeUpdateBuilder_ == null) { + stopTimeUpdate_ = java.util.Collections.emptyList(); + } else { + stopTimeUpdate_ = null; + stopTimeUpdateBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + timestamp_ = 0L; + delay_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripUpdate_descriptor; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.TripUpdate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate build() { + com.google.transit.realtime.GtfsRealtime.TripUpdate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate buildPartial() { + com.google.transit.realtime.GtfsRealtime.TripUpdate result = new com.google.transit.realtime.GtfsRealtime.TripUpdate( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.transit.realtime.GtfsRealtime.TripUpdate result) { + if (stopTimeUpdateBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + stopTimeUpdate_ = java.util.Collections.unmodifiableList(stopTimeUpdate_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.stopTimeUpdate_ = stopTimeUpdate_; + } else { + result.stopTimeUpdate_ = stopTimeUpdateBuilder_.build(); + } + } + + private void buildPartial0(com.google.transit.realtime.GtfsRealtime.TripUpdate result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trip_ = tripBuilder_ == null ? trip_ : tripBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vehicle_ = vehicleBuilder_ == null ? vehicle_ : vehicleBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.timestamp_ = timestamp_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.delay_ = delay_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension, + Type value) { + return super.setExtension(extension, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + int index, Type value) { + return super.setExtension(extension, index, value); + } + @java.lang.Override + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + Type value) { + return super.addExtension(extension, value); + } + @java.lang.Override + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension) { + return super.clearExtension(extension); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.TripUpdate) { + return mergeFrom((com.google.transit.realtime.GtfsRealtime.TripUpdate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TripUpdate other) { + if (other == com.google.transit.realtime.GtfsRealtime.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()); + } + 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 (!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 : { + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate m = input + .readMessage( + com.google.transit.realtime.GtfsRealtime.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 + 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.transit.realtime.GtfsRealtime.TripDescriptor trip_; + private com.google.protobuf.SingleFieldBuilderV3 tripBuilder_; + /** + *
+             * The Trip that this message applies to. There can be at most one
+             * TripUpdate entity for each actual trip instance.
+             * If there is none, that means there is no prediction information available.
+             * It does *not* mean that the trip is progressing according to schedule.
+             * 
+ * + * required .transit_realtime.TripDescriptor trip = 1; + * @return Whether the trip field is set. + */ + public boolean hasTrip() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * The Trip that this message applies to. There can be at most one
+             * TripUpdate entity for each actual trip instance.
+             * If there is none, that means there is no prediction information available.
+             * It does *not* mean that the trip is progressing according to schedule.
+             * 
+ * + * required .transit_realtime.TripDescriptor trip = 1; + * @return The trip. + */ + public com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip() { + if (tripBuilder_ == null) { + return trip_ == null + ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() + : trip_; + } else { + return tripBuilder_.getMessage(); + } + } + /** + *
+             * The Trip that this message applies to. There can be at most one
+             * TripUpdate entity for each actual trip instance.
+             * If there is none, that means there is no prediction information available.
+             * It does *not* mean that the trip is progressing according to schedule.
+             * 
+ * + * required .transit_realtime.TripDescriptor trip = 1; + */ + public Builder setTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { + if (tripBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trip_ = value; + } else { + tripBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * The Trip that this message applies to. There can be at most one
+             * TripUpdate entity for each actual trip instance.
+             * If there is none, that means there is no prediction information available.
+             * It does *not* mean that the trip is progressing according to schedule.
+             * 
+ * + * required .transit_realtime.TripDescriptor trip = 1; + */ + public Builder setTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder builderForValue) { + if (tripBuilder_ == null) { + trip_ = builderForValue.build(); + } else { + tripBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * The Trip that this message applies to. There can be at most one
+             * TripUpdate entity for each actual trip instance.
+             * If there is none, that means there is no prediction information available.
+             * It does *not* mean that the trip is progressing according to schedule.
+             * 
+ * + * required .transit_realtime.TripDescriptor trip = 1; + */ + public Builder mergeTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { + if (tripBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && trip_ != null + && trip_ != com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance()) { + getTripBuilder().mergeFrom(value); + } else { + trip_ = value; + } + } else { + tripBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * The Trip that this message applies to. There can be at most one
+             * TripUpdate entity for each actual trip instance.
+             * If there is none, that means there is no prediction information available.
+             * It does *not* mean that the trip is progressing according to schedule.
+             * 
+ * + * required .transit_realtime.TripDescriptor trip = 1; + */ + public Builder clearTrip() { + bitField0_ = (bitField0_ & ~0x00000001); + trip_ = null; + if (tripBuilder_ != null) { + tripBuilder_.dispose(); + tripBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * The Trip that this message applies to. There can be at most one
+             * TripUpdate entity for each actual trip instance.
+             * If there is none, that means there is no prediction information available.
+             * It does *not* mean that the trip is progressing according to schedule.
+             * 
+ * + * required .transit_realtime.TripDescriptor trip = 1; + */ + public com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder getTripBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTripFieldBuilder().getBuilder(); + } + /** + *
+             * The Trip that this message applies to. There can be at most one
+             * TripUpdate entity for each actual trip instance.
+             * If there is none, that means there is no prediction information available.
+             * It does *not* mean that the trip is progressing according to schedule.
+             * 
+ * + * required .transit_realtime.TripDescriptor trip = 1; + */ + public com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder() { + if (tripBuilder_ != null) { + return tripBuilder_.getMessageOrBuilder(); + } else { + return trip_ == null + ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() + : trip_; + } + } + /** + *
+             * The Trip that this message applies to. There can be at most one
+             * TripUpdate entity for each actual trip instance.
+             * If there is none, that means there is no prediction information available.
+             * It does *not* mean that the trip is progressing according to schedule.
+             * 
+ * + * required .transit_realtime.TripDescriptor trip = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTripFieldBuilder() { + if (tripBuilder_ == null) { + tripBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTrip(), getParentForChildren(), isClean()); + trip_ = null; + } + return tripBuilder_; + } + + private com.google.transit.realtime.GtfsRealtime.VehicleDescriptor vehicle_; + private com.google.protobuf.SingleFieldBuilderV3 vehicleBuilder_; + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 3; + * @return Whether the vehicle field is set. + */ + public boolean hasVehicle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 3; + * @return The vehicle. + */ + public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getVehicle() { + if (vehicleBuilder_ == null) { + return vehicle_ == null + ? com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() + : vehicle_; + } else { + return vehicleBuilder_.getMessage(); + } + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 3; + */ + public Builder setVehicle(com.google.transit.realtime.GtfsRealtime.VehicleDescriptor value) { + if (vehicleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vehicle_ = value; + } else { + vehicleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 3; + */ + public Builder setVehicle( + com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder builderForValue) { + if (vehicleBuilder_ == null) { + vehicle_ = builderForValue.build(); + } else { + vehicleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 3; + */ + public Builder mergeVehicle(com.google.transit.realtime.GtfsRealtime.VehicleDescriptor value) { + if (vehicleBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && vehicle_ != null + && vehicle_ != com.google.transit.realtime.GtfsRealtime.VehicleDescriptor + .getDefaultInstance()) { + getVehicleBuilder().mergeFrom(value); + } else { + vehicle_ = value; + } + } else { + vehicleBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 3; + */ + public Builder clearVehicle() { + bitField0_ = (bitField0_ & ~0x00000002); + vehicle_ = null; + if (vehicleBuilder_ != null) { + vehicleBuilder_.dispose(); + vehicleBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 3; + */ + public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder getVehicleBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getVehicleFieldBuilder().getBuilder(); + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 3; + */ + public com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder() { + if (vehicleBuilder_ != null) { + return vehicleBuilder_.getMessageOrBuilder(); + } else { + return vehicle_ == null + ? com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() + : vehicle_; + } + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getVehicleFieldBuilder() { + if (vehicleBuilder_ == null) { + vehicleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getVehicle(), getParentForChildren(), isClean()); + vehicle_ = null; + } + return vehicleBuilder_; + } + + private java.util.List stopTimeUpdate_ = java.util.Collections + .emptyList(); + private void ensureStopTimeUpdateIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + stopTimeUpdate_ = new java.util.ArrayList( + stopTimeUpdate_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 stopTimeUpdateBuilder_; + + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public java.util.List getStopTimeUpdateList() { + if (stopTimeUpdateBuilder_ == null) { + return java.util.Collections.unmodifiableList(stopTimeUpdate_); + } else { + return stopTimeUpdateBuilder_.getMessageList(); + } + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public int getStopTimeUpdateCount() { + if (stopTimeUpdateBuilder_ == null) { + return stopTimeUpdate_.size(); + } else { + return stopTimeUpdateBuilder_.getCount(); + } + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate getStopTimeUpdate(int index) { + if (stopTimeUpdateBuilder_ == null) { + return stopTimeUpdate_.get(index); + } else { + return stopTimeUpdateBuilder_.getMessage(index); + } + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public Builder setStopTimeUpdate(int index, + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate value) { + if (stopTimeUpdateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStopTimeUpdateIsMutable(); + stopTimeUpdate_.set(index, value); + onChanged(); + } else { + stopTimeUpdateBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public Builder setStopTimeUpdate(int index, + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue) { + if (stopTimeUpdateBuilder_ == null) { + ensureStopTimeUpdateIsMutable(); + stopTimeUpdate_.set(index, builderForValue.build()); + onChanged(); + } else { + stopTimeUpdateBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public Builder addStopTimeUpdate(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate value) { + if (stopTimeUpdateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStopTimeUpdateIsMutable(); + stopTimeUpdate_.add(value); + onChanged(); + } else { + stopTimeUpdateBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public Builder addStopTimeUpdate(int index, + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate value) { + if (stopTimeUpdateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStopTimeUpdateIsMutable(); + stopTimeUpdate_.add(index, value); + onChanged(); + } else { + stopTimeUpdateBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public Builder addStopTimeUpdate( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue) { + if (stopTimeUpdateBuilder_ == null) { + ensureStopTimeUpdateIsMutable(); + stopTimeUpdate_.add(builderForValue.build()); + onChanged(); + } else { + stopTimeUpdateBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public Builder addStopTimeUpdate(int index, + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue) { + if (stopTimeUpdateBuilder_ == null) { + ensureStopTimeUpdateIsMutable(); + stopTimeUpdate_.add(index, builderForValue.build()); + onChanged(); + } else { + stopTimeUpdateBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public Builder addAllStopTimeUpdate( + java.lang.Iterable values) { + if (stopTimeUpdateBuilder_ == null) { + ensureStopTimeUpdateIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stopTimeUpdate_); + onChanged(); + } else { + stopTimeUpdateBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public Builder clearStopTimeUpdate() { + if (stopTimeUpdateBuilder_ == null) { + stopTimeUpdate_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + stopTimeUpdateBuilder_.clear(); + } + return this; + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public Builder removeStopTimeUpdate(int index) { + if (stopTimeUpdateBuilder_ == null) { + ensureStopTimeUpdateIsMutable(); + stopTimeUpdate_.remove(index); + onChanged(); + } else { + stopTimeUpdateBuilder_.remove(index); + } + return this; + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder getStopTimeUpdateBuilder( + int index) { + return getStopTimeUpdateFieldBuilder().getBuilder(index); + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder getStopTimeUpdateOrBuilder( + int index) { + if (stopTimeUpdateBuilder_ == null) { + return stopTimeUpdate_.get(index); + } else { + return stopTimeUpdateBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public java.util.List getStopTimeUpdateOrBuilderList() { + if (stopTimeUpdateBuilder_ != null) { + return stopTimeUpdateBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stopTimeUpdate_); + } + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder addStopTimeUpdateBuilder() { + return getStopTimeUpdateFieldBuilder().addBuilder( + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.getDefaultInstance()); + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder addStopTimeUpdateBuilder( + int index) { + return getStopTimeUpdateFieldBuilder().addBuilder(index, + com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.getDefaultInstance()); + } + /** + *
+             * Updates to StopTimes for the trip (both future, i.e., predictions, and in
+             * some cases, past ones, i.e., those that already happened).
+             * The updates must be sorted by stop_sequence, and apply for all the
+             * following stops of the trip up to the next specified one.
+             * Example 1:
+             * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure
+             * delay of 0 for stop_sequence of the current stop means that the trip is
+             * exactly on time.
+             * Example 2:
+             * For the same trip instance, 3 StopTimeUpdates are provided:
+             * - delay of 5 min for stop_sequence 3
+             * - delay of 1 min for stop_sequence 8
+             * - delay of unspecified duration for stop_sequence 10
+             * This will be interpreted as:
+             * - stop_sequences 3,4,5,6,7 have delay of 5 min.
+             * - stop_sequences 8,9 have delay of 1 min.
+             * - stop_sequences 10,... have unknown delay.
+             * 
+ * + * repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2; + */ + public java.util.List getStopTimeUpdateBuilderList() { + return getStopTimeUpdateFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getStopTimeUpdateFieldBuilder() { + if (stopTimeUpdateBuilder_ == null) { + stopTimeUpdateBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + stopTimeUpdate_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + stopTimeUpdate_ = null; + } + return stopTimeUpdateBuilder_; + } + + private long timestamp_; + /** + *
+             * Moment at which the vehicle's real-time progress was measured. In POSIX
+             * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
+             * 
+ * + * optional uint64 timestamp = 4; + * @return Whether the timestamp field is set. + */ + @java.lang.Override + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+             * Moment at which the vehicle's real-time progress was measured. In POSIX
+             * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
+             * 
+ * + * optional uint64 timestamp = 4; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + /** + *
+             * Moment at which the vehicle's real-time progress was measured. In POSIX
+             * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
+             * 
+ * + * optional uint64 timestamp = 4; + * @param value The timestamp to set. + * @return This builder for chaining. + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+             * Moment at which the vehicle's real-time progress was measured. In POSIX
+             * time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
+             * 
+ * + * optional uint64 timestamp = 4; + * @return This builder for chaining. + */ + public Builder clearTimestamp() { + bitField0_ = (bitField0_ & ~0x00000008); + timestamp_ = 0L; + onChanged(); + return this; + } + + private int delay_; + /** + *
+             * The current schedule deviation for the trip.  Delay should only be
+             * specified when the prediction is given relative to some existing schedule
+             * in GTFS.
+             * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+             * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+             * means that the vehicle is exactly on time.
+             * Delay information in StopTimeUpdates take precedent of trip-level delay
+             * information, such that trip-level delay is only propagated until the next
+             * stop along the trip with a StopTimeUpdate delay value specified.
+             * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
+             * value indicating when the delay value was last updated, in order to
+             * evaluate the freshness of the data.
+             * NOTE: This field is still experimental, and subject to change. It may be
+             * formally adopted in the future.
+             * 
+ * + * optional int32 delay = 5; + * @return Whether the delay field is set. + */ + @java.lang.Override + public boolean hasDelay() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+             * The current schedule deviation for the trip.  Delay should only be
+             * specified when the prediction is given relative to some existing schedule
+             * in GTFS.
+             * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+             * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+             * means that the vehicle is exactly on time.
+             * Delay information in StopTimeUpdates take precedent of trip-level delay
+             * information, such that trip-level delay is only propagated until the next
+             * stop along the trip with a StopTimeUpdate delay value specified.
+             * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
+             * value indicating when the delay value was last updated, in order to
+             * evaluate the freshness of the data.
+             * NOTE: This field is still experimental, and subject to change. It may be
+             * formally adopted in the future.
+             * 
+ * + * optional int32 delay = 5; + * @return The delay. + */ + @java.lang.Override + public int getDelay() { + return delay_; + } + /** + *
+             * The current schedule deviation for the trip.  Delay should only be
+             * specified when the prediction is given relative to some existing schedule
+             * in GTFS.
+             * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+             * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+             * means that the vehicle is exactly on time.
+             * Delay information in StopTimeUpdates take precedent of trip-level delay
+             * information, such that trip-level delay is only propagated until the next
+             * stop along the trip with a StopTimeUpdate delay value specified.
+             * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
+             * value indicating when the delay value was last updated, in order to
+             * evaluate the freshness of the data.
+             * NOTE: This field is still experimental, and subject to change. It may be
+             * formally adopted in the future.
+             * 
+ * + * optional int32 delay = 5; + * @param value The delay to set. + * @return This builder for chaining. + */ + public Builder setDelay(int value) { + + delay_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+             * The current schedule deviation for the trip.  Delay should only be
+             * specified when the prediction is given relative to some existing schedule
+             * in GTFS.
+             * Delay (in seconds) can be positive (meaning that the vehicle is late) or
+             * negative (meaning that the vehicle is ahead of schedule). Delay of 0
+             * means that the vehicle is exactly on time.
+             * Delay information in StopTimeUpdates take precedent of trip-level delay
+             * information, such that trip-level delay is only propagated until the next
+             * stop along the trip with a StopTimeUpdate delay value specified.
+             * Feed providers are strongly encouraged to provide a TripUpdate.timestamp
+             * value indicating when the delay value was last updated, in order to
+             * evaluate the freshness of the data.
+             * NOTE: This field is still experimental, and subject to change. It may be
+             * formally adopted in the future.
+             * 
+ * + * optional int32 delay = 5; + * @return This builder for chaining. + */ + public Builder clearDelay() { + bitField0_ = (bitField0_ & ~0x00000010); + delay_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:transit_realtime.TripUpdate) + } + + // @@protoc_insertion_point(class_scope:transit_realtime.TripUpdate) + private static final com.google.transit.realtime.GtfsRealtime.TripUpdate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TripUpdate(); + } + + public static com.google.transit.realtime.GtfsRealtime.TripUpdate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TripUpdate parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripUpdate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VehiclePositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.VehiclePosition) + com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder { + + /** + *
+         * The Trip that this vehicle is serving.
+         * Can be empty or partial if the vehicle can not be identified with a given
+         * trip instance.
+         * 
+ * + * optional .transit_realtime.TripDescriptor trip = 1; + * @return Whether the trip field is set. + */ + boolean hasTrip(); + /** + *
+         * The Trip that this vehicle is serving.
+         * Can be empty or partial if the vehicle can not be identified with a given
+         * trip instance.
+         * 
+ * + * optional .transit_realtime.TripDescriptor trip = 1; + * @return The trip. + */ + com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip(); + /** + *
+         * The Trip that this vehicle is serving.
+         * Can be empty or partial if the vehicle can not be identified with a given
+         * trip instance.
+         * 
+ * + * optional .transit_realtime.TripDescriptor trip = 1; + */ + com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder(); + + /** + *
+         * Additional information on the vehicle that is serving this trip.
+         * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 8; + * @return Whether the vehicle field is set. + */ + boolean hasVehicle(); + /** + *
+         * Additional information on the vehicle that is serving this trip.
+         * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 8; + * @return The vehicle. + */ + com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getVehicle(); + /** + *
+         * Additional information on the vehicle that is serving this trip.
+         * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 8; + */ + com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder(); + + /** + *
+         * Current position of this vehicle.
+         * 
+ * + * optional .transit_realtime.Position position = 2; + * @return Whether the position field is set. + */ + boolean hasPosition(); + /** + *
+         * Current position of this vehicle.
+         * 
+ * + * optional .transit_realtime.Position position = 2; + * @return The position. + */ + com.google.transit.realtime.GtfsRealtime.Position getPosition(); + /** + *
+         * Current position of this vehicle.
+         * 
+ * + * optional .transit_realtime.Position position = 2; + */ + com.google.transit.realtime.GtfsRealtime.PositionOrBuilder getPositionOrBuilder(); + + /** + *
+         * The stop sequence index of the current stop. The meaning of
+         * current_stop_sequence (i.e., the stop that it refers to) is determined by
+         * current_status.
+         * If current_status is missing IN_TRANSIT_TO is assumed.
+         * 
+ * + * optional uint32 current_stop_sequence = 3; + * @return Whether the currentStopSequence field is set. + */ + boolean hasCurrentStopSequence(); + /** + *
+         * The stop sequence index of the current stop. The meaning of
+         * current_stop_sequence (i.e., the stop that it refers to) is determined by
+         * current_status.
+         * If current_status is missing IN_TRANSIT_TO is assumed.
+         * 
+ * + * optional uint32 current_stop_sequence = 3; + * @return The currentStopSequence. + */ + int getCurrentStopSequence(); + + /** + *
+         * Identifies the current stop. The value must be the same as in stops.txt in
+         * the corresponding GTFS feed.
+         * 
+ * + * optional string stop_id = 7; + * @return Whether the stopId field is set. + */ + boolean hasStopId(); + /** + *
+         * Identifies the current stop. The value must be the same as in stops.txt in
+         * the corresponding GTFS feed.
+         * 
+ * + * optional string stop_id = 7; + * @return The stopId. + */ + java.lang.String getStopId(); + /** + *
+         * Identifies the current stop. The value must be the same as in stops.txt in
+         * the corresponding GTFS feed.
+         * 
+ * + * optional string stop_id = 7; + * @return The bytes for stopId. + */ + com.google.protobuf.ByteString getStopIdBytes(); + + /** + *
+         * The exact status of the vehicle with respect to the current stop.
+         * Ignored if current_stop_sequence is missing.
+         * 
+ * + * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; + * @return Whether the currentStatus field is set. + */ + boolean hasCurrentStatus(); + /** + *
+         * The exact status of the vehicle with respect to the current stop.
+         * Ignored if current_stop_sequence is missing.
+         * 
+ * + * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; + * @return The currentStatus. + */ + com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus getCurrentStatus(); + + /** + *
+         * Moment at which the vehicle's position was measured. In POSIX time
+         * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
+         * 
+ * + * optional uint64 timestamp = 5; + * @return Whether the timestamp field is set. + */ + boolean hasTimestamp(); + /** + *
+         * Moment at which the vehicle's position was measured. In POSIX time
+         * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
+         * 
+ * + * optional uint64 timestamp = 5; + * @return The timestamp. + */ + long getTimestamp(); + + /** + * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; + * @return Whether the congestionLevel field is set. + */ + boolean hasCongestionLevel(); + /** + * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; + * @return The congestionLevel. + */ + com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel getCongestionLevel(); + + /** + * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; + * @return Whether the occupancyStatus field is set. + */ + boolean hasOccupancyStatus(); + /** + * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; + * @return The occupancyStatus. + */ + com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus getOccupancyStatus(); + } + /** + *
+     * Realtime positioning information for a given vehicle.
+     * 
+ * + * Protobuf type {@code transit_realtime.VehiclePosition} + */ + public static final class VehiclePosition + extends + com.google.protobuf.GeneratedMessageV3.ExtendableMessage + implements + // @@protoc_insertion_point(message_implements:transit_realtime.VehiclePosition) + VehiclePositionOrBuilder { + private static final long serialVersionUID = 0L; + // Use VehiclePosition.newBuilder() to construct. + private VehiclePosition( + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { + super(builder); + } + private VehiclePosition() { + stopId_ = ""; + currentStatus_ = 2; + congestionLevel_ = 0; + occupancyStatus_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VehiclePosition(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehiclePosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehiclePosition_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.VehiclePosition.class, + com.google.transit.realtime.GtfsRealtime.VehiclePosition.Builder.class); + } + + /** + * Protobuf enum {@code transit_realtime.VehiclePosition.VehicleStopStatus} + */ + public enum VehicleStopStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+             * The vehicle is just about to arrive at the stop (on a stop
+             * display, the vehicle symbol typically flashes).
+             * 
+ * + * INCOMING_AT = 0; + */ + INCOMING_AT(0), + /** + *
+             * The vehicle is standing at the stop.
+             * 
+ * + * STOPPED_AT = 1; + */ + STOPPED_AT(1), + /** + *
+             * The vehicle has departed and is in transit to the next stop.
+             * 
+ * + * IN_TRANSIT_TO = 2; + */ + IN_TRANSIT_TO(2),; + + /** + *
+             * The vehicle is just about to arrive at the stop (on a stop
+             * display, the vehicle symbol typically flashes).
+             * 
+ * + * INCOMING_AT = 0; + */ + public static final int INCOMING_AT_VALUE = 0; + /** + *
+             * The vehicle is standing at the stop.
+             * 
+ * + * STOPPED_AT = 1; + */ + public static final int STOPPED_AT_VALUE = 1; + /** + *
+             * The vehicle has departed and is in transit to the next stop.
+             * 
+ * + * IN_TRANSIT_TO = 2; + */ + public static final int IN_TRANSIT_TO_VALUE = 2; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static VehicleStopStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static VehicleStopStatus forNumber(int value) { + switch (value) { + case 0 : + return INCOMING_AT; + case 1 : + return STOPPED_AT; + case 2 : + return IN_TRANSIT_TO; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public VehicleStopStatus findValueByNumber(int number) { + return VehicleStopStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDescriptor().getEnumTypes().get(0); + } + + private static final VehicleStopStatus[] VALUES = values(); + + public static VehicleStopStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private VehicleStopStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:transit_realtime.VehiclePosition.VehicleStopStatus) + } + + /** + *
+         * Congestion level that is affecting this vehicle.
+         * 
+ * + * Protobuf enum {@code transit_realtime.VehiclePosition.CongestionLevel} + */ + public enum CongestionLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN_CONGESTION_LEVEL = 0; + */ + UNKNOWN_CONGESTION_LEVEL(0), + /** + * RUNNING_SMOOTHLY = 1; + */ + RUNNING_SMOOTHLY(1), + /** + * STOP_AND_GO = 2; + */ + STOP_AND_GO(2), + /** + * CONGESTION = 3; + */ + CONGESTION(3), + /** + *
+             * People leaving their cars.
+             * 
+ * + * SEVERE_CONGESTION = 4; + */ + SEVERE_CONGESTION(4),; + + /** + * UNKNOWN_CONGESTION_LEVEL = 0; + */ + public static final int UNKNOWN_CONGESTION_LEVEL_VALUE = 0; + /** + * RUNNING_SMOOTHLY = 1; + */ + public static final int RUNNING_SMOOTHLY_VALUE = 1; + /** + * STOP_AND_GO = 2; + */ + public static final int STOP_AND_GO_VALUE = 2; + /** + * CONGESTION = 3; + */ + public static final int CONGESTION_VALUE = 3; + /** + *
+             * People leaving their cars.
+             * 
+ * + * SEVERE_CONGESTION = 4; + */ + public static final int SEVERE_CONGESTION_VALUE = 4; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CongestionLevel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CongestionLevel forNumber(int value) { + switch (value) { + case 0 : + return UNKNOWN_CONGESTION_LEVEL; + case 1 : + return RUNNING_SMOOTHLY; + case 2 : + return STOP_AND_GO; + case 3 : + return CONGESTION; + case 4 : + return SEVERE_CONGESTION; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public CongestionLevel findValueByNumber(int number) { + return CongestionLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDescriptor().getEnumTypes().get(1); + } + + private static final CongestionLevel[] VALUES = values(); + + public static CongestionLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CongestionLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:transit_realtime.VehiclePosition.CongestionLevel) + } + + /** + *
+         * The degree of passenger occupancy of the vehicle. This field is still
+         * experimental, and subject to change. It may be formally adopted in the
+         * future.
+         * 
+ * + * Protobuf enum {@code transit_realtime.VehiclePosition.OccupancyStatus} + */ + public enum OccupancyStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+             * The vehicle is considered empty by most measures, and has few or no
+             * passengers onboard, but is still accepting passengers.
+             * 
+ * + * EMPTY = 0; + */ + EMPTY(0), + /** + *
+             * The vehicle has a relatively large percentage of seats available.
+             * What percentage of free seats out of the total seats available is to be
+             * considered large enough to fall into this category is determined at the
+             * discretion of the producer.
+             * 
+ * + * MANY_SEATS_AVAILABLE = 1; + */ + MANY_SEATS_AVAILABLE(1), + /** + *
+             * The vehicle has a relatively small percentage of seats available.
+             * What percentage of free seats out of the total seats available is to be
+             * considered small enough to fall into this category is determined at the
+             * discretion of the feed producer.
+             * 
+ * + * FEW_SEATS_AVAILABLE = 2; + */ + FEW_SEATS_AVAILABLE(2), + /** + *
+             * The vehicle can currently accommodate only standing passengers.
+             * 
+ * + * STANDING_ROOM_ONLY = 3; + */ + STANDING_ROOM_ONLY(3), + /** + *
+             * The vehicle can currently accommodate only standing passengers
+             * and has limited space for them.
+             * 
+ * + * CRUSHED_STANDING_ROOM_ONLY = 4; + */ + CRUSHED_STANDING_ROOM_ONLY(4), + /** + *
+             * The vehicle is considered full by most measures, but may still be
+             * allowing passengers to board.
+             * 
+ * + * FULL = 5; + */ + FULL(5), + /** + *
+             * The vehicle is not accepting additional passengers.
+             * 
+ * + * NOT_ACCEPTING_PASSENGERS = 6; + */ + NOT_ACCEPTING_PASSENGERS(6),; + + /** + *
+             * The vehicle is considered empty by most measures, and has few or no
+             * passengers onboard, but is still accepting passengers.
+             * 
+ * + * EMPTY = 0; + */ + public static final int EMPTY_VALUE = 0; + /** + *
+             * The vehicle has a relatively large percentage of seats available.
+             * What percentage of free seats out of the total seats available is to be
+             * considered large enough to fall into this category is determined at the
+             * discretion of the producer.
+             * 
+ * + * MANY_SEATS_AVAILABLE = 1; + */ + public static final int MANY_SEATS_AVAILABLE_VALUE = 1; + /** + *
+             * The vehicle has a relatively small percentage of seats available.
+             * What percentage of free seats out of the total seats available is to be
+             * considered small enough to fall into this category is determined at the
+             * discretion of the feed producer.
+             * 
+ * + * FEW_SEATS_AVAILABLE = 2; + */ + public static final int FEW_SEATS_AVAILABLE_VALUE = 2; + /** + *
+             * The vehicle can currently accommodate only standing passengers.
+             * 
+ * + * STANDING_ROOM_ONLY = 3; + */ + public static final int STANDING_ROOM_ONLY_VALUE = 3; + /** + *
+             * The vehicle can currently accommodate only standing passengers
+             * and has limited space for them.
+             * 
+ * + * CRUSHED_STANDING_ROOM_ONLY = 4; + */ + public static final int CRUSHED_STANDING_ROOM_ONLY_VALUE = 4; + /** + *
+             * The vehicle is considered full by most measures, but may still be
+             * allowing passengers to board.
+             * 
+ * + * FULL = 5; + */ + public static final int FULL_VALUE = 5; + /** + *
+             * The vehicle is not accepting additional passengers.
+             * 
+ * + * NOT_ACCEPTING_PASSENGERS = 6; + */ + public static final int NOT_ACCEPTING_PASSENGERS_VALUE = 6; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OccupancyStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static OccupancyStatus forNumber(int value) { + switch (value) { + case 0 : + return EMPTY; + case 1 : + return MANY_SEATS_AVAILABLE; + case 2 : + return FEW_SEATS_AVAILABLE; + case 3 : + return STANDING_ROOM_ONLY; + case 4 : + return CRUSHED_STANDING_ROOM_ONLY; + case 5 : + return FULL; + case 6 : + return NOT_ACCEPTING_PASSENGERS; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public OccupancyStatus findValueByNumber(int number) { + return OccupancyStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDescriptor().getEnumTypes().get(2); + } + + private static final OccupancyStatus[] VALUES = values(); + + public static OccupancyStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OccupancyStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:transit_realtime.VehiclePosition.OccupancyStatus) + } + + private int bitField0_; + public static final int TRIP_FIELD_NUMBER = 1; + private com.google.transit.realtime.GtfsRealtime.TripDescriptor trip_; + /** + *
+         * The Trip that this vehicle is serving.
+         * Can be empty or partial if the vehicle can not be identified with a given
+         * trip instance.
+         * 
+ * + * optional .transit_realtime.TripDescriptor trip = 1; + * @return Whether the trip field is set. + */ + @java.lang.Override + public boolean hasTrip() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * The Trip that this vehicle is serving.
+         * Can be empty or partial if the vehicle can not be identified with a given
+         * trip instance.
+         * 
+ * + * optional .transit_realtime.TripDescriptor trip = 1; + * @return The trip. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip() { + return trip_ == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; + } + /** + *
+         * The Trip that this vehicle is serving.
+         * Can be empty or partial if the vehicle can not be identified with a given
+         * trip instance.
+         * 
+ * + * optional .transit_realtime.TripDescriptor trip = 1; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder() { + return trip_ == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; + } + + public static final int VEHICLE_FIELD_NUMBER = 8; + private com.google.transit.realtime.GtfsRealtime.VehicleDescriptor vehicle_; + /** + *
+         * Additional information on the vehicle that is serving this trip.
+         * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 8; + * @return Whether the vehicle field is set. + */ + @java.lang.Override + public boolean hasVehicle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * Additional information on the vehicle that is serving this trip.
+         * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 8; + * @return The vehicle. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getVehicle() { + return vehicle_ == null + ? com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() + : vehicle_; + } + /** + *
+         * Additional information on the vehicle that is serving this trip.
+         * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 8; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder() { + return vehicle_ == null + ? com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() + : vehicle_; + } + + public static final int POSITION_FIELD_NUMBER = 2; + private com.google.transit.realtime.GtfsRealtime.Position position_; + /** + *
+         * Current position of this vehicle.
+         * 
+ * + * optional .transit_realtime.Position position = 2; + * @return Whether the position field is set. + */ + @java.lang.Override + public boolean hasPosition() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * Current position of this vehicle.
+         * 
+ * + * optional .transit_realtime.Position position = 2; + * @return The position. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Position getPosition() { + return position_ == null + ? com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance() + : position_; + } + /** + *
+         * Current position of this vehicle.
+         * 
+ * + * optional .transit_realtime.Position position = 2; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.PositionOrBuilder getPositionOrBuilder() { + return position_ == null + ? com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance() + : position_; + } + + public static final int CURRENT_STOP_SEQUENCE_FIELD_NUMBER = 3; + private int currentStopSequence_ = 0; + /** + *
+         * The stop sequence index of the current stop. The meaning of
+         * current_stop_sequence (i.e., the stop that it refers to) is determined by
+         * current_status.
+         * If current_status is missing IN_TRANSIT_TO is assumed.
+         * 
+ * + * optional uint32 current_stop_sequence = 3; + * @return Whether the currentStopSequence field is set. + */ + @java.lang.Override + public boolean hasCurrentStopSequence() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+         * The stop sequence index of the current stop. The meaning of
+         * current_stop_sequence (i.e., the stop that it refers to) is determined by
+         * current_status.
+         * If current_status is missing IN_TRANSIT_TO is assumed.
+         * 
+ * + * optional uint32 current_stop_sequence = 3; + * @return The currentStopSequence. + */ + @java.lang.Override + public int getCurrentStopSequence() { + return currentStopSequence_; + } + + public static final int STOP_ID_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object stopId_ = ""; + /** + *
+         * Identifies the current stop. The value must be the same as in stops.txt in
+         * the corresponding GTFS feed.
+         * 
+ * + * optional string stop_id = 7; + * @return Whether the stopId field is set. + */ + @java.lang.Override + public boolean hasStopId() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+         * Identifies the current stop. The value must be the same as in stops.txt in
+         * the corresponding GTFS feed.
+         * 
+ * + * optional string stop_id = 7; + * @return The stopId. + */ + @java.lang.Override + public java.lang.String getStopId() { + java.lang.Object ref = stopId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopId_ = s; + } + return s; + } + } + /** + *
+         * Identifies the current stop. The value must be the same as in stops.txt in
+         * the corresponding GTFS feed.
+         * 
+ * + * optional string stop_id = 7; + * @return The bytes for stopId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStopIdBytes() { + java.lang.Object ref = stopId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENT_STATUS_FIELD_NUMBER = 4; + private int currentStatus_ = 2; + /** + *
+         * The exact status of the vehicle with respect to the current stop.
+         * Ignored if current_stop_sequence is missing.
+         * 
+ * + * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; + * @return Whether the currentStatus field is set. + */ + @java.lang.Override + public boolean hasCurrentStatus() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+         * The exact status of the vehicle with respect to the current stop.
+         * Ignored if current_stop_sequence is missing.
+         * 
+ * + * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; + * @return The currentStatus. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus getCurrentStatus() { + com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus result = com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus + .forNumber(currentStatus_); + return result == null + ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus.IN_TRANSIT_TO + : result; + } + + public static final int TIMESTAMP_FIELD_NUMBER = 5; + private long timestamp_ = 0L; + /** + *
+         * Moment at which the vehicle's position was measured. In POSIX time
+         * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
+         * 
+ * + * optional uint64 timestamp = 5; + * @return Whether the timestamp field is set. + */ + @java.lang.Override + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+         * Moment at which the vehicle's position was measured. In POSIX time
+         * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
+         * 
+ * + * optional uint64 timestamp = 5; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + + public static final int CONGESTION_LEVEL_FIELD_NUMBER = 6; + private int congestionLevel_ = 0; + /** + * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; + * @return Whether the congestionLevel field is set. + */ + @java.lang.Override + public boolean hasCongestionLevel() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; + * @return The congestionLevel. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel getCongestionLevel() { + com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel result = com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel + .forNumber(congestionLevel_); + return result == null + ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel.UNKNOWN_CONGESTION_LEVEL + : result; + } + + public static final int OCCUPANCY_STATUS_FIELD_NUMBER = 9; + private int occupancyStatus_ = 0; + /** + * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; + * @return Whether the occupancyStatus field is set. + */ + @java.lang.Override + public boolean hasOccupancyStatus() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; + * @return The occupancyStatus. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus getOccupancyStatus() { + com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus result = com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus + .forNumber(occupancyStatus_); + return result == null + ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus.EMPTY + : 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 (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; + } + } + 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_); + } + extensionWriter.writeUntil(2000, 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_); + } + 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 com.google.transit.realtime.GtfsRealtime.VehiclePosition)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.VehiclePosition other = (com.google.transit.realtime.GtfsRealtime.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 (!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_; + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.VehiclePosition parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.VehiclePosition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * Realtime positioning information for a given vehicle.
+         * 
+ * + * Protobuf type {@code transit_realtime.VehiclePosition} + */ + public static final class Builder + extends + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.VehiclePosition) + com.google.transit.realtime.GtfsRealtime.VehiclePositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehiclePosition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehiclePosition_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.VehiclePosition.class, + com.google.transit.realtime.GtfsRealtime.VehiclePosition.Builder.class); + } + + // Construct using com.google.transit.realtime.GtfsRealtime.VehiclePosition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTripFieldBuilder(); + getVehicleFieldBuilder(); + getPositionFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + trip_ = null; + if (tripBuilder_ != null) { + tripBuilder_.dispose(); + tripBuilder_ = null; + } + vehicle_ = null; + if (vehicleBuilder_ != null) { + vehicleBuilder_.dispose(); + vehicleBuilder_ = null; + } + position_ = null; + if (positionBuilder_ != null) { + positionBuilder_.dispose(); + positionBuilder_ = null; + } + currentStopSequence_ = 0; + stopId_ = ""; + currentStatus_ = 2; + timestamp_ = 0L; + congestionLevel_ = 0; + occupancyStatus_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehiclePosition_descriptor; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehiclePosition getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.VehiclePosition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehiclePosition build() { + com.google.transit.realtime.GtfsRealtime.VehiclePosition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehiclePosition buildPartial() { + com.google.transit.realtime.GtfsRealtime.VehiclePosition result = new com.google.transit.realtime.GtfsRealtime.VehiclePosition( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.transit.realtime.GtfsRealtime.VehiclePosition result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trip_ = tripBuilder_ == null ? trip_ : tripBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vehicle_ = vehicleBuilder_ == null ? vehicle_ : vehicleBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.position_ = positionBuilder_ == null ? position_ : positionBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.currentStopSequence_ = currentStopSequence_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.stopId_ = stopId_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.currentStatus_ = currentStatus_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.timestamp_ = timestamp_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.congestionLevel_ = congestionLevel_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.occupancyStatus_ = occupancyStatus_; + to_bitField0_ |= 0x00000100; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension, + Type value) { + return super.setExtension(extension, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + int index, Type value) { + return super.setExtension(extension, index, value); + } + @java.lang.Override + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + Type value) { + return super.addExtension(extension, value); + } + @java.lang.Override + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension) { + return super.clearExtension(extension); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.VehiclePosition) { + return mergeFrom((com.google.transit.realtime.GtfsRealtime.VehiclePosition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.VehiclePosition other) { + if (other == com.google.transit.realtime.GtfsRealtime.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()); + } + 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; + } + } + 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(); + com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus tmpValue = com.google.transit.realtime.GtfsRealtime.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(); + com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel tmpValue = com.google.transit.realtime.GtfsRealtime.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(); + com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus tmpValue = com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(9, tmpRaw); + } else { + occupancyStatus_ = tmpRaw; + bitField0_ |= 0x00000100; + } + break; + } // case 72 + 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.transit.realtime.GtfsRealtime.TripDescriptor trip_; + private com.google.protobuf.SingleFieldBuilderV3 tripBuilder_; + /** + *
+             * The Trip that this vehicle is serving.
+             * Can be empty or partial if the vehicle can not be identified with a given
+             * trip instance.
+             * 
+ * + * optional .transit_realtime.TripDescriptor trip = 1; + * @return Whether the trip field is set. + */ + public boolean hasTrip() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * The Trip that this vehicle is serving.
+             * Can be empty or partial if the vehicle can not be identified with a given
+             * trip instance.
+             * 
+ * + * optional .transit_realtime.TripDescriptor trip = 1; + * @return The trip. + */ + public com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip() { + if (tripBuilder_ == null) { + return trip_ == null + ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() + : trip_; + } else { + return tripBuilder_.getMessage(); + } + } + /** + *
+             * The Trip that this vehicle is serving.
+             * Can be empty or partial if the vehicle can not be identified with a given
+             * trip instance.
+             * 
+ * + * optional .transit_realtime.TripDescriptor trip = 1; + */ + public Builder setTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { + if (tripBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trip_ = value; + } else { + tripBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * The Trip that this vehicle is serving.
+             * Can be empty or partial if the vehicle can not be identified with a given
+             * trip instance.
+             * 
+ * + * optional .transit_realtime.TripDescriptor trip = 1; + */ + public Builder setTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder builderForValue) { + if (tripBuilder_ == null) { + trip_ = builderForValue.build(); + } else { + tripBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * The Trip that this vehicle is serving.
+             * Can be empty or partial if the vehicle can not be identified with a given
+             * trip instance.
+             * 
+ * + * optional .transit_realtime.TripDescriptor trip = 1; + */ + public Builder mergeTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { + if (tripBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && trip_ != null + && trip_ != com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance()) { + getTripBuilder().mergeFrom(value); + } else { + trip_ = value; + } + } else { + tripBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * The Trip that this vehicle is serving.
+             * Can be empty or partial if the vehicle can not be identified with a given
+             * trip instance.
+             * 
+ * + * optional .transit_realtime.TripDescriptor trip = 1; + */ + public Builder clearTrip() { + bitField0_ = (bitField0_ & ~0x00000001); + trip_ = null; + if (tripBuilder_ != null) { + tripBuilder_.dispose(); + tripBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * The Trip that this vehicle is serving.
+             * Can be empty or partial if the vehicle can not be identified with a given
+             * trip instance.
+             * 
+ * + * optional .transit_realtime.TripDescriptor trip = 1; + */ + public com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder getTripBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTripFieldBuilder().getBuilder(); + } + /** + *
+             * The Trip that this vehicle is serving.
+             * Can be empty or partial if the vehicle can not be identified with a given
+             * trip instance.
+             * 
+ * + * optional .transit_realtime.TripDescriptor trip = 1; + */ + public com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder() { + if (tripBuilder_ != null) { + return tripBuilder_.getMessageOrBuilder(); + } else { + return trip_ == null + ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() + : trip_; + } + } + /** + *
+             * The Trip that this vehicle is serving.
+             * Can be empty or partial if the vehicle can not be identified with a given
+             * trip instance.
+             * 
+ * + * optional .transit_realtime.TripDescriptor trip = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTripFieldBuilder() { + if (tripBuilder_ == null) { + tripBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTrip(), getParentForChildren(), isClean()); + trip_ = null; + } + return tripBuilder_; + } + + private com.google.transit.realtime.GtfsRealtime.VehicleDescriptor vehicle_; + private com.google.protobuf.SingleFieldBuilderV3 vehicleBuilder_; + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 8; + * @return Whether the vehicle field is set. + */ + public boolean hasVehicle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 8; + * @return The vehicle. + */ + public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getVehicle() { + if (vehicleBuilder_ == null) { + return vehicle_ == null + ? com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() + : vehicle_; + } else { + return vehicleBuilder_.getMessage(); + } + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 8; + */ + public Builder setVehicle(com.google.transit.realtime.GtfsRealtime.VehicleDescriptor value) { + if (vehicleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vehicle_ = value; + } else { + vehicleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 8; + */ + public Builder setVehicle( + com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder builderForValue) { + if (vehicleBuilder_ == null) { + vehicle_ = builderForValue.build(); + } else { + vehicleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 8; + */ + public Builder mergeVehicle(com.google.transit.realtime.GtfsRealtime.VehicleDescriptor value) { + if (vehicleBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && vehicle_ != null + && vehicle_ != com.google.transit.realtime.GtfsRealtime.VehicleDescriptor + .getDefaultInstance()) { + getVehicleBuilder().mergeFrom(value); + } else { + vehicle_ = value; + } + } else { + vehicleBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 8; + */ + public Builder clearVehicle() { + bitField0_ = (bitField0_ & ~0x00000002); + vehicle_ = null; + if (vehicleBuilder_ != null) { + vehicleBuilder_.dispose(); + vehicleBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 8; + */ + public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder getVehicleBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getVehicleFieldBuilder().getBuilder(); + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 8; + */ + public com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder() { + if (vehicleBuilder_ != null) { + return vehicleBuilder_.getMessageOrBuilder(); + } else { + return vehicle_ == null + ? com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance() + : vehicle_; + } + } + /** + *
+             * Additional information on the vehicle that is serving this trip.
+             * 
+ * + * optional .transit_realtime.VehicleDescriptor vehicle = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3 getVehicleFieldBuilder() { + if (vehicleBuilder_ == null) { + vehicleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getVehicle(), getParentForChildren(), isClean()); + vehicle_ = null; + } + return vehicleBuilder_; + } + + private com.google.transit.realtime.GtfsRealtime.Position position_; + private com.google.protobuf.SingleFieldBuilderV3 positionBuilder_; + /** + *
+             * Current position of this vehicle.
+             * 
+ * + * optional .transit_realtime.Position position = 2; + * @return Whether the position field is set. + */ + public boolean hasPosition() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * Current position of this vehicle.
+             * 
+ * + * optional .transit_realtime.Position position = 2; + * @return The position. + */ + public com.google.transit.realtime.GtfsRealtime.Position getPosition() { + if (positionBuilder_ == null) { + return position_ == null + ? com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance() + : position_; + } else { + return positionBuilder_.getMessage(); + } + } + /** + *
+             * Current position of this vehicle.
+             * 
+ * + * optional .transit_realtime.Position position = 2; + */ + public Builder setPosition(com.google.transit.realtime.GtfsRealtime.Position value) { + if (positionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + position_ = value; + } else { + positionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * Current position of this vehicle.
+             * 
+ * + * optional .transit_realtime.Position position = 2; + */ + public Builder setPosition(com.google.transit.realtime.GtfsRealtime.Position.Builder builderForValue) { + if (positionBuilder_ == null) { + position_ = builderForValue.build(); + } else { + positionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * Current position of this vehicle.
+             * 
+ * + * optional .transit_realtime.Position position = 2; + */ + public Builder mergePosition(com.google.transit.realtime.GtfsRealtime.Position value) { + if (positionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && position_ != null + && position_ != com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance()) { + getPositionBuilder().mergeFrom(value); + } else { + position_ = value; + } + } else { + positionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * Current position of this vehicle.
+             * 
+ * + * optional .transit_realtime.Position position = 2; + */ + public Builder clearPosition() { + bitField0_ = (bitField0_ & ~0x00000004); + position_ = null; + if (positionBuilder_ != null) { + positionBuilder_.dispose(); + positionBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * Current position of this vehicle.
+             * 
+ * + * optional .transit_realtime.Position position = 2; + */ + public com.google.transit.realtime.GtfsRealtime.Position.Builder getPositionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPositionFieldBuilder().getBuilder(); + } + /** + *
+             * Current position of this vehicle.
+             * 
+ * + * optional .transit_realtime.Position position = 2; + */ + public com.google.transit.realtime.GtfsRealtime.PositionOrBuilder getPositionOrBuilder() { + if (positionBuilder_ != null) { + return positionBuilder_.getMessageOrBuilder(); + } else { + return position_ == null + ? com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance() + : position_; + } + } + /** + *
+             * Current position of this vehicle.
+             * 
+ * + * optional .transit_realtime.Position position = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getPositionFieldBuilder() { + if (positionBuilder_ == null) { + positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getPosition(), getParentForChildren(), isClean()); + position_ = null; + } + return positionBuilder_; + } + + private int currentStopSequence_; + /** + *
+             * The stop sequence index of the current stop. The meaning of
+             * current_stop_sequence (i.e., the stop that it refers to) is determined by
+             * current_status.
+             * If current_status is missing IN_TRANSIT_TO is assumed.
+             * 
+ * + * optional uint32 current_stop_sequence = 3; + * @return Whether the currentStopSequence field is set. + */ + @java.lang.Override + public boolean hasCurrentStopSequence() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+             * The stop sequence index of the current stop. The meaning of
+             * current_stop_sequence (i.e., the stop that it refers to) is determined by
+             * current_status.
+             * If current_status is missing IN_TRANSIT_TO is assumed.
+             * 
+ * + * optional uint32 current_stop_sequence = 3; + * @return The currentStopSequence. + */ + @java.lang.Override + public int getCurrentStopSequence() { + return currentStopSequence_; + } + /** + *
+             * The stop sequence index of the current stop. The meaning of
+             * current_stop_sequence (i.e., the stop that it refers to) is determined by
+             * current_status.
+             * If current_status is missing IN_TRANSIT_TO is assumed.
+             * 
+ * + * optional uint32 current_stop_sequence = 3; + * @param value The currentStopSequence to set. + * @return This builder for chaining. + */ + public Builder setCurrentStopSequence(int value) { + + currentStopSequence_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+             * The stop sequence index of the current stop. The meaning of
+             * current_stop_sequence (i.e., the stop that it refers to) is determined by
+             * current_status.
+             * If current_status is missing IN_TRANSIT_TO is assumed.
+             * 
+ * + * optional uint32 current_stop_sequence = 3; + * @return This builder for chaining. + */ + public Builder clearCurrentStopSequence() { + bitField0_ = (bitField0_ & ~0x00000008); + currentStopSequence_ = 0; + onChanged(); + return this; + } + + private java.lang.Object stopId_ = ""; + /** + *
+             * Identifies the current stop. The value must be the same as in stops.txt in
+             * the corresponding GTFS feed.
+             * 
+ * + * optional string stop_id = 7; + * @return Whether the stopId field is set. + */ + public boolean hasStopId() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+             * Identifies the current stop. The value must be the same as in stops.txt in
+             * the corresponding GTFS feed.
+             * 
+ * + * optional string stop_id = 7; + * @return The stopId. + */ + public java.lang.String getStopId() { + java.lang.Object ref = stopId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * Identifies the current stop. The value must be the same as in stops.txt in
+             * the corresponding GTFS feed.
+             * 
+ * + * optional string stop_id = 7; + * @return The bytes for stopId. + */ + public com.google.protobuf.ByteString getStopIdBytes() { + java.lang.Object ref = stopId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + stopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * Identifies the current stop. The value must be the same as in stops.txt in
+             * the corresponding GTFS feed.
+             * 
+ * + * optional string stop_id = 7; + * @param value The stopId to set. + * @return This builder for chaining. + */ + public Builder setStopId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + stopId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+             * Identifies the current stop. The value must be the same as in stops.txt in
+             * the corresponding GTFS feed.
+             * 
+ * + * optional string stop_id = 7; + * @return This builder for chaining. + */ + public Builder clearStopId() { + stopId_ = getDefaultInstance().getStopId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+             * Identifies the current stop. The value must be the same as in stops.txt in
+             * the corresponding GTFS feed.
+             * 
+ * + * optional string stop_id = 7; + * @param value The bytes for stopId to set. + * @return This builder for chaining. + */ + public Builder setStopIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + stopId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int currentStatus_ = 2; + /** + *
+             * The exact status of the vehicle with respect to the current stop.
+             * Ignored if current_stop_sequence is missing.
+             * 
+ * + * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; + * @return Whether the currentStatus field is set. + */ + @java.lang.Override + public boolean hasCurrentStatus() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+             * The exact status of the vehicle with respect to the current stop.
+             * Ignored if current_stop_sequence is missing.
+             * 
+ * + * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; + * @return The currentStatus. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus getCurrentStatus() { + com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus result = com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus + .forNumber(currentStatus_); + return result == null + ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus.IN_TRANSIT_TO + : result; + } + /** + *
+             * The exact status of the vehicle with respect to the current stop.
+             * Ignored if current_stop_sequence is missing.
+             * 
+ * + * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; + * @param value The currentStatus to set. + * @return This builder for chaining. + */ + public Builder setCurrentStatus( + com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + currentStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * The exact status of the vehicle with respect to the current stop.
+             * Ignored if current_stop_sequence is missing.
+             * 
+ * + * optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO]; + * @return This builder for chaining. + */ + public Builder clearCurrentStatus() { + bitField0_ = (bitField0_ & ~0x00000020); + currentStatus_ = 2; + onChanged(); + return this; + } + + private long timestamp_; + /** + *
+             * Moment at which the vehicle's position was measured. In POSIX time
+             * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
+             * 
+ * + * optional uint64 timestamp = 5; + * @return Whether the timestamp field is set. + */ + @java.lang.Override + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+             * Moment at which the vehicle's position was measured. In POSIX time
+             * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
+             * 
+ * + * optional uint64 timestamp = 5; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + /** + *
+             * Moment at which the vehicle's position was measured. In POSIX time
+             * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
+             * 
+ * + * optional uint64 timestamp = 5; + * @param value The timestamp to set. + * @return This builder for chaining. + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+             * Moment at which the vehicle's position was measured. In POSIX time
+             * (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
+             * 
+ * + * optional uint64 timestamp = 5; + * @return This builder for chaining. + */ + public Builder clearTimestamp() { + bitField0_ = (bitField0_ & ~0x00000040); + timestamp_ = 0L; + onChanged(); + return this; + } + + private int congestionLevel_ = 0; + /** + * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; + * @return Whether the congestionLevel field is set. + */ + @java.lang.Override + public boolean hasCongestionLevel() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; + * @return The congestionLevel. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel getCongestionLevel() { + com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel result = com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel + .forNumber(congestionLevel_); + return result == null + ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel.UNKNOWN_CONGESTION_LEVEL + : result; + } + /** + * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; + * @param value The congestionLevel to set. + * @return This builder for chaining. + */ + public Builder setCongestionLevel( + com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + congestionLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; + * @return This builder for chaining. + */ + public Builder clearCongestionLevel() { + bitField0_ = (bitField0_ & ~0x00000080); + congestionLevel_ = 0; + onChanged(); + return this; + } + + private int occupancyStatus_ = 0; + /** + * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; + * @return Whether the occupancyStatus field is set. + */ + @java.lang.Override + public boolean hasOccupancyStatus() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; + * @return The occupancyStatus. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus getOccupancyStatus() { + com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus result = com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus + .forNumber(occupancyStatus_); + return result == null + ? com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus.EMPTY + : result; + } + /** + * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; + * @param value The occupancyStatus to set. + * @return This builder for chaining. + */ + public Builder setOccupancyStatus( + com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + occupancyStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; + * @return This builder for chaining. + */ + public Builder clearOccupancyStatus() { + bitField0_ = (bitField0_ & ~0x00000100); + occupancyStatus_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:transit_realtime.VehiclePosition) + } + + // @@protoc_insertion_point(class_scope:transit_realtime.VehiclePosition) + private static final com.google.transit.realtime.GtfsRealtime.VehiclePosition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.VehiclePosition(); + } + + public static com.google.transit.realtime.GtfsRealtime.VehiclePosition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VehiclePosition parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehiclePosition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AlertOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.Alert) + com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder { + + /** + *
+         * Time when the alert should be shown to the user. If missing, the
+         * alert will be shown as long as it appears in the feed.
+         * If multiple ranges are given, the alert will be shown during all of them.
+         * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + java.util.List getActivePeriodList(); + /** + *
+         * Time when the alert should be shown to the user. If missing, the
+         * alert will be shown as long as it appears in the feed.
+         * If multiple ranges are given, the alert will be shown during all of them.
+         * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + com.google.transit.realtime.GtfsRealtime.TimeRange getActivePeriod(int index); + /** + *
+         * Time when the alert should be shown to the user. If missing, the
+         * alert will be shown as long as it appears in the feed.
+         * If multiple ranges are given, the alert will be shown during all of them.
+         * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + int getActivePeriodCount(); + /** + *
+         * Time when the alert should be shown to the user. If missing, the
+         * alert will be shown as long as it appears in the feed.
+         * If multiple ranges are given, the alert will be shown during all of them.
+         * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + java.util.List getActivePeriodOrBuilderList(); + /** + *
+         * Time when the alert should be shown to the user. If missing, the
+         * alert will be shown as long as it appears in the feed.
+         * If multiple ranges are given, the alert will be shown during all of them.
+         * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + com.google.transit.realtime.GtfsRealtime.TimeRangeOrBuilder getActivePeriodOrBuilder(int index); + + /** + *
+         * Entities whose users we should notify of this alert.
+         * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + java.util.List getInformedEntityList(); + /** + *
+         * Entities whose users we should notify of this alert.
+         * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + com.google.transit.realtime.GtfsRealtime.EntitySelector getInformedEntity(int index); + /** + *
+         * Entities whose users we should notify of this alert.
+         * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + int getInformedEntityCount(); + /** + *
+         * Entities whose users we should notify of this alert.
+         * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + java.util.List getInformedEntityOrBuilderList(); + /** + *
+         * Entities whose users we should notify of this alert.
+         * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + com.google.transit.realtime.GtfsRealtime.EntitySelectorOrBuilder getInformedEntityOrBuilder(int index); + + /** + * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; + * @return Whether the cause field is set. + */ + boolean hasCause(); + /** + * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; + * @return The cause. + */ + com.google.transit.realtime.GtfsRealtime.Alert.Cause getCause(); + + /** + * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; + * @return Whether the effect field is set. + */ + boolean hasEffect(); + /** + * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; + * @return The effect. + */ + com.google.transit.realtime.GtfsRealtime.Alert.Effect getEffect(); + + /** + *
+         * The URL which provides additional information about the alert.
+         * 
+ * + * optional .transit_realtime.TranslatedString url = 8; + * @return Whether the url field is set. + */ + boolean hasUrl(); + /** + *
+         * The URL which provides additional information about the alert.
+         * 
+ * + * optional .transit_realtime.TranslatedString url = 8; + * @return The url. + */ + com.google.transit.realtime.GtfsRealtime.TranslatedString getUrl(); + /** + *
+         * The URL which provides additional information about the alert.
+         * 
+ * + * optional .transit_realtime.TranslatedString url = 8; + */ + com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getUrlOrBuilder(); + + /** + *
+         * Alert header. Contains a short summary of the alert text as plain-text.
+         * 
+ * + * optional .transit_realtime.TranslatedString header_text = 10; + * @return Whether the headerText field is set. + */ + boolean hasHeaderText(); + /** + *
+         * Alert header. Contains a short summary of the alert text as plain-text.
+         * 
+ * + * optional .transit_realtime.TranslatedString header_text = 10; + * @return The headerText. + */ + com.google.transit.realtime.GtfsRealtime.TranslatedString getHeaderText(); + /** + *
+         * Alert header. Contains a short summary of the alert text as plain-text.
+         * 
+ * + * optional .transit_realtime.TranslatedString header_text = 10; + */ + com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getHeaderTextOrBuilder(); + + /** + *
+         * Full description for the alert as plain-text. The information in the
+         * description should add to the information of the header.
+         * 
+ * + * optional .transit_realtime.TranslatedString description_text = 11; + * @return Whether the descriptionText field is set. + */ + boolean hasDescriptionText(); + /** + *
+         * Full description for the alert as plain-text. The information in the
+         * description should add to the information of the header.
+         * 
+ * + * optional .transit_realtime.TranslatedString description_text = 11; + * @return The descriptionText. + */ + com.google.transit.realtime.GtfsRealtime.TranslatedString getDescriptionText(); + /** + *
+         * Full description for the alert as plain-text. The information in the
+         * description should add to the information of the header.
+         * 
+ * + * optional .transit_realtime.TranslatedString description_text = 11; + */ + com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getDescriptionTextOrBuilder(); + + /** + *
+         * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
+         * This field is still experimental, and subject to change. It may be formally adopted in the future.
+         * 
+ * + * optional .transit_realtime.TranslatedString tts_header_text = 12; + * @return Whether the ttsHeaderText field is set. + */ + boolean hasTtsHeaderText(); + /** + *
+         * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
+         * This field is still experimental, and subject to change. It may be formally adopted in the future.
+         * 
+ * + * optional .transit_realtime.TranslatedString tts_header_text = 12; + * @return The ttsHeaderText. + */ + com.google.transit.realtime.GtfsRealtime.TranslatedString getTtsHeaderText(); + /** + *
+         * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
+         * This field is still experimental, and subject to change. It may be formally adopted in the future.
+         * 
+ * + * optional .transit_realtime.TranslatedString tts_header_text = 12; + */ + com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getTtsHeaderTextOrBuilder(); + + /** + *
+         * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
+         * This field is still experimental, and subject to change. It may be formally adopted in the future.
+         * 
+ * + * optional .transit_realtime.TranslatedString tts_description_text = 13; + * @return Whether the ttsDescriptionText field is set. + */ + boolean hasTtsDescriptionText(); + /** + *
+         * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
+         * This field is still experimental, and subject to change. It may be formally adopted in the future.
+         * 
+ * + * optional .transit_realtime.TranslatedString tts_description_text = 13; + * @return The ttsDescriptionText. + */ + com.google.transit.realtime.GtfsRealtime.TranslatedString getTtsDescriptionText(); + /** + *
+         * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
+         * This field is still experimental, and subject to change. It may be formally adopted in the future.
+         * 
+ * + * optional .transit_realtime.TranslatedString tts_description_text = 13; + */ + com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getTtsDescriptionTextOrBuilder(); + + /** + * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; + * @return Whether the severityLevel field is set. + */ + boolean hasSeverityLevel(); + /** + * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; + * @return The severityLevel. + */ + com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel getSeverityLevel(); + } + /** + *
+     * An alert, indicating some sort of incident in the public transit network.
+     * 
+ * + * Protobuf type {@code transit_realtime.Alert} + */ + public static final class Alert extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage + implements + // @@protoc_insertion_point(message_implements:transit_realtime.Alert) + AlertOrBuilder { + private static final long serialVersionUID = 0L; + // Use Alert.newBuilder() to construct. + private Alert( + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { + super(builder); + } + private Alert() { + activePeriod_ = java.util.Collections.emptyList(); + informedEntity_ = java.util.Collections.emptyList(); + cause_ = 1; + effect_ = 8; + severityLevel_ = 1; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Alert(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Alert_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Alert_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.Alert.class, + com.google.transit.realtime.GtfsRealtime.Alert.Builder.class); + } + + /** + *
+         * Cause of this alert.
+         * 
+ * + * Protobuf enum {@code transit_realtime.Alert.Cause} + */ + public enum Cause implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN_CAUSE = 1; + */ + UNKNOWN_CAUSE(1), + /** + *
+             * Not machine-representable.
+             * 
+ * + * OTHER_CAUSE = 2; + */ + OTHER_CAUSE(2), + /** + * TECHNICAL_PROBLEM = 3; + */ + TECHNICAL_PROBLEM(3), + /** + *
+             * Public transit agency employees stopped working.
+             * 
+ * + * STRIKE = 4; + */ + STRIKE(4), + /** + *
+             * People are blocking the streets.
+             * 
+ * + * DEMONSTRATION = 5; + */ + DEMONSTRATION(5), + /** + * ACCIDENT = 6; + */ + ACCIDENT(6), + /** + * HOLIDAY = 7; + */ + HOLIDAY(7), + /** + * WEATHER = 8; + */ + WEATHER(8), + /** + * MAINTENANCE = 9; + */ + MAINTENANCE(9), + /** + * CONSTRUCTION = 10; + */ + CONSTRUCTION(10), + /** + * POLICE_ACTIVITY = 11; + */ + POLICE_ACTIVITY(11), + /** + * MEDICAL_EMERGENCY = 12; + */ + MEDICAL_EMERGENCY(12),; + + /** + * UNKNOWN_CAUSE = 1; + */ + public static final int UNKNOWN_CAUSE_VALUE = 1; + /** + *
+             * Not machine-representable.
+             * 
+ * + * OTHER_CAUSE = 2; + */ + public static final int OTHER_CAUSE_VALUE = 2; + /** + * TECHNICAL_PROBLEM = 3; + */ + public static final int TECHNICAL_PROBLEM_VALUE = 3; + /** + *
+             * Public transit agency employees stopped working.
+             * 
+ * + * STRIKE = 4; + */ + public static final int STRIKE_VALUE = 4; + /** + *
+             * People are blocking the streets.
+             * 
+ * + * DEMONSTRATION = 5; + */ + public static final int DEMONSTRATION_VALUE = 5; + /** + * ACCIDENT = 6; + */ + public static final int ACCIDENT_VALUE = 6; + /** + * HOLIDAY = 7; + */ + public static final int HOLIDAY_VALUE = 7; + /** + * WEATHER = 8; + */ + public static final int WEATHER_VALUE = 8; + /** + * MAINTENANCE = 9; + */ + public static final int MAINTENANCE_VALUE = 9; + /** + * CONSTRUCTION = 10; + */ + public static final int CONSTRUCTION_VALUE = 10; + /** + * POLICE_ACTIVITY = 11; + */ + public static final int POLICE_ACTIVITY_VALUE = 11; + /** + * MEDICAL_EMERGENCY = 12; + */ + public static final int MEDICAL_EMERGENCY_VALUE = 12; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Cause valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Cause forNumber(int value) { + switch (value) { + case 1 : + return UNKNOWN_CAUSE; + case 2 : + return OTHER_CAUSE; + case 3 : + return TECHNICAL_PROBLEM; + case 4 : + return STRIKE; + case 5 : + return DEMONSTRATION; + case 6 : + return ACCIDENT; + case 7 : + return HOLIDAY; + case 8 : + return WEATHER; + case 9 : + return MAINTENANCE; + case 10 : + return CONSTRUCTION; + case 11 : + return POLICE_ACTIVITY; + case 12 : + return MEDICAL_EMERGENCY; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public Cause findValueByNumber(int number) { + return Cause.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.Alert.getDescriptor().getEnumTypes().get(0); + } + + private static final Cause[] VALUES = values(); + + public static Cause valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Cause(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:transit_realtime.Alert.Cause) + } + + /** + *
+         * What is the effect of this problem on the affected entity.
+         * 
+ * + * Protobuf enum {@code transit_realtime.Alert.Effect} + */ + public enum Effect implements com.google.protobuf.ProtocolMessageEnum { + /** + * NO_SERVICE = 1; + */ + NO_SERVICE(1), + /** + * REDUCED_SERVICE = 2; + */ + REDUCED_SERVICE(2), + /** + *
+             * We don't care about INsignificant delays: they are hard to detect, have
+             * little impact on the user, and would clutter the results as they are too
+             * frequent.
+             * 
+ * + * SIGNIFICANT_DELAYS = 3; + */ + SIGNIFICANT_DELAYS(3), + /** + * DETOUR = 4; + */ + DETOUR(4), + /** + * ADDITIONAL_SERVICE = 5; + */ + ADDITIONAL_SERVICE(5), + /** + * MODIFIED_SERVICE = 6; + */ + MODIFIED_SERVICE(6), + /** + * OTHER_EFFECT = 7; + */ + OTHER_EFFECT(7), + /** + * UNKNOWN_EFFECT = 8; + */ + UNKNOWN_EFFECT(8), + /** + * STOP_MOVED = 9; + */ + STOP_MOVED(9), + /** + * NO_EFFECT = 10; + */ + NO_EFFECT(10),; + + /** + * NO_SERVICE = 1; + */ + public static final int NO_SERVICE_VALUE = 1; + /** + * REDUCED_SERVICE = 2; + */ + public static final int REDUCED_SERVICE_VALUE = 2; + /** + *
+             * We don't care about INsignificant delays: they are hard to detect, have
+             * little impact on the user, and would clutter the results as they are too
+             * frequent.
+             * 
+ * + * SIGNIFICANT_DELAYS = 3; + */ + public static final int SIGNIFICANT_DELAYS_VALUE = 3; + /** + * DETOUR = 4; + */ + public static final int DETOUR_VALUE = 4; + /** + * ADDITIONAL_SERVICE = 5; + */ + public static final int ADDITIONAL_SERVICE_VALUE = 5; + /** + * MODIFIED_SERVICE = 6; + */ + public static final int MODIFIED_SERVICE_VALUE = 6; + /** + * OTHER_EFFECT = 7; + */ + public static final int OTHER_EFFECT_VALUE = 7; + /** + * UNKNOWN_EFFECT = 8; + */ + public static final int UNKNOWN_EFFECT_VALUE = 8; + /** + * STOP_MOVED = 9; + */ + public static final int STOP_MOVED_VALUE = 9; + /** + * NO_EFFECT = 10; + */ + public static final int NO_EFFECT_VALUE = 10; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Effect valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Effect forNumber(int value) { + switch (value) { + case 1 : + return NO_SERVICE; + case 2 : + return REDUCED_SERVICE; + case 3 : + return SIGNIFICANT_DELAYS; + case 4 : + return DETOUR; + case 5 : + return ADDITIONAL_SERVICE; + case 6 : + return MODIFIED_SERVICE; + case 7 : + return OTHER_EFFECT; + case 8 : + return UNKNOWN_EFFECT; + case 9 : + return STOP_MOVED; + case 10 : + return NO_EFFECT; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public Effect findValueByNumber(int number) { + return Effect.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.Alert.getDescriptor().getEnumTypes().get(1); + } + + private static final Effect[] VALUES = values(); + + public static Effect valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Effect(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:transit_realtime.Alert.Effect) + } + + /** + *
+         * Severity of this alert.
+         * This field is still experimental, and subject to change. It may be formally adopted in the future.
+         * 
+ * + * Protobuf enum {@code transit_realtime.Alert.SeverityLevel} + */ + public enum SeverityLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN_SEVERITY = 1; + */ + UNKNOWN_SEVERITY(1), + /** + * INFO = 2; + */ + INFO(2), + /** + * WARNING = 3; + */ + WARNING(3), + /** + * SEVERE = 4; + */ + SEVERE(4),; + + /** + * UNKNOWN_SEVERITY = 1; + */ + public static final int UNKNOWN_SEVERITY_VALUE = 1; + /** + * INFO = 2; + */ + public static final int INFO_VALUE = 2; + /** + * WARNING = 3; + */ + public static final int WARNING_VALUE = 3; + /** + * SEVERE = 4; + */ + public static final int SEVERE_VALUE = 4; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SeverityLevel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SeverityLevel forNumber(int value) { + switch (value) { + case 1 : + return UNKNOWN_SEVERITY; + case 2 : + return INFO; + case 3 : + return WARNING; + case 4 : + return SEVERE; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public SeverityLevel findValueByNumber(int number) { + return SeverityLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.Alert.getDescriptor().getEnumTypes().get(2); + } + + private static final SeverityLevel[] VALUES = values(); + + public static SeverityLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SeverityLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:transit_realtime.Alert.SeverityLevel) + } + + private int bitField0_; + public static final int ACTIVE_PERIOD_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List activePeriod_; + /** + *
+         * Time when the alert should be shown to the user. If missing, the
+         * alert will be shown as long as it appears in the feed.
+         * If multiple ranges are given, the alert will be shown during all of them.
+         * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + @java.lang.Override + public java.util.List getActivePeriodList() { + return activePeriod_; + } + /** + *
+         * Time when the alert should be shown to the user. If missing, the
+         * alert will be shown as long as it appears in the feed.
+         * If multiple ranges are given, the alert will be shown during all of them.
+         * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + @java.lang.Override + public java.util.List getActivePeriodOrBuilderList() { + return activePeriod_; + } + /** + *
+         * Time when the alert should be shown to the user. If missing, the
+         * alert will be shown as long as it appears in the feed.
+         * If multiple ranges are given, the alert will be shown during all of them.
+         * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + @java.lang.Override + public int getActivePeriodCount() { + return activePeriod_.size(); + } + /** + *
+         * Time when the alert should be shown to the user. If missing, the
+         * alert will be shown as long as it appears in the feed.
+         * If multiple ranges are given, the alert will be shown during all of them.
+         * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TimeRange getActivePeriod(int index) { + return activePeriod_.get(index); + } + /** + *
+         * Time when the alert should be shown to the user. If missing, the
+         * alert will be shown as long as it appears in the feed.
+         * If multiple ranges are given, the alert will be shown during all of them.
+         * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TimeRangeOrBuilder getActivePeriodOrBuilder(int index) { + return activePeriod_.get(index); + } + + public static final int INFORMED_ENTITY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private java.util.List informedEntity_; + /** + *
+         * Entities whose users we should notify of this alert.
+         * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + @java.lang.Override + public java.util.List getInformedEntityList() { + return informedEntity_; + } + /** + *
+         * Entities whose users we should notify of this alert.
+         * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + @java.lang.Override + public java.util.List getInformedEntityOrBuilderList() { + return informedEntity_; + } + /** + *
+         * Entities whose users we should notify of this alert.
+         * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + @java.lang.Override + public int getInformedEntityCount() { + return informedEntity_.size(); + } + /** + *
+         * Entities whose users we should notify of this alert.
+         * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.EntitySelector getInformedEntity(int index) { + return informedEntity_.get(index); + } + /** + *
+         * Entities whose users we should notify of this alert.
+         * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.EntitySelectorOrBuilder getInformedEntityOrBuilder(int index) { + return informedEntity_.get(index); + } + + public static final int CAUSE_FIELD_NUMBER = 6; + private int cause_ = 1; + /** + * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; + * @return Whether the cause field is set. + */ + @java.lang.Override + public boolean hasCause() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; + * @return The cause. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Alert.Cause getCause() { + com.google.transit.realtime.GtfsRealtime.Alert.Cause result = com.google.transit.realtime.GtfsRealtime.Alert.Cause + .forNumber(cause_); + return result == null ? com.google.transit.realtime.GtfsRealtime.Alert.Cause.UNKNOWN_CAUSE : result; + } + + public static final int EFFECT_FIELD_NUMBER = 7; + private int effect_ = 8; + /** + * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; + * @return Whether the effect field is set. + */ + @java.lang.Override + public boolean hasEffect() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; + * @return The effect. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Alert.Effect getEffect() { + com.google.transit.realtime.GtfsRealtime.Alert.Effect result = com.google.transit.realtime.GtfsRealtime.Alert.Effect + .forNumber(effect_); + return result == null ? com.google.transit.realtime.GtfsRealtime.Alert.Effect.UNKNOWN_EFFECT : result; + } + + public static final int URL_FIELD_NUMBER = 8; + private com.google.transit.realtime.GtfsRealtime.TranslatedString url_; + /** + *
+         * The URL which provides additional information about the alert.
+         * 
+ * + * optional .transit_realtime.TranslatedString url = 8; + * @return Whether the url field is set. + */ + @java.lang.Override + public boolean hasUrl() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * The URL which provides additional information about the alert.
+         * 
+ * + * optional .transit_realtime.TranslatedString url = 8; + * @return The url. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedString getUrl() { + return url_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : url_; + } + /** + *
+         * The URL which provides additional information about the alert.
+         * 
+ * + * optional .transit_realtime.TranslatedString url = 8; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getUrlOrBuilder() { + return url_ == null ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() : url_; + } + + public static final int HEADER_TEXT_FIELD_NUMBER = 10; + private com.google.transit.realtime.GtfsRealtime.TranslatedString headerText_; + /** + *
+         * Alert header. Contains a short summary of the alert text as plain-text.
+         * 
+ * + * optional .transit_realtime.TranslatedString header_text = 10; + * @return Whether the headerText field is set. + */ + @java.lang.Override + public boolean hasHeaderText() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+         * Alert header. Contains a short summary of the alert text as plain-text.
+         * 
+ * + * optional .transit_realtime.TranslatedString header_text = 10; + * @return The headerText. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedString getHeaderText() { + return headerText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : headerText_; + } + /** + *
+         * Alert header. Contains a short summary of the alert text as plain-text.
+         * 
+ * + * optional .transit_realtime.TranslatedString header_text = 10; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getHeaderTextOrBuilder() { + return headerText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : headerText_; + } + + public static final int DESCRIPTION_TEXT_FIELD_NUMBER = 11; + private com.google.transit.realtime.GtfsRealtime.TranslatedString descriptionText_; + /** + *
+         * Full description for the alert as plain-text. The information in the
+         * description should add to the information of the header.
+         * 
+ * + * optional .transit_realtime.TranslatedString description_text = 11; + * @return Whether the descriptionText field is set. + */ + @java.lang.Override + public boolean hasDescriptionText() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+         * Full description for the alert as plain-text. The information in the
+         * description should add to the information of the header.
+         * 
+ * + * optional .transit_realtime.TranslatedString description_text = 11; + * @return The descriptionText. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedString getDescriptionText() { + return descriptionText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : descriptionText_; + } + /** + *
+         * Full description for the alert as plain-text. The information in the
+         * description should add to the information of the header.
+         * 
+ * + * optional .transit_realtime.TranslatedString description_text = 11; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getDescriptionTextOrBuilder() { + return descriptionText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : descriptionText_; + } + + public static final int TTS_HEADER_TEXT_FIELD_NUMBER = 12; + private com.google.transit.realtime.GtfsRealtime.TranslatedString ttsHeaderText_; + /** + *
+         * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
+         * This field is still experimental, and subject to change. It may be formally adopted in the future.
+         * 
+ * + * optional .transit_realtime.TranslatedString tts_header_text = 12; + * @return Whether the ttsHeaderText field is set. + */ + @java.lang.Override + public boolean hasTtsHeaderText() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+         * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
+         * This field is still experimental, and subject to change. It may be formally adopted in the future.
+         * 
+ * + * optional .transit_realtime.TranslatedString tts_header_text = 12; + * @return The ttsHeaderText. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedString getTtsHeaderText() { + return ttsHeaderText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : ttsHeaderText_; + } + /** + *
+         * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
+         * This field is still experimental, and subject to change. It may be formally adopted in the future.
+         * 
+ * + * optional .transit_realtime.TranslatedString tts_header_text = 12; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getTtsHeaderTextOrBuilder() { + return ttsHeaderText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : ttsHeaderText_; + } + + public static final int TTS_DESCRIPTION_TEXT_FIELD_NUMBER = 13; + private com.google.transit.realtime.GtfsRealtime.TranslatedString ttsDescriptionText_; + /** + *
+         * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
+         * This field is still experimental, and subject to change. It may be formally adopted in the future.
+         * 
+ * + * optional .transit_realtime.TranslatedString tts_description_text = 13; + * @return Whether the ttsDescriptionText field is set. + */ + @java.lang.Override + public boolean hasTtsDescriptionText() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+         * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
+         * This field is still experimental, and subject to change. It may be formally adopted in the future.
+         * 
+ * + * optional .transit_realtime.TranslatedString tts_description_text = 13; + * @return The ttsDescriptionText. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedString getTtsDescriptionText() { + return ttsDescriptionText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : ttsDescriptionText_; + } + /** + *
+         * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
+         * This field is still experimental, and subject to change. It may be formally adopted in the future.
+         * 
+ * + * optional .transit_realtime.TranslatedString tts_description_text = 13; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getTtsDescriptionTextOrBuilder() { + return ttsDescriptionText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : ttsDescriptionText_; + } + + public static final int SEVERITY_LEVEL_FIELD_NUMBER = 14; + private int severityLevel_ = 1; + /** + * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; + * @return Whether the severityLevel field is set. + */ + @java.lang.Override + public boolean hasSeverityLevel() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; + * @return The severityLevel. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel getSeverityLevel() { + com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel result = com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel + .forNumber(severityLevel_); + return result == null + ? com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel.UNKNOWN_SEVERITY + : 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; + + 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(2000, 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 com.google.transit.realtime.GtfsRealtime.Alert)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.Alert other = (com.google.transit.realtime.GtfsRealtime.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 com.google.transit.realtime.GtfsRealtime.Alert parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.Alert parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.Alert parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.Alert parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.Alert prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * An alert, indicating some sort of incident in the public transit network.
+         * 
+ * + * Protobuf type {@code transit_realtime.Alert} + */ + public static final class Builder + extends + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.Alert) + com.google.transit.realtime.GtfsRealtime.AlertOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Alert_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Alert_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.Alert.class, + com.google.transit.realtime.GtfsRealtime.Alert.Builder.class); + } + + // Construct using com.google.transit.realtime.GtfsRealtime.Alert.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getActivePeriodFieldBuilder(); + getInformedEntityFieldBuilder(); + getUrlFieldBuilder(); + getHeaderTextFieldBuilder(); + getDescriptionTextFieldBuilder(); + getTtsHeaderTextFieldBuilder(); + getTtsDescriptionTextFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (activePeriodBuilder_ == null) { + activePeriod_ = java.util.Collections.emptyList(); + } else { + activePeriod_ = null; + activePeriodBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (informedEntityBuilder_ == null) { + informedEntity_ = java.util.Collections.emptyList(); + } else { + informedEntity_ = null; + informedEntityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + cause_ = 1; + effect_ = 8; + url_ = null; + if (urlBuilder_ != null) { + urlBuilder_.dispose(); + urlBuilder_ = null; + } + headerText_ = null; + if (headerTextBuilder_ != null) { + headerTextBuilder_.dispose(); + headerTextBuilder_ = null; + } + descriptionText_ = null; + if (descriptionTextBuilder_ != null) { + descriptionTextBuilder_.dispose(); + descriptionTextBuilder_ = null; + } + ttsHeaderText_ = null; + if (ttsHeaderTextBuilder_ != null) { + ttsHeaderTextBuilder_.dispose(); + ttsHeaderTextBuilder_ = null; + } + ttsDescriptionText_ = null; + if (ttsDescriptionTextBuilder_ != null) { + ttsDescriptionTextBuilder_.dispose(); + ttsDescriptionTextBuilder_ = null; + } + severityLevel_ = 1; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Alert_descriptor; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Alert getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.Alert.getDefaultInstance(); + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Alert build() { + com.google.transit.realtime.GtfsRealtime.Alert result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Alert buildPartial() { + com.google.transit.realtime.GtfsRealtime.Alert result = new com.google.transit.realtime.GtfsRealtime.Alert( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.transit.realtime.GtfsRealtime.Alert result) { + if (activePeriodBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + activePeriod_ = java.util.Collections.unmodifiableList(activePeriod_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.activePeriod_ = activePeriod_; + } else { + result.activePeriod_ = activePeriodBuilder_.build(); + } + if (informedEntityBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + informedEntity_ = java.util.Collections.unmodifiableList(informedEntity_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.informedEntity_ = informedEntity_; + } else { + result.informedEntity_ = informedEntityBuilder_.build(); + } + } + + private void buildPartial0(com.google.transit.realtime.GtfsRealtime.Alert result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cause_ = cause_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.effect_ = effect_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.url_ = urlBuilder_ == null ? url_ : urlBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.headerText_ = headerTextBuilder_ == null ? headerText_ : headerTextBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.descriptionText_ = descriptionTextBuilder_ == null + ? descriptionText_ + : descriptionTextBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.ttsHeaderText_ = ttsHeaderTextBuilder_ == null + ? ttsHeaderText_ + : ttsHeaderTextBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.ttsDescriptionText_ = ttsDescriptionTextBuilder_ == null + ? ttsDescriptionText_ + : ttsDescriptionTextBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.severityLevel_ = severityLevel_; + to_bitField0_ |= 0x00000080; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension, + Type value) { + return super.setExtension(extension, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + int index, Type value) { + return super.setExtension(extension, index, value); + } + @java.lang.Override + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + Type value) { + return super.addExtension(extension, value); + } + @java.lang.Override + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension) { + return super.clearExtension(extension); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.Alert) { + return mergeFrom((com.google.transit.realtime.GtfsRealtime.Alert) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.Alert other) { + if (other == com.google.transit.realtime.GtfsRealtime.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 : { + com.google.transit.realtime.GtfsRealtime.TimeRange m = input.readMessage( + com.google.transit.realtime.GtfsRealtime.TimeRange.PARSER, extensionRegistry); + if (activePeriodBuilder_ == null) { + ensureActivePeriodIsMutable(); + activePeriod_.add(m); + } else { + activePeriodBuilder_.addMessage(m); + } + break; + } // case 10 + case 42 : { + com.google.transit.realtime.GtfsRealtime.EntitySelector m = input.readMessage( + com.google.transit.realtime.GtfsRealtime.EntitySelector.PARSER, + extensionRegistry); + if (informedEntityBuilder_ == null) { + ensureInformedEntityIsMutable(); + informedEntity_.add(m); + } else { + informedEntityBuilder_.addMessage(m); + } + break; + } // case 42 + case 48 : { + int tmpRaw = input.readEnum(); + com.google.transit.realtime.GtfsRealtime.Alert.Cause tmpValue = com.google.transit.realtime.GtfsRealtime.Alert.Cause + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(6, tmpRaw); + } else { + cause_ = tmpRaw; + bitField0_ |= 0x00000004; + } + break; + } // case 48 + case 56 : { + int tmpRaw = input.readEnum(); + com.google.transit.realtime.GtfsRealtime.Alert.Effect tmpValue = com.google.transit.realtime.GtfsRealtime.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(); + com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel tmpValue = com.google.transit.realtime.GtfsRealtime.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_ = java.util.Collections + .emptyList(); + private void ensureActivePeriodIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + activePeriod_ = new java.util.ArrayList( + activePeriod_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 activePeriodBuilder_; + + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public java.util.List getActivePeriodList() { + if (activePeriodBuilder_ == null) { + return java.util.Collections.unmodifiableList(activePeriod_); + } else { + return activePeriodBuilder_.getMessageList(); + } + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public int getActivePeriodCount() { + if (activePeriodBuilder_ == null) { + return activePeriod_.size(); + } else { + return activePeriodBuilder_.getCount(); + } + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public com.google.transit.realtime.GtfsRealtime.TimeRange getActivePeriod(int index) { + if (activePeriodBuilder_ == null) { + return activePeriod_.get(index); + } else { + return activePeriodBuilder_.getMessage(index); + } + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public Builder setActivePeriod(int index, com.google.transit.realtime.GtfsRealtime.TimeRange value) { + if (activePeriodBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivePeriodIsMutable(); + activePeriod_.set(index, value); + onChanged(); + } else { + activePeriodBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public Builder setActivePeriod(int index, + com.google.transit.realtime.GtfsRealtime.TimeRange.Builder builderForValue) { + if (activePeriodBuilder_ == null) { + ensureActivePeriodIsMutable(); + activePeriod_.set(index, builderForValue.build()); + onChanged(); + } else { + activePeriodBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public Builder addActivePeriod(com.google.transit.realtime.GtfsRealtime.TimeRange value) { + if (activePeriodBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivePeriodIsMutable(); + activePeriod_.add(value); + onChanged(); + } else { + activePeriodBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public Builder addActivePeriod(int index, com.google.transit.realtime.GtfsRealtime.TimeRange value) { + if (activePeriodBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActivePeriodIsMutable(); + activePeriod_.add(index, value); + onChanged(); + } else { + activePeriodBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public Builder addActivePeriod(com.google.transit.realtime.GtfsRealtime.TimeRange.Builder builderForValue) { + if (activePeriodBuilder_ == null) { + ensureActivePeriodIsMutable(); + activePeriod_.add(builderForValue.build()); + onChanged(); + } else { + activePeriodBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public Builder addActivePeriod(int index, + com.google.transit.realtime.GtfsRealtime.TimeRange.Builder builderForValue) { + if (activePeriodBuilder_ == null) { + ensureActivePeriodIsMutable(); + activePeriod_.add(index, builderForValue.build()); + onChanged(); + } else { + activePeriodBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public Builder addAllActivePeriod( + java.lang.Iterable values) { + if (activePeriodBuilder_ == null) { + ensureActivePeriodIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, activePeriod_); + onChanged(); + } else { + activePeriodBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public Builder clearActivePeriod() { + if (activePeriodBuilder_ == null) { + activePeriod_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + activePeriodBuilder_.clear(); + } + return this; + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public Builder removeActivePeriod(int index) { + if (activePeriodBuilder_ == null) { + ensureActivePeriodIsMutable(); + activePeriod_.remove(index); + onChanged(); + } else { + activePeriodBuilder_.remove(index); + } + return this; + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public com.google.transit.realtime.GtfsRealtime.TimeRange.Builder getActivePeriodBuilder(int index) { + return getActivePeriodFieldBuilder().getBuilder(index); + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public com.google.transit.realtime.GtfsRealtime.TimeRangeOrBuilder getActivePeriodOrBuilder(int index) { + if (activePeriodBuilder_ == null) { + return activePeriod_.get(index); + } else { + return activePeriodBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public java.util.List getActivePeriodOrBuilderList() { + if (activePeriodBuilder_ != null) { + return activePeriodBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(activePeriod_); + } + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public com.google.transit.realtime.GtfsRealtime.TimeRange.Builder addActivePeriodBuilder() { + return getActivePeriodFieldBuilder() + .addBuilder(com.google.transit.realtime.GtfsRealtime.TimeRange.getDefaultInstance()); + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public com.google.transit.realtime.GtfsRealtime.TimeRange.Builder addActivePeriodBuilder(int index) { + return getActivePeriodFieldBuilder().addBuilder(index, + com.google.transit.realtime.GtfsRealtime.TimeRange.getDefaultInstance()); + } + /** + *
+             * Time when the alert should be shown to the user. If missing, the
+             * alert will be shown as long as it appears in the feed.
+             * If multiple ranges are given, the alert will be shown during all of them.
+             * 
+ * + * repeated .transit_realtime.TimeRange active_period = 1; + */ + public java.util.List getActivePeriodBuilderList() { + return getActivePeriodFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getActivePeriodFieldBuilder() { + if (activePeriodBuilder_ == null) { + activePeriodBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + activePeriod_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + activePeriod_ = null; + } + return activePeriodBuilder_; + } + + private java.util.List informedEntity_ = java.util.Collections + .emptyList(); + private void ensureInformedEntityIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + informedEntity_ = new java.util.ArrayList( + informedEntity_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 informedEntityBuilder_; + + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public java.util.List getInformedEntityList() { + if (informedEntityBuilder_ == null) { + return java.util.Collections.unmodifiableList(informedEntity_); + } else { + return informedEntityBuilder_.getMessageList(); + } + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public int getInformedEntityCount() { + if (informedEntityBuilder_ == null) { + return informedEntity_.size(); + } else { + return informedEntityBuilder_.getCount(); + } + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public com.google.transit.realtime.GtfsRealtime.EntitySelector getInformedEntity(int index) { + if (informedEntityBuilder_ == null) { + return informedEntity_.get(index); + } else { + return informedEntityBuilder_.getMessage(index); + } + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public Builder setInformedEntity(int index, com.google.transit.realtime.GtfsRealtime.EntitySelector value) { + if (informedEntityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInformedEntityIsMutable(); + informedEntity_.set(index, value); + onChanged(); + } else { + informedEntityBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public Builder setInformedEntity(int index, + com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder builderForValue) { + if (informedEntityBuilder_ == null) { + ensureInformedEntityIsMutable(); + informedEntity_.set(index, builderForValue.build()); + onChanged(); + } else { + informedEntityBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public Builder addInformedEntity(com.google.transit.realtime.GtfsRealtime.EntitySelector value) { + if (informedEntityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInformedEntityIsMutable(); + informedEntity_.add(value); + onChanged(); + } else { + informedEntityBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public Builder addInformedEntity(int index, com.google.transit.realtime.GtfsRealtime.EntitySelector value) { + if (informedEntityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInformedEntityIsMutable(); + informedEntity_.add(index, value); + onChanged(); + } else { + informedEntityBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public Builder addInformedEntity( + com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder builderForValue) { + if (informedEntityBuilder_ == null) { + ensureInformedEntityIsMutable(); + informedEntity_.add(builderForValue.build()); + onChanged(); + } else { + informedEntityBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public Builder addInformedEntity(int index, + com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder builderForValue) { + if (informedEntityBuilder_ == null) { + ensureInformedEntityIsMutable(); + informedEntity_.add(index, builderForValue.build()); + onChanged(); + } else { + informedEntityBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public Builder addAllInformedEntity( + java.lang.Iterable values) { + if (informedEntityBuilder_ == null) { + ensureInformedEntityIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, informedEntity_); + onChanged(); + } else { + informedEntityBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public Builder clearInformedEntity() { + if (informedEntityBuilder_ == null) { + informedEntity_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + informedEntityBuilder_.clear(); + } + return this; + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public Builder removeInformedEntity(int index) { + if (informedEntityBuilder_ == null) { + ensureInformedEntityIsMutable(); + informedEntity_.remove(index); + onChanged(); + } else { + informedEntityBuilder_.remove(index); + } + return this; + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder getInformedEntityBuilder(int index) { + return getInformedEntityFieldBuilder().getBuilder(index); + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public com.google.transit.realtime.GtfsRealtime.EntitySelectorOrBuilder getInformedEntityOrBuilder( + int index) { + if (informedEntityBuilder_ == null) { + return informedEntity_.get(index); + } else { + return informedEntityBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public java.util.List getInformedEntityOrBuilderList() { + if (informedEntityBuilder_ != null) { + return informedEntityBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(informedEntity_); + } + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder addInformedEntityBuilder() { + return getInformedEntityFieldBuilder() + .addBuilder(com.google.transit.realtime.GtfsRealtime.EntitySelector.getDefaultInstance()); + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder addInformedEntityBuilder(int index) { + return getInformedEntityFieldBuilder().addBuilder(index, + com.google.transit.realtime.GtfsRealtime.EntitySelector.getDefaultInstance()); + } + /** + *
+             * Entities whose users we should notify of this alert.
+             * 
+ * + * repeated .transit_realtime.EntitySelector informed_entity = 5; + */ + public java.util.List getInformedEntityBuilderList() { + return getInformedEntityFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getInformedEntityFieldBuilder() { + if (informedEntityBuilder_ == null) { + informedEntityBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + informedEntity_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + informedEntity_ = null; + } + return informedEntityBuilder_; + } + + private int cause_ = 1; + /** + * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; + * @return Whether the cause field is set. + */ + @java.lang.Override + public boolean hasCause() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; + * @return The cause. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Alert.Cause getCause() { + com.google.transit.realtime.GtfsRealtime.Alert.Cause result = com.google.transit.realtime.GtfsRealtime.Alert.Cause + .forNumber(cause_); + return result == null ? com.google.transit.realtime.GtfsRealtime.Alert.Cause.UNKNOWN_CAUSE : result; + } + /** + * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; + * @param value The cause to set. + * @return This builder for chaining. + */ + public Builder setCause(com.google.transit.realtime.GtfsRealtime.Alert.Cause value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + cause_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; + * @return This builder for chaining. + */ + public Builder clearCause() { + bitField0_ = (bitField0_ & ~0x00000004); + cause_ = 1; + onChanged(); + return this; + } + + private int effect_ = 8; + /** + * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; + * @return Whether the effect field is set. + */ + @java.lang.Override + public boolean hasEffect() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; + * @return The effect. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Alert.Effect getEffect() { + com.google.transit.realtime.GtfsRealtime.Alert.Effect result = com.google.transit.realtime.GtfsRealtime.Alert.Effect + .forNumber(effect_); + return result == null ? com.google.transit.realtime.GtfsRealtime.Alert.Effect.UNKNOWN_EFFECT : result; + } + /** + * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; + * @param value The effect to set. + * @return This builder for chaining. + */ + public Builder setEffect(com.google.transit.realtime.GtfsRealtime.Alert.Effect value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + effect_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; + * @return This builder for chaining. + */ + public Builder clearEffect() { + bitField0_ = (bitField0_ & ~0x00000008); + effect_ = 8; + onChanged(); + return this; + } + + private com.google.transit.realtime.GtfsRealtime.TranslatedString url_; + private com.google.protobuf.SingleFieldBuilderV3 urlBuilder_; + /** + *
+             * The URL which provides additional information about the alert.
+             * 
+ * + * optional .transit_realtime.TranslatedString url = 8; + * @return Whether the url field is set. + */ + public boolean hasUrl() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+             * The URL which provides additional information about the alert.
+             * 
+ * + * optional .transit_realtime.TranslatedString url = 8; + * @return The url. + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedString getUrl() { + if (urlBuilder_ == null) { + return url_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : url_; + } else { + return urlBuilder_.getMessage(); + } + } + /** + *
+             * The URL which provides additional information about the alert.
+             * 
+ * + * optional .transit_realtime.TranslatedString url = 8; + */ + public Builder setUrl(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { + if (urlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + } else { + urlBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+             * The URL which provides additional information about the alert.
+             * 
+ * + * optional .transit_realtime.TranslatedString url = 8; + */ + public Builder setUrl(com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder builderForValue) { + if (urlBuilder_ == null) { + url_ = builderForValue.build(); + } else { + urlBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+             * The URL which provides additional information about the alert.
+             * 
+ * + * optional .transit_realtime.TranslatedString url = 8; + */ + public Builder mergeUrl(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { + if (urlBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && url_ != null + && url_ != com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance()) { + getUrlBuilder().mergeFrom(value); + } else { + url_ = value; + } + } else { + urlBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+             * The URL which provides additional information about the alert.
+             * 
+ * + * optional .transit_realtime.TranslatedString url = 8; + */ + public Builder clearUrl() { + bitField0_ = (bitField0_ & ~0x00000010); + url_ = null; + if (urlBuilder_ != null) { + urlBuilder_.dispose(); + urlBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * The URL which provides additional information about the alert.
+             * 
+ * + * optional .transit_realtime.TranslatedString url = 8; + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder getUrlBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getUrlFieldBuilder().getBuilder(); + } + /** + *
+             * The URL which provides additional information about the alert.
+             * 
+ * + * optional .transit_realtime.TranslatedString url = 8; + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getUrlOrBuilder() { + if (urlBuilder_ != null) { + return urlBuilder_.getMessageOrBuilder(); + } else { + return url_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : url_; + } + } + /** + *
+             * The URL which provides additional information about the alert.
+             * 
+ * + * optional .transit_realtime.TranslatedString url = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3 getUrlFieldBuilder() { + if (urlBuilder_ == null) { + urlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getUrl(), getParentForChildren(), isClean()); + url_ = null; + } + return urlBuilder_; + } + + private com.google.transit.realtime.GtfsRealtime.TranslatedString headerText_; + private com.google.protobuf.SingleFieldBuilderV3 headerTextBuilder_; + /** + *
+             * Alert header. Contains a short summary of the alert text as plain-text.
+             * 
+ * + * optional .transit_realtime.TranslatedString header_text = 10; + * @return Whether the headerText field is set. + */ + public boolean hasHeaderText() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+             * Alert header. Contains a short summary of the alert text as plain-text.
+             * 
+ * + * optional .transit_realtime.TranslatedString header_text = 10; + * @return The headerText. + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedString getHeaderText() { + if (headerTextBuilder_ == null) { + return headerText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : headerText_; + } else { + return headerTextBuilder_.getMessage(); + } + } + /** + *
+             * Alert header. Contains a short summary of the alert text as plain-text.
+             * 
+ * + * optional .transit_realtime.TranslatedString header_text = 10; + */ + public Builder setHeaderText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { + if (headerTextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + headerText_ = value; + } else { + headerTextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+             * Alert header. Contains a short summary of the alert text as plain-text.
+             * 
+ * + * optional .transit_realtime.TranslatedString header_text = 10; + */ + public Builder setHeaderText( + com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder builderForValue) { + if (headerTextBuilder_ == null) { + headerText_ = builderForValue.build(); + } else { + headerTextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+             * Alert header. Contains a short summary of the alert text as plain-text.
+             * 
+ * + * optional .transit_realtime.TranslatedString header_text = 10; + */ + public Builder mergeHeaderText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { + if (headerTextBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && headerText_ != null + && headerText_ != com.google.transit.realtime.GtfsRealtime.TranslatedString + .getDefaultInstance()) { + getHeaderTextBuilder().mergeFrom(value); + } else { + headerText_ = value; + } + } else { + headerTextBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+             * Alert header. Contains a short summary of the alert text as plain-text.
+             * 
+ * + * optional .transit_realtime.TranslatedString header_text = 10; + */ + public Builder clearHeaderText() { + bitField0_ = (bitField0_ & ~0x00000020); + headerText_ = null; + if (headerTextBuilder_ != null) { + headerTextBuilder_.dispose(); + headerTextBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * Alert header. Contains a short summary of the alert text as plain-text.
+             * 
+ * + * optional .transit_realtime.TranslatedString header_text = 10; + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder getHeaderTextBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getHeaderTextFieldBuilder().getBuilder(); + } + /** + *
+             * Alert header. Contains a short summary of the alert text as plain-text.
+             * 
+ * + * optional .transit_realtime.TranslatedString header_text = 10; + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getHeaderTextOrBuilder() { + if (headerTextBuilder_ != null) { + return headerTextBuilder_.getMessageOrBuilder(); + } else { + return headerText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : headerText_; + } + } + /** + *
+             * Alert header. Contains a short summary of the alert text as plain-text.
+             * 
+ * + * optional .transit_realtime.TranslatedString header_text = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3 getHeaderTextFieldBuilder() { + if (headerTextBuilder_ == null) { + headerTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getHeaderText(), getParentForChildren(), isClean()); + headerText_ = null; + } + return headerTextBuilder_; + } + + private com.google.transit.realtime.GtfsRealtime.TranslatedString descriptionText_; + private com.google.protobuf.SingleFieldBuilderV3 descriptionTextBuilder_; + /** + *
+             * Full description for the alert as plain-text. The information in the
+             * description should add to the information of the header.
+             * 
+ * + * optional .transit_realtime.TranslatedString description_text = 11; + * @return Whether the descriptionText field is set. + */ + public boolean hasDescriptionText() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+             * Full description for the alert as plain-text. The information in the
+             * description should add to the information of the header.
+             * 
+ * + * optional .transit_realtime.TranslatedString description_text = 11; + * @return The descriptionText. + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedString getDescriptionText() { + if (descriptionTextBuilder_ == null) { + return descriptionText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : descriptionText_; + } else { + return descriptionTextBuilder_.getMessage(); + } + } + /** + *
+             * Full description for the alert as plain-text. The information in the
+             * description should add to the information of the header.
+             * 
+ * + * optional .transit_realtime.TranslatedString description_text = 11; + */ + public Builder setDescriptionText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { + if (descriptionTextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + descriptionText_ = value; + } else { + descriptionTextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+             * Full description for the alert as plain-text. The information in the
+             * description should add to the information of the header.
+             * 
+ * + * optional .transit_realtime.TranslatedString description_text = 11; + */ + public Builder setDescriptionText( + com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder builderForValue) { + if (descriptionTextBuilder_ == null) { + descriptionText_ = builderForValue.build(); + } else { + descriptionTextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+             * Full description for the alert as plain-text. The information in the
+             * description should add to the information of the header.
+             * 
+ * + * optional .transit_realtime.TranslatedString description_text = 11; + */ + public Builder mergeDescriptionText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { + if (descriptionTextBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && descriptionText_ != null + && descriptionText_ != com.google.transit.realtime.GtfsRealtime.TranslatedString + .getDefaultInstance()) { + getDescriptionTextBuilder().mergeFrom(value); + } else { + descriptionText_ = value; + } + } else { + descriptionTextBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+             * Full description for the alert as plain-text. The information in the
+             * description should add to the information of the header.
+             * 
+ * + * optional .transit_realtime.TranslatedString description_text = 11; + */ + public Builder clearDescriptionText() { + bitField0_ = (bitField0_ & ~0x00000040); + descriptionText_ = null; + if (descriptionTextBuilder_ != null) { + descriptionTextBuilder_.dispose(); + descriptionTextBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * Full description for the alert as plain-text. The information in the
+             * description should add to the information of the header.
+             * 
+ * + * optional .transit_realtime.TranslatedString description_text = 11; + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder getDescriptionTextBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getDescriptionTextFieldBuilder().getBuilder(); + } + /** + *
+             * Full description for the alert as plain-text. The information in the
+             * description should add to the information of the header.
+             * 
+ * + * optional .transit_realtime.TranslatedString description_text = 11; + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getDescriptionTextOrBuilder() { + if (descriptionTextBuilder_ != null) { + return descriptionTextBuilder_.getMessageOrBuilder(); + } else { + return descriptionText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : descriptionText_; + } + } + /** + *
+             * Full description for the alert as plain-text. The information in the
+             * description should add to the information of the header.
+             * 
+ * + * optional .transit_realtime.TranslatedString description_text = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3 getDescriptionTextFieldBuilder() { + if (descriptionTextBuilder_ == null) { + descriptionTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getDescriptionText(), getParentForChildren(), isClean()); + descriptionText_ = null; + } + return descriptionTextBuilder_; + } + + private com.google.transit.realtime.GtfsRealtime.TranslatedString ttsHeaderText_; + private com.google.protobuf.SingleFieldBuilderV3 ttsHeaderTextBuilder_; + /** + *
+             * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_header_text = 12; + * @return Whether the ttsHeaderText field is set. + */ + public boolean hasTtsHeaderText() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+             * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_header_text = 12; + * @return The ttsHeaderText. + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedString getTtsHeaderText() { + if (ttsHeaderTextBuilder_ == null) { + return ttsHeaderText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : ttsHeaderText_; + } else { + return ttsHeaderTextBuilder_.getMessage(); + } + } + /** + *
+             * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_header_text = 12; + */ + public Builder setTtsHeaderText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { + if (ttsHeaderTextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ttsHeaderText_ = value; + } else { + ttsHeaderTextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+             * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_header_text = 12; + */ + public Builder setTtsHeaderText( + com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder builderForValue) { + if (ttsHeaderTextBuilder_ == null) { + ttsHeaderText_ = builderForValue.build(); + } else { + ttsHeaderTextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+             * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_header_text = 12; + */ + public Builder mergeTtsHeaderText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { + if (ttsHeaderTextBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && ttsHeaderText_ != null + && ttsHeaderText_ != com.google.transit.realtime.GtfsRealtime.TranslatedString + .getDefaultInstance()) { + getTtsHeaderTextBuilder().mergeFrom(value); + } else { + ttsHeaderText_ = value; + } + } else { + ttsHeaderTextBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+             * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_header_text = 12; + */ + public Builder clearTtsHeaderText() { + bitField0_ = (bitField0_ & ~0x00000080); + ttsHeaderText_ = null; + if (ttsHeaderTextBuilder_ != null) { + ttsHeaderTextBuilder_.dispose(); + ttsHeaderTextBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_header_text = 12; + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder getTtsHeaderTextBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getTtsHeaderTextFieldBuilder().getBuilder(); + } + /** + *
+             * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_header_text = 12; + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getTtsHeaderTextOrBuilder() { + if (ttsHeaderTextBuilder_ != null) { + return ttsHeaderTextBuilder_.getMessageOrBuilder(); + } else { + return ttsHeaderText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : ttsHeaderText_; + } + } + /** + *
+             * Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_header_text = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTtsHeaderTextFieldBuilder() { + if (ttsHeaderTextBuilder_ == null) { + ttsHeaderTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTtsHeaderText(), getParentForChildren(), isClean()); + ttsHeaderText_ = null; + } + return ttsHeaderTextBuilder_; + } + + private com.google.transit.realtime.GtfsRealtime.TranslatedString ttsDescriptionText_; + private com.google.protobuf.SingleFieldBuilderV3 ttsDescriptionTextBuilder_; + /** + *
+             * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_description_text = 13; + * @return Whether the ttsDescriptionText field is set. + */ + public boolean hasTtsDescriptionText() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+             * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_description_text = 13; + * @return The ttsDescriptionText. + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedString getTtsDescriptionText() { + if (ttsDescriptionTextBuilder_ == null) { + return ttsDescriptionText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : ttsDescriptionText_; + } else { + return ttsDescriptionTextBuilder_.getMessage(); + } + } + /** + *
+             * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_description_text = 13; + */ + public Builder setTtsDescriptionText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { + if (ttsDescriptionTextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ttsDescriptionText_ = value; + } else { + ttsDescriptionTextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+             * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_description_text = 13; + */ + public Builder setTtsDescriptionText( + com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder builderForValue) { + if (ttsDescriptionTextBuilder_ == null) { + ttsDescriptionText_ = builderForValue.build(); + } else { + ttsDescriptionTextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+             * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_description_text = 13; + */ + public Builder mergeTtsDescriptionText(com.google.transit.realtime.GtfsRealtime.TranslatedString value) { + if (ttsDescriptionTextBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && ttsDescriptionText_ != null + && ttsDescriptionText_ != com.google.transit.realtime.GtfsRealtime.TranslatedString + .getDefaultInstance()) { + getTtsDescriptionTextBuilder().mergeFrom(value); + } else { + ttsDescriptionText_ = value; + } + } else { + ttsDescriptionTextBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+             * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_description_text = 13; + */ + public Builder clearTtsDescriptionText() { + bitField0_ = (bitField0_ & ~0x00000100); + ttsDescriptionText_ = null; + if (ttsDescriptionTextBuilder_ != null) { + ttsDescriptionTextBuilder_.dispose(); + ttsDescriptionTextBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+             * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_description_text = 13; + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder getTtsDescriptionTextBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getTtsDescriptionTextFieldBuilder().getBuilder(); + } + /** + *
+             * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_description_text = 13; + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder getTtsDescriptionTextOrBuilder() { + if (ttsDescriptionTextBuilder_ != null) { + return ttsDescriptionTextBuilder_.getMessageOrBuilder(); + } else { + return ttsDescriptionText_ == null + ? com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance() + : ttsDescriptionText_; + } + } + /** + *
+             * Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.
+             * This field is still experimental, and subject to change. It may be formally adopted in the future.
+             * 
+ * + * optional .transit_realtime.TranslatedString tts_description_text = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTtsDescriptionTextFieldBuilder() { + if (ttsDescriptionTextBuilder_ == null) { + ttsDescriptionTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTtsDescriptionText(), getParentForChildren(), isClean()); + ttsDescriptionText_ = null; + } + return ttsDescriptionTextBuilder_; + } + + private int severityLevel_ = 1; + /** + * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; + * @return Whether the severityLevel field is set. + */ + @java.lang.Override + public boolean hasSeverityLevel() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; + * @return The severityLevel. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel getSeverityLevel() { + com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel result = com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel + .forNumber(severityLevel_); + return result == null + ? com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel.UNKNOWN_SEVERITY + : result; + } + /** + * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; + * @param value The severityLevel to set. + * @return This builder for chaining. + */ + public Builder setSeverityLevel(com.google.transit.realtime.GtfsRealtime.Alert.SeverityLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + severityLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .transit_realtime.Alert.SeverityLevel severity_level = 14 [default = UNKNOWN_SEVERITY]; + * @return This builder for chaining. + */ + public Builder clearSeverityLevel() { + bitField0_ = (bitField0_ & ~0x00000200); + severityLevel_ = 1; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:transit_realtime.Alert) + } + + // @@protoc_insertion_point(class_scope:transit_realtime.Alert) + private static final com.google.transit.realtime.GtfsRealtime.Alert DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.Alert(); + } + + public static com.google.transit.realtime.GtfsRealtime.Alert getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Alert parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Alert getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TimeRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.TimeRange) + com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder { + + /** + *
+         * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
+         * 00:00:00 UTC).
+         * If missing, the interval starts at minus infinity.
+         * 
+ * + * optional uint64 start = 1; + * @return Whether the start field is set. + */ + boolean hasStart(); + /** + *
+         * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
+         * 00:00:00 UTC).
+         * If missing, the interval starts at minus infinity.
+         * 
+ * + * optional uint64 start = 1; + * @return The start. + */ + long getStart(); + + /** + *
+         * End time, in POSIX time (i.e., number of seconds since January 1st 1970
+         * 00:00:00 UTC).
+         * If missing, the interval ends at plus infinity.
+         * 
+ * + * optional uint64 end = 2; + * @return Whether the end field is set. + */ + boolean hasEnd(); + /** + *
+         * End time, in POSIX time (i.e., number of seconds since January 1st 1970
+         * 00:00:00 UTC).
+         * If missing, the interval ends at plus infinity.
+         * 
+ * + * optional uint64 end = 2; + * @return The end. + */ + long getEnd(); + } + /** + *
+     * A time interval. The interval is considered active at time 't' if 't' is
+     * greater than or equal to the start time and less than the end time.
+     * 
+ * + * Protobuf type {@code transit_realtime.TimeRange} + */ + public static final class TimeRange extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage + implements + // @@protoc_insertion_point(message_implements:transit_realtime.TimeRange) + TimeRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimeRange.newBuilder() to construct. + private TimeRange( + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { + super(builder); + } + private TimeRange() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TimeRange(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TimeRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TimeRange_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.TimeRange.class, + com.google.transit.realtime.GtfsRealtime.TimeRange.Builder.class); + } + + private int bitField0_; + public static final int START_FIELD_NUMBER = 1; + private long start_ = 0L; + /** + *
+         * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
+         * 00:00:00 UTC).
+         * If missing, the interval starts at minus infinity.
+         * 
+ * + * optional uint64 start = 1; + * @return Whether the start field is set. + */ + @java.lang.Override + public boolean hasStart() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
+         * 00:00:00 UTC).
+         * If missing, the interval starts at minus infinity.
+         * 
+ * + * optional uint64 start = 1; + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + public static final int END_FIELD_NUMBER = 2; + private long end_ = 0L; + /** + *
+         * End time, in POSIX time (i.e., number of seconds since January 1st 1970
+         * 00:00:00 UTC).
+         * If missing, the interval ends at plus infinity.
+         * 
+ * + * optional uint64 end = 2; + * @return Whether the end field is set. + */ + @java.lang.Override + public boolean hasEnd() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * End time, in POSIX time (i.e., number of seconds since January 1st 1970
+         * 00:00:00 UTC).
+         * If missing, the interval ends at plus infinity.
+         * 
+ * + * optional uint64 end = 2; + * @return The end. + */ + @java.lang.Override + 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(2000, 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 com.google.transit.realtime.GtfsRealtime.TimeRange)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.TimeRange other = (com.google.transit.realtime.GtfsRealtime.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 com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TimeRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TimeRange parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TimeRange parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TimeRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * A time interval. The interval is considered active at time 't' if 't' is
+         * greater than or equal to the start time and less than the end time.
+         * 
+ * + * Protobuf type {@code transit_realtime.TimeRange} + */ + public static final class Builder + extends + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.TimeRange) + com.google.transit.realtime.GtfsRealtime.TimeRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TimeRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TimeRange_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.TimeRange.class, + com.google.transit.realtime.GtfsRealtime.TimeRange.Builder.class); + } + + // Construct using com.google.transit.realtime.GtfsRealtime.TimeRange.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + start_ = 0L; + end_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TimeRange_descriptor; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TimeRange getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.TimeRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TimeRange build() { + com.google.transit.realtime.GtfsRealtime.TimeRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TimeRange buildPartial() { + com.google.transit.realtime.GtfsRealtime.TimeRange result = new com.google.transit.realtime.GtfsRealtime.TimeRange( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.transit.realtime.GtfsRealtime.TimeRange result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.start_ = start_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.end_ = end_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension, + Type value) { + return super.setExtension(extension, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + int index, Type value) { + return super.setExtension(extension, index, value); + } + @java.lang.Override + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + Type value) { + return super.addExtension(extension, value); + } + @java.lang.Override + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension) { + return super.clearExtension(extension); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.TimeRange) { + return mergeFrom((com.google.transit.realtime.GtfsRealtime.TimeRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TimeRange other) { + if (other == com.google.transit.realtime.GtfsRealtime.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_; + /** + *
+             * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
+             * 00:00:00 UTC).
+             * If missing, the interval starts at minus infinity.
+             * 
+ * + * optional uint64 start = 1; + * @return Whether the start field is set. + */ + @java.lang.Override + public boolean hasStart() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
+             * 00:00:00 UTC).
+             * If missing, the interval starts at minus infinity.
+             * 
+ * + * optional uint64 start = 1; + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + /** + *
+             * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
+             * 00:00:00 UTC).
+             * If missing, the interval starts at minus infinity.
+             * 
+ * + * optional uint64 start = 1; + * @param value The start to set. + * @return This builder for chaining. + */ + public Builder setStart(long value) { + + start_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Start time, in POSIX time (i.e., number of seconds since January 1st 1970
+             * 00:00:00 UTC).
+             * If missing, the interval starts at minus infinity.
+             * 
+ * + * optional uint64 start = 1; + * @return This builder for chaining. + */ + public Builder clearStart() { + bitField0_ = (bitField0_ & ~0x00000001); + start_ = 0L; + onChanged(); + return this; + } + + private long end_; + /** + *
+             * End time, in POSIX time (i.e., number of seconds since January 1st 1970
+             * 00:00:00 UTC).
+             * If missing, the interval ends at plus infinity.
+             * 
+ * + * optional uint64 end = 2; + * @return Whether the end field is set. + */ + @java.lang.Override + public boolean hasEnd() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * End time, in POSIX time (i.e., number of seconds since January 1st 1970
+             * 00:00:00 UTC).
+             * If missing, the interval ends at plus infinity.
+             * 
+ * + * optional uint64 end = 2; + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + /** + *
+             * End time, in POSIX time (i.e., number of seconds since January 1st 1970
+             * 00:00:00 UTC).
+             * If missing, the interval ends at plus infinity.
+             * 
+ * + * optional uint64 end = 2; + * @param value The end to set. + * @return This builder for chaining. + */ + public Builder setEnd(long value) { + + end_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * End time, in POSIX time (i.e., number of seconds since January 1st 1970
+             * 00:00:00 UTC).
+             * If missing, the interval ends at plus infinity.
+             * 
+ * + * optional uint64 end = 2; + * @return This builder for chaining. + */ + public Builder clearEnd() { + bitField0_ = (bitField0_ & ~0x00000002); + end_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:transit_realtime.TimeRange) + } + + // @@protoc_insertion_point(class_scope:transit_realtime.TimeRange) + private static final com.google.transit.realtime.GtfsRealtime.TimeRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TimeRange(); + } + + public static com.google.transit.realtime.GtfsRealtime.TimeRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeRange parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TimeRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PositionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.Position) + com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder { + + /** + *
+         * Degrees North, in the WGS-84 coordinate system.
+         * 
+ * + * required float latitude = 1; + * @return Whether the latitude field is set. + */ + boolean hasLatitude(); + /** + *
+         * Degrees North, in the WGS-84 coordinate system.
+         * 
+ * + * required float latitude = 1; + * @return The latitude. + */ + float getLatitude(); + + /** + *
+         * Degrees East, in the WGS-84 coordinate system.
+         * 
+ * + * required float longitude = 2; + * @return Whether the longitude field is set. + */ + boolean hasLongitude(); + /** + *
+         * Degrees East, in the WGS-84 coordinate system.
+         * 
+ * + * required float longitude = 2; + * @return The longitude. + */ + float getLongitude(); + + /** + *
+         * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
+         * This can be the compass bearing, or the direction towards the next stop
+         * or intermediate location.
+         * This should not be direction deduced from the sequence of previous
+         * positions, which can be computed from previous data.
+         * 
+ * + * optional float bearing = 3; + * @return Whether the bearing field is set. + */ + boolean hasBearing(); + /** + *
+         * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
+         * This can be the compass bearing, or the direction towards the next stop
+         * or intermediate location.
+         * This should not be direction deduced from the sequence of previous
+         * positions, which can be computed from previous data.
+         * 
+ * + * optional float bearing = 3; + * @return The bearing. + */ + float getBearing(); + + /** + *
+         * Odometer value, in meters.
+         * 
+ * + * optional double odometer = 4; + * @return Whether the odometer field is set. + */ + boolean hasOdometer(); + /** + *
+         * Odometer value, in meters.
+         * 
+ * + * optional double odometer = 4; + * @return The odometer. + */ + double getOdometer(); + + /** + *
+         * Momentary speed measured by the vehicle, in meters per second.
+         * 
+ * + * optional float speed = 5; + * @return Whether the speed field is set. + */ + boolean hasSpeed(); + /** + *
+         * Momentary speed measured by the vehicle, in meters per second.
+         * 
+ * + * optional float speed = 5; + * @return The speed. + */ + float getSpeed(); + } + /** *
-     * Degrees East, in the WGS-84 coordinate system.
+     * A position.
      * 
* - * required float longitude = 2; - * @return Whether the longitude field is set. + * Protobuf type {@code transit_realtime.Position} */ - boolean hasLongitude(); + public static final class Position extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage + implements + // @@protoc_insertion_point(message_implements:transit_realtime.Position) + PositionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Position.newBuilder() to construct. + private Position( + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { + super(builder); + } + private Position() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Position(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Position_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Position_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.Position.class, + com.google.transit.realtime.GtfsRealtime.Position.Builder.class); + } + + private int bitField0_; + public static final int LATITUDE_FIELD_NUMBER = 1; + private float latitude_ = 0F; + /** + *
+         * 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. + */ + @java.lang.Override + public float getLatitude() { + return latitude_; + } + + public static final int LONGITUDE_FIELD_NUMBER = 2; + private float longitude_ = 0F; + /** + *
+         * Degrees East, in the WGS-84 coordinate system.
+         * 
+ * + * required float longitude = 2; + * @return Whether the longitude field is set. + */ + @java.lang.Override + public boolean hasLongitude() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * Degrees East, in the WGS-84 coordinate system.
+         * 
+ * + * required float longitude = 2; + * @return The longitude. + */ + @java.lang.Override + public float getLongitude() { + return longitude_; + } + + public static final int BEARING_FIELD_NUMBER = 3; + private float bearing_ = 0F; + /** + *
+         * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
+         * This can be the compass bearing, or the direction towards the next stop
+         * or intermediate location.
+         * This should not be direction deduced from the sequence of previous
+         * positions, which can be computed from previous data.
+         * 
+ * + * optional float bearing = 3; + * @return Whether the bearing field is set. + */ + @java.lang.Override + public boolean hasBearing() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
+         * This can be the compass bearing, or the direction towards the next stop
+         * or intermediate location.
+         * This should not be direction deduced from the sequence of previous
+         * positions, which can be computed from previous data.
+         * 
+ * + * optional float bearing = 3; + * @return The bearing. + */ + @java.lang.Override + public float getBearing() { + return bearing_; + } + + public static final int ODOMETER_FIELD_NUMBER = 4; + private double odometer_ = 0D; + /** + *
+         * Odometer value, in meters.
+         * 
+ * + * optional double odometer = 4; + * @return Whether the odometer field is set. + */ + @java.lang.Override + public boolean hasOdometer() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+         * Odometer value, in meters.
+         * 
+ * + * optional double odometer = 4; + * @return The odometer. + */ + @java.lang.Override + public double getOdometer() { + return odometer_; + } + + public static final int SPEED_FIELD_NUMBER = 5; + private float speed_ = 0F; + /** + *
+         * Momentary speed measured by the vehicle, in meters per second.
+         * 
+ * + * optional float speed = 5; + * @return Whether the speed field is set. + */ + @java.lang.Override + public boolean hasSpeed() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+         * Momentary speed measured by the vehicle, in meters per second.
+         * 
+ * + * optional float speed = 5; + * @return The speed. + */ + @java.lang.Override + 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(2000, 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 com.google.transit.realtime.GtfsRealtime.Position)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.Position other = (com.google.transit.realtime.GtfsRealtime.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 com.google.transit.realtime.GtfsRealtime.Position parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.Position parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.Position parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.Position parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.Position parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.Position parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.Position parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.Position parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.Position parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.Position parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.Position parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.Position parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.Position prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * A position.
+         * 
+ * + * Protobuf type {@code transit_realtime.Position} + */ + public static final class Builder + extends + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.Position) + com.google.transit.realtime.GtfsRealtime.PositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Position_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Position_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.Position.class, + com.google.transit.realtime.GtfsRealtime.Position.Builder.class); + } + + // Construct using com.google.transit.realtime.GtfsRealtime.Position.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + latitude_ = 0F; + longitude_ = 0F; + bearing_ = 0F; + odometer_ = 0D; + speed_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Position_descriptor; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Position getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance(); + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Position build() { + com.google.transit.realtime.GtfsRealtime.Position result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Position buildPartial() { + com.google.transit.realtime.GtfsRealtime.Position result = new com.google.transit.realtime.GtfsRealtime.Position( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.transit.realtime.GtfsRealtime.Position result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.latitude_ = latitude_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.longitude_ = longitude_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.bearing_ = bearing_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.odometer_ = odometer_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.speed_ = speed_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension, + Type value) { + return super.setExtension(extension, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + int index, Type value) { + return super.setExtension(extension, index, value); + } + @java.lang.Override + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + Type value) { + return super.addExtension(extension, value); + } + @java.lang.Override + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension) { + return super.clearExtension(extension); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.Position) { + return mergeFrom((com.google.transit.realtime.GtfsRealtime.Position) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.Position other) { + if (other == com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance()) + return this; + if (other.hasLatitude()) { + setLatitude(other.getLatitude()); + } + if (other.hasLongitude()) { + setLongitude(other.getLongitude()); + } + if (other.hasBearing()) { + setBearing(other.getBearing()); + } + if (other.hasOdometer()) { + setOdometer(other.getOdometer()); + } + if (other.hasSpeed()) { + setSpeed(other.getSpeed()); + } + this.mergeExtensionFields(other); + this.mergeUnknownFields(other.getUnknownFields()); + 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. + */ + @java.lang.Override + public float getLatitude() { + return latitude_; + } + /** + *
+             * Degrees North, in the WGS-84 coordinate system.
+             * 
+ * + * required float latitude = 1; + * @param value The latitude to set. + * @return This builder for chaining. + */ + public Builder setLatitude(float value) { + + latitude_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Degrees North, in the WGS-84 coordinate system.
+             * 
+ * + * required float latitude = 1; + * @return This builder for chaining. + */ + public Builder clearLatitude() { + bitField0_ = (bitField0_ & ~0x00000001); + latitude_ = 0F; + onChanged(); + return this; + } + + private float longitude_; + /** + *
+             * Degrees East, in the WGS-84 coordinate system.
+             * 
+ * + * required float longitude = 2; + * @return Whether the longitude field is set. + */ + @java.lang.Override + public boolean hasLongitude() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * Degrees East, in the WGS-84 coordinate system.
+             * 
+ * + * required float longitude = 2; + * @return The longitude. + */ + @java.lang.Override + public float getLongitude() { + return longitude_; + } + /** + *
+             * Degrees East, in the WGS-84 coordinate system.
+             * 
+ * + * required float longitude = 2; + * @param value The longitude to set. + * @return This builder for chaining. + */ + public Builder setLongitude(float value) { + + longitude_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Degrees East, in the WGS-84 coordinate system.
+             * 
+ * + * required float longitude = 2; + * @return This builder for chaining. + */ + public Builder clearLongitude() { + bitField0_ = (bitField0_ & ~0x00000002); + longitude_ = 0F; + onChanged(); + return this; + } + + private float bearing_; + /** + *
+             * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
+             * This can be the compass bearing, or the direction towards the next stop
+             * or intermediate location.
+             * This should not be direction deduced from the sequence of previous
+             * positions, which can be computed from previous data.
+             * 
+ * + * optional float bearing = 3; + * @return Whether the bearing field is set. + */ + @java.lang.Override + public boolean hasBearing() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
+             * This can be the compass bearing, or the direction towards the next stop
+             * or intermediate location.
+             * This should not be direction deduced from the sequence of previous
+             * positions, which can be computed from previous data.
+             * 
+ * + * optional float bearing = 3; + * @return The bearing. + */ + @java.lang.Override + public float getBearing() { + return bearing_; + } + /** + *
+             * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
+             * This can be the compass bearing, or the direction towards the next stop
+             * or intermediate location.
+             * This should not be direction deduced from the sequence of previous
+             * positions, which can be computed from previous data.
+             * 
+ * + * optional float bearing = 3; + * @param value The bearing to set. + * @return This builder for chaining. + */ + public Builder setBearing(float value) { + + bearing_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
+             * This can be the compass bearing, or the direction towards the next stop
+             * or intermediate location.
+             * This should not be direction deduced from the sequence of previous
+             * positions, which can be computed from previous data.
+             * 
+ * + * optional float bearing = 3; + * @return This builder for chaining. + */ + public Builder clearBearing() { + bitField0_ = (bitField0_ & ~0x00000004); + bearing_ = 0F; + onChanged(); + return this; + } + + private double odometer_; + /** + *
+             * Odometer value, in meters.
+             * 
+ * + * optional double odometer = 4; + * @return Whether the odometer field is set. + */ + @java.lang.Override + public boolean hasOdometer() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+             * Odometer value, in meters.
+             * 
+ * + * optional double odometer = 4; + * @return The odometer. + */ + @java.lang.Override + public double getOdometer() { + return odometer_; + } + /** + *
+             * Odometer value, in meters.
+             * 
+ * + * optional double odometer = 4; + * @param value The odometer to set. + * @return This builder for chaining. + */ + public Builder setOdometer(double value) { + + odometer_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+             * Odometer value, in meters.
+             * 
+ * + * optional double odometer = 4; + * @return This builder for chaining. + */ + public Builder clearOdometer() { + bitField0_ = (bitField0_ & ~0x00000008); + odometer_ = 0D; + onChanged(); + return this; + } + + private float speed_; + /** + *
+             * Momentary speed measured by the vehicle, in meters per second.
+             * 
+ * + * optional float speed = 5; + * @return Whether the speed field is set. + */ + @java.lang.Override + public boolean hasSpeed() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+             * Momentary speed measured by the vehicle, in meters per second.
+             * 
+ * + * optional float speed = 5; + * @return The speed. + */ + @java.lang.Override + public float getSpeed() { + return speed_; + } + /** + *
+             * Momentary speed measured by the vehicle, in meters per second.
+             * 
+ * + * optional float speed = 5; + * @param value The speed to set. + * @return This builder for chaining. + */ + public Builder setSpeed(float value) { + + speed_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+             * Momentary speed measured by the vehicle, in meters per second.
+             * 
+ * + * optional float speed = 5; + * @return This builder for chaining. + */ + public Builder clearSpeed() { + bitField0_ = (bitField0_ & ~0x00000010); + speed_ = 0F; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:transit_realtime.Position) + } + + // @@protoc_insertion_point(class_scope:transit_realtime.Position) + private static final com.google.transit.realtime.GtfsRealtime.Position DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.Position(); + } + + public static com.google.transit.realtime.GtfsRealtime.Position getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.Position getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TripDescriptorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.TripDescriptor) + com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder { + + /** + *
+         * The trip_id from the GTFS feed that this selector refers to.
+         * For non frequency-based trips, this field is enough to uniquely identify
+         * the trip. For frequency-based trip, start_time and start_date might also be
+         * necessary.
+         * 
+ * + * optional string trip_id = 1; + * @return Whether the tripId field is set. + */ + boolean hasTripId(); + /** + *
+         * The trip_id from the GTFS feed that this selector refers to.
+         * For non frequency-based trips, this field is enough to uniquely identify
+         * the trip. For frequency-based trip, start_time and start_date might also be
+         * necessary.
+         * 
+ * + * optional string trip_id = 1; + * @return The tripId. + */ + java.lang.String getTripId(); + /** + *
+         * The trip_id from the GTFS feed that this selector refers to.
+         * For non frequency-based trips, this field is enough to uniquely identify
+         * the trip. For frequency-based trip, start_time and start_date might also be
+         * necessary.
+         * 
+ * + * optional string trip_id = 1; + * @return The bytes for tripId. + */ + com.google.protobuf.ByteString getTripIdBytes(); + + /** + *
+         * The route_id from the GTFS that this selector refers to.
+         * 
+ * + * optional string route_id = 5; + * @return Whether the routeId field is set. + */ + boolean hasRouteId(); + /** + *
+         * The route_id from the GTFS that this selector refers to.
+         * 
+ * + * optional string route_id = 5; + * @return The routeId. + */ + java.lang.String getRouteId(); + /** + *
+         * The route_id from the GTFS that this selector refers to.
+         * 
+ * + * optional string route_id = 5; + * @return The bytes for routeId. + */ + com.google.protobuf.ByteString getRouteIdBytes(); + + /** + *
+         * The direction_id from the GTFS feed trips.txt file, indicating the
+         * direction of travel for trips this selector refers to. This field is
+         * still experimental, and subject to change. It may be formally adopted in
+         * the future.
+         * 
+ * + * optional uint32 direction_id = 6; + * @return Whether the directionId field is set. + */ + boolean hasDirectionId(); + /** + *
+         * The direction_id from the GTFS feed trips.txt file, indicating the
+         * direction of travel for trips this selector refers to. This field is
+         * still experimental, and subject to change. It may be formally adopted in
+         * the future.
+         * 
+ * + * optional uint32 direction_id = 6; + * @return The directionId. + */ + int getDirectionId(); + + /** + *
+         * The initially scheduled start time of this trip instance.
+         * When the trip_id corresponds to a non-frequency-based trip, this field
+         * should either be omitted or be equal to the value in the GTFS feed. When
+         * the trip_id correponds to a frequency-based trip, the start_time must be
+         * specified for trip updates and vehicle positions. If the trip corresponds
+         * to exact_times=1 GTFS record, then start_time must be some multiple
+         * (including zero) of headway_secs later than frequencies.txt start_time for
+         * the corresponding time period. If the trip corresponds to exact_times=0,
+         * then its start_time may be arbitrary, and is initially expected to be the
+         * first departure of the trip. Once established, the start_time of this
+         * frequency-based trip should be considered immutable, even if the first
+         * departure time changes -- that time change may instead be reflected in a
+         * StopTimeUpdate.
+         * Format and semantics of the field is same as that of
+         * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
+         * 
+ * + * optional string start_time = 2; + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + *
+         * The initially scheduled start time of this trip instance.
+         * When the trip_id corresponds to a non-frequency-based trip, this field
+         * should either be omitted or be equal to the value in the GTFS feed. When
+         * the trip_id correponds to a frequency-based trip, the start_time must be
+         * specified for trip updates and vehicle positions. If the trip corresponds
+         * to exact_times=1 GTFS record, then start_time must be some multiple
+         * (including zero) of headway_secs later than frequencies.txt start_time for
+         * the corresponding time period. If the trip corresponds to exact_times=0,
+         * then its start_time may be arbitrary, and is initially expected to be the
+         * first departure of the trip. Once established, the start_time of this
+         * frequency-based trip should be considered immutable, even if the first
+         * departure time changes -- that time change may instead be reflected in a
+         * StopTimeUpdate.
+         * Format and semantics of the field is same as that of
+         * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
+         * 
+ * + * optional string start_time = 2; + * @return The startTime. + */ + java.lang.String getStartTime(); + /** + *
+         * The initially scheduled start time of this trip instance.
+         * When the trip_id corresponds to a non-frequency-based trip, this field
+         * should either be omitted or be equal to the value in the GTFS feed. When
+         * the trip_id correponds to a frequency-based trip, the start_time must be
+         * specified for trip updates and vehicle positions. If the trip corresponds
+         * to exact_times=1 GTFS record, then start_time must be some multiple
+         * (including zero) of headway_secs later than frequencies.txt start_time for
+         * the corresponding time period. If the trip corresponds to exact_times=0,
+         * then its start_time may be arbitrary, and is initially expected to be the
+         * first departure of the trip. Once established, the start_time of this
+         * frequency-based trip should be considered immutable, even if the first
+         * departure time changes -- that time change may instead be reflected in a
+         * StopTimeUpdate.
+         * Format and semantics of the field is same as that of
+         * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
+         * 
+ * + * optional string start_time = 2; + * @return The bytes for startTime. + */ + com.google.protobuf.ByteString getStartTimeBytes(); + + /** + *
+         * The scheduled start date of this trip instance.
+         * Must be provided to disambiguate trips that are so late as to collide with
+         * a scheduled trip on a next day. For example, for a train that departs 8:00
+         * and 20:00 every day, and is 12 hours late, there would be two distinct
+         * trips on the same time.
+         * This field can be provided but is not mandatory for schedules in which such
+         * collisions are impossible - for example, a service running on hourly
+         * schedule where a vehicle that is one hour late is not considered to be
+         * related to schedule anymore.
+         * In YYYYMMDD format.
+         * 
+ * + * optional string start_date = 3; + * @return Whether the startDate field is set. + */ + boolean hasStartDate(); + /** + *
+         * The scheduled start date of this trip instance.
+         * Must be provided to disambiguate trips that are so late as to collide with
+         * a scheduled trip on a next day. For example, for a train that departs 8:00
+         * and 20:00 every day, and is 12 hours late, there would be two distinct
+         * trips on the same time.
+         * This field can be provided but is not mandatory for schedules in which such
+         * collisions are impossible - for example, a service running on hourly
+         * schedule where a vehicle that is one hour late is not considered to be
+         * related to schedule anymore.
+         * In YYYYMMDD format.
+         * 
+ * + * optional string start_date = 3; + * @return The startDate. + */ + java.lang.String getStartDate(); + /** + *
+         * The scheduled start date of this trip instance.
+         * Must be provided to disambiguate trips that are so late as to collide with
+         * a scheduled trip on a next day. For example, for a train that departs 8:00
+         * and 20:00 every day, and is 12 hours late, there would be two distinct
+         * trips on the same time.
+         * This field can be provided but is not mandatory for schedules in which such
+         * collisions are impossible - for example, a service running on hourly
+         * schedule where a vehicle that is one hour late is not considered to be
+         * related to schedule anymore.
+         * In YYYYMMDD format.
+         * 
+ * + * optional string start_date = 3; + * @return The bytes for startDate. + */ + com.google.protobuf.ByteString getStartDateBytes(); + + /** + * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; + * @return Whether the scheduleRelationship field is set. + */ + boolean hasScheduleRelationship(); + /** + * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; + * @return The scheduleRelationship. + */ + com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship getScheduleRelationship(); + } /** *
-     * Degrees East, in the WGS-84 coordinate system.
+     * A descriptor that identifies an instance of a GTFS trip, or all instances of
+     * a trip along a route.
+     * - To specify a single trip instance, the trip_id (and if necessary,
+     *   start_time) is set. If route_id is also set, then it should be same as one
+     *   that the given trip corresponds to.
+     * - To specify all the trips along a given route, only the route_id should be
+     *   set. Note that if the trip_id is not known, then stop sequence ids in
+     *   TripUpdate are not sufficient, and stop_ids must be provided as well. In
+     *   addition, absolute arrival/departure times must be provided.
      * 
* - * required float longitude = 2; - * @return The longitude. + * Protobuf type {@code transit_realtime.TripDescriptor} */ - float getLongitude(); + public static final class TripDescriptor + extends + com.google.protobuf.GeneratedMessageV3.ExtendableMessage + implements + // @@protoc_insertion_point(message_implements:transit_realtime.TripDescriptor) + TripDescriptorOrBuilder { + private static final long serialVersionUID = 0L; + // Use TripDescriptor.newBuilder() to construct. + private TripDescriptor( + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { + super(builder); + } + private TripDescriptor() { + tripId_ = ""; + routeId_ = ""; + startTime_ = ""; + startDate_ = ""; + scheduleRelationship_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TripDescriptor(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripDescriptor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.TripDescriptor.class, + com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder.class); + } + + /** + *
+         * The relation between this trip and the static schedule. If a trip is done
+         * in accordance with temporary schedule, not reflected in GTFS, then it
+         * shouldn't be marked as SCHEDULED, but likely as ADDED.
+         * 
+ * + * Protobuf enum {@code transit_realtime.TripDescriptor.ScheduleRelationship} + */ + public enum ScheduleRelationship implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+             * Trip that is running in accordance with its GTFS schedule, or is close
+             * enough to the scheduled trip to be associated with it.
+             * 
+ * + * SCHEDULED = 0; + */ + SCHEDULED(0), + /** + *
+             * An extra trip that was added in addition to a running schedule, for
+             * example, to replace a broken vehicle or to respond to sudden passenger
+             * load.
+             * 
+ * + * ADDED = 1; + */ + ADDED(1), + /** + *
+             * A trip that is running with no schedule associated to it, for example, if
+             * there is no schedule at all.
+             * 
+ * + * UNSCHEDULED = 2; + */ + UNSCHEDULED(2), + /** + *
+             * A trip that existed in the schedule but was removed.
+             * 
+ * + * CANCELED = 3; + */ + CANCELED(3), + /** + *
+             * Should not be used - for backwards-compatibility only.
+             * 
+ * + * REPLACEMENT = 5 [deprecated = true]; + */ + @java.lang.Deprecated + REPLACEMENT(5),; + + /** + *
+             * Trip that is running in accordance with its GTFS schedule, or is close
+             * enough to the scheduled trip to be associated with it.
+             * 
+ * + * SCHEDULED = 0; + */ + public static final int SCHEDULED_VALUE = 0; + /** + *
+             * An extra trip that was added in addition to a running schedule, for
+             * example, to replace a broken vehicle or to respond to sudden passenger
+             * load.
+             * 
+ * + * ADDED = 1; + */ + public static final int ADDED_VALUE = 1; + /** + *
+             * A trip that is running with no schedule associated to it, for example, if
+             * there is no schedule at all.
+             * 
+ * + * UNSCHEDULED = 2; + */ + public static final int UNSCHEDULED_VALUE = 2; + /** + *
+             * A trip that existed in the schedule but was removed.
+             * 
+ * + * CANCELED = 3; + */ + public static final int CANCELED_VALUE = 3; + /** + *
+             * Should not be used - for backwards-compatibility only.
+             * 
+ * + * REPLACEMENT = 5 [deprecated = true]; + */ + @java.lang.Deprecated + public static final int REPLACEMENT_VALUE = 5; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ScheduleRelationship valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ScheduleRelationship forNumber(int value) { + switch (value) { + case 0 : + return SCHEDULED; + case 1 : + return ADDED; + case 2 : + return UNSCHEDULED; + case 3 : + return CANCELED; + case 5 : + return REPLACEMENT; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public ScheduleRelationship findValueByNumber(int number) { + return ScheduleRelationship.forNumber(number); + } + }; - /** - *
-     * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
-     * This can be the compass bearing, or the direction towards the next stop
-     * or intermediate location.
-     * This should not be direction deduced from the sequence of previous
-     * positions, which can be computed from previous data.
-     * 
- * - * optional float bearing = 3; - * @return Whether the bearing field is set. - */ - boolean hasBearing(); - /** - *
-     * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
-     * This can be the compass bearing, or the direction towards the next stop
-     * or intermediate location.
-     * This should not be direction deduced from the sequence of previous
-     * positions, which can be computed from previous data.
-     * 
- * - * optional float bearing = 3; - * @return The bearing. - */ - float getBearing(); + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDescriptor().getEnumTypes().get(0); + } - /** - *
-     * Odometer value, in meters.
-     * 
- * - * optional double odometer = 4; - * @return Whether the odometer field is set. - */ - boolean hasOdometer(); - /** - *
-     * Odometer value, in meters.
-     * 
- * - * optional double odometer = 4; - * @return The odometer. - */ - double getOdometer(); + private static final ScheduleRelationship[] VALUES = values(); - /** - *
-     * Momentary speed measured by the vehicle, in meters per second.
-     * 
- * - * optional float speed = 5; - * @return Whether the speed field is set. - */ - boolean hasSpeed(); - /** - *
-     * Momentary speed measured by the vehicle, in meters per second.
-     * 
- * - * optional float speed = 5; - * @return The speed. - */ - float getSpeed(); - } - /** - *
-   * A position.
-   * 
- * - * Protobuf type {@code transit_realtime.Position} - */ - public static final class Position extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - Position> implements - // @@protoc_insertion_point(message_implements:transit_realtime.Position) - PositionOrBuilder { - private static final long serialVersionUID = 0L; - // Use Position.newBuilder() to construct. - private Position(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private Position() { - } + public static ScheduleRelationship valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Position(); - } + private final int value; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Position_descriptor; - } + private ScheduleRelationship(int value) { + this.value = value; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Position_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.Position.class, com.google.transit.realtime.GtfsRealtime.Position.Builder.class); - } + // @@protoc_insertion_point(enum_scope:transit_realtime.TripDescriptor.ScheduleRelationship) + } - private int bitField0_; - public static final int LATITUDE_FIELD_NUMBER = 1; - private float latitude_ = 0F; - /** - *
-     * 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. - */ - @java.lang.Override - public float getLatitude() { - return latitude_; - } + private int bitField0_; + public static final int TRIP_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object tripId_ = ""; + /** + *
+         * The trip_id from the GTFS feed that this selector refers to.
+         * For non frequency-based trips, this field is enough to uniquely identify
+         * the trip. For frequency-based trip, start_time and start_date might also be
+         * necessary.
+         * 
+ * + * optional string trip_id = 1; + * @return Whether the tripId field is set. + */ + @java.lang.Override + public boolean hasTripId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * The trip_id from the GTFS feed that this selector refers to.
+         * For non frequency-based trips, this field is enough to uniquely identify
+         * the trip. For frequency-based trip, start_time and start_date might also be
+         * necessary.
+         * 
+ * + * optional string trip_id = 1; + * @return The tripId. + */ + @java.lang.Override + public java.lang.String getTripId() { + java.lang.Object ref = tripId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + tripId_ = s; + } + return s; + } + } + /** + *
+         * The trip_id from the GTFS feed that this selector refers to.
+         * For non frequency-based trips, this field is enough to uniquely identify
+         * the trip. For frequency-based trip, start_time and start_date might also be
+         * necessary.
+         * 
+ * + * optional string trip_id = 1; + * @return The bytes for tripId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTripIdBytes() { + java.lang.Object ref = tripId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tripId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int LONGITUDE_FIELD_NUMBER = 2; - private float longitude_ = 0F; - /** - *
-     * Degrees East, in the WGS-84 coordinate system.
-     * 
- * - * required float longitude = 2; - * @return Whether the longitude field is set. - */ - @java.lang.Override - public boolean hasLongitude() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Degrees East, in the WGS-84 coordinate system.
-     * 
- * - * required float longitude = 2; - * @return The longitude. - */ - @java.lang.Override - public float getLongitude() { - return longitude_; - } + public static final int ROUTE_ID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object routeId_ = ""; + /** + *
+         * The route_id from the GTFS that this selector refers to.
+         * 
+ * + * optional string route_id = 5; + * @return Whether the routeId field is set. + */ + @java.lang.Override + public boolean hasRouteId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * The route_id from the GTFS that this selector refers to.
+         * 
+ * + * optional string route_id = 5; + * @return The routeId. + */ + @java.lang.Override + public java.lang.String getRouteId() { + java.lang.Object ref = routeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + routeId_ = s; + } + return s; + } + } + /** + *
+         * The route_id from the GTFS that this selector refers to.
+         * 
+ * + * optional string route_id = 5; + * @return The bytes for routeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRouteIdBytes() { + java.lang.Object ref = routeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIRECTION_ID_FIELD_NUMBER = 6; + private int directionId_ = 0; + /** + *
+         * The direction_id from the GTFS feed trips.txt file, indicating the
+         * direction of travel for trips this selector refers to. This field is
+         * still experimental, and subject to change. It may be formally adopted in
+         * the future.
+         * 
+ * + * optional uint32 direction_id = 6; + * @return Whether the directionId field is set. + */ + @java.lang.Override + public boolean hasDirectionId() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * The direction_id from the GTFS feed trips.txt file, indicating the
+         * direction of travel for trips this selector refers to. This field is
+         * still experimental, and subject to change. It may be formally adopted in
+         * the future.
+         * 
+ * + * optional uint32 direction_id = 6; + * @return The directionId. + */ + @java.lang.Override + public int getDirectionId() { + return directionId_; + } + + public static final int START_TIME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object startTime_ = ""; + /** + *
+         * The initially scheduled start time of this trip instance.
+         * When the trip_id corresponds to a non-frequency-based trip, this field
+         * should either be omitted or be equal to the value in the GTFS feed. When
+         * the trip_id correponds to a frequency-based trip, the start_time must be
+         * specified for trip updates and vehicle positions. If the trip corresponds
+         * to exact_times=1 GTFS record, then start_time must be some multiple
+         * (including zero) of headway_secs later than frequencies.txt start_time for
+         * the corresponding time period. If the trip corresponds to exact_times=0,
+         * then its start_time may be arbitrary, and is initially expected to be the
+         * first departure of the trip. Once established, the start_time of this
+         * frequency-based trip should be considered immutable, even if the first
+         * departure time changes -- that time change may instead be reflected in a
+         * StopTimeUpdate.
+         * Format and semantics of the field is same as that of
+         * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
+         * 
+ * + * optional string start_time = 2; + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+         * The initially scheduled start time of this trip instance.
+         * When the trip_id corresponds to a non-frequency-based trip, this field
+         * should either be omitted or be equal to the value in the GTFS feed. When
+         * the trip_id correponds to a frequency-based trip, the start_time must be
+         * specified for trip updates and vehicle positions. If the trip corresponds
+         * to exact_times=1 GTFS record, then start_time must be some multiple
+         * (including zero) of headway_secs later than frequencies.txt start_time for
+         * the corresponding time period. If the trip corresponds to exact_times=0,
+         * then its start_time may be arbitrary, and is initially expected to be the
+         * first departure of the trip. Once established, the start_time of this
+         * frequency-based trip should be considered immutable, even if the first
+         * departure time changes -- that time change may instead be reflected in a
+         * StopTimeUpdate.
+         * Format and semantics of the field is same as that of
+         * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
+         * 
+ * + * optional string start_time = 2; + * @return The startTime. + */ + @java.lang.Override + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startTime_ = s; + } + return s; + } + } + /** + *
+         * The initially scheduled start time of this trip instance.
+         * When the trip_id corresponds to a non-frequency-based trip, this field
+         * should either be omitted or be equal to the value in the GTFS feed. When
+         * the trip_id correponds to a frequency-based trip, the start_time must be
+         * specified for trip updates and vehicle positions. If the trip corresponds
+         * to exact_times=1 GTFS record, then start_time must be some multiple
+         * (including zero) of headway_secs later than frequencies.txt start_time for
+         * the corresponding time period. If the trip corresponds to exact_times=0,
+         * then its start_time may be arbitrary, and is initially expected to be the
+         * first departure of the trip. Once established, the start_time of this
+         * frequency-based trip should be considered immutable, even if the first
+         * departure time changes -- that time change may instead be reflected in a
+         * StopTimeUpdate.
+         * Format and semantics of the field is same as that of
+         * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
+         * 
+ * + * optional string start_time = 2; + * @return The bytes for startTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_DATE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object startDate_ = ""; + /** + *
+         * The scheduled start date of this trip instance.
+         * Must be provided to disambiguate trips that are so late as to collide with
+         * a scheduled trip on a next day. For example, for a train that departs 8:00
+         * and 20:00 every day, and is 12 hours late, there would be two distinct
+         * trips on the same time.
+         * This field can be provided but is not mandatory for schedules in which such
+         * collisions are impossible - for example, a service running on hourly
+         * schedule where a vehicle that is one hour late is not considered to be
+         * related to schedule anymore.
+         * In YYYYMMDD format.
+         * 
+ * + * optional string start_date = 3; + * @return Whether the startDate field is set. + */ + @java.lang.Override + public boolean hasStartDate() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+         * The scheduled start date of this trip instance.
+         * Must be provided to disambiguate trips that are so late as to collide with
+         * a scheduled trip on a next day. For example, for a train that departs 8:00
+         * and 20:00 every day, and is 12 hours late, there would be two distinct
+         * trips on the same time.
+         * This field can be provided but is not mandatory for schedules in which such
+         * collisions are impossible - for example, a service running on hourly
+         * schedule where a vehicle that is one hour late is not considered to be
+         * related to schedule anymore.
+         * In YYYYMMDD format.
+         * 
+ * + * optional string start_date = 3; + * @return The startDate. + */ + @java.lang.Override + public java.lang.String getStartDate() { + java.lang.Object ref = startDate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startDate_ = s; + } + return s; + } + } + /** + *
+         * The scheduled start date of this trip instance.
+         * Must be provided to disambiguate trips that are so late as to collide with
+         * a scheduled trip on a next day. For example, for a train that departs 8:00
+         * and 20:00 every day, and is 12 hours late, there would be two distinct
+         * trips on the same time.
+         * This field can be provided but is not mandatory for schedules in which such
+         * collisions are impossible - for example, a service running on hourly
+         * schedule where a vehicle that is one hour late is not considered to be
+         * related to schedule anymore.
+         * In YYYYMMDD format.
+         * 
+ * + * optional string start_date = 3; + * @return The bytes for startDate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartDateBytes() { + java.lang.Object ref = startDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEDULE_RELATIONSHIP_FIELD_NUMBER = 4; + private int scheduleRelationship_ = 0; + /** + * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; + * @return Whether the scheduleRelationship field is set. + */ + @java.lang.Override + public boolean hasScheduleRelationship() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; + * @return The scheduleRelationship. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship getScheduleRelationship() { + com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship result = com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship + .forNumber(scheduleRelationship_); + return result == null + ? com.google.transit.realtime.GtfsRealtime.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(2000, 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 com.google.transit.realtime.GtfsRealtime.TripDescriptor)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.TripDescriptor other = (com.google.transit.realtime.GtfsRealtime.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 com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TripDescriptor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int BEARING_FIELD_NUMBER = 3; - private float bearing_ = 0F; - /** - *
-     * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
-     * This can be the compass bearing, or the direction towards the next stop
-     * or intermediate location.
-     * This should not be direction deduced from the sequence of previous
-     * positions, which can be computed from previous data.
-     * 
- * - * optional float bearing = 3; - * @return Whether the bearing field is set. - */ - @java.lang.Override - public boolean hasBearing() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
-     * This can be the compass bearing, or the direction towards the next stop
-     * or intermediate location.
-     * This should not be direction deduced from the sequence of previous
-     * positions, which can be computed from previous data.
-     * 
- * - * optional float bearing = 3; - * @return The bearing. - */ - @java.lang.Override - public float getBearing() { - return bearing_; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * A descriptor that identifies an instance of a GTFS trip, or all instances of
+         * a trip along a route.
+         * - To specify a single trip instance, the trip_id (and if necessary,
+         *   start_time) is set. If route_id is also set, then it should be same as one
+         *   that the given trip corresponds to.
+         * - To specify all the trips along a given route, only the route_id should be
+         *   set. Note that if the trip_id is not known, then stop sequence ids in
+         *   TripUpdate are not sufficient, and stop_ids must be provided as well. In
+         *   addition, absolute arrival/departure times must be provided.
+         * 
+ * + * Protobuf type {@code transit_realtime.TripDescriptor} + */ + public static final class Builder + extends + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.TripDescriptor) + com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripDescriptor_descriptor; + } - public static final int ODOMETER_FIELD_NUMBER = 4; - private double odometer_ = 0D; - /** - *
-     * Odometer value, in meters.
-     * 
- * - * optional double odometer = 4; - * @return Whether the odometer field is set. - */ - @java.lang.Override - public boolean hasOdometer() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Odometer value, in meters.
-     * 
- * - * optional double odometer = 4; - * @return The odometer. - */ - @java.lang.Override - public double getOdometer() { - return odometer_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.TripDescriptor.class, + com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder.class); + } - public static final int SPEED_FIELD_NUMBER = 5; - private float speed_ = 0F; - /** - *
-     * Momentary speed measured by the vehicle, in meters per second.
-     * 
- * - * optional float speed = 5; - * @return Whether the speed field is set. - */ - @java.lang.Override - public boolean hasSpeed() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * Momentary speed measured by the vehicle, in meters per second.
-     * 
- * - * optional float speed = 5; - * @return The speed. - */ - @java.lang.Override - public float getSpeed() { - return speed_; - } + // Construct using com.google.transit.realtime.GtfsRealtime.TripDescriptor.newBuilder() + private Builder() { - 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(2000, output); - getUnknownFields().writeTo(output); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - @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 Builder clear() { + super.clear(); + bitField0_ = 0; + tripId_ = ""; + routeId_ = ""; + directionId_ = 0; + startTime_ = ""; + startDate_ = ""; + scheduleRelationship_ = 0; + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.Position)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.Position other = (com.google.transit.realtime.GtfsRealtime.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 com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripDescriptor_descriptor; + } - @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; - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripDescriptor getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); + } - public static com.google.transit.realtime.GtfsRealtime.Position parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.Position parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.Position parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.Position parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.Position parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.Position parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.Position parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.Position parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.Position parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.Position parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.Position parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.Position parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripDescriptor build() { + com.google.transit.realtime.GtfsRealtime.TripDescriptor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.Position prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripDescriptor buildPartial() { + com.google.transit.realtime.GtfsRealtime.TripDescriptor result = new com.google.transit.realtime.GtfsRealtime.TripDescriptor( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A position.
-     * 
- * - * Protobuf type {@code transit_realtime.Position} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< - com.google.transit.realtime.GtfsRealtime.Position, Builder> implements - // @@protoc_insertion_point(builder_implements:transit_realtime.Position) - com.google.transit.realtime.GtfsRealtime.PositionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Position_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Position_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.Position.class, com.google.transit.realtime.GtfsRealtime.Position.Builder.class); - } - - // Construct using com.google.transit.realtime.GtfsRealtime.Position.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - latitude_ = 0F; - longitude_ = 0F; - bearing_ = 0F; - odometer_ = 0D; - speed_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_Position_descriptor; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.Position getDefaultInstanceForType() { - return com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance(); - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.Position build() { - com.google.transit.realtime.GtfsRealtime.Position result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.Position buildPartial() { - com.google.transit.realtime.GtfsRealtime.Position result = new com.google.transit.realtime.GtfsRealtime.Position(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.transit.realtime.GtfsRealtime.Position result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.latitude_ = latitude_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.longitude_ = longitude_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.bearing_ = bearing_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.odometer_ = odometer_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.speed_ = speed_; - to_bitField0_ |= 0x00000010; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.Position, Type> extension, - Type value) { - return super.setExtension(extension, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.Position, java.util.List> extension, - int index, Type value) { - return super.setExtension(extension, index, value); - } - @java.lang.Override - public Builder addExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.Position, java.util.List> extension, - Type value) { - return super.addExtension(extension, value); - } - @java.lang.Override - public Builder clearExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.Position, ?> extension) { - return super.clearExtension(extension); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.transit.realtime.GtfsRealtime.Position) { - return mergeFrom((com.google.transit.realtime.GtfsRealtime.Position)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.Position other) { - if (other == com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance()) return this; - if (other.hasLatitude()) { - setLatitude(other.getLatitude()); - } - if (other.hasLongitude()) { - setLongitude(other.getLongitude()); - } - if (other.hasBearing()) { - setBearing(other.getBearing()); - } - if (other.hasOdometer()) { - setOdometer(other.getOdometer()); - } - if (other.hasSpeed()) { - setSpeed(other.getSpeed()); - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.getUnknownFields()); - 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. - */ - @java.lang.Override - public float getLatitude() { - return latitude_; - } - /** - *
-       * Degrees North, in the WGS-84 coordinate system.
-       * 
- * - * required float latitude = 1; - * @param value The latitude to set. - * @return This builder for chaining. - */ - public Builder setLatitude(float value) { - - latitude_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Degrees North, in the WGS-84 coordinate system.
-       * 
- * - * required float latitude = 1; - * @return This builder for chaining. - */ - public Builder clearLatitude() { - bitField0_ = (bitField0_ & ~0x00000001); - latitude_ = 0F; - onChanged(); - return this; - } - - private float longitude_ ; - /** - *
-       * Degrees East, in the WGS-84 coordinate system.
-       * 
- * - * required float longitude = 2; - * @return Whether the longitude field is set. - */ - @java.lang.Override - public boolean hasLongitude() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Degrees East, in the WGS-84 coordinate system.
-       * 
- * - * required float longitude = 2; - * @return The longitude. - */ - @java.lang.Override - public float getLongitude() { - return longitude_; - } - /** - *
-       * Degrees East, in the WGS-84 coordinate system.
-       * 
- * - * required float longitude = 2; - * @param value The longitude to set. - * @return This builder for chaining. - */ - public Builder setLongitude(float value) { - - longitude_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Degrees East, in the WGS-84 coordinate system.
-       * 
- * - * required float longitude = 2; - * @return This builder for chaining. - */ - public Builder clearLongitude() { - bitField0_ = (bitField0_ & ~0x00000002); - longitude_ = 0F; - onChanged(); - return this; - } - - private float bearing_ ; - /** - *
-       * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
-       * This can be the compass bearing, or the direction towards the next stop
-       * or intermediate location.
-       * This should not be direction deduced from the sequence of previous
-       * positions, which can be computed from previous data.
-       * 
- * - * optional float bearing = 3; - * @return Whether the bearing field is set. - */ - @java.lang.Override - public boolean hasBearing() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
-       * This can be the compass bearing, or the direction towards the next stop
-       * or intermediate location.
-       * This should not be direction deduced from the sequence of previous
-       * positions, which can be computed from previous data.
-       * 
- * - * optional float bearing = 3; - * @return The bearing. - */ - @java.lang.Override - public float getBearing() { - return bearing_; - } - /** - *
-       * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
-       * This can be the compass bearing, or the direction towards the next stop
-       * or intermediate location.
-       * This should not be direction deduced from the sequence of previous
-       * positions, which can be computed from previous data.
-       * 
- * - * optional float bearing = 3; - * @param value The bearing to set. - * @return This builder for chaining. - */ - public Builder setBearing(float value) { - - bearing_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.
-       * This can be the compass bearing, or the direction towards the next stop
-       * or intermediate location.
-       * This should not be direction deduced from the sequence of previous
-       * positions, which can be computed from previous data.
-       * 
- * - * optional float bearing = 3; - * @return This builder for chaining. - */ - public Builder clearBearing() { - bitField0_ = (bitField0_ & ~0x00000004); - bearing_ = 0F; - onChanged(); - return this; - } - - private double odometer_ ; - /** - *
-       * Odometer value, in meters.
-       * 
- * - * optional double odometer = 4; - * @return Whether the odometer field is set. - */ - @java.lang.Override - public boolean hasOdometer() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-       * Odometer value, in meters.
-       * 
- * - * optional double odometer = 4; - * @return The odometer. - */ - @java.lang.Override - public double getOdometer() { - return odometer_; - } - /** - *
-       * Odometer value, in meters.
-       * 
- * - * optional double odometer = 4; - * @param value The odometer to set. - * @return This builder for chaining. - */ - public Builder setOdometer(double value) { - - odometer_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * Odometer value, in meters.
-       * 
- * - * optional double odometer = 4; - * @return This builder for chaining. - */ - public Builder clearOdometer() { - bitField0_ = (bitField0_ & ~0x00000008); - odometer_ = 0D; - onChanged(); - return this; - } - - private float speed_ ; - /** - *
-       * Momentary speed measured by the vehicle, in meters per second.
-       * 
- * - * optional float speed = 5; - * @return Whether the speed field is set. - */ - @java.lang.Override - public boolean hasSpeed() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-       * Momentary speed measured by the vehicle, in meters per second.
-       * 
- * - * optional float speed = 5; - * @return The speed. - */ - @java.lang.Override - public float getSpeed() { - return speed_; - } - /** - *
-       * Momentary speed measured by the vehicle, in meters per second.
-       * 
- * - * optional float speed = 5; - * @param value The speed to set. - * @return This builder for chaining. - */ - public Builder setSpeed(float value) { - - speed_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * Momentary speed measured by the vehicle, in meters per second.
-       * 
- * - * optional float speed = 5; - * @return This builder for chaining. - */ - public Builder clearSpeed() { - bitField0_ = (bitField0_ & ~0x00000010); - speed_ = 0F; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:transit_realtime.Position) - } + private void buildPartial0(com.google.transit.realtime.GtfsRealtime.TripDescriptor result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tripId_ = tripId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.routeId_ = routeId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.directionId_ = directionId_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.startTime_ = startTime_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.startDate_ = startDate_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.scheduleRelationship_ = scheduleRelationship_; + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } - // @@protoc_insertion_point(class_scope:transit_realtime.Position) - private static final com.google.transit.realtime.GtfsRealtime.Position DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.Position(); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension, + Type value) { + return super.setExtension(extension, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + int index, Type value) { + return super.setExtension(extension, index, value); + } + @java.lang.Override + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + Type value) { + return super.addExtension(extension, value); + } + @java.lang.Override + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension) { + return super.clearExtension(extension); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.TripDescriptor) { + return mergeFrom((com.google.transit.realtime.GtfsRealtime.TripDescriptor) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static com.google.transit.realtime.GtfsRealtime.Position getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TripDescriptor other) { + if (other == com.google.transit.realtime.GtfsRealtime.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.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Position parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + if (!extensionsAreInitialized()) { + return false; + } + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @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(); + com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship tmpValue = com.google.transit.realtime.GtfsRealtime.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_ = ""; + /** + *
+             * The trip_id from the GTFS feed that this selector refers to.
+             * For non frequency-based trips, this field is enough to uniquely identify
+             * the trip. For frequency-based trip, start_time and start_date might also be
+             * necessary.
+             * 
+ * + * optional string trip_id = 1; + * @return Whether the tripId field is set. + */ + public boolean hasTripId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * The trip_id from the GTFS feed that this selector refers to.
+             * For non frequency-based trips, this field is enough to uniquely identify
+             * the trip. For frequency-based trip, start_time and start_date might also be
+             * necessary.
+             * 
+ * + * optional string trip_id = 1; + * @return The tripId. + */ + public java.lang.String getTripId() { + java.lang.Object ref = tripId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + tripId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * The trip_id from the GTFS feed that this selector refers to.
+             * For non frequency-based trips, this field is enough to uniquely identify
+             * the trip. For frequency-based trip, start_time and start_date might also be
+             * necessary.
+             * 
+ * + * optional string trip_id = 1; + * @return The bytes for tripId. + */ + public com.google.protobuf.ByteString getTripIdBytes() { + java.lang.Object ref = tripId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + tripId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * The trip_id from the GTFS feed that this selector refers to.
+             * For non frequency-based trips, this field is enough to uniquely identify
+             * the trip. For frequency-based trip, start_time and start_date might also be
+             * necessary.
+             * 
+ * + * optional string trip_id = 1; + * @param value The tripId to set. + * @return This builder for chaining. + */ + public Builder setTripId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tripId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * The trip_id from the GTFS feed that this selector refers to.
+             * For non frequency-based trips, this field is enough to uniquely identify
+             * the trip. For frequency-based trip, start_time and start_date might also be
+             * necessary.
+             * 
+ * + * optional string trip_id = 1; + * @return This builder for chaining. + */ + public Builder clearTripId() { + tripId_ = getDefaultInstance().getTripId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+             * The trip_id from the GTFS feed that this selector refers to.
+             * For non frequency-based trips, this field is enough to uniquely identify
+             * the trip. For frequency-based trip, start_time and start_date might also be
+             * necessary.
+             * 
+ * + * optional string trip_id = 1; + * @param value The bytes for tripId to set. + * @return This builder for chaining. + */ + public Builder setTripIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + tripId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.Position getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private java.lang.Object routeId_ = ""; + /** + *
+             * The route_id from the GTFS that this selector refers to.
+             * 
+ * + * optional string route_id = 5; + * @return Whether the routeId field is set. + */ + public boolean hasRouteId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * The route_id from the GTFS that this selector refers to.
+             * 
+ * + * optional string route_id = 5; + * @return The routeId. + */ + public java.lang.String getRouteId() { + java.lang.Object ref = routeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + routeId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * The route_id from the GTFS that this selector refers to.
+             * 
+ * + * optional string route_id = 5; + * @return The bytes for routeId. + */ + public com.google.protobuf.ByteString getRouteIdBytes() { + java.lang.Object ref = routeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + routeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * The route_id from the GTFS that this selector refers to.
+             * 
+ * + * optional string route_id = 5; + * @param value The routeId to set. + * @return This builder for chaining. + */ + public Builder setRouteId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + routeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * The route_id from the GTFS that this selector refers to.
+             * 
+ * + * optional string route_id = 5; + * @return This builder for chaining. + */ + public Builder clearRouteId() { + routeId_ = getDefaultInstance().getRouteId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+             * The route_id from the GTFS that this selector refers to.
+             * 
+ * + * optional string route_id = 5; + * @param value The bytes for routeId to set. + * @return This builder for chaining. + */ + public Builder setRouteIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + routeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - } + private int directionId_; + /** + *
+             * The direction_id from the GTFS feed trips.txt file, indicating the
+             * direction of travel for trips this selector refers to. This field is
+             * still experimental, and subject to change. It may be formally adopted in
+             * the future.
+             * 
+ * + * optional uint32 direction_id = 6; + * @return Whether the directionId field is set. + */ + @java.lang.Override + public boolean hasDirectionId() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * The direction_id from the GTFS feed trips.txt file, indicating the
+             * direction of travel for trips this selector refers to. This field is
+             * still experimental, and subject to change. It may be formally adopted in
+             * the future.
+             * 
+ * + * optional uint32 direction_id = 6; + * @return The directionId. + */ + @java.lang.Override + public int getDirectionId() { + return directionId_; + } + /** + *
+             * The direction_id from the GTFS feed trips.txt file, indicating the
+             * direction of travel for trips this selector refers to. This field is
+             * still experimental, and subject to change. It may be formally adopted in
+             * the future.
+             * 
+ * + * optional uint32 direction_id = 6; + * @param value The directionId to set. + * @return This builder for chaining. + */ + public Builder setDirectionId(int value) { + + directionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * The direction_id from the GTFS feed trips.txt file, indicating the
+             * direction of travel for trips this selector refers to. This field is
+             * still experimental, and subject to change. It may be formally adopted in
+             * the future.
+             * 
+ * + * optional uint32 direction_id = 6; + * @return This builder for chaining. + */ + public Builder clearDirectionId() { + bitField0_ = (bitField0_ & ~0x00000004); + directionId_ = 0; + onChanged(); + return this; + } - public interface TripDescriptorOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.TripDescriptor) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { + private java.lang.Object startTime_ = ""; + /** + *
+             * The initially scheduled start time of this trip instance.
+             * When the trip_id corresponds to a non-frequency-based trip, this field
+             * should either be omitted or be equal to the value in the GTFS feed. When
+             * the trip_id correponds to a frequency-based trip, the start_time must be
+             * specified for trip updates and vehicle positions. If the trip corresponds
+             * to exact_times=1 GTFS record, then start_time must be some multiple
+             * (including zero) of headway_secs later than frequencies.txt start_time for
+             * the corresponding time period. If the trip corresponds to exact_times=0,
+             * then its start_time may be arbitrary, and is initially expected to be the
+             * first departure of the trip. Once established, the start_time of this
+             * frequency-based trip should be considered immutable, even if the first
+             * departure time changes -- that time change may instead be reflected in a
+             * StopTimeUpdate.
+             * Format and semantics of the field is same as that of
+             * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
+             * 
+ * + * optional string start_time = 2; + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+             * The initially scheduled start time of this trip instance.
+             * When the trip_id corresponds to a non-frequency-based trip, this field
+             * should either be omitted or be equal to the value in the GTFS feed. When
+             * the trip_id correponds to a frequency-based trip, the start_time must be
+             * specified for trip updates and vehicle positions. If the trip corresponds
+             * to exact_times=1 GTFS record, then start_time must be some multiple
+             * (including zero) of headway_secs later than frequencies.txt start_time for
+             * the corresponding time period. If the trip corresponds to exact_times=0,
+             * then its start_time may be arbitrary, and is initially expected to be the
+             * first departure of the trip. Once established, the start_time of this
+             * frequency-based trip should be considered immutable, even if the first
+             * departure time changes -- that time change may instead be reflected in a
+             * StopTimeUpdate.
+             * Format and semantics of the field is same as that of
+             * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
+             * 
+ * + * optional string start_time = 2; + * @return The startTime. + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startTime_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * The initially scheduled start time of this trip instance.
+             * When the trip_id corresponds to a non-frequency-based trip, this field
+             * should either be omitted or be equal to the value in the GTFS feed. When
+             * the trip_id correponds to a frequency-based trip, the start_time must be
+             * specified for trip updates and vehicle positions. If the trip corresponds
+             * to exact_times=1 GTFS record, then start_time must be some multiple
+             * (including zero) of headway_secs later than frequencies.txt start_time for
+             * the corresponding time period. If the trip corresponds to exact_times=0,
+             * then its start_time may be arbitrary, and is initially expected to be the
+             * first departure of the trip. Once established, the start_time of this
+             * frequency-based trip should be considered immutable, even if the first
+             * departure time changes -- that time change may instead be reflected in a
+             * StopTimeUpdate.
+             * Format and semantics of the field is same as that of
+             * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
+             * 
+ * + * optional string start_time = 2; + * @return The bytes for startTime. + */ + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * The initially scheduled start time of this trip instance.
+             * When the trip_id corresponds to a non-frequency-based trip, this field
+             * should either be omitted or be equal to the value in the GTFS feed. When
+             * the trip_id correponds to a frequency-based trip, the start_time must be
+             * specified for trip updates and vehicle positions. If the trip corresponds
+             * to exact_times=1 GTFS record, then start_time must be some multiple
+             * (including zero) of headway_secs later than frequencies.txt start_time for
+             * the corresponding time period. If the trip corresponds to exact_times=0,
+             * then its start_time may be arbitrary, and is initially expected to be the
+             * first departure of the trip. Once established, the start_time of this
+             * frequency-based trip should be considered immutable, even if the first
+             * departure time changes -- that time change may instead be reflected in a
+             * StopTimeUpdate.
+             * Format and semantics of the field is same as that of
+             * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
+             * 
+ * + * optional string start_time = 2; + * @param value The startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+             * The initially scheduled start time of this trip instance.
+             * When the trip_id corresponds to a non-frequency-based trip, this field
+             * should either be omitted or be equal to the value in the GTFS feed. When
+             * the trip_id correponds to a frequency-based trip, the start_time must be
+             * specified for trip updates and vehicle positions. If the trip corresponds
+             * to exact_times=1 GTFS record, then start_time must be some multiple
+             * (including zero) of headway_secs later than frequencies.txt start_time for
+             * the corresponding time period. If the trip corresponds to exact_times=0,
+             * then its start_time may be arbitrary, and is initially expected to be the
+             * first departure of the trip. Once established, the start_time of this
+             * frequency-based trip should be considered immutable, even if the first
+             * departure time changes -- that time change may instead be reflected in a
+             * StopTimeUpdate.
+             * Format and semantics of the field is same as that of
+             * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
+             * 
+ * + * optional string start_time = 2; + * @return This builder for chaining. + */ + public Builder clearStartTime() { + startTime_ = getDefaultInstance().getStartTime(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+             * The initially scheduled start time of this trip instance.
+             * When the trip_id corresponds to a non-frequency-based trip, this field
+             * should either be omitted or be equal to the value in the GTFS feed. When
+             * the trip_id correponds to a frequency-based trip, the start_time must be
+             * specified for trip updates and vehicle positions. If the trip corresponds
+             * to exact_times=1 GTFS record, then start_time must be some multiple
+             * (including zero) of headway_secs later than frequencies.txt start_time for
+             * the corresponding time period. If the trip corresponds to exact_times=0,
+             * then its start_time may be arbitrary, and is initially expected to be the
+             * first departure of the trip. Once established, the start_time of this
+             * frequency-based trip should be considered immutable, even if the first
+             * departure time changes -- that time change may instead be reflected in a
+             * StopTimeUpdate.
+             * Format and semantics of the field is same as that of
+             * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
+             * 
+ * + * optional string start_time = 2; + * @param value The bytes for startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - /** - *
-     * The trip_id from the GTFS feed that this selector refers to.
-     * For non frequency-based trips, this field is enough to uniquely identify
-     * the trip. For frequency-based trip, start_time and start_date might also be
-     * necessary.
-     * 
- * - * optional string trip_id = 1; - * @return Whether the tripId field is set. - */ - boolean hasTripId(); - /** - *
-     * The trip_id from the GTFS feed that this selector refers to.
-     * For non frequency-based trips, this field is enough to uniquely identify
-     * the trip. For frequency-based trip, start_time and start_date might also be
-     * necessary.
-     * 
- * - * optional string trip_id = 1; - * @return The tripId. - */ - java.lang.String getTripId(); - /** - *
-     * The trip_id from the GTFS feed that this selector refers to.
-     * For non frequency-based trips, this field is enough to uniquely identify
-     * the trip. For frequency-based trip, start_time and start_date might also be
-     * necessary.
-     * 
- * - * optional string trip_id = 1; - * @return The bytes for tripId. - */ - com.google.protobuf.ByteString - getTripIdBytes(); + private java.lang.Object startDate_ = ""; + /** + *
+             * The scheduled start date of this trip instance.
+             * Must be provided to disambiguate trips that are so late as to collide with
+             * a scheduled trip on a next day. For example, for a train that departs 8:00
+             * and 20:00 every day, and is 12 hours late, there would be two distinct
+             * trips on the same time.
+             * This field can be provided but is not mandatory for schedules in which such
+             * collisions are impossible - for example, a service running on hourly
+             * schedule where a vehicle that is one hour late is not considered to be
+             * related to schedule anymore.
+             * In YYYYMMDD format.
+             * 
+ * + * optional string start_date = 3; + * @return Whether the startDate field is set. + */ + public boolean hasStartDate() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+             * The scheduled start date of this trip instance.
+             * Must be provided to disambiguate trips that are so late as to collide with
+             * a scheduled trip on a next day. For example, for a train that departs 8:00
+             * and 20:00 every day, and is 12 hours late, there would be two distinct
+             * trips on the same time.
+             * This field can be provided but is not mandatory for schedules in which such
+             * collisions are impossible - for example, a service running on hourly
+             * schedule where a vehicle that is one hour late is not considered to be
+             * related to schedule anymore.
+             * In YYYYMMDD format.
+             * 
+ * + * optional string start_date = 3; + * @return The startDate. + */ + public java.lang.String getStartDate() { + java.lang.Object ref = startDate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startDate_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * The scheduled start date of this trip instance.
+             * Must be provided to disambiguate trips that are so late as to collide with
+             * a scheduled trip on a next day. For example, for a train that departs 8:00
+             * and 20:00 every day, and is 12 hours late, there would be two distinct
+             * trips on the same time.
+             * This field can be provided but is not mandatory for schedules in which such
+             * collisions are impossible - for example, a service running on hourly
+             * schedule where a vehicle that is one hour late is not considered to be
+             * related to schedule anymore.
+             * In YYYYMMDD format.
+             * 
+ * + * optional string start_date = 3; + * @return The bytes for startDate. + */ + public com.google.protobuf.ByteString getStartDateBytes() { + java.lang.Object ref = startDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + startDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * The scheduled start date of this trip instance.
+             * Must be provided to disambiguate trips that are so late as to collide with
+             * a scheduled trip on a next day. For example, for a train that departs 8:00
+             * and 20:00 every day, and is 12 hours late, there would be two distinct
+             * trips on the same time.
+             * This field can be provided but is not mandatory for schedules in which such
+             * collisions are impossible - for example, a service running on hourly
+             * schedule where a vehicle that is one hour late is not considered to be
+             * related to schedule anymore.
+             * In YYYYMMDD format.
+             * 
+ * + * optional string start_date = 3; + * @param value The startDate to set. + * @return This builder for chaining. + */ + public Builder setStartDate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+             * The scheduled start date of this trip instance.
+             * Must be provided to disambiguate trips that are so late as to collide with
+             * a scheduled trip on a next day. For example, for a train that departs 8:00
+             * and 20:00 every day, and is 12 hours late, there would be two distinct
+             * trips on the same time.
+             * This field can be provided but is not mandatory for schedules in which such
+             * collisions are impossible - for example, a service running on hourly
+             * schedule where a vehicle that is one hour late is not considered to be
+             * related to schedule anymore.
+             * In YYYYMMDD format.
+             * 
+ * + * optional string start_date = 3; + * @return This builder for chaining. + */ + public Builder clearStartDate() { + startDate_ = getDefaultInstance().getStartDate(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+             * The scheduled start date of this trip instance.
+             * Must be provided to disambiguate trips that are so late as to collide with
+             * a scheduled trip on a next day. For example, for a train that departs 8:00
+             * and 20:00 every day, and is 12 hours late, there would be two distinct
+             * trips on the same time.
+             * This field can be provided but is not mandatory for schedules in which such
+             * collisions are impossible - for example, a service running on hourly
+             * schedule where a vehicle that is one hour late is not considered to be
+             * related to schedule anymore.
+             * In YYYYMMDD format.
+             * 
+ * + * optional string start_date = 3; + * @param value The bytes for startDate to set. + * @return This builder for chaining. + */ + public Builder setStartDateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - /** - *
-     * The route_id from the GTFS that this selector refers to.
-     * 
- * - * optional string route_id = 5; - * @return Whether the routeId field is set. - */ - boolean hasRouteId(); - /** - *
-     * The route_id from the GTFS that this selector refers to.
-     * 
- * - * optional string route_id = 5; - * @return The routeId. - */ - java.lang.String getRouteId(); - /** - *
-     * The route_id from the GTFS that this selector refers to.
-     * 
- * - * optional string route_id = 5; - * @return The bytes for routeId. - */ - com.google.protobuf.ByteString - getRouteIdBytes(); + private int scheduleRelationship_ = 0; + /** + * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; + * @return Whether the scheduleRelationship field is set. + */ + @java.lang.Override + public boolean hasScheduleRelationship() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; + * @return The scheduleRelationship. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship getScheduleRelationship() { + com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship result = com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship + .forNumber(scheduleRelationship_); + return result == null + ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship.SCHEDULED + : result; + } + /** + * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; + * @param value The scheduleRelationship to set. + * @return This builder for chaining. + */ + public Builder setScheduleRelationship( + com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + scheduleRelationship_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; + * @return This builder for chaining. + */ + public Builder clearScheduleRelationship() { + bitField0_ = (bitField0_ & ~0x00000020); + scheduleRelationship_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - /** - *
-     * The direction_id from the GTFS feed trips.txt file, indicating the
-     * direction of travel for trips this selector refers to. This field is
-     * still experimental, and subject to change. It may be formally adopted in
-     * the future.
-     * 
- * - * optional uint32 direction_id = 6; - * @return Whether the directionId field is set. - */ - boolean hasDirectionId(); - /** - *
-     * The direction_id from the GTFS feed trips.txt file, indicating the
-     * direction of travel for trips this selector refers to. This field is
-     * still experimental, and subject to change. It may be formally adopted in
-     * the future.
-     * 
- * - * optional uint32 direction_id = 6; - * @return The directionId. - */ - int getDirectionId(); + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - /** - *
-     * The initially scheduled start time of this trip instance.
-     * When the trip_id corresponds to a non-frequency-based trip, this field
-     * should either be omitted or be equal to the value in the GTFS feed. When
-     * the trip_id correponds to a frequency-based trip, the start_time must be
-     * specified for trip updates and vehicle positions. If the trip corresponds
-     * to exact_times=1 GTFS record, then start_time must be some multiple
-     * (including zero) of headway_secs later than frequencies.txt start_time for
-     * the corresponding time period. If the trip corresponds to exact_times=0,
-     * then its start_time may be arbitrary, and is initially expected to be the
-     * first departure of the trip. Once established, the start_time of this
-     * frequency-based trip should be considered immutable, even if the first
-     * departure time changes -- that time change may instead be reflected in a
-     * StopTimeUpdate.
-     * Format and semantics of the field is same as that of
-     * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
-     * 
- * - * optional string start_time = 2; - * @return Whether the startTime field is set. - */ - boolean hasStartTime(); - /** - *
-     * The initially scheduled start time of this trip instance.
-     * When the trip_id corresponds to a non-frequency-based trip, this field
-     * should either be omitted or be equal to the value in the GTFS feed. When
-     * the trip_id correponds to a frequency-based trip, the start_time must be
-     * specified for trip updates and vehicle positions. If the trip corresponds
-     * to exact_times=1 GTFS record, then start_time must be some multiple
-     * (including zero) of headway_secs later than frequencies.txt start_time for
-     * the corresponding time period. If the trip corresponds to exact_times=0,
-     * then its start_time may be arbitrary, and is initially expected to be the
-     * first departure of the trip. Once established, the start_time of this
-     * frequency-based trip should be considered immutable, even if the first
-     * departure time changes -- that time change may instead be reflected in a
-     * StopTimeUpdate.
-     * Format and semantics of the field is same as that of
-     * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
-     * 
- * - * optional string start_time = 2; - * @return The startTime. - */ - java.lang.String getStartTime(); - /** - *
-     * The initially scheduled start time of this trip instance.
-     * When the trip_id corresponds to a non-frequency-based trip, this field
-     * should either be omitted or be equal to the value in the GTFS feed. When
-     * the trip_id correponds to a frequency-based trip, the start_time must be
-     * specified for trip updates and vehicle positions. If the trip corresponds
-     * to exact_times=1 GTFS record, then start_time must be some multiple
-     * (including zero) of headway_secs later than frequencies.txt start_time for
-     * the corresponding time period. If the trip corresponds to exact_times=0,
-     * then its start_time may be arbitrary, and is initially expected to be the
-     * first departure of the trip. Once established, the start_time of this
-     * frequency-based trip should be considered immutable, even if the first
-     * departure time changes -- that time change may instead be reflected in a
-     * StopTimeUpdate.
-     * Format and semantics of the field is same as that of
-     * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
-     * 
- * - * optional string start_time = 2; - * @return The bytes for startTime. - */ - com.google.protobuf.ByteString - getStartTimeBytes(); + // @@protoc_insertion_point(builder_scope:transit_realtime.TripDescriptor) + } + + // @@protoc_insertion_point(class_scope:transit_realtime.TripDescriptor) + private static final com.google.transit.realtime.GtfsRealtime.TripDescriptor DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TripDescriptor(); + } + + public static com.google.transit.realtime.GtfsRealtime.TripDescriptor getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - *
-     * The scheduled start date of this trip instance.
-     * Must be provided to disambiguate trips that are so late as to collide with
-     * a scheduled trip on a next day. For example, for a train that departs 8:00
-     * and 20:00 every day, and is 12 hours late, there would be two distinct
-     * trips on the same time.
-     * This field can be provided but is not mandatory for schedules in which such
-     * collisions are impossible - for example, a service running on hourly
-     * schedule where a vehicle that is one hour late is not considered to be
-     * related to schedule anymore.
-     * In YYYYMMDD format.
-     * 
- * - * optional string start_date = 3; - * @return Whether the startDate field is set. - */ - boolean hasStartDate(); - /** - *
-     * The scheduled start date of this trip instance.
-     * Must be provided to disambiguate trips that are so late as to collide with
-     * a scheduled trip on a next day. For example, for a train that departs 8:00
-     * and 20:00 every day, and is 12 hours late, there would be two distinct
-     * trips on the same time.
-     * This field can be provided but is not mandatory for schedules in which such
-     * collisions are impossible - for example, a service running on hourly
-     * schedule where a vehicle that is one hour late is not considered to be
-     * related to schedule anymore.
-     * In YYYYMMDD format.
-     * 
- * - * optional string start_date = 3; - * @return The startDate. - */ - java.lang.String getStartDate(); - /** - *
-     * The scheduled start date of this trip instance.
-     * Must be provided to disambiguate trips that are so late as to collide with
-     * a scheduled trip on a next day. For example, for a train that departs 8:00
-     * and 20:00 every day, and is 12 hours late, there would be two distinct
-     * trips on the same time.
-     * This field can be provided but is not mandatory for schedules in which such
-     * collisions are impossible - for example, a service running on hourly
-     * schedule where a vehicle that is one hour late is not considered to be
-     * related to schedule anymore.
-     * In YYYYMMDD format.
-     * 
- * - * optional string start_date = 3; - * @return The bytes for startDate. - */ - com.google.protobuf.ByteString - getStartDateBytes(); + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TripDescriptor parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - /** - * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; - * @return Whether the scheduleRelationship field is set. - */ - boolean hasScheduleRelationship(); - /** - * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; - * @return The scheduleRelationship. - */ - com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship getScheduleRelationship(); - } - /** - *
-   * A descriptor that identifies an instance of a GTFS trip, or all instances of
-   * a trip along a route.
-   * - To specify a single trip instance, the trip_id (and if necessary,
-   *   start_time) is set. If route_id is also set, then it should be same as one
-   *   that the given trip corresponds to.
-   * - To specify all the trips along a given route, only the route_id should be
-   *   set. Note that if the trip_id is not known, then stop sequence ids in
-   *   TripUpdate are not sufficient, and stop_ids must be provided as well. In
-   *   addition, absolute arrival/departure times must be provided.
-   * 
- * - * Protobuf type {@code transit_realtime.TripDescriptor} - */ - public static final class TripDescriptor extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - TripDescriptor> implements - // @@protoc_insertion_point(message_implements:transit_realtime.TripDescriptor) - TripDescriptorOrBuilder { - private static final long serialVersionUID = 0L; - // Use TripDescriptor.newBuilder() to construct. - private TripDescriptor(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private TripDescriptor() { - tripId_ = ""; - routeId_ = ""; - startTime_ = ""; - startDate_ = ""; - scheduleRelationship_ = 0; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TripDescriptor(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripDescriptor_descriptor; - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripDescriptor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripDescriptor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.TripDescriptor.class, com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder.class); } - /** - *
-     * The relation between this trip and the static schedule. If a trip is done
-     * in accordance with temporary schedule, not reflected in GTFS, then it
-     * shouldn't be marked as SCHEDULED, but likely as ADDED.
-     * 
- * - * Protobuf enum {@code transit_realtime.TripDescriptor.ScheduleRelationship} - */ - public enum ScheduleRelationship - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Trip that is running in accordance with its GTFS schedule, or is close
-       * enough to the scheduled trip to be associated with it.
-       * 
- * - * SCHEDULED = 0; - */ - SCHEDULED(0), - /** - *
-       * An extra trip that was added in addition to a running schedule, for
-       * example, to replace a broken vehicle or to respond to sudden passenger
-       * load.
-       * 
- * - * ADDED = 1; - */ - ADDED(1), - /** - *
-       * A trip that is running with no schedule associated to it, for example, if
-       * there is no schedule at all.
-       * 
- * - * UNSCHEDULED = 2; - */ - UNSCHEDULED(2), - /** - *
-       * A trip that existed in the schedule but was removed.
-       * 
- * - * CANCELED = 3; - */ - CANCELED(3), - /** - *
-       * Should not be used - for backwards-compatibility only.
-       * 
- * - * REPLACEMENT = 5 [deprecated = true]; - */ - @java.lang.Deprecated - REPLACEMENT(5), - ; - - /** - *
-       * Trip that is running in accordance with its GTFS schedule, or is close
-       * enough to the scheduled trip to be associated with it.
-       * 
- * - * SCHEDULED = 0; - */ - public static final int SCHEDULED_VALUE = 0; - /** - *
-       * An extra trip that was added in addition to a running schedule, for
-       * example, to replace a broken vehicle or to respond to sudden passenger
-       * load.
-       * 
- * - * ADDED = 1; - */ - public static final int ADDED_VALUE = 1; - /** - *
-       * A trip that is running with no schedule associated to it, for example, if
-       * there is no schedule at all.
-       * 
- * - * UNSCHEDULED = 2; - */ - public static final int UNSCHEDULED_VALUE = 2; - /** - *
-       * A trip that existed in the schedule but was removed.
-       * 
- * - * CANCELED = 3; - */ - public static final int CANCELED_VALUE = 3; - /** - *
-       * Should not be used - for backwards-compatibility only.
-       * 
- * - * REPLACEMENT = 5 [deprecated = true]; - */ - @java.lang.Deprecated public static final int REPLACEMENT_VALUE = 5; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ScheduleRelationship valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ScheduleRelationship forNumber(int value) { - switch (value) { - case 0: return SCHEDULED; - case 1: return ADDED; - case 2: return UNSCHEDULED; - case 3: return CANCELED; - case 5: return REPLACEMENT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ScheduleRelationship> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ScheduleRelationship findValueByNumber(int number) { - return ScheduleRelationship.forNumber(number); - } - }; + public interface VehicleDescriptorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.VehicleDescriptor) + com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder { - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDescriptor().getEnumTypes().get(0); - } - - private static final ScheduleRelationship[] VALUES = values(); - - public static ScheduleRelationship valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ScheduleRelationship(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:transit_realtime.TripDescriptor.ScheduleRelationship) - } + /** + *
+         * Internal system identification of the vehicle. Should be unique per
+         * vehicle, and can be used for tracking the vehicle as it proceeds through
+         * the system.
+         * 
+ * + * optional string id = 1; + * @return Whether the id field is set. + */ + boolean hasId(); + /** + *
+         * Internal system identification of the vehicle. Should be unique per
+         * vehicle, and can be used for tracking the vehicle as it proceeds through
+         * the system.
+         * 
+ * + * optional string id = 1; + * @return The id. + */ + java.lang.String getId(); + /** + *
+         * Internal system identification of the vehicle. Should be unique per
+         * vehicle, and can be used for tracking the vehicle as it proceeds through
+         * the system.
+         * 
+ * + * optional string id = 1; + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); - private int bitField0_; - public static final int TRIP_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object tripId_ = ""; - /** - *
-     * The trip_id from the GTFS feed that this selector refers to.
-     * For non frequency-based trips, this field is enough to uniquely identify
-     * the trip. For frequency-based trip, start_time and start_date might also be
-     * necessary.
-     * 
- * - * optional string trip_id = 1; - * @return Whether the tripId field is set. - */ - @java.lang.Override - public boolean hasTripId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The trip_id from the GTFS feed that this selector refers to.
-     * For non frequency-based trips, this field is enough to uniquely identify
-     * the trip. For frequency-based trip, start_time and start_date might also be
-     * necessary.
-     * 
- * - * optional string trip_id = 1; - * @return The tripId. - */ - @java.lang.Override - public java.lang.String getTripId() { - java.lang.Object ref = tripId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tripId_ = s; - } - return s; - } - } - /** - *
-     * The trip_id from the GTFS feed that this selector refers to.
-     * For non frequency-based trips, this field is enough to uniquely identify
-     * the trip. For frequency-based trip, start_time and start_date might also be
-     * necessary.
-     * 
- * - * optional string trip_id = 1; - * @return The bytes for tripId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTripIdBytes() { - java.lang.Object ref = tripId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tripId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + *
+         * User visible label, i.e., something that must be shown to the passenger to
+         * help identify the correct vehicle.
+         * 
+ * + * optional string label = 2; + * @return Whether the label field is set. + */ + boolean hasLabel(); + /** + *
+         * User visible label, i.e., something that must be shown to the passenger to
+         * help identify the correct vehicle.
+         * 
+ * + * optional string label = 2; + * @return The label. + */ + java.lang.String getLabel(); + /** + *
+         * User visible label, i.e., something that must be shown to the passenger to
+         * help identify the correct vehicle.
+         * 
+ * + * optional string label = 2; + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); - public static final int ROUTE_ID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object routeId_ = ""; - /** - *
-     * The route_id from the GTFS that this selector refers to.
-     * 
- * - * optional string route_id = 5; - * @return Whether the routeId field is set. - */ - @java.lang.Override - public boolean hasRouteId() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * The route_id from the GTFS that this selector refers to.
-     * 
- * - * optional string route_id = 5; - * @return The routeId. - */ - @java.lang.Override - public java.lang.String getRouteId() { - java.lang.Object ref = routeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - routeId_ = s; - } - return s; - } + /** + *
+         * The license plate of the vehicle.
+         * 
+ * + * optional string license_plate = 3; + * @return Whether the licensePlate field is set. + */ + boolean hasLicensePlate(); + /** + *
+         * The license plate of the vehicle.
+         * 
+ * + * optional string license_plate = 3; + * @return The licensePlate. + */ + java.lang.String getLicensePlate(); + /** + *
+         * The license plate of the vehicle.
+         * 
+ * + * optional string license_plate = 3; + * @return The bytes for licensePlate. + */ + com.google.protobuf.ByteString getLicensePlateBytes(); } /** *
-     * The route_id from the GTFS that this selector refers to.
+     * Identification information for the vehicle performing the trip.
      * 
* - * optional string route_id = 5; - * @return The bytes for routeId. + * Protobuf type {@code transit_realtime.VehicleDescriptor} */ - @java.lang.Override - public com.google.protobuf.ByteString - getRouteIdBytes() { - java.lang.Object ref = routeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final class VehicleDescriptor + extends + com.google.protobuf.GeneratedMessageV3.ExtendableMessage + implements + // @@protoc_insertion_point(message_implements:transit_realtime.VehicleDescriptor) + VehicleDescriptorOrBuilder { + private static final long serialVersionUID = 0L; + // Use VehicleDescriptor.newBuilder() to construct. + private VehicleDescriptor( + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { + super(builder); + } + private VehicleDescriptor() { + id_ = ""; + label_ = ""; + licensePlate_ = ""; + } - public static final int DIRECTION_ID_FIELD_NUMBER = 6; - private int directionId_ = 0; - /** - *
-     * The direction_id from the GTFS feed trips.txt file, indicating the
-     * direction of travel for trips this selector refers to. This field is
-     * still experimental, and subject to change. It may be formally adopted in
-     * the future.
-     * 
- * - * optional uint32 direction_id = 6; - * @return Whether the directionId field is set. - */ - @java.lang.Override - public boolean hasDirectionId() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * The direction_id from the GTFS feed trips.txt file, indicating the
-     * direction of travel for trips this selector refers to. This field is
-     * still experimental, and subject to change. It may be formally adopted in
-     * the future.
-     * 
- * - * optional uint32 direction_id = 6; - * @return The directionId. - */ - @java.lang.Override - public int getDirectionId() { - return directionId_; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VehicleDescriptor(); + } - public static final int START_TIME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object startTime_ = ""; - /** - *
-     * The initially scheduled start time of this trip instance.
-     * When the trip_id corresponds to a non-frequency-based trip, this field
-     * should either be omitted or be equal to the value in the GTFS feed. When
-     * the trip_id correponds to a frequency-based trip, the start_time must be
-     * specified for trip updates and vehicle positions. If the trip corresponds
-     * to exact_times=1 GTFS record, then start_time must be some multiple
-     * (including zero) of headway_secs later than frequencies.txt start_time for
-     * the corresponding time period. If the trip corresponds to exact_times=0,
-     * then its start_time may be arbitrary, and is initially expected to be the
-     * first departure of the trip. Once established, the start_time of this
-     * frequency-based trip should be considered immutable, even if the first
-     * departure time changes -- that time change may instead be reflected in a
-     * StopTimeUpdate.
-     * Format and semantics of the field is same as that of
-     * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
-     * 
- * - * optional string start_time = 2; - * @return Whether the startTime field is set. - */ - @java.lang.Override - public boolean hasStartTime() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * The initially scheduled start time of this trip instance.
-     * When the trip_id corresponds to a non-frequency-based trip, this field
-     * should either be omitted or be equal to the value in the GTFS feed. When
-     * the trip_id correponds to a frequency-based trip, the start_time must be
-     * specified for trip updates and vehicle positions. If the trip corresponds
-     * to exact_times=1 GTFS record, then start_time must be some multiple
-     * (including zero) of headway_secs later than frequencies.txt start_time for
-     * the corresponding time period. If the trip corresponds to exact_times=0,
-     * then its start_time may be arbitrary, and is initially expected to be the
-     * first departure of the trip. Once established, the start_time of this
-     * frequency-based trip should be considered immutable, even if the first
-     * departure time changes -- that time change may instead be reflected in a
-     * StopTimeUpdate.
-     * Format and semantics of the field is same as that of
-     * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
-     * 
- * - * optional string start_time = 2; - * @return The startTime. - */ - @java.lang.Override - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startTime_ = s; - } - return s; - } - } - /** - *
-     * The initially scheduled start time of this trip instance.
-     * When the trip_id corresponds to a non-frequency-based trip, this field
-     * should either be omitted or be equal to the value in the GTFS feed. When
-     * the trip_id correponds to a frequency-based trip, the start_time must be
-     * specified for trip updates and vehicle positions. If the trip corresponds
-     * to exact_times=1 GTFS record, then start_time must be some multiple
-     * (including zero) of headway_secs later than frequencies.txt start_time for
-     * the corresponding time period. If the trip corresponds to exact_times=0,
-     * then its start_time may be arbitrary, and is initially expected to be the
-     * first departure of the trip. Once established, the start_time of this
-     * frequency-based trip should be considered immutable, even if the first
-     * departure time changes -- that time change may instead be reflected in a
-     * StopTimeUpdate.
-     * Format and semantics of the field is same as that of
-     * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
-     * 
- * - * optional string start_time = 2; - * @return The bytes for startTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehicleDescriptor_descriptor; + } - public static final int START_DATE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object startDate_ = ""; - /** - *
-     * The scheduled start date of this trip instance.
-     * Must be provided to disambiguate trips that are so late as to collide with
-     * a scheduled trip on a next day. For example, for a train that departs 8:00
-     * and 20:00 every day, and is 12 hours late, there would be two distinct
-     * trips on the same time.
-     * This field can be provided but is not mandatory for schedules in which such
-     * collisions are impossible - for example, a service running on hourly
-     * schedule where a vehicle that is one hour late is not considered to be
-     * related to schedule anymore.
-     * In YYYYMMDD format.
-     * 
- * - * optional string start_date = 3; - * @return Whether the startDate field is set. - */ - @java.lang.Override - public boolean hasStartDate() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * The scheduled start date of this trip instance.
-     * Must be provided to disambiguate trips that are so late as to collide with
-     * a scheduled trip on a next day. For example, for a train that departs 8:00
-     * and 20:00 every day, and is 12 hours late, there would be two distinct
-     * trips on the same time.
-     * This field can be provided but is not mandatory for schedules in which such
-     * collisions are impossible - for example, a service running on hourly
-     * schedule where a vehicle that is one hour late is not considered to be
-     * related to schedule anymore.
-     * In YYYYMMDD format.
-     * 
- * - * optional string start_date = 3; - * @return The startDate. - */ - @java.lang.Override - public java.lang.String getStartDate() { - java.lang.Object ref = startDate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startDate_ = s; - } - return s; - } - } - /** - *
-     * The scheduled start date of this trip instance.
-     * Must be provided to disambiguate trips that are so late as to collide with
-     * a scheduled trip on a next day. For example, for a train that departs 8:00
-     * and 20:00 every day, and is 12 hours late, there would be two distinct
-     * trips on the same time.
-     * This field can be provided but is not mandatory for schedules in which such
-     * collisions are impossible - for example, a service running on hourly
-     * schedule where a vehicle that is one hour late is not considered to be
-     * related to schedule anymore.
-     * In YYYYMMDD format.
-     * 
- * - * optional string start_date = 3; - * @return The bytes for startDate. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartDateBytes() { - java.lang.Object ref = startDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehicleDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.class, + com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder.class); + } - public static final int SCHEDULE_RELATIONSHIP_FIELD_NUMBER = 4; - private int scheduleRelationship_ = 0; - /** - * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; - * @return Whether the scheduleRelationship field is set. - */ - @java.lang.Override public boolean hasScheduleRelationship() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; - * @return The scheduleRelationship. - */ - @java.lang.Override public com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship getScheduleRelationship() { - com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship result = com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship.forNumber(scheduleRelationship_); - return result == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship.SCHEDULED : result; - } + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + *
+         * Internal system identification of the vehicle. Should be unique per
+         * vehicle, and can be used for tracking the vehicle as it proceeds through
+         * the system.
+         * 
+ * + * optional string id = 1; + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Internal system identification of the vehicle. Should be unique per
+         * vehicle, and can be used for tracking the vehicle as it proceeds through
+         * the system.
+         * 
+ * + * optional string id = 1; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + id_ = s; + } + return s; + } + } + /** + *
+         * Internal system identification of the vehicle. Should be unique per
+         * vehicle, and can be used for tracking the vehicle as it proceeds through
+         * the system.
+         * 
+ * + * optional string id = 1; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - 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 final int LABEL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object label_ = ""; + /** + *
+         * User visible label, i.e., something that must be shown to the passenger to
+         * help identify the correct vehicle.
+         * 
+ * + * optional string label = 2; + * @return Whether the label field is set. + */ + @java.lang.Override + public boolean hasLabel() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * User visible label, i.e., something that must be shown to the passenger to
+         * help identify the correct vehicle.
+         * 
+ * + * optional string label = 2; + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + label_ = s; + } + return s; + } + } + /** + *
+         * User visible label, i.e., something that must be shown to the passenger to
+         * help identify the correct vehicle.
+         * 
+ * + * optional string label = 2; + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LICENSE_PLATE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object licensePlate_ = ""; + /** + *
+         * The license plate of the vehicle.
+         * 
+ * + * optional string license_plate = 3; + * @return Whether the licensePlate field is set. + */ + @java.lang.Override + public boolean hasLicensePlate() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * The license plate of the vehicle.
+         * 
+ * + * optional string license_plate = 3; + * @return The licensePlate. + */ + @java.lang.Override + public java.lang.String getLicensePlate() { + java.lang.Object ref = licensePlate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + licensePlate_ = s; + } + return s; + } + } + /** + *
+         * The license plate of the vehicle.
+         * 
+ * + * optional string license_plate = 3; + * @return The bytes for licensePlate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLicensePlateBytes() { + java.lang.Object ref = licensePlate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licensePlate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @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(2000, output); - getUnknownFields().writeTo(output); - } + 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 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 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(2000, output); + getUnknownFields().writeTo(output); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.TripDescriptor)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.TripDescriptor other = (com.google.transit.realtime.GtfsRealtime.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 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 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; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.VehicleDescriptor)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.VehicleDescriptor other = (com.google.transit.realtime.GtfsRealtime.VehicleDescriptor) obj; - public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TripDescriptor parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + 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 Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TripDescriptor prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @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 com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A descriptor that identifies an instance of a GTFS trip, or all instances of
-     * a trip along a route.
-     * - To specify a single trip instance, the trip_id (and if necessary,
-     *   start_time) is set. If route_id is also set, then it should be same as one
-     *   that the given trip corresponds to.
-     * - To specify all the trips along a given route, only the route_id should be
-     *   set. Note that if the trip_id is not known, then stop sequence ids in
-     *   TripUpdate are not sufficient, and stop_ids must be provided as well. In
-     *   addition, absolute arrival/departure times must be provided.
-     * 
- * - * Protobuf type {@code transit_realtime.TripDescriptor} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< - com.google.transit.realtime.GtfsRealtime.TripDescriptor, Builder> implements - // @@protoc_insertion_point(builder_implements:transit_realtime.TripDescriptor) - com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripDescriptor_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripDescriptor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.TripDescriptor.class, com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder.class); - } - - // Construct using com.google.transit.realtime.GtfsRealtime.TripDescriptor.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tripId_ = ""; - routeId_ = ""; - directionId_ = 0; - startTime_ = ""; - startDate_ = ""; - scheduleRelationship_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TripDescriptor_descriptor; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripDescriptor getDefaultInstanceForType() { - return com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripDescriptor build() { - com.google.transit.realtime.GtfsRealtime.TripDescriptor result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripDescriptor buildPartial() { - com.google.transit.realtime.GtfsRealtime.TripDescriptor result = new com.google.transit.realtime.GtfsRealtime.TripDescriptor(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.transit.realtime.GtfsRealtime.TripDescriptor result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tripId_ = tripId_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.routeId_ = routeId_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.directionId_ = directionId_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.startTime_ = startTime_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.startDate_ = startDate_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.scheduleRelationship_ = scheduleRelationship_; - to_bitField0_ |= 0x00000020; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TripDescriptor, Type> extension, - Type value) { - return super.setExtension(extension, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TripDescriptor, java.util.List> extension, - int index, Type value) { - return super.setExtension(extension, index, value); - } - @java.lang.Override - public Builder addExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TripDescriptor, java.util.List> extension, - Type value) { - return super.addExtension(extension, value); - } - @java.lang.Override - public Builder clearExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TripDescriptor, ?> extension) { - return super.clearExtension(extension); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.transit.realtime.GtfsRealtime.TripDescriptor) { - return mergeFrom((com.google.transit.realtime.GtfsRealtime.TripDescriptor)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TripDescriptor other) { - if (other == com.google.transit.realtime.GtfsRealtime.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(); - com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship tmpValue = - com.google.transit.realtime.GtfsRealtime.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_ = ""; - /** - *
-       * The trip_id from the GTFS feed that this selector refers to.
-       * For non frequency-based trips, this field is enough to uniquely identify
-       * the trip. For frequency-based trip, start_time and start_date might also be
-       * necessary.
-       * 
- * - * optional string trip_id = 1; - * @return Whether the tripId field is set. - */ - public boolean hasTripId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * The trip_id from the GTFS feed that this selector refers to.
-       * For non frequency-based trips, this field is enough to uniquely identify
-       * the trip. For frequency-based trip, start_time and start_date might also be
-       * necessary.
-       * 
- * - * optional string trip_id = 1; - * @return The tripId. - */ - public java.lang.String getTripId() { - java.lang.Object ref = tripId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tripId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The trip_id from the GTFS feed that this selector refers to.
-       * For non frequency-based trips, this field is enough to uniquely identify
-       * the trip. For frequency-based trip, start_time and start_date might also be
-       * necessary.
-       * 
- * - * optional string trip_id = 1; - * @return The bytes for tripId. - */ - public com.google.protobuf.ByteString - getTripIdBytes() { - java.lang.Object ref = tripId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tripId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The trip_id from the GTFS feed that this selector refers to.
-       * For non frequency-based trips, this field is enough to uniquely identify
-       * the trip. For frequency-based trip, start_time and start_date might also be
-       * necessary.
-       * 
- * - * optional string trip_id = 1; - * @param value The tripId to set. - * @return This builder for chaining. - */ - public Builder setTripId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - tripId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The trip_id from the GTFS feed that this selector refers to.
-       * For non frequency-based trips, this field is enough to uniquely identify
-       * the trip. For frequency-based trip, start_time and start_date might also be
-       * necessary.
-       * 
- * - * optional string trip_id = 1; - * @return This builder for chaining. - */ - public Builder clearTripId() { - tripId_ = getDefaultInstance().getTripId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The trip_id from the GTFS feed that this selector refers to.
-       * For non frequency-based trips, this field is enough to uniquely identify
-       * the trip. For frequency-based trip, start_time and start_date might also be
-       * necessary.
-       * 
- * - * optional string trip_id = 1; - * @param value The bytes for tripId to set. - * @return This builder for chaining. - */ - public Builder setTripIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - tripId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object routeId_ = ""; - /** - *
-       * The route_id from the GTFS that this selector refers to.
-       * 
- * - * optional string route_id = 5; - * @return Whether the routeId field is set. - */ - public boolean hasRouteId() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * The route_id from the GTFS that this selector refers to.
-       * 
- * - * optional string route_id = 5; - * @return The routeId. - */ - public java.lang.String getRouteId() { - java.lang.Object ref = routeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - routeId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The route_id from the GTFS that this selector refers to.
-       * 
- * - * optional string route_id = 5; - * @return The bytes for routeId. - */ - public com.google.protobuf.ByteString - getRouteIdBytes() { - java.lang.Object ref = routeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The route_id from the GTFS that this selector refers to.
-       * 
- * - * optional string route_id = 5; - * @param value The routeId to set. - * @return This builder for chaining. - */ - public Builder setRouteId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - routeId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * The route_id from the GTFS that this selector refers to.
-       * 
- * - * optional string route_id = 5; - * @return This builder for chaining. - */ - public Builder clearRouteId() { - routeId_ = getDefaultInstance().getRouteId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * The route_id from the GTFS that this selector refers to.
-       * 
- * - * optional string route_id = 5; - * @param value The bytes for routeId to set. - * @return This builder for chaining. - */ - public Builder setRouteIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - routeId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int directionId_ ; - /** - *
-       * The direction_id from the GTFS feed trips.txt file, indicating the
-       * direction of travel for trips this selector refers to. This field is
-       * still experimental, and subject to change. It may be formally adopted in
-       * the future.
-       * 
- * - * optional uint32 direction_id = 6; - * @return Whether the directionId field is set. - */ - @java.lang.Override - public boolean hasDirectionId() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * The direction_id from the GTFS feed trips.txt file, indicating the
-       * direction of travel for trips this selector refers to. This field is
-       * still experimental, and subject to change. It may be formally adopted in
-       * the future.
-       * 
- * - * optional uint32 direction_id = 6; - * @return The directionId. - */ - @java.lang.Override - public int getDirectionId() { - return directionId_; - } - /** - *
-       * The direction_id from the GTFS feed trips.txt file, indicating the
-       * direction of travel for trips this selector refers to. This field is
-       * still experimental, and subject to change. It may be formally adopted in
-       * the future.
-       * 
- * - * optional uint32 direction_id = 6; - * @param value The directionId to set. - * @return This builder for chaining. - */ - public Builder setDirectionId(int value) { - - directionId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The direction_id from the GTFS feed trips.txt file, indicating the
-       * direction of travel for trips this selector refers to. This field is
-       * still experimental, and subject to change. It may be formally adopted in
-       * the future.
-       * 
- * - * optional uint32 direction_id = 6; - * @return This builder for chaining. - */ - public Builder clearDirectionId() { - bitField0_ = (bitField0_ & ~0x00000004); - directionId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object startTime_ = ""; - /** - *
-       * The initially scheduled start time of this trip instance.
-       * When the trip_id corresponds to a non-frequency-based trip, this field
-       * should either be omitted or be equal to the value in the GTFS feed. When
-       * the trip_id correponds to a frequency-based trip, the start_time must be
-       * specified for trip updates and vehicle positions. If the trip corresponds
-       * to exact_times=1 GTFS record, then start_time must be some multiple
-       * (including zero) of headway_secs later than frequencies.txt start_time for
-       * the corresponding time period. If the trip corresponds to exact_times=0,
-       * then its start_time may be arbitrary, and is initially expected to be the
-       * first departure of the trip. Once established, the start_time of this
-       * frequency-based trip should be considered immutable, even if the first
-       * departure time changes -- that time change may instead be reflected in a
-       * StopTimeUpdate.
-       * Format and semantics of the field is same as that of
-       * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
-       * 
- * - * optional string start_time = 2; - * @return Whether the startTime field is set. - */ - public boolean hasStartTime() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-       * The initially scheduled start time of this trip instance.
-       * When the trip_id corresponds to a non-frequency-based trip, this field
-       * should either be omitted or be equal to the value in the GTFS feed. When
-       * the trip_id correponds to a frequency-based trip, the start_time must be
-       * specified for trip updates and vehicle positions. If the trip corresponds
-       * to exact_times=1 GTFS record, then start_time must be some multiple
-       * (including zero) of headway_secs later than frequencies.txt start_time for
-       * the corresponding time period. If the trip corresponds to exact_times=0,
-       * then its start_time may be arbitrary, and is initially expected to be the
-       * first departure of the trip. Once established, the start_time of this
-       * frequency-based trip should be considered immutable, even if the first
-       * departure time changes -- that time change may instead be reflected in a
-       * StopTimeUpdate.
-       * Format and semantics of the field is same as that of
-       * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
-       * 
- * - * optional string start_time = 2; - * @return The startTime. - */ - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startTime_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The initially scheduled start time of this trip instance.
-       * When the trip_id corresponds to a non-frequency-based trip, this field
-       * should either be omitted or be equal to the value in the GTFS feed. When
-       * the trip_id correponds to a frequency-based trip, the start_time must be
-       * specified for trip updates and vehicle positions. If the trip corresponds
-       * to exact_times=1 GTFS record, then start_time must be some multiple
-       * (including zero) of headway_secs later than frequencies.txt start_time for
-       * the corresponding time period. If the trip corresponds to exact_times=0,
-       * then its start_time may be arbitrary, and is initially expected to be the
-       * first departure of the trip. Once established, the start_time of this
-       * frequency-based trip should be considered immutable, even if the first
-       * departure time changes -- that time change may instead be reflected in a
-       * StopTimeUpdate.
-       * Format and semantics of the field is same as that of
-       * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
-       * 
- * - * optional string start_time = 2; - * @return The bytes for startTime. - */ - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The initially scheduled start time of this trip instance.
-       * When the trip_id corresponds to a non-frequency-based trip, this field
-       * should either be omitted or be equal to the value in the GTFS feed. When
-       * the trip_id correponds to a frequency-based trip, the start_time must be
-       * specified for trip updates and vehicle positions. If the trip corresponds
-       * to exact_times=1 GTFS record, then start_time must be some multiple
-       * (including zero) of headway_secs later than frequencies.txt start_time for
-       * the corresponding time period. If the trip corresponds to exact_times=0,
-       * then its start_time may be arbitrary, and is initially expected to be the
-       * first departure of the trip. Once established, the start_time of this
-       * frequency-based trip should be considered immutable, even if the first
-       * departure time changes -- that time change may instead be reflected in a
-       * StopTimeUpdate.
-       * Format and semantics of the field is same as that of
-       * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
-       * 
- * - * optional string start_time = 2; - * @param value The startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTime( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - startTime_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * The initially scheduled start time of this trip instance.
-       * When the trip_id corresponds to a non-frequency-based trip, this field
-       * should either be omitted or be equal to the value in the GTFS feed. When
-       * the trip_id correponds to a frequency-based trip, the start_time must be
-       * specified for trip updates and vehicle positions. If the trip corresponds
-       * to exact_times=1 GTFS record, then start_time must be some multiple
-       * (including zero) of headway_secs later than frequencies.txt start_time for
-       * the corresponding time period. If the trip corresponds to exact_times=0,
-       * then its start_time may be arbitrary, and is initially expected to be the
-       * first departure of the trip. Once established, the start_time of this
-       * frequency-based trip should be considered immutable, even if the first
-       * departure time changes -- that time change may instead be reflected in a
-       * StopTimeUpdate.
-       * Format and semantics of the field is same as that of
-       * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
-       * 
- * - * optional string start_time = 2; - * @return This builder for chaining. - */ - public Builder clearStartTime() { - startTime_ = getDefaultInstance().getStartTime(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-       * The initially scheduled start time of this trip instance.
-       * When the trip_id corresponds to a non-frequency-based trip, this field
-       * should either be omitted or be equal to the value in the GTFS feed. When
-       * the trip_id correponds to a frequency-based trip, the start_time must be
-       * specified for trip updates and vehicle positions. If the trip corresponds
-       * to exact_times=1 GTFS record, then start_time must be some multiple
-       * (including zero) of headway_secs later than frequencies.txt start_time for
-       * the corresponding time period. If the trip corresponds to exact_times=0,
-       * then its start_time may be arbitrary, and is initially expected to be the
-       * first departure of the trip. Once established, the start_time of this
-       * frequency-based trip should be considered immutable, even if the first
-       * departure time changes -- that time change may instead be reflected in a
-       * StopTimeUpdate.
-       * Format and semantics of the field is same as that of
-       * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.
-       * 
- * - * optional string start_time = 2; - * @param value The bytes for startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - startTime_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object startDate_ = ""; - /** - *
-       * The scheduled start date of this trip instance.
-       * Must be provided to disambiguate trips that are so late as to collide with
-       * a scheduled trip on a next day. For example, for a train that departs 8:00
-       * and 20:00 every day, and is 12 hours late, there would be two distinct
-       * trips on the same time.
-       * This field can be provided but is not mandatory for schedules in which such
-       * collisions are impossible - for example, a service running on hourly
-       * schedule where a vehicle that is one hour late is not considered to be
-       * related to schedule anymore.
-       * In YYYYMMDD format.
-       * 
- * - * optional string start_date = 3; - * @return Whether the startDate field is set. - */ - public boolean hasStartDate() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-       * The scheduled start date of this trip instance.
-       * Must be provided to disambiguate trips that are so late as to collide with
-       * a scheduled trip on a next day. For example, for a train that departs 8:00
-       * and 20:00 every day, and is 12 hours late, there would be two distinct
-       * trips on the same time.
-       * This field can be provided but is not mandatory for schedules in which such
-       * collisions are impossible - for example, a service running on hourly
-       * schedule where a vehicle that is one hour late is not considered to be
-       * related to schedule anymore.
-       * In YYYYMMDD format.
-       * 
- * - * optional string start_date = 3; - * @return The startDate. - */ - public java.lang.String getStartDate() { - java.lang.Object ref = startDate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startDate_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The scheduled start date of this trip instance.
-       * Must be provided to disambiguate trips that are so late as to collide with
-       * a scheduled trip on a next day. For example, for a train that departs 8:00
-       * and 20:00 every day, and is 12 hours late, there would be two distinct
-       * trips on the same time.
-       * This field can be provided but is not mandatory for schedules in which such
-       * collisions are impossible - for example, a service running on hourly
-       * schedule where a vehicle that is one hour late is not considered to be
-       * related to schedule anymore.
-       * In YYYYMMDD format.
-       * 
- * - * optional string start_date = 3; - * @return The bytes for startDate. - */ - public com.google.protobuf.ByteString - getStartDateBytes() { - java.lang.Object ref = startDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The scheduled start date of this trip instance.
-       * Must be provided to disambiguate trips that are so late as to collide with
-       * a scheduled trip on a next day. For example, for a train that departs 8:00
-       * and 20:00 every day, and is 12 hours late, there would be two distinct
-       * trips on the same time.
-       * This field can be provided but is not mandatory for schedules in which such
-       * collisions are impossible - for example, a service running on hourly
-       * schedule where a vehicle that is one hour late is not considered to be
-       * related to schedule anymore.
-       * In YYYYMMDD format.
-       * 
- * - * optional string start_date = 3; - * @param value The startDate to set. - * @return This builder for chaining. - */ - public Builder setStartDate( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - startDate_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * The scheduled start date of this trip instance.
-       * Must be provided to disambiguate trips that are so late as to collide with
-       * a scheduled trip on a next day. For example, for a train that departs 8:00
-       * and 20:00 every day, and is 12 hours late, there would be two distinct
-       * trips on the same time.
-       * This field can be provided but is not mandatory for schedules in which such
-       * collisions are impossible - for example, a service running on hourly
-       * schedule where a vehicle that is one hour late is not considered to be
-       * related to schedule anymore.
-       * In YYYYMMDD format.
-       * 
- * - * optional string start_date = 3; - * @return This builder for chaining. - */ - public Builder clearStartDate() { - startDate_ = getDefaultInstance().getStartDate(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-       * The scheduled start date of this trip instance.
-       * Must be provided to disambiguate trips that are so late as to collide with
-       * a scheduled trip on a next day. For example, for a train that departs 8:00
-       * and 20:00 every day, and is 12 hours late, there would be two distinct
-       * trips on the same time.
-       * This field can be provided but is not mandatory for schedules in which such
-       * collisions are impossible - for example, a service running on hourly
-       * schedule where a vehicle that is one hour late is not considered to be
-       * related to schedule anymore.
-       * In YYYYMMDD format.
-       * 
- * - * optional string start_date = 3; - * @param value The bytes for startDate to set. - * @return This builder for chaining. - */ - public Builder setStartDateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - startDate_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private int scheduleRelationship_ = 0; - /** - * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; - * @return Whether the scheduleRelationship field is set. - */ - @java.lang.Override public boolean hasScheduleRelationship() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; - * @return The scheduleRelationship. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship getScheduleRelationship() { - com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship result = com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship.forNumber(scheduleRelationship_); - return result == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship.SCHEDULED : result; - } - /** - * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; - * @param value The scheduleRelationship to set. - * @return This builder for chaining. - */ - public Builder setScheduleRelationship(com.google.transit.realtime.GtfsRealtime.TripDescriptor.ScheduleRelationship value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - scheduleRelationship_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .transit_realtime.TripDescriptor.ScheduleRelationship schedule_relationship = 4; - * @return This builder for chaining. - */ - public Builder clearScheduleRelationship() { - bitField0_ = (bitField0_ & ~0x00000020); - scheduleRelationship_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:transit_realtime.TripDescriptor) - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.VehicleDescriptor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - // @@protoc_insertion_point(class_scope:transit_realtime.TripDescriptor) - private static final com.google.transit.realtime.GtfsRealtime.TripDescriptor DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TripDescriptor(); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * Identification information for the vehicle performing the trip.
+         * 
+ * + * Protobuf type {@code transit_realtime.VehicleDescriptor} + */ + public static final class Builder + extends + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.VehicleDescriptor) + com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehicleDescriptor_descriptor; + } - public static com.google.transit.realtime.GtfsRealtime.TripDescriptor getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehicleDescriptor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.class, + com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder.class); + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TripDescriptor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // Construct using com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.newBuilder() + private Builder() { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + } - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripDescriptor getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + label_ = ""; + licensePlate_ = ""; + return this; + } - public interface VehicleDescriptorOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.VehicleDescriptor) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehicleDescriptor_descriptor; + } - /** - *
-     * Internal system identification of the vehicle. Should be unique per
-     * vehicle, and can be used for tracking the vehicle as it proceeds through
-     * the system.
-     * 
- * - * optional string id = 1; - * @return Whether the id field is set. - */ - boolean hasId(); - /** - *
-     * Internal system identification of the vehicle. Should be unique per
-     * vehicle, and can be used for tracking the vehicle as it proceeds through
-     * the system.
-     * 
- * - * optional string id = 1; - * @return The id. - */ - java.lang.String getId(); - /** - *
-     * Internal system identification of the vehicle. Should be unique per
-     * vehicle, and can be used for tracking the vehicle as it proceeds through
-     * the system.
-     * 
- * - * optional string id = 1; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance(); + } - /** - *
-     * User visible label, i.e., something that must be shown to the passenger to
-     * help identify the correct vehicle.
-     * 
- * - * optional string label = 2; - * @return Whether the label field is set. - */ - boolean hasLabel(); - /** - *
-     * User visible label, i.e., something that must be shown to the passenger to
-     * help identify the correct vehicle.
-     * 
- * - * optional string label = 2; - * @return The label. - */ - java.lang.String getLabel(); - /** - *
-     * User visible label, i.e., something that must be shown to the passenger to
-     * help identify the correct vehicle.
-     * 
- * - * optional string label = 2; - * @return The bytes for label. - */ - com.google.protobuf.ByteString - getLabelBytes(); + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor build() { + com.google.transit.realtime.GtfsRealtime.VehicleDescriptor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - *
-     * The license plate of the vehicle.
-     * 
- * - * optional string license_plate = 3; - * @return Whether the licensePlate field is set. - */ - boolean hasLicensePlate(); - /** - *
-     * The license plate of the vehicle.
-     * 
- * - * optional string license_plate = 3; - * @return The licensePlate. - */ - java.lang.String getLicensePlate(); - /** - *
-     * The license plate of the vehicle.
-     * 
- * - * optional string license_plate = 3; - * @return The bytes for licensePlate. - */ - com.google.protobuf.ByteString - getLicensePlateBytes(); - } - /** - *
-   * Identification information for the vehicle performing the trip.
-   * 
- * - * Protobuf type {@code transit_realtime.VehicleDescriptor} - */ - public static final class VehicleDescriptor extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - VehicleDescriptor> implements - // @@protoc_insertion_point(message_implements:transit_realtime.VehicleDescriptor) - VehicleDescriptorOrBuilder { - private static final long serialVersionUID = 0L; - // Use VehicleDescriptor.newBuilder() to construct. - private VehicleDescriptor(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private VehicleDescriptor() { - id_ = ""; - label_ = ""; - licensePlate_ = ""; - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor buildPartial() { + com.google.transit.realtime.GtfsRealtime.VehicleDescriptor result = new com.google.transit.realtime.GtfsRealtime.VehicleDescriptor( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VehicleDescriptor(); - } + private void buildPartial0(com.google.transit.realtime.GtfsRealtime.VehicleDescriptor result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.label_ = label_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.licensePlate_ = licensePlate_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehicleDescriptor_descriptor; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension, + Type value) { + return super.setExtension(extension, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + int index, Type value) { + return super.setExtension(extension, index, value); + } + @java.lang.Override + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + Type value) { + return super.addExtension(extension, value); + } + @java.lang.Override + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension) { + return super.clearExtension(extension); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.VehicleDescriptor) { + return mergeFrom((com.google.transit.realtime.GtfsRealtime.VehicleDescriptor) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehicleDescriptor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.class, com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder.class); - } + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.VehicleDescriptor other) { + if (other == com.google.transit.realtime.GtfsRealtime.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; + } - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - *
-     * Internal system identification of the vehicle. Should be unique per
-     * vehicle, and can be used for tracking the vehicle as it proceeds through
-     * the system.
-     * 
- * - * optional string id = 1; - * @return Whether the id field is set. - */ - @java.lang.Override - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Internal system identification of the vehicle. Should be unique per
-     * vehicle, and can be used for tracking the vehicle as it proceeds through
-     * the system.
-     * 
- * - * optional string id = 1; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } - } - /** - *
-     * Internal system identification of the vehicle. Should be unique per
-     * vehicle, and can be used for tracking the vehicle as it proceeds through
-     * the system.
-     * 
- * - * optional string id = 1; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public final boolean isInitialized() { + if (!extensionsAreInitialized()) { + return false; + } + return true; + } - public static final int LABEL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object label_ = ""; - /** - *
-     * User visible label, i.e., something that must be shown to the passenger to
-     * help identify the correct vehicle.
-     * 
- * - * optional string label = 2; - * @return Whether the label field is set. - */ - @java.lang.Override - public boolean hasLabel() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * User visible label, i.e., something that must be shown to the passenger to
-     * help identify the correct vehicle.
-     * 
- * - * optional string label = 2; - * @return The label. - */ - @java.lang.Override - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } - } - /** - *
-     * User visible label, i.e., something that must be shown to the passenger to
-     * help identify the correct vehicle.
-     * 
- * - * optional string label = 2; - * @return The bytes for label. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @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_ = ""; + /** + *
+             * Internal system identification of the vehicle. Should be unique per
+             * vehicle, and can be used for tracking the vehicle as it proceeds through
+             * the system.
+             * 
+ * + * optional string id = 1; + * @return Whether the id field is set. + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Internal system identification of the vehicle. Should be unique per
+             * vehicle, and can be used for tracking the vehicle as it proceeds through
+             * the system.
+             * 
+ * + * optional string id = 1; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + id_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * Internal system identification of the vehicle. Should be unique per
+             * vehicle, and can be used for tracking the vehicle as it proceeds through
+             * the system.
+             * 
+ * + * optional string id = 1; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * Internal system identification of the vehicle. Should be unique per
+             * vehicle, and can be used for tracking the vehicle as it proceeds through
+             * the system.
+             * 
+ * + * optional string id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Internal system identification of the vehicle. Should be unique per
+             * vehicle, and can be used for tracking the vehicle as it proceeds through
+             * the system.
+             * 
+ * + * optional string id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+             * Internal system identification of the vehicle. Should be unique per
+             * vehicle, and can be used for tracking the vehicle as it proceeds through
+             * the system.
+             * 
+ * + * optional string id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static final int LICENSE_PLATE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object licensePlate_ = ""; - /** - *
-     * The license plate of the vehicle.
-     * 
- * - * optional string license_plate = 3; - * @return Whether the licensePlate field is set. - */ - @java.lang.Override - public boolean hasLicensePlate() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * The license plate of the vehicle.
-     * 
- * - * optional string license_plate = 3; - * @return The licensePlate. - */ - @java.lang.Override - public java.lang.String getLicensePlate() { - java.lang.Object ref = licensePlate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - licensePlate_ = s; - } - return s; - } - } - /** - *
-     * The license plate of the vehicle.
-     * 
- * - * optional string license_plate = 3; - * @return The bytes for licensePlate. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLicensePlateBytes() { - java.lang.Object ref = licensePlate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - licensePlate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private java.lang.Object label_ = ""; + /** + *
+             * User visible label, i.e., something that must be shown to the passenger to
+             * help identify the correct vehicle.
+             * 
+ * + * optional string label = 2; + * @return Whether the label field is set. + */ + public boolean hasLabel() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * User visible label, i.e., something that must be shown to the passenger to
+             * help identify the correct vehicle.
+             * 
+ * + * optional string label = 2; + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + label_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * User visible label, i.e., something that must be shown to the passenger to
+             * help identify the correct vehicle.
+             * 
+ * + * optional string label = 2; + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * User visible label, i.e., something that must be shown to the passenger to
+             * help identify the correct vehicle.
+             * 
+ * + * optional string label = 2; + * @param value The label to set. + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + label_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * User visible label, i.e., something that must be shown to the passenger to
+             * help identify the correct vehicle.
+             * 
+ * + * optional string label = 2; + * @return This builder for chaining. + */ + public Builder clearLabel() { + label_ = getDefaultInstance().getLabel(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+             * User visible label, i.e., something that must be shown to the passenger to
+             * help identify the correct vehicle.
+             * 
+ * + * optional string label = 2; + * @param value The bytes for label to set. + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + label_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - 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; - } + private java.lang.Object licensePlate_ = ""; + /** + *
+             * The license plate of the vehicle.
+             * 
+ * + * optional string license_plate = 3; + * @return Whether the licensePlate field is set. + */ + public boolean hasLicensePlate() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * The license plate of the vehicle.
+             * 
+ * + * optional string license_plate = 3; + * @return The licensePlate. + */ + public java.lang.String getLicensePlate() { + java.lang.Object ref = licensePlate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + licensePlate_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * The license plate of the vehicle.
+             * 
+ * + * optional string license_plate = 3; + * @return The bytes for licensePlate. + */ + public com.google.protobuf.ByteString getLicensePlateBytes() { + java.lang.Object ref = licensePlate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + licensePlate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * The license plate of the vehicle.
+             * 
+ * + * optional string license_plate = 3; + * @param value The licensePlate to set. + * @return This builder for chaining. + */ + public Builder setLicensePlate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + licensePlate_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * The license plate of the vehicle.
+             * 
+ * + * optional string license_plate = 3; + * @return This builder for chaining. + */ + public Builder clearLicensePlate() { + licensePlate_ = getDefaultInstance().getLicensePlate(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+             * The license plate of the vehicle.
+             * 
+ * + * optional string license_plate = 3; + * @param value The bytes for licensePlate to set. + * @return This builder for chaining. + */ + public Builder setLicensePlateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + licensePlate_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @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(2000, output); - getUnknownFields().writeTo(output); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @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; - } + // @@protoc_insertion_point(builder_scope:transit_realtime.VehicleDescriptor) + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.VehicleDescriptor)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor other = (com.google.transit.realtime.GtfsRealtime.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; - } + // @@protoc_insertion_point(class_scope:transit_realtime.VehicleDescriptor) + private static final com.google.transit.realtime.GtfsRealtime.VehicleDescriptor DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.VehicleDescriptor(); + } - @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 com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VehicleDescriptor parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.VehicleDescriptor prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Identification information for the vehicle performing the trip.
-     * 
- * - * Protobuf type {@code transit_realtime.VehicleDescriptor} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor, Builder> implements - // @@protoc_insertion_point(builder_implements:transit_realtime.VehicleDescriptor) - com.google.transit.realtime.GtfsRealtime.VehicleDescriptorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehicleDescriptor_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehicleDescriptor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.class, com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.Builder.class); - } - - // Construct using com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - label_ = ""; - licensePlate_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_VehicleDescriptor_descriptor; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getDefaultInstanceForType() { - return com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance(); - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor build() { - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor buildPartial() { - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor result = new com.google.transit.realtime.GtfsRealtime.VehicleDescriptor(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.transit.realtime.GtfsRealtime.VehicleDescriptor result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.label_ = label_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.licensePlate_ = licensePlate_; - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor, Type> extension, - Type value) { - return super.setExtension(extension, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor, java.util.List> extension, - int index, Type value) { - return super.setExtension(extension, index, value); - } - @java.lang.Override - public Builder addExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor, java.util.List> extension, - Type value) { - return super.addExtension(extension, value); - } - @java.lang.Override - public Builder clearExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.VehicleDescriptor, ?> extension) { - return super.clearExtension(extension); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.transit.realtime.GtfsRealtime.VehicleDescriptor) { - return mergeFrom((com.google.transit.realtime.GtfsRealtime.VehicleDescriptor)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.VehicleDescriptor other) { - if (other == com.google.transit.realtime.GtfsRealtime.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_ = ""; - /** - *
-       * Internal system identification of the vehicle. Should be unique per
-       * vehicle, and can be used for tracking the vehicle as it proceeds through
-       * the system.
-       * 
- * - * optional string id = 1; - * @return Whether the id field is set. - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Internal system identification of the vehicle. Should be unique per
-       * vehicle, and can be used for tracking the vehicle as it proceeds through
-       * the system.
-       * 
- * - * optional string id = 1; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Internal system identification of the vehicle. Should be unique per
-       * vehicle, and can be used for tracking the vehicle as it proceeds through
-       * the system.
-       * 
- * - * optional string id = 1; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Internal system identification of the vehicle. Should be unique per
-       * vehicle, and can be used for tracking the vehicle as it proceeds through
-       * the system.
-       * 
- * - * optional string id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Internal system identification of the vehicle. Should be unique per
-       * vehicle, and can be used for tracking the vehicle as it proceeds through
-       * the system.
-       * 
- * - * optional string id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Internal system identification of the vehicle. Should be unique per
-       * vehicle, and can be used for tracking the vehicle as it proceeds through
-       * the system.
-       * 
- * - * optional string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object label_ = ""; - /** - *
-       * User visible label, i.e., something that must be shown to the passenger to
-       * help identify the correct vehicle.
-       * 
- * - * optional string label = 2; - * @return Whether the label field is set. - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * User visible label, i.e., something that must be shown to the passenger to
-       * help identify the correct vehicle.
-       * 
- * - * optional string label = 2; - * @return The label. - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * User visible label, i.e., something that must be shown to the passenger to
-       * help identify the correct vehicle.
-       * 
- * - * optional string label = 2; - * @return The bytes for label. - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * User visible label, i.e., something that must be shown to the passenger to
-       * help identify the correct vehicle.
-       * 
- * - * optional string label = 2; - * @param value The label to set. - * @return This builder for chaining. - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - label_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * User visible label, i.e., something that must be shown to the passenger to
-       * help identify the correct vehicle.
-       * 
- * - * optional string label = 2; - * @return This builder for chaining. - */ - public Builder clearLabel() { - label_ = getDefaultInstance().getLabel(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * User visible label, i.e., something that must be shown to the passenger to
-       * help identify the correct vehicle.
-       * 
- * - * optional string label = 2; - * @param value The bytes for label to set. - * @return This builder for chaining. - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - label_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object licensePlate_ = ""; - /** - *
-       * The license plate of the vehicle.
-       * 
- * - * optional string license_plate = 3; - * @return Whether the licensePlate field is set. - */ - public boolean hasLicensePlate() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * The license plate of the vehicle.
-       * 
- * - * optional string license_plate = 3; - * @return The licensePlate. - */ - public java.lang.String getLicensePlate() { - java.lang.Object ref = licensePlate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - licensePlate_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The license plate of the vehicle.
-       * 
- * - * optional string license_plate = 3; - * @return The bytes for licensePlate. - */ - public com.google.protobuf.ByteString - getLicensePlateBytes() { - java.lang.Object ref = licensePlate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - licensePlate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The license plate of the vehicle.
-       * 
- * - * optional string license_plate = 3; - * @param value The licensePlate to set. - * @return This builder for chaining. - */ - public Builder setLicensePlate( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - licensePlate_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * The license plate of the vehicle.
-       * 
- * - * optional string license_plate = 3; - * @return This builder for chaining. - */ - public Builder clearLicensePlate() { - licensePlate_ = getDefaultInstance().getLicensePlate(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-       * The license plate of the vehicle.
-       * 
- * - * optional string license_plate = 3; - * @param value The bytes for licensePlate to set. - * @return This builder for chaining. - */ - public Builder setLicensePlateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - licensePlate_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:transit_realtime.VehicleDescriptor) - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - // @@protoc_insertion_point(class_scope:transit_realtime.VehicleDescriptor) - private static final com.google.transit.realtime.GtfsRealtime.VehicleDescriptor DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.VehicleDescriptor(); - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - public static com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getDefaultInstance() { - return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VehicleDescriptor parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public interface EntitySelectorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.EntitySelector) + com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder { - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + *
+         * The values of the fields should correspond to the appropriate fields in the
+         * GTFS feed.
+         * At least one specifier must be given. If several are given, then the
+         * matching has to apply to all the given specifiers.
+         * 
+ * + * optional string agency_id = 1; + * @return Whether the agencyId field is set. + */ + boolean hasAgencyId(); + /** + *
+         * The values of the fields should correspond to the appropriate fields in the
+         * GTFS feed.
+         * At least one specifier must be given. If several are given, then the
+         * matching has to apply to all the given specifiers.
+         * 
+ * + * optional string agency_id = 1; + * @return The agencyId. + */ + java.lang.String getAgencyId(); + /** + *
+         * The values of the fields should correspond to the appropriate fields in the
+         * GTFS feed.
+         * At least one specifier must be given. If several are given, then the
+         * matching has to apply to all the given specifiers.
+         * 
+ * + * optional string agency_id = 1; + * @return The bytes for agencyId. + */ + com.google.protobuf.ByteString getAgencyIdBytes(); - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.VehicleDescriptor getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * optional string route_id = 2; + * @return Whether the routeId field is set. + */ + boolean hasRouteId(); + /** + * optional string route_id = 2; + * @return The routeId. + */ + java.lang.String getRouteId(); + /** + * optional string route_id = 2; + * @return The bytes for routeId. + */ + com.google.protobuf.ByteString getRouteIdBytes(); - } + /** + *
+         * corresponds to route_type in GTFS.
+         * 
+ * + * optional int32 route_type = 3; + * @return Whether the routeType field is set. + */ + boolean hasRouteType(); + /** + *
+         * corresponds to route_type in GTFS.
+         * 
+ * + * optional int32 route_type = 3; + * @return The routeType. + */ + int getRouteType(); - public interface EntitySelectorOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.EntitySelector) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { + /** + * optional .transit_realtime.TripDescriptor trip = 4; + * @return Whether the trip field is set. + */ + boolean hasTrip(); + /** + * optional .transit_realtime.TripDescriptor trip = 4; + * @return The trip. + */ + com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip(); + /** + * optional .transit_realtime.TripDescriptor trip = 4; + */ + com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder(); + /** + * optional string stop_id = 5; + * @return Whether the stopId field is set. + */ + boolean hasStopId(); + /** + * optional string stop_id = 5; + * @return The stopId. + */ + java.lang.String getStopId(); + /** + * optional string stop_id = 5; + * @return The bytes for stopId. + */ + com.google.protobuf.ByteString getStopIdBytes(); + } /** *
-     * The values of the fields should correspond to the appropriate fields in the
-     * GTFS feed.
-     * At least one specifier must be given. If several are given, then the
-     * matching has to apply to all the given specifiers.
-     * 
- * - * optional string agency_id = 1; - * @return Whether the agencyId field is set. - */ - boolean hasAgencyId(); - /** - *
-     * The values of the fields should correspond to the appropriate fields in the
-     * GTFS feed.
-     * At least one specifier must be given. If several are given, then the
-     * matching has to apply to all the given specifiers.
-     * 
- * - * optional string agency_id = 1; - * @return The agencyId. - */ - java.lang.String getAgencyId(); - /** - *
-     * The values of the fields should correspond to the appropriate fields in the
-     * GTFS feed.
-     * At least one specifier must be given. If several are given, then the
-     * matching has to apply to all the given specifiers.
+     * A selector for an entity in a GTFS feed.
      * 
* - * optional string agency_id = 1; - * @return The bytes for agencyId. + * Protobuf type {@code transit_realtime.EntitySelector} */ - com.google.protobuf.ByteString - getAgencyIdBytes(); + public static final class EntitySelector + extends + com.google.protobuf.GeneratedMessageV3.ExtendableMessage + implements + // @@protoc_insertion_point(message_implements:transit_realtime.EntitySelector) + EntitySelectorOrBuilder { + private static final long serialVersionUID = 0L; + // Use EntitySelector.newBuilder() to construct. + private EntitySelector( + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { + super(builder); + } + private EntitySelector() { + agencyId_ = ""; + routeId_ = ""; + stopId_ = ""; + } - /** - * optional string route_id = 2; - * @return Whether the routeId field is set. - */ - boolean hasRouteId(); - /** - * optional string route_id = 2; - * @return The routeId. - */ - java.lang.String getRouteId(); - /** - * optional string route_id = 2; - * @return The bytes for routeId. - */ - com.google.protobuf.ByteString - getRouteIdBytes(); + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EntitySelector(); + } - /** - *
-     * corresponds to route_type in GTFS.
-     * 
- * - * optional int32 route_type = 3; - * @return Whether the routeType field is set. - */ - boolean hasRouteType(); - /** - *
-     * corresponds to route_type in GTFS.
-     * 
- * - * optional int32 route_type = 3; - * @return The routeType. - */ - int getRouteType(); + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_EntitySelector_descriptor; + } - /** - * optional .transit_realtime.TripDescriptor trip = 4; - * @return Whether the trip field is set. - */ - boolean hasTrip(); - /** - * optional .transit_realtime.TripDescriptor trip = 4; - * @return The trip. - */ - com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip(); - /** - * optional .transit_realtime.TripDescriptor trip = 4; - */ - com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_EntitySelector_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.EntitySelector.class, + com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder.class); + } - /** - * optional string stop_id = 5; - * @return Whether the stopId field is set. - */ - boolean hasStopId(); - /** - * optional string stop_id = 5; - * @return The stopId. - */ - java.lang.String getStopId(); - /** - * optional string stop_id = 5; - * @return The bytes for stopId. - */ - com.google.protobuf.ByteString - getStopIdBytes(); - } - /** - *
-   * A selector for an entity in a GTFS feed.
-   * 
- * - * Protobuf type {@code transit_realtime.EntitySelector} - */ - public static final class EntitySelector extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - EntitySelector> implements - // @@protoc_insertion_point(message_implements:transit_realtime.EntitySelector) - EntitySelectorOrBuilder { - private static final long serialVersionUID = 0L; - // Use EntitySelector.newBuilder() to construct. - private EntitySelector(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private EntitySelector() { - agencyId_ = ""; - routeId_ = ""; - stopId_ = ""; - } + private int bitField0_; + public static final int AGENCY_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object agencyId_ = ""; + /** + *
+         * The values of the fields should correspond to the appropriate fields in the
+         * GTFS feed.
+         * At least one specifier must be given. If several are given, then the
+         * matching has to apply to all the given specifiers.
+         * 
+ * + * optional string agency_id = 1; + * @return Whether the agencyId field is set. + */ + @java.lang.Override + public boolean hasAgencyId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * The values of the fields should correspond to the appropriate fields in the
+         * GTFS feed.
+         * At least one specifier must be given. If several are given, then the
+         * matching has to apply to all the given specifiers.
+         * 
+ * + * optional string agency_id = 1; + * @return The agencyId. + */ + @java.lang.Override + public java.lang.String getAgencyId() { + java.lang.Object ref = agencyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + agencyId_ = s; + } + return s; + } + } + /** + *
+         * The values of the fields should correspond to the appropriate fields in the
+         * GTFS feed.
+         * At least one specifier must be given. If several are given, then the
+         * matching has to apply to all the given specifiers.
+         * 
+ * + * optional string agency_id = 1; + * @return The bytes for agencyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgencyIdBytes() { + java.lang.Object ref = agencyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agencyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EntitySelector(); - } + public static final int ROUTE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object routeId_ = ""; + /** + * optional string route_id = 2; + * @return Whether the routeId field is set. + */ + @java.lang.Override + public boolean hasRouteId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string route_id = 2; + * @return The routeId. + */ + @java.lang.Override + public java.lang.String getRouteId() { + java.lang.Object ref = routeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + routeId_ = s; + } + return s; + } + } + /** + * optional string route_id = 2; + * @return The bytes for routeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRouteIdBytes() { + java.lang.Object ref = routeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_EntitySelector_descriptor; - } + public static final int ROUTE_TYPE_FIELD_NUMBER = 3; + private int routeType_ = 0; + /** + *
+         * corresponds to route_type in GTFS.
+         * 
+ * + * optional int32 route_type = 3; + * @return Whether the routeType field is set. + */ + @java.lang.Override + public boolean hasRouteType() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * corresponds to route_type in GTFS.
+         * 
+ * + * optional int32 route_type = 3; + * @return The routeType. + */ + @java.lang.Override + public int getRouteType() { + return routeType_; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_EntitySelector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.EntitySelector.class, com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder.class); - } + public static final int TRIP_FIELD_NUMBER = 4; + private com.google.transit.realtime.GtfsRealtime.TripDescriptor trip_; + /** + * optional .transit_realtime.TripDescriptor trip = 4; + * @return Whether the trip field is set. + */ + @java.lang.Override + public boolean hasTrip() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .transit_realtime.TripDescriptor trip = 4; + * @return The trip. + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip() { + return trip_ == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; + } + /** + * optional .transit_realtime.TripDescriptor trip = 4; + */ + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder() { + return trip_ == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; + } + + public static final int STOP_ID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object stopId_ = ""; + /** + * optional string stop_id = 5; + * @return Whether the stopId field is set. + */ + @java.lang.Override + public boolean hasStopId() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string stop_id = 5; + * @return The stopId. + */ + @java.lang.Override + public java.lang.String getStopId() { + java.lang.Object ref = stopId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopId_ = s; + } + return s; + } + } + /** + * optional string stop_id = 5; + * @return The bytes for stopId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStopIdBytes() { + java.lang.Object ref = stopId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private int bitField0_; - public static final int AGENCY_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object agencyId_ = ""; - /** - *
-     * The values of the fields should correspond to the appropriate fields in the
-     * GTFS feed.
-     * At least one specifier must be given. If several are given, then the
-     * matching has to apply to all the given specifiers.
-     * 
- * - * optional string agency_id = 1; - * @return Whether the agencyId field is set. - */ - @java.lang.Override - public boolean hasAgencyId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The values of the fields should correspond to the appropriate fields in the
-     * GTFS feed.
-     * At least one specifier must be given. If several are given, then the
-     * matching has to apply to all the given specifiers.
-     * 
- * - * optional string agency_id = 1; - * @return The agencyId. - */ - @java.lang.Override - public java.lang.String getAgencyId() { - java.lang.Object ref = agencyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - agencyId_ = s; - } - return s; - } - } - /** - *
-     * The values of the fields should correspond to the appropriate fields in the
-     * GTFS feed.
-     * At least one specifier must be given. If several are given, then the
-     * matching has to apply to all the given specifiers.
-     * 
- * - * optional string agency_id = 1; - * @return The bytes for agencyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAgencyIdBytes() { - java.lang.Object ref = agencyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - agencyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + 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; + } - public static final int ROUTE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object routeId_ = ""; - /** - * optional string route_id = 2; - * @return Whether the routeId field is set. - */ - @java.lang.Override - public boolean hasRouteId() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional string route_id = 2; - * @return The routeId. - */ - @java.lang.Override - public java.lang.String getRouteId() { - java.lang.Object ref = routeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - routeId_ = s; - } - return s; - } - } - /** - * optional string route_id = 2; - * @return The bytes for routeId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRouteIdBytes() { - java.lang.Object ref = routeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @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_); + } + extensionWriter.writeUntil(2000, output); + getUnknownFields().writeTo(output); + } - public static final int ROUTE_TYPE_FIELD_NUMBER = 3; - private int routeType_ = 0; - /** - *
-     * corresponds to route_type in GTFS.
-     * 
- * - * optional int32 route_type = 3; - * @return Whether the routeType field is set. - */ - @java.lang.Override - public boolean hasRouteType() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * corresponds to route_type in GTFS.
-     * 
- * - * optional int32 route_type = 3; - * @return The routeType. - */ - @java.lang.Override - public int getRouteType() { - return routeType_; - } + @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_); + } + size += extensionsSerializedSize(); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int TRIP_FIELD_NUMBER = 4; - private com.google.transit.realtime.GtfsRealtime.TripDescriptor trip_; - /** - * optional .transit_realtime.TripDescriptor trip = 4; - * @return Whether the trip field is set. - */ - @java.lang.Override - public boolean hasTrip() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional .transit_realtime.TripDescriptor trip = 4; - * @return The trip. - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip() { - return trip_ == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; - } - /** - * optional .transit_realtime.TripDescriptor trip = 4; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder() { - return trip_ == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.EntitySelector)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.EntitySelector other = (com.google.transit.realtime.GtfsRealtime.EntitySelector) obj; - public static final int STOP_ID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object stopId_ = ""; - /** - * optional string stop_id = 5; - * @return Whether the stopId field is set. - */ - @java.lang.Override - public boolean hasStopId() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional string stop_id = 5; - * @return The stopId. - */ - @java.lang.Override - public java.lang.String getStopId() { - java.lang.Object ref = stopId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopId_ = s; - } - return s; - } - } - /** - * optional string stop_id = 5; - * @return The bytes for stopId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStopIdBytes() { - java.lang.Object ref = stopId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + 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 (!getUnknownFields().equals(other.getUnknownFields())) + return false; + if (!getExtensionFields().equals(other.getExtensionFields())) + return false; + return true; + } - 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 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(); + } + hash = hashFields(hash, getExtensionFields()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, 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)) { - 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_); - } - extensionWriter.writeUntil(2000, output); - getUnknownFields().writeTo(output); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.EntitySelector prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @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_); - } - size += extensionsSerializedSize(); - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+         * A selector for an entity in a GTFS feed.
+         * 
+ * + * Protobuf type {@code transit_realtime.EntitySelector} + */ + public static final class Builder + extends + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.EntitySelector) + com.google.transit.realtime.GtfsRealtime.EntitySelectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_EntitySelector_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.EntitySelector)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.EntitySelector other = (com.google.transit.realtime.GtfsRealtime.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_EntitySelector_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.EntitySelector.class, + com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder.class); + } - @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(); - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + // Construct using com.google.transit.realtime.GtfsRealtime.EntitySelector.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.EntitySelector parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTripFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agencyId_ = ""; + routeId_ = ""; + routeType_ = 0; + trip_ = null; + if (tripBuilder_ != null) { + tripBuilder_.dispose(); + tripBuilder_ = null; + } + stopId_ = ""; + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.EntitySelector prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_EntitySelector_descriptor; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A selector for an entity in a GTFS feed.
-     * 
- * - * Protobuf type {@code transit_realtime.EntitySelector} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< - com.google.transit.realtime.GtfsRealtime.EntitySelector, Builder> implements - // @@protoc_insertion_point(builder_implements:transit_realtime.EntitySelector) - com.google.transit.realtime.GtfsRealtime.EntitySelectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_EntitySelector_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_EntitySelector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.EntitySelector.class, com.google.transit.realtime.GtfsRealtime.EntitySelector.Builder.class); - } - - // Construct using com.google.transit.realtime.GtfsRealtime.EntitySelector.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTripFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - agencyId_ = ""; - routeId_ = ""; - routeType_ = 0; - trip_ = null; - if (tripBuilder_ != null) { - tripBuilder_.dispose(); - tripBuilder_ = null; - } - stopId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_EntitySelector_descriptor; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.EntitySelector getDefaultInstanceForType() { - return com.google.transit.realtime.GtfsRealtime.EntitySelector.getDefaultInstance(); - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.EntitySelector build() { - com.google.transit.realtime.GtfsRealtime.EntitySelector result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.EntitySelector buildPartial() { - com.google.transit.realtime.GtfsRealtime.EntitySelector result = new com.google.transit.realtime.GtfsRealtime.EntitySelector(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.transit.realtime.GtfsRealtime.EntitySelector result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.agencyId_ = agencyId_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.routeId_ = routeId_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.routeType_ = routeType_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.trip_ = tripBuilder_ == null - ? trip_ - : tripBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.stopId_ = stopId_; - to_bitField0_ |= 0x00000010; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.EntitySelector, Type> extension, - Type value) { - return super.setExtension(extension, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.EntitySelector, java.util.List> extension, - int index, Type value) { - return super.setExtension(extension, index, value); - } - @java.lang.Override - public Builder addExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.EntitySelector, java.util.List> extension, - Type value) { - return super.addExtension(extension, value); - } - @java.lang.Override - public Builder clearExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.EntitySelector, ?> extension) { - return super.clearExtension(extension); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.transit.realtime.GtfsRealtime.EntitySelector) { - return mergeFrom((com.google.transit.realtime.GtfsRealtime.EntitySelector)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.EntitySelector other) { - if (other == com.google.transit.realtime.GtfsRealtime.EntitySelector.getDefaultInstance()) return this; - if (other.hasAgencyId()) { - 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(); - } - 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 - 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_ = ""; - /** - *
-       * The values of the fields should correspond to the appropriate fields in the
-       * GTFS feed.
-       * At least one specifier must be given. If several are given, then the
-       * matching has to apply to all the given specifiers.
-       * 
- * - * optional string agency_id = 1; - * @return Whether the agencyId field is set. - */ - public boolean hasAgencyId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * The values of the fields should correspond to the appropriate fields in the
-       * GTFS feed.
-       * At least one specifier must be given. If several are given, then the
-       * matching has to apply to all the given specifiers.
-       * 
- * - * optional string agency_id = 1; - * @return The agencyId. - */ - public java.lang.String getAgencyId() { - java.lang.Object ref = agencyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - agencyId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The values of the fields should correspond to the appropriate fields in the
-       * GTFS feed.
-       * At least one specifier must be given. If several are given, then the
-       * matching has to apply to all the given specifiers.
-       * 
- * - * optional string agency_id = 1; - * @return The bytes for agencyId. - */ - public com.google.protobuf.ByteString - getAgencyIdBytes() { - java.lang.Object ref = agencyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - agencyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The values of the fields should correspond to the appropriate fields in the
-       * GTFS feed.
-       * At least one specifier must be given. If several are given, then the
-       * matching has to apply to all the given specifiers.
-       * 
- * - * optional string agency_id = 1; - * @param value The agencyId to set. - * @return This builder for chaining. - */ - public Builder setAgencyId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - agencyId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * The values of the fields should correspond to the appropriate fields in the
-       * GTFS feed.
-       * At least one specifier must be given. If several are given, then the
-       * matching has to apply to all the given specifiers.
-       * 
- * - * optional string agency_id = 1; - * @return This builder for chaining. - */ - public Builder clearAgencyId() { - agencyId_ = getDefaultInstance().getAgencyId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The values of the fields should correspond to the appropriate fields in the
-       * GTFS feed.
-       * At least one specifier must be given. If several are given, then the
-       * matching has to apply to all the given specifiers.
-       * 
- * - * optional string agency_id = 1; - * @param value The bytes for agencyId to set. - * @return This builder for chaining. - */ - public Builder setAgencyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - agencyId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object routeId_ = ""; - /** - * optional string route_id = 2; - * @return Whether the routeId field is set. - */ - public boolean hasRouteId() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional string route_id = 2; - * @return The routeId. - */ - public java.lang.String getRouteId() { - java.lang.Object ref = routeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - routeId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string route_id = 2; - * @return The bytes for routeId. - */ - public com.google.protobuf.ByteString - getRouteIdBytes() { - java.lang.Object ref = routeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string route_id = 2; - * @param value The routeId to set. - * @return This builder for chaining. - */ - public Builder setRouteId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - routeId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional string route_id = 2; - * @return This builder for chaining. - */ - public Builder clearRouteId() { - routeId_ = getDefaultInstance().getRouteId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * optional string route_id = 2; - * @param value The bytes for routeId to set. - * @return This builder for chaining. - */ - public Builder setRouteIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - routeId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int routeType_ ; - /** - *
-       * corresponds to route_type in GTFS.
-       * 
- * - * optional int32 route_type = 3; - * @return Whether the routeType field is set. - */ - @java.lang.Override - public boolean hasRouteType() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * corresponds to route_type in GTFS.
-       * 
- * - * optional int32 route_type = 3; - * @return The routeType. - */ - @java.lang.Override - public int getRouteType() { - return routeType_; - } - /** - *
-       * corresponds to route_type in GTFS.
-       * 
- * - * optional int32 route_type = 3; - * @param value The routeType to set. - * @return This builder for chaining. - */ - public Builder setRouteType(int value) { - - routeType_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * corresponds to route_type in GTFS.
-       * 
- * - * optional int32 route_type = 3; - * @return This builder for chaining. - */ - public Builder clearRouteType() { - bitField0_ = (bitField0_ & ~0x00000004); - routeType_ = 0; - onChanged(); - return this; - } - - private com.google.transit.realtime.GtfsRealtime.TripDescriptor trip_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripDescriptor, com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder> tripBuilder_; - /** - * optional .transit_realtime.TripDescriptor trip = 4; - * @return Whether the trip field is set. - */ - public boolean hasTrip() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional .transit_realtime.TripDescriptor trip = 4; - * @return The trip. - */ - public com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip() { - if (tripBuilder_ == null) { - return trip_ == null ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; - } else { - return tripBuilder_.getMessage(); - } - } - /** - * optional .transit_realtime.TripDescriptor trip = 4; - */ - public Builder setTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { - if (tripBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trip_ = value; - } else { - tripBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * optional .transit_realtime.TripDescriptor trip = 4; - */ - public Builder setTrip( - com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder builderForValue) { - if (tripBuilder_ == null) { - trip_ = builderForValue.build(); - } else { - tripBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * optional .transit_realtime.TripDescriptor trip = 4; - */ - public Builder mergeTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { - if (tripBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - trip_ != null && - trip_ != com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance()) { - getTripBuilder().mergeFrom(value); - } else { - trip_ = value; - } - } else { - tripBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * optional .transit_realtime.TripDescriptor trip = 4; - */ - public Builder clearTrip() { - bitField0_ = (bitField0_ & ~0x00000008); - trip_ = null; - if (tripBuilder_ != null) { - tripBuilder_.dispose(); - tripBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .transit_realtime.TripDescriptor trip = 4; - */ - public com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder getTripBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getTripFieldBuilder().getBuilder(); - } - /** - * optional .transit_realtime.TripDescriptor trip = 4; - */ - public com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder() { - if (tripBuilder_ != null) { - return tripBuilder_.getMessageOrBuilder(); - } else { - return trip_ == null ? - com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() : trip_; - } - } - /** - * optional .transit_realtime.TripDescriptor trip = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripDescriptor, com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder> - getTripFieldBuilder() { - if (tripBuilder_ == null) { - tripBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TripDescriptor, com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder>( - getTrip(), - getParentForChildren(), - isClean()); - trip_ = null; - } - return tripBuilder_; - } - - private java.lang.Object stopId_ = ""; - /** - * optional string stop_id = 5; - * @return Whether the stopId field is set. - */ - public boolean hasStopId() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional string stop_id = 5; - * @return The stopId. - */ - public java.lang.String getStopId() { - java.lang.Object ref = stopId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string stop_id = 5; - * @return The bytes for stopId. - */ - public com.google.protobuf.ByteString - getStopIdBytes() { - java.lang.Object ref = stopId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string stop_id = 5; - * @param value The stopId to set. - * @return This builder for chaining. - */ - public Builder setStopId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - stopId_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * optional string stop_id = 5; - * @return This builder for chaining. - */ - public Builder clearStopId() { - stopId_ = getDefaultInstance().getStopId(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * optional string stop_id = 5; - * @param value The bytes for stopId to set. - * @return This builder for chaining. - */ - public Builder setStopIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - stopId_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:transit_realtime.EntitySelector) - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.EntitySelector getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.EntitySelector.getDefaultInstance(); + } - // @@protoc_insertion_point(class_scope:transit_realtime.EntitySelector) - private static final com.google.transit.realtime.GtfsRealtime.EntitySelector DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.EntitySelector(); - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.EntitySelector build() { + com.google.transit.realtime.GtfsRealtime.EntitySelector result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static com.google.transit.realtime.GtfsRealtime.EntitySelector getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.EntitySelector buildPartial() { + com.google.transit.realtime.GtfsRealtime.EntitySelector result = new com.google.transit.realtime.GtfsRealtime.EntitySelector( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EntitySelector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private void buildPartial0(com.google.transit.realtime.GtfsRealtime.EntitySelector result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agencyId_ = agencyId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.routeId_ = routeId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.routeType_ = routeType_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.trip_ = tripBuilder_ == null ? trip_ : tripBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.stopId_ = stopId_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension, + Type value) { + return super.setExtension(extension, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + int index, Type value) { + return super.setExtension(extension, index, value); + } + @java.lang.Override + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + Type value) { + return super.addExtension(extension, value); + } + @java.lang.Override + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension) { + return super.clearExtension(extension); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.EntitySelector) { + return mergeFrom((com.google.transit.realtime.GtfsRealtime.EntitySelector) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.EntitySelector getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.EntitySelector other) { + if (other == com.google.transit.realtime.GtfsRealtime.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(); + } + 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; + } - public interface TranslatedStringOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.TranslatedString) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { + @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 + 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_ = ""; + /** + *
+             * The values of the fields should correspond to the appropriate fields in the
+             * GTFS feed.
+             * At least one specifier must be given. If several are given, then the
+             * matching has to apply to all the given specifiers.
+             * 
+ * + * optional string agency_id = 1; + * @return Whether the agencyId field is set. + */ + public boolean hasAgencyId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * The values of the fields should correspond to the appropriate fields in the
+             * GTFS feed.
+             * At least one specifier must be given. If several are given, then the
+             * matching has to apply to all the given specifiers.
+             * 
+ * + * optional string agency_id = 1; + * @return The agencyId. + */ + public java.lang.String getAgencyId() { + java.lang.Object ref = agencyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + agencyId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * The values of the fields should correspond to the appropriate fields in the
+             * GTFS feed.
+             * At least one specifier must be given. If several are given, then the
+             * matching has to apply to all the given specifiers.
+             * 
+ * + * optional string agency_id = 1; + * @return The bytes for agencyId. + */ + public com.google.protobuf.ByteString getAgencyIdBytes() { + java.lang.Object ref = agencyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + agencyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * The values of the fields should correspond to the appropriate fields in the
+             * GTFS feed.
+             * At least one specifier must be given. If several are given, then the
+             * matching has to apply to all the given specifiers.
+             * 
+ * + * optional string agency_id = 1; + * @param value The agencyId to set. + * @return This builder for chaining. + */ + public Builder setAgencyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agencyId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * The values of the fields should correspond to the appropriate fields in the
+             * GTFS feed.
+             * At least one specifier must be given. If several are given, then the
+             * matching has to apply to all the given specifiers.
+             * 
+ * + * optional string agency_id = 1; + * @return This builder for chaining. + */ + public Builder clearAgencyId() { + agencyId_ = getDefaultInstance().getAgencyId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+             * The values of the fields should correspond to the appropriate fields in the
+             * GTFS feed.
+             * At least one specifier must be given. If several are given, then the
+             * matching has to apply to all the given specifiers.
+             * 
+ * + * optional string agency_id = 1; + * @param value The bytes for agencyId to set. + * @return This builder for chaining. + */ + public Builder setAgencyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + agencyId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - *
-     * At least one translation must be provided.
-     * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - java.util.List - getTranslationList(); - /** - *
-     * At least one translation must be provided.
-     * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation getTranslation(int index); - /** - *
-     * At least one translation must be provided.
-     * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - int getTranslationCount(); - /** - *
-     * At least one translation must be provided.
-     * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - java.util.List - getTranslationOrBuilderList(); - /** - *
-     * At least one translation must be provided.
-     * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - com.google.transit.realtime.GtfsRealtime.TranslatedString.TranslationOrBuilder getTranslationOrBuilder( - int index); - } - /** - *
-   * An internationalized message containing per-language versions of a snippet of
-   * text or a URL.
-   * One of the strings from a message will be picked up. The resolution proceeds
-   * as follows:
-   * 1. If the UI language matches the language code of a translation,
-   *    the first matching translation is picked.
-   * 2. If a default UI language (e.g., English) matches the language code of a
-   *    translation, the first matching translation is picked.
-   * 3. If some translation has an unspecified language code, that translation is
-   *    picked.
-   * 
- * - * Protobuf type {@code transit_realtime.TranslatedString} - */ - public static final class TranslatedString extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - TranslatedString> implements - // @@protoc_insertion_point(message_implements:transit_realtime.TranslatedString) - TranslatedStringOrBuilder { - private static final long serialVersionUID = 0L; - // Use TranslatedString.newBuilder() to construct. - private TranslatedString(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private TranslatedString() { - translation_ = java.util.Collections.emptyList(); - } + private java.lang.Object routeId_ = ""; + /** + * optional string route_id = 2; + * @return Whether the routeId field is set. + */ + public boolean hasRouteId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string route_id = 2; + * @return The routeId. + */ + public java.lang.String getRouteId() { + java.lang.Object ref = routeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + routeId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string route_id = 2; + * @return The bytes for routeId. + */ + public com.google.protobuf.ByteString getRouteIdBytes() { + java.lang.Object ref = routeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + routeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string route_id = 2; + * @param value The routeId to set. + * @return This builder for chaining. + */ + public Builder setRouteId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + routeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional string route_id = 2; + * @return This builder for chaining. + */ + public Builder clearRouteId() { + routeId_ = getDefaultInstance().getRouteId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * optional string route_id = 2; + * @param value The bytes for routeId to set. + * @return This builder for chaining. + */ + public Builder setRouteIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + routeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TranslatedString(); - } + private int routeType_; + /** + *
+             * corresponds to route_type in GTFS.
+             * 
+ * + * optional int32 route_type = 3; + * @return Whether the routeType field is set. + */ + @java.lang.Override + public boolean hasRouteType() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             * corresponds to route_type in GTFS.
+             * 
+ * + * optional int32 route_type = 3; + * @return The routeType. + */ + @java.lang.Override + public int getRouteType() { + return routeType_; + } + /** + *
+             * corresponds to route_type in GTFS.
+             * 
+ * + * optional int32 route_type = 3; + * @param value The routeType to set. + * @return This builder for chaining. + */ + public Builder setRouteType(int value) { + + routeType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             * corresponds to route_type in GTFS.
+             * 
+ * + * optional int32 route_type = 3; + * @return This builder for chaining. + */ + public Builder clearRouteType() { + bitField0_ = (bitField0_ & ~0x00000004); + routeType_ = 0; + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_descriptor; - } + private com.google.transit.realtime.GtfsRealtime.TripDescriptor trip_; + private com.google.protobuf.SingleFieldBuilderV3 tripBuilder_; + /** + * optional .transit_realtime.TripDescriptor trip = 4; + * @return Whether the trip field is set. + */ + public boolean hasTrip() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .transit_realtime.TripDescriptor trip = 4; + * @return The trip. + */ + public com.google.transit.realtime.GtfsRealtime.TripDescriptor getTrip() { + if (tripBuilder_ == null) { + return trip_ == null + ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() + : trip_; + } else { + return tripBuilder_.getMessage(); + } + } + /** + * optional .transit_realtime.TripDescriptor trip = 4; + */ + public Builder setTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { + if (tripBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trip_ = value; + } else { + tripBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripDescriptor trip = 4; + */ + public Builder setTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder builderForValue) { + if (tripBuilder_ == null) { + trip_ = builderForValue.build(); + } else { + tripBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripDescriptor trip = 4; + */ + public Builder mergeTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { + if (tripBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && trip_ != null + && trip_ != com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance()) { + getTripBuilder().mergeFrom(value); + } else { + trip_ = value; + } + } else { + tripBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripDescriptor trip = 4; + */ + public Builder clearTrip() { + bitField0_ = (bitField0_ & ~0x00000008); + trip_ = null; + if (tripBuilder_ != null) { + tripBuilder_.dispose(); + tripBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .transit_realtime.TripDescriptor trip = 4; + */ + public com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder getTripBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getTripFieldBuilder().getBuilder(); + } + /** + * optional .transit_realtime.TripDescriptor trip = 4; + */ + public com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder() { + if (tripBuilder_ != null) { + return tripBuilder_.getMessageOrBuilder(); + } else { + return trip_ == null + ? com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance() + : trip_; + } + } + /** + * optional .transit_realtime.TripDescriptor trip = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTripFieldBuilder() { + if (tripBuilder_ == null) { + tripBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTrip(), getParentForChildren(), isClean()); + trip_ = null; + } + return tripBuilder_; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.TranslatedString.class, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder.class); - } + private java.lang.Object stopId_ = ""; + /** + * optional string stop_id = 5; + * @return Whether the stopId field is set. + */ + public boolean hasStopId() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string stop_id = 5; + * @return The stopId. + */ + public java.lang.String getStopId() { + java.lang.Object ref = stopId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string stop_id = 5; + * @return The bytes for stopId. + */ + public com.google.protobuf.ByteString getStopIdBytes() { + java.lang.Object ref = stopId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + stopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string stop_id = 5; + * @param value The stopId to set. + * @return This builder for chaining. + */ + public Builder setStopId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + stopId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional string stop_id = 5; + * @return This builder for chaining. + */ + public Builder clearStopId() { + stopId_ = getDefaultInstance().getStopId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * optional string stop_id = 5; + * @param value The bytes for stopId to set. + * @return This builder for chaining. + */ + public Builder setStopIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + stopId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public interface TranslationOrBuilder extends - // @@protoc_insertion_point(interface_extends:transit_realtime.TranslatedString.Translation) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { - - /** - *
-       * A UTF-8 string containing the message.
-       * 
- * - * required string text = 1; - * @return Whether the text field is set. - */ - boolean hasText(); - /** - *
-       * A UTF-8 string containing the message.
-       * 
- * - * required string text = 1; - * @return The text. - */ - java.lang.String getText(); - /** - *
-       * A UTF-8 string containing the message.
-       * 
- * - * required string text = 1; - * @return The bytes for text. - */ - com.google.protobuf.ByteString - getTextBytes(); - - /** - *
-       * BCP-47 language code. Can be omitted if the language is unknown or if
-       * no i18n is done at all for the feed. At most one translation is
-       * allowed to have an unspecified language tag.
-       * 
- * - * optional string language = 2; - * @return Whether the language field is set. - */ - boolean hasLanguage(); - /** - *
-       * BCP-47 language code. Can be omitted if the language is unknown or if
-       * no i18n is done at all for the feed. At most one translation is
-       * allowed to have an unspecified language tag.
-       * 
- * - * optional string language = 2; - * @return The language. - */ - java.lang.String getLanguage(); - /** - *
-       * BCP-47 language code. Can be omitted if the language is unknown or if
-       * no i18n is done at all for the feed. At most one translation is
-       * allowed to have an unspecified language tag.
-       * 
- * - * optional string language = 2; - * @return The bytes for language. - */ - com.google.protobuf.ByteString - getLanguageBytes(); - } - /** - * Protobuf type {@code transit_realtime.TranslatedString.Translation} - */ - public static final class Translation extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - Translation> implements - // @@protoc_insertion_point(message_implements:transit_realtime.TranslatedString.Translation) - TranslationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Translation.newBuilder() to construct. - private Translation(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private Translation() { - text_ = ""; - language_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Translation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_Translation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_Translation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.class, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder.class); - } - - private int bitField0_; - public static final int TEXT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object text_ = ""; - /** - *
-       * A UTF-8 string containing the message.
-       * 
- * - * required string text = 1; - * @return Whether the text field is set. - */ - @java.lang.Override - public boolean hasText() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * A UTF-8 string containing the message.
-       * 
- * - * required string text = 1; - * @return The text. - */ - @java.lang.Override - public java.lang.String getText() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - text_ = s; - } - return s; - } - } - /** - *
-       * A UTF-8 string containing the message.
-       * 
- * - * required string text = 1; - * @return The bytes for text. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LANGUAGE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object language_ = ""; - /** - *
-       * BCP-47 language code. Can be omitted if the language is unknown or if
-       * no i18n is done at all for the feed. At most one translation is
-       * allowed to have an unspecified language tag.
-       * 
- * - * optional string language = 2; - * @return Whether the language field is set. - */ - @java.lang.Override - public boolean hasLanguage() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * BCP-47 language code. Can be omitted if the language is unknown or if
-       * no i18n is done at all for the feed. At most one translation is
-       * allowed to have an unspecified language tag.
-       * 
- * - * optional string language = 2; - * @return The language. - */ - @java.lang.Override - public java.lang.String getLanguage() { - java.lang.Object ref = language_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - language_ = s; - } - return s; - } - } - /** - *
-       * BCP-47 language code. Can be omitted if the language is unknown or if
-       * no i18n is done at all for the feed. At most one translation is
-       * allowed to have an unspecified language tag.
-       * 
- * - * optional string language = 2; - * @return The bytes for language. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLanguageBytes() { - java.lang.Object ref = language_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - language_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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(2000, 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 com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation other = (com.google.transit.realtime.GtfsRealtime.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 com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code transit_realtime.TranslatedString.Translation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation, Builder> implements - // @@protoc_insertion_point(builder_implements:transit_realtime.TranslatedString.Translation) - com.google.transit.realtime.GtfsRealtime.TranslatedString.TranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_Translation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_Translation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.class, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder.class); - } - - // Construct using com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - text_ = ""; - language_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_Translation_descriptor; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation getDefaultInstanceForType() { - return com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.getDefaultInstance(); + // @@protoc_insertion_point(builder_scope:transit_realtime.EntitySelector) } - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation build() { - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + // @@protoc_insertion_point(class_scope:transit_realtime.EntitySelector) + private static final com.google.transit.realtime.GtfsRealtime.EntitySelector DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.EntitySelector(); } - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation buildPartial() { - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation result = new com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; + public static com.google.transit.realtime.GtfsRealtime.EntitySelector getDefaultInstance() { + return DEFAULT_INSTANCE; } - private void buildPartial0(com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.text_ = text_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.language_ = language_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EntitySelector parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation, Type> extension, - Type value) { - return super.setExtension(extension, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation, java.util.List> extension, - int index, Type value) { - return super.setExtension(extension, index, value); - } - @java.lang.Override - public Builder addExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation, java.util.List> extension, - Type value) { - return super.addExtension(extension, value); + public static com.google.protobuf.Parser parser() { + return PARSER; } + @java.lang.Override - public Builder clearExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation, ?> extension) { - return super.clearExtension(extension); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation) { - return mergeFrom((com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation)other); - } else { - super.mergeFrom(other); - return this; - } + public com.google.transit.realtime.GtfsRealtime.EntitySelector getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation other) { - if (other == com.google.transit.realtime.GtfsRealtime.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_; + public interface TranslatedStringOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.TranslatedString) + com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder { - private java.lang.Object text_ = ""; /** *
-         * A UTF-8 string containing the message.
+         * At least one translation must be provided.
          * 
* - * required string text = 1; - * @return Whether the text field is set. + * repeated .transit_realtime.TranslatedString.Translation translation = 1; */ - public boolean hasText() { - return ((bitField0_ & 0x00000001) != 0); - } + java.util.List getTranslationList(); /** *
-         * A UTF-8 string containing the message.
+         * At least one translation must be provided.
          * 
* - * required string text = 1; - * @return The text. + * repeated .transit_realtime.TranslatedString.Translation translation = 1; */ - public java.lang.String getText() { - java.lang.Object ref = text_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - text_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation getTranslation(int index); /** *
-         * A UTF-8 string containing the message.
+         * At least one translation must be provided.
          * 
* - * required string text = 1; - * @return The bytes for text. + * repeated .transit_realtime.TranslatedString.Translation translation = 1; */ - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + int getTranslationCount(); /** *
-         * A UTF-8 string containing the message.
+         * At least one translation must be provided.
          * 
* - * required string text = 1; - * @param value The text to set. - * @return This builder for chaining. + * repeated .transit_realtime.TranslatedString.Translation translation = 1; */ - public Builder setText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - text_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + java.util.List getTranslationOrBuilderList(); /** *
-         * A UTF-8 string containing the message.
+         * At least one translation must be provided.
          * 
* - * required string text = 1; - * @return This builder for chaining. + * repeated .transit_realtime.TranslatedString.Translation translation = 1; */ - public Builder clearText() { - text_ = getDefaultInstance().getText(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + com.google.transit.realtime.GtfsRealtime.TranslatedString.TranslationOrBuilder getTranslationOrBuilder( + int index); + } + /** + *
+     * An internationalized message containing per-language versions of a snippet of
+     * text or a URL.
+     * One of the strings from a message will be picked up. The resolution proceeds
+     * as follows:
+     * 1. If the UI language matches the language code of a translation,
+     *    the first matching translation is picked.
+     * 2. If a default UI language (e.g., English) matches the language code of a
+     *    translation, the first matching translation is picked.
+     * 3. If some translation has an unspecified language code, that translation is
+     *    picked.
+     * 
+ * + * Protobuf type {@code transit_realtime.TranslatedString} + */ + public static final class TranslatedString + extends + com.google.protobuf.GeneratedMessageV3.ExtendableMessage + implements + // @@protoc_insertion_point(message_implements:transit_realtime.TranslatedString) + TranslatedStringOrBuilder { + private static final long serialVersionUID = 0L; + // Use TranslatedString.newBuilder() to construct. + private TranslatedString( + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { + super(builder); + } + private TranslatedString() { + translation_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TranslatedString(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.google.transit.realtime.GtfsRealtime.TranslatedString.class, + com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder.class); + } + + public interface TranslationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:transit_realtime.TranslatedString.Translation) + com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder { + + /** + *
+             * A UTF-8 string containing the message.
+             * 
+ * + * required string text = 1; + * @return Whether the text field is set. + */ + boolean hasText(); + /** + *
+             * A UTF-8 string containing the message.
+             * 
+ * + * required string text = 1; + * @return The text. + */ + java.lang.String getText(); + /** + *
+             * A UTF-8 string containing the message.
+             * 
+ * + * required string text = 1; + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + *
+             * BCP-47 language code. Can be omitted if the language is unknown or if
+             * no i18n is done at all for the feed. At most one translation is
+             * allowed to have an unspecified language tag.
+             * 
+ * + * optional string language = 2; + * @return Whether the language field is set. + */ + boolean hasLanguage(); + /** + *
+             * BCP-47 language code. Can be omitted if the language is unknown or if
+             * no i18n is done at all for the feed. At most one translation is
+             * allowed to have an unspecified language tag.
+             * 
+ * + * optional string language = 2; + * @return The language. + */ + java.lang.String getLanguage(); + /** + *
+             * BCP-47 language code. Can be omitted if the language is unknown or if
+             * no i18n is done at all for the feed. At most one translation is
+             * allowed to have an unspecified language tag.
+             * 
+ * + * optional string language = 2; + * @return The bytes for language. + */ + com.google.protobuf.ByteString getLanguageBytes(); } /** - *
-         * A UTF-8 string containing the message.
-         * 
- * - * required string text = 1; - * @param value The bytes for text to set. - * @return This builder for chaining. + * Protobuf type {@code transit_realtime.TranslatedString.Translation} */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - text_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public static final class Translation + extends + com.google.protobuf.GeneratedMessageV3.ExtendableMessage + implements + // @@protoc_insertion_point(message_implements:transit_realtime.TranslatedString.Translation) + TranslationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Translation.newBuilder() to construct. + private Translation( + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { + super(builder); + } + private Translation() { + text_ = ""; + language_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Translation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_Translation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_Translation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.class, + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder.class); + } + + private int bitField0_; + public static final int TEXT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + /** + *
+             * A UTF-8 string containing the message.
+             * 
+ * + * required string text = 1; + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * A UTF-8 string containing the message.
+             * 
+ * + * required string text = 1; + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + text_ = s; + } + return s; + } + } + /** + *
+             * A UTF-8 string containing the message.
+             * 
+ * + * required string text = 1; + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object language_ = ""; + /** + *
+             * BCP-47 language code. Can be omitted if the language is unknown or if
+             * no i18n is done at all for the feed. At most one translation is
+             * allowed to have an unspecified language tag.
+             * 
+ * + * optional string language = 2; + * @return Whether the language field is set. + */ + @java.lang.Override + public boolean hasLanguage() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * BCP-47 language code. Can be omitted if the language is unknown or if
+             * no i18n is done at all for the feed. At most one translation is
+             * allowed to have an unspecified language tag.
+             * 
+ * + * optional string language = 2; + * @return The language. + */ + @java.lang.Override + public java.lang.String getLanguage() { + java.lang.Object ref = language_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + language_ = s; + } + return s; + } + } + /** + *
+             * BCP-47 language code. Can be omitted if the language is unknown or if
+             * no i18n is done at all for the feed. At most one translation is
+             * allowed to have an unspecified language tag.
+             * 
+ * + * optional string language = 2; + * @return The bytes for language. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageBytes() { + java.lang.Object ref = language_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + language_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(2000, 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 com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation other = (com.google.transit.realtime.GtfsRealtime.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 com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder( + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code transit_realtime.TranslatedString.Translation} + */ + public static final class Builder + extends + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.TranslatedString.Translation) + com.google.transit.realtime.GtfsRealtime.TranslatedString.TranslationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_Translation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_Translation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.class, + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder.class); + } + + // Construct using com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + text_ = ""; + language_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_Translation_descriptor; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation build() { + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation buildPartial() { + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation result = new com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.text_ = text_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.language_ = language_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension, + Type value) { + return super.setExtension(extension, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + int index, Type value) { + return super.setExtension(extension, index, value); + } + @java.lang.Override + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + Type value) { + return super.addExtension(extension, value); + } + @java.lang.Override + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension) { + return super.clearExtension(extension); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation) { + return mergeFrom((com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation other) { + if (other == com.google.transit.realtime.GtfsRealtime.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_ = ""; + /** + *
+                 * A UTF-8 string containing the message.
+                 * 
+ * + * required string text = 1; + * @return Whether the text field is set. + */ + public boolean hasText() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+                 * A UTF-8 string containing the message.
+                 * 
+ * + * required string text = 1; + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + text_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+                 * A UTF-8 string containing the message.
+                 * 
+ * + * required string text = 1; + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+                 * A UTF-8 string containing the message.
+                 * 
+ * + * required string text = 1; + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+                 * A UTF-8 string containing the message.
+                 * 
+ * + * required string text = 1; + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+                 * A UTF-8 string containing the message.
+                 * 
+ * + * required string text = 1; + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object language_ = ""; + /** + *
+                 * BCP-47 language code. Can be omitted if the language is unknown or if
+                 * no i18n is done at all for the feed. At most one translation is
+                 * allowed to have an unspecified language tag.
+                 * 
+ * + * optional string language = 2; + * @return Whether the language field is set. + */ + public boolean hasLanguage() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+                 * BCP-47 language code. Can be omitted if the language is unknown or if
+                 * no i18n is done at all for the feed. At most one translation is
+                 * allowed to have an unspecified language tag.
+                 * 
+ * + * optional string language = 2; + * @return The language. + */ + public java.lang.String getLanguage() { + java.lang.Object ref = language_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + language_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+                 * BCP-47 language code. Can be omitted if the language is unknown or if
+                 * no i18n is done at all for the feed. At most one translation is
+                 * allowed to have an unspecified language tag.
+                 * 
+ * + * optional string language = 2; + * @return The bytes for language. + */ + public com.google.protobuf.ByteString getLanguageBytes() { + java.lang.Object ref = language_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + language_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+                 * BCP-47 language code. Can be omitted if the language is unknown or if
+                 * no i18n is done at all for the feed. At most one translation is
+                 * allowed to have an unspecified language tag.
+                 * 
+ * + * optional string language = 2; + * @param value The language to set. + * @return This builder for chaining. + */ + public Builder setLanguage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + language_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+                 * BCP-47 language code. Can be omitted if the language is unknown or if
+                 * no i18n is done at all for the feed. At most one translation is
+                 * allowed to have an unspecified language tag.
+                 * 
+ * + * optional string language = 2; + * @return This builder for chaining. + */ + public Builder clearLanguage() { + language_ = getDefaultInstance().getLanguage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+                 * BCP-47 language code. Can be omitted if the language is unknown or if
+                 * no i18n is done at all for the feed. At most one translation is
+                 * allowed to have an unspecified language tag.
+                 * 
+ * + * optional string language = 2; + * @param value The bytes for language to set. + * @return This builder for chaining. + */ + public Builder setLanguageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + language_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:transit_realtime.TranslatedString.Translation) + } + + // @@protoc_insertion_point(class_scope:transit_realtime.TranslatedString.Translation) + private static final com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation(); + } + + public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Translation parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - private java.lang.Object language_ = ""; + public static final int TRANSLATION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List translation_; /** *
-         * BCP-47 language code. Can be omitted if the language is unknown or if
-         * no i18n is done at all for the feed. At most one translation is
-         * allowed to have an unspecified language tag.
+         * At least one translation must be provided.
          * 
* - * optional string language = 2; - * @return Whether the language field is set. + * repeated .transit_realtime.TranslatedString.Translation translation = 1; */ - public boolean hasLanguage() { - return ((bitField0_ & 0x00000002) != 0); + @java.lang.Override + public java.util.List getTranslationList() { + return translation_; } /** *
-         * BCP-47 language code. Can be omitted if the language is unknown or if
-         * no i18n is done at all for the feed. At most one translation is
-         * allowed to have an unspecified language tag.
+         * At least one translation must be provided.
          * 
* - * optional string language = 2; - * @return The language. + * repeated .transit_realtime.TranslatedString.Translation translation = 1; */ - public java.lang.String getLanguage() { - java.lang.Object ref = language_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - language_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public java.util.List getTranslationOrBuilderList() { + return translation_; } /** *
-         * BCP-47 language code. Can be omitted if the language is unknown or if
-         * no i18n is done at all for the feed. At most one translation is
-         * allowed to have an unspecified language tag.
+         * At least one translation must be provided.
          * 
* - * optional string language = 2; - * @return The bytes for language. + * repeated .transit_realtime.TranslatedString.Translation translation = 1; */ - public com.google.protobuf.ByteString - getLanguageBytes() { - java.lang.Object ref = language_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - language_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public int getTranslationCount() { + return translation_.size(); } /** *
-         * BCP-47 language code. Can be omitted if the language is unknown or if
-         * no i18n is done at all for the feed. At most one translation is
-         * allowed to have an unspecified language tag.
+         * At least one translation must be provided.
          * 
* - * optional string language = 2; - * @param value The language to set. - * @return This builder for chaining. + * repeated .transit_realtime.TranslatedString.Translation translation = 1; */ - public Builder setLanguage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - language_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation getTranslation(int index) { + return translation_.get(index); } /** *
-         * BCP-47 language code. Can be omitted if the language is unknown or if
-         * no i18n is done at all for the feed. At most one translation is
-         * allowed to have an unspecified language tag.
+         * At least one translation must be provided.
          * 
* - * optional string language = 2; - * @return This builder for chaining. + * repeated .transit_realtime.TranslatedString.Translation translation = 1; */ - public Builder clearLanguage() { - language_ = getDefaultInstance().getLanguage(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedString.TranslationOrBuilder getTranslationOrBuilder( + int index) { + return translation_.get(index); } - /** - *
-         * BCP-47 language code. Can be omitted if the language is unknown or if
-         * no i18n is done at all for the feed. At most one translation is
-         * allowed to have an unspecified language tag.
-         * 
- * - * optional string language = 2; - * @param value The bytes for language to set. - * @return This builder for chaining. - */ - public Builder setLanguageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - language_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + + 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 final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + 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(2000, output); + getUnknownFields().writeTo(output); } @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + 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 com.google.transit.realtime.GtfsRealtime.TranslatedString)) { + return super.equals(obj); + } + com.google.transit.realtime.GtfsRealtime.TranslatedString other = (com.google.transit.realtime.GtfsRealtime.TranslatedString) obj; - // @@protoc_insertion_point(builder_scope:transit_realtime.TranslatedString.Translation) - } + if (!getTranslationList().equals(other.getTranslationList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + if (!getExtensionFields().equals(other.getExtensionFields())) + return false; + return true; + } - // @@protoc_insertion_point(class_scope:transit_realtime.TranslatedString.Translation) - private static final com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation(); - } + @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 com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TranslatedString prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Translation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - }; + /** + *
+         * An internationalized message containing per-language versions of a snippet of
+         * text or a URL.
+         * One of the strings from a message will be picked up. The resolution proceeds
+         * as follows:
+         * 1. If the UI language matches the language code of a translation,
+         *    the first matching translation is picked.
+         * 2. If a default UI language (e.g., English) matches the language code of a
+         *    translation, the first matching translation is picked.
+         * 3. If some translation has an unspecified language code, that translation is
+         *    picked.
+         * 
+ * + * Protobuf type {@code transit_realtime.TranslatedString} + */ + public static final class Builder + extends + com.google.protobuf.GeneratedMessageV3.ExtendableBuilder + implements + // @@protoc_insertion_point(builder_implements:transit_realtime.TranslatedString) + com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_descriptor; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.transit.realtime.GtfsRealtime.TranslatedString.class, + com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder.class); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // Construct using com.google.transit.realtime.GtfsRealtime.TranslatedString.newBuilder() + private Builder() { - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + } - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - public static final int TRANSLATION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List translation_; - /** - *
-     * At least one translation must be provided.
-     * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - @java.lang.Override - public java.util.List getTranslationList() { - return translation_; - } - /** - *
-     * At least one translation must be provided.
-     * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - @java.lang.Override - public java.util.List - getTranslationOrBuilderList() { - return translation_; - } - /** - *
-     * At least one translation must be provided.
-     * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - @java.lang.Override - public int getTranslationCount() { - return translation_.size(); - } - /** - *
-     * At least one translation must be provided.
-     * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation getTranslation(int index) { - return translation_.get(index); - } - /** - *
-     * At least one translation must be provided.
-     * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedString.TranslationOrBuilder getTranslationOrBuilder( - int index) { - return translation_.get(index); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (translationBuilder_ == null) { + translation_ = java.util.Collections.emptyList(); + } else { + translation_ = null; + translationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - 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 com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_descriptor; + } - @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(2000, output); - getUnknownFields().writeTo(output); - } + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedString getDefaultInstanceForType() { + return com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); + } - @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 com.google.transit.realtime.GtfsRealtime.TranslatedString build() { + com.google.transit.realtime.GtfsRealtime.TranslatedString result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.transit.realtime.GtfsRealtime.TranslatedString)) { - return super.equals(obj); - } - com.google.transit.realtime.GtfsRealtime.TranslatedString other = (com.google.transit.realtime.GtfsRealtime.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 com.google.transit.realtime.GtfsRealtime.TranslatedString buildPartial() { + com.google.transit.realtime.GtfsRealtime.TranslatedString result = new com.google.transit.realtime.GtfsRealtime.TranslatedString( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @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; - } + private void buildPartialRepeatedFields(com.google.transit.realtime.GtfsRealtime.TranslatedString result) { + if (translationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + translation_ = java.util.Collections.unmodifiableList(translation_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.translation_ = translation_; + } else { + result.translation_ = translationBuilder_.build(); + } + } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private void buildPartial0(com.google.transit.realtime.GtfsRealtime.TranslatedString result) { + int from_bitField0_ = bitField0_; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.transit.realtime.GtfsRealtime.TranslatedString prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension, + Type value) { + return super.setExtension(extension, value); + } + @java.lang.Override + public Builder setExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + int index, Type value) { + return super.setExtension(extension, index, value); + } + @java.lang.Override + public Builder addExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension> extension, + Type value) { + return super.addExtension(extension, value); + } + @java.lang.Override + public Builder clearExtension( + com.google.protobuf.GeneratedMessage.GeneratedExtension extension) { + return super.clearExtension(extension); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.transit.realtime.GtfsRealtime.TranslatedString) { + return mergeFrom((com.google.transit.realtime.GtfsRealtime.TranslatedString) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * An internationalized message containing per-language versions of a snippet of
-     * text or a URL.
-     * One of the strings from a message will be picked up. The resolution proceeds
-     * as follows:
-     * 1. If the UI language matches the language code of a translation,
-     *    the first matching translation is picked.
-     * 2. If a default UI language (e.g., English) matches the language code of a
-     *    translation, the first matching translation is picked.
-     * 3. If some translation has an unspecified language code, that translation is
-     *    picked.
-     * 
- * - * Protobuf type {@code transit_realtime.TranslatedString} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< - com.google.transit.realtime.GtfsRealtime.TranslatedString, Builder> implements - // @@protoc_insertion_point(builder_implements:transit_realtime.TranslatedString) - com.google.transit.realtime.GtfsRealtime.TranslatedStringOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.transit.realtime.GtfsRealtime.TranslatedString.class, com.google.transit.realtime.GtfsRealtime.TranslatedString.Builder.class); - } - - // Construct using com.google.transit.realtime.GtfsRealtime.TranslatedString.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (translationBuilder_ == null) { - translation_ = java.util.Collections.emptyList(); - } else { - translation_ = null; - translationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.transit.realtime.GtfsRealtime.internal_static_transit_realtime_TranslatedString_descriptor; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedString getDefaultInstanceForType() { - return com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance(); - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedString build() { - com.google.transit.realtime.GtfsRealtime.TranslatedString result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedString buildPartial() { - com.google.transit.realtime.GtfsRealtime.TranslatedString result = new com.google.transit.realtime.GtfsRealtime.TranslatedString(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.transit.realtime.GtfsRealtime.TranslatedString result) { - if (translationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - translation_ = java.util.Collections.unmodifiableList(translation_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.translation_ = translation_; - } else { - result.translation_ = translationBuilder_.build(); - } - } - - private void buildPartial0(com.google.transit.realtime.GtfsRealtime.TranslatedString result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TranslatedString, Type> extension, - Type value) { - return super.setExtension(extension, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TranslatedString, java.util.List> extension, - int index, Type value) { - return super.setExtension(extension, index, value); - } - @java.lang.Override - public Builder addExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TranslatedString, java.util.List> extension, - Type value) { - return super.addExtension(extension, value); - } - @java.lang.Override - public Builder clearExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.transit.realtime.GtfsRealtime.TranslatedString, ?> extension) { - return super.clearExtension(extension); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.transit.realtime.GtfsRealtime.TranslatedString) { - return mergeFrom((com.google.transit.realtime.GtfsRealtime.TranslatedString)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TranslatedString other) { - if (other == com.google.transit.realtime.GtfsRealtime.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: { - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation m = - input.readMessage( - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.PARSER, - extensionRegistry); + public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TranslatedString other) { + if (other == com.google.transit.realtime.GtfsRealtime.TranslatedString.getDefaultInstance()) + return this; if (translationBuilder_ == null) { - ensureTranslationIsMutable(); - translation_.add(m); + if (!other.translation_.isEmpty()) { + if (translation_.isEmpty()) { + translation_ = other.translation_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTranslationIsMutable(); + translation_.addAll(other.translation_); + } + onChanged(); + } } 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_ = - java.util.Collections.emptyList(); - private void ensureTranslationIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - translation_ = new java.util.ArrayList(translation_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedString.TranslationOrBuilder> translationBuilder_; - - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public java.util.List getTranslationList() { - if (translationBuilder_ == null) { - return java.util.Collections.unmodifiableList(translation_); - } else { - return translationBuilder_.getMessageList(); - } - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public int getTranslationCount() { - if (translationBuilder_ == null) { - return translation_.size(); - } else { - return translationBuilder_.getCount(); - } - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation getTranslation(int index) { - if (translationBuilder_ == null) { - return translation_.get(index); - } else { - return translationBuilder_.getMessage(index); - } - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public Builder setTranslation( - int index, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation value) { - if (translationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTranslationIsMutable(); - translation_.set(index, value); - onChanged(); - } else { - translationBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public Builder setTranslation( - int index, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder builderForValue) { - if (translationBuilder_ == null) { - ensureTranslationIsMutable(); - translation_.set(index, builderForValue.build()); - onChanged(); - } else { - translationBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public Builder addTranslation(com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation value) { - if (translationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTranslationIsMutable(); - translation_.add(value); - onChanged(); - } else { - translationBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public Builder addTranslation( - int index, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation value) { - if (translationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTranslationIsMutable(); - translation_.add(index, value); - onChanged(); - } else { - translationBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public Builder addTranslation( - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder builderForValue) { - if (translationBuilder_ == null) { - ensureTranslationIsMutable(); - translation_.add(builderForValue.build()); - onChanged(); - } else { - translationBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public Builder addTranslation( - int index, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder builderForValue) { - if (translationBuilder_ == null) { - ensureTranslationIsMutable(); - translation_.add(index, builderForValue.build()); - onChanged(); - } else { - translationBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public Builder addAllTranslation( - java.lang.Iterable values) { - if (translationBuilder_ == null) { - ensureTranslationIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, translation_); - onChanged(); - } else { - translationBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public Builder clearTranslation() { - if (translationBuilder_ == null) { - translation_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - translationBuilder_.clear(); - } - return this; - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public Builder removeTranslation(int index) { - if (translationBuilder_ == null) { - ensureTranslationIsMutable(); - translation_.remove(index); - onChanged(); - } else { - translationBuilder_.remove(index); - } - return this; - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder getTranslationBuilder( - int index) { - return getTranslationFieldBuilder().getBuilder(index); - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedString.TranslationOrBuilder getTranslationOrBuilder( - int index) { - if (translationBuilder_ == null) { - return translation_.get(index); } else { - return translationBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public java.util.List - getTranslationOrBuilderList() { - if (translationBuilder_ != null) { - return translationBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(translation_); - } - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder addTranslationBuilder() { - return getTranslationFieldBuilder().addBuilder( - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.getDefaultInstance()); - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder addTranslationBuilder( - int index) { - return getTranslationFieldBuilder().addBuilder( - index, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.getDefaultInstance()); - } - /** - *
-       * At least one translation must be provided.
-       * 
- * - * repeated .transit_realtime.TranslatedString.Translation translation = 1; - */ - public java.util.List - getTranslationBuilderList() { - return getTranslationFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedString.TranslationOrBuilder> - getTranslationFieldBuilder() { - if (translationBuilder_ == null) { - translationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation, com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder, com.google.transit.realtime.GtfsRealtime.TranslatedString.TranslationOrBuilder>( - translation_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - translation_ = null; - } - return translationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:transit_realtime.TranslatedString) - } + 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; + } - // @@protoc_insertion_point(class_scope:transit_realtime.TranslatedString) - private static final com.google.transit.realtime.GtfsRealtime.TranslatedString DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TranslatedString(); - } + @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; + } - public static com.google.transit.realtime.GtfsRealtime.TranslatedString getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @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.transit.realtime.GtfsRealtime.TranslatedString.Translation m = input + .readMessage( + com.google.transit.realtime.GtfsRealtime.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_ = java.util.Collections + .emptyList(); + private void ensureTranslationIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + translation_ = new java.util.ArrayList( + translation_); + bitField0_ |= 0x00000001; + } + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranslatedString parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private com.google.protobuf.RepeatedFieldBuilderV3 translationBuilder_; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public java.util.List getTranslationList() { + if (translationBuilder_ == null) { + return java.util.Collections.unmodifiableList(translation_); + } else { + return translationBuilder_.getMessageList(); + } + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public int getTranslationCount() { + if (translationBuilder_ == null) { + return translation_.size(); + } else { + return translationBuilder_.getCount(); + } + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation getTranslation(int index) { + if (translationBuilder_ == null) { + return translation_.get(index); + } else { + return translationBuilder_.getMessage(index); + } + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public Builder setTranslation(int index, + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation value) { + if (translationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTranslationIsMutable(); + translation_.set(index, value); + onChanged(); + } else { + translationBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public Builder setTranslation(int index, + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder builderForValue) { + if (translationBuilder_ == null) { + ensureTranslationIsMutable(); + translation_.set(index, builderForValue.build()); + onChanged(); + } else { + translationBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public Builder addTranslation(com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation value) { + if (translationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTranslationIsMutable(); + translation_.add(value); + onChanged(); + } else { + translationBuilder_.addMessage(value); + } + return this; + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public Builder addTranslation(int index, + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation value) { + if (translationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTranslationIsMutable(); + translation_.add(index, value); + onChanged(); + } else { + translationBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public Builder addTranslation( + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder builderForValue) { + if (translationBuilder_ == null) { + ensureTranslationIsMutable(); + translation_.add(builderForValue.build()); + onChanged(); + } else { + translationBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public Builder addTranslation(int index, + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder builderForValue) { + if (translationBuilder_ == null) { + ensureTranslationIsMutable(); + translation_.add(index, builderForValue.build()); + onChanged(); + } else { + translationBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public Builder addAllTranslation( + java.lang.Iterable values) { + if (translationBuilder_ == null) { + ensureTranslationIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, translation_); + onChanged(); + } else { + translationBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public Builder clearTranslation() { + if (translationBuilder_ == null) { + translation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + translationBuilder_.clear(); + } + return this; + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public Builder removeTranslation(int index) { + if (translationBuilder_ == null) { + ensureTranslationIsMutable(); + translation_.remove(index); + onChanged(); + } else { + translationBuilder_.remove(index); + } + return this; + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder getTranslationBuilder( + int index) { + return getTranslationFieldBuilder().getBuilder(index); + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedString.TranslationOrBuilder getTranslationOrBuilder( + int index) { + if (translationBuilder_ == null) { + return translation_.get(index); + } else { + return translationBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public java.util.List getTranslationOrBuilderList() { + if (translationBuilder_ != null) { + return translationBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(translation_); + } + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder addTranslationBuilder() { + return getTranslationFieldBuilder().addBuilder( + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.getDefaultInstance()); + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.Builder addTranslationBuilder( + int index) { + return getTranslationFieldBuilder().addBuilder(index, + com.google.transit.realtime.GtfsRealtime.TranslatedString.Translation.getDefaultInstance()); + } + /** + *
+             * At least one translation must be provided.
+             * 
+ * + * repeated .transit_realtime.TranslatedString.Translation translation = 1; + */ + public java.util.List getTranslationBuilderList() { + return getTranslationFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getTranslationFieldBuilder() { + if (translationBuilder_ == null) { + translationBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + translation_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + translation_ = null; + } + return translationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - public com.google.transit.realtime.GtfsRealtime.TranslatedString getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:transit_realtime.TranslatedString) + } + + // @@protoc_insertion_point(class_scope:transit_realtime.TranslatedString) + private static final com.google.transit.realtime.GtfsRealtime.TranslatedString DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.transit.realtime.GtfsRealtime.TranslatedString(); + } + + public static com.google.transit.realtime.GtfsRealtime.TranslatedString getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranslatedString parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_FeedMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_FeedMessage_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_FeedHeader_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_FeedHeader_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_FeedEntity_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_FeedEntity_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_TripUpdate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_TripUpdate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_TripUpdate_StopTimeEvent_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_TripUpdate_StopTimeEvent_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_TripUpdate_StopTimeProperties_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_TripUpdate_StopTimeProperties_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_TripUpdate_StopTimeUpdate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_TripUpdate_StopTimeUpdate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_VehiclePosition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_VehiclePosition_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_Alert_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_Alert_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_TimeRange_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_TimeRange_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_Position_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_Position_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_TripDescriptor_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_TripDescriptor_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_VehicleDescriptor_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_VehicleDescriptor_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_EntitySelector_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_EntitySelector_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_TranslatedString_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_TranslatedString_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_transit_realtime_TranslatedString_Translation_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_transit_realtime_TranslatedString_Translation_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023gtfs-realtime.proto\022\020transit_realtime\"" + - "q\n\013FeedMessage\022,\n\006header\030\001 \002(\0132\034.transit" + - "_realtime.FeedHeader\022,\n\006entity\030\002 \003(\0132\034.t" + - "ransit_realtime.FeedEntity*\006\010\350\007\020\320\017\"\317\001\n\nF" + - "eedHeader\022\035\n\025gtfs_realtime_version\030\001 \002(\t" + - "\022Q\n\016incrementality\030\002 \001(\0162+.transit_realt" + - "ime.FeedHeader.Incrementality:\014FULL_DATA" + - "SET\022\021\n\ttimestamp\030\003 \001(\004\"4\n\016Incrementality" + - "\022\020\n\014FULL_DATASET\020\000\022\020\n\014DIFFERENTIAL\020\001*\006\010\350" + - "\007\020\320\017\"\312\001\n\nFeedEntity\022\n\n\002id\030\001 \002(\t\022\031\n\nis_de" + - "leted\030\002 \001(\010:\005false\0221\n\013trip_update\030\003 \001(\0132" + - "\034.transit_realtime.TripUpdate\0222\n\007vehicle" + - "\030\004 \001(\0132!.transit_realtime.VehiclePositio" + - "n\022&\n\005alert\030\005 \001(\0132\027.transit_realtime.Aler" + - "t*\006\010\350\007\020\320\017\"\231\006\n\nTripUpdate\022.\n\004trip\030\001 \002(\0132 " + - ".transit_realtime.TripDescriptor\0224\n\007vehi" + - "cle\030\003 \001(\0132#.transit_realtime.VehicleDesc" + - "riptor\022E\n\020stop_time_update\030\002 \003(\0132+.trans" + - "it_realtime.TripUpdate.StopTimeUpdate\022\021\n" + - "\ttimestamp\030\004 \001(\004\022\r\n\005delay\030\005 \001(\005\032I\n\rStopT" + - "imeEvent\022\r\n\005delay\030\001 \001(\005\022\014\n\004time\030\002 \001(\003\022\023\n" + - "\013uncertainty\030\003 \001(\005*\006\010\350\007\020\320\017\032.\n\022StopTimePr" + - "operties\022\030\n\020assigned_stop_id\030\001 \001(\t\032\270\003\n\016S" + - "topTimeUpdate\022\025\n\rstop_sequence\030\001 \001(\r\022\017\n\007" + - "stop_id\030\004 \001(\t\022;\n\007arrival\030\002 \001(\0132*.transit" + - "_realtime.TripUpdate.StopTimeEvent\022=\n\tde" + - "parture\030\003 \001(\0132*.transit_realtime.TripUpd" + - "ate.StopTimeEvent\022j\n\025schedule_relationsh" + - "ip\030\005 \001(\0162@.transit_realtime.TripUpdate.S" + - "topTimeUpdate.ScheduleRelationship:\tSCHE" + - "DULED\022M\n\024stop_time_properties\030\006 \001(\0132/.tr" + - "ansit_realtime.TripUpdate.StopTimeProper" + - "ties\"?\n\024ScheduleRelationship\022\r\n\tSCHEDULE" + - "D\020\000\022\013\n\007SKIPPED\020\001\022\013\n\007NO_DATA\020\002*\006\010\350\007\020\320\017*\006\010" + - "\350\007\020\320\017\"\340\006\n\017VehiclePosition\022.\n\004trip\030\001 \001(\0132" + - " .transit_realtime.TripDescriptor\0224\n\007veh" + - "icle\030\010 \001(\0132#.transit_realtime.VehicleDes" + - "criptor\022,\n\010position\030\002 \001(\0132\032.transit_real" + - "time.Position\022\035\n\025current_stop_sequence\030\003" + - " \001(\r\022\017\n\007stop_id\030\007 \001(\t\022Z\n\016current_status\030" + - "\004 \001(\01623.transit_realtime.VehiclePosition" + - ".VehicleStopStatus:\rIN_TRANSIT_TO\022\021\n\ttim" + - "estamp\030\005 \001(\004\022K\n\020congestion_level\030\006 \001(\01621" + - ".transit_realtime.VehiclePosition.Conges" + - "tionLevel\022K\n\020occupancy_status\030\t \001(\01621.tr" + - "ansit_realtime.VehiclePosition.Occupancy" + - "Status\"G\n\021VehicleStopStatus\022\017\n\013INCOMING_" + - "AT\020\000\022\016\n\nSTOPPED_AT\020\001\022\021\n\rIN_TRANSIT_TO\020\002\"" + - "}\n\017CongestionLevel\022\034\n\030UNKNOWN_CONGESTION" + - "_LEVEL\020\000\022\024\n\020RUNNING_SMOOTHLY\020\001\022\017\n\013STOP_A" + - "ND_GO\020\002\022\016\n\nCONGESTION\020\003\022\025\n\021SEVERE_CONGES" + - "TION\020\004\"\257\001\n\017OccupancyStatus\022\t\n\005EMPTY\020\000\022\030\n" + - "\024MANY_SEATS_AVAILABLE\020\001\022\027\n\023FEW_SEATS_AVA" + - "ILABLE\020\002\022\026\n\022STANDING_ROOM_ONLY\020\003\022\036\n\032CRUS" + - "HED_STANDING_ROOM_ONLY\020\004\022\010\n\004FULL\020\005\022\034\n\030NO" + - "T_ACCEPTING_PASSENGERS\020\006*\006\010\350\007\020\320\017\"\337\010\n\005Ale" + - "rt\0222\n\ractive_period\030\001 \003(\0132\033.transit_real" + - "time.TimeRange\0229\n\017informed_entity\030\005 \003(\0132" + - " .transit_realtime.EntitySelector\022;\n\005cau" + - "se\030\006 \001(\0162\035.transit_realtime.Alert.Cause:" + - "\rUNKNOWN_CAUSE\022>\n\006effect\030\007 \001(\0162\036.transit" + - "_realtime.Alert.Effect:\016UNKNOWN_EFFECT\022/" + - "\n\003url\030\010 \001(\0132\".transit_realtime.Translate" + - "dString\0227\n\013header_text\030\n \001(\0132\".transit_r" + - "ealtime.TranslatedString\022<\n\020description_" + - "text\030\013 \001(\0132\".transit_realtime.Translated" + - "String\022;\n\017tts_header_text\030\014 \001(\0132\".transi" + - "t_realtime.TranslatedString\022@\n\024tts_descr" + - "iption_text\030\r \001(\0132\".transit_realtime.Tra" + - "nslatedString\022O\n\016severity_level\030\016 \001(\0162%." + - "transit_realtime.Alert.SeverityLevel:\020UN" + - "KNOWN_SEVERITY\"\330\001\n\005Cause\022\021\n\rUNKNOWN_CAUS" + - "E\020\001\022\017\n\013OTHER_CAUSE\020\002\022\025\n\021TECHNICAL_PROBLE" + - "M\020\003\022\n\n\006STRIKE\020\004\022\021\n\rDEMONSTRATION\020\005\022\014\n\010AC" + - "CIDENT\020\006\022\013\n\007HOLIDAY\020\007\022\013\n\007WEATHER\020\010\022\017\n\013MA" + - "INTENANCE\020\t\022\020\n\014CONSTRUCTION\020\n\022\023\n\017POLICE_" + - "ACTIVITY\020\013\022\025\n\021MEDICAL_EMERGENCY\020\014\"\304\001\n\006Ef" + - "fect\022\016\n\nNO_SERVICE\020\001\022\023\n\017REDUCED_SERVICE\020" + - "\002\022\026\n\022SIGNIFICANT_DELAYS\020\003\022\n\n\006DETOUR\020\004\022\026\n" + - "\022ADDITIONAL_SERVICE\020\005\022\024\n\020MODIFIED_SERVIC" + - "E\020\006\022\020\n\014OTHER_EFFECT\020\007\022\022\n\016UNKNOWN_EFFECT\020" + - "\010\022\016\n\nSTOP_MOVED\020\t\022\r\n\tNO_EFFECT\020\n\"H\n\rSeve" + - "rityLevel\022\024\n\020UNKNOWN_SEVERITY\020\001\022\010\n\004INFO\020" + - "\002\022\013\n\007WARNING\020\003\022\n\n\006SEVERE\020\004*\006\010\350\007\020\320\017\"/\n\tTi" + - "meRange\022\r\n\005start\030\001 \001(\004\022\013\n\003end\030\002 \001(\004*\006\010\350\007" + - "\020\320\017\"i\n\010Position\022\020\n\010latitude\030\001 \002(\002\022\021\n\tlon" + - "gitude\030\002 \002(\002\022\017\n\007bearing\030\003 \001(\002\022\020\n\010odomete" + - "r\030\004 \001(\001\022\r\n\005speed\030\005 \001(\002*\006\010\350\007\020\320\017\"\265\002\n\016TripD" + - "escriptor\022\017\n\007trip_id\030\001 \001(\t\022\020\n\010route_id\030\005" + - " \001(\t\022\024\n\014direction_id\030\006 \001(\r\022\022\n\nstart_time" + - "\030\002 \001(\t\022\022\n\nstart_date\030\003 \001(\t\022T\n\025schedule_r" + - "elationship\030\004 \001(\01625.transit_realtime.Tri" + - "pDescriptor.ScheduleRelationship\"d\n\024Sche" + - "duleRelationship\022\r\n\tSCHEDULED\020\000\022\t\n\005ADDED" + - "\020\001\022\017\n\013UNSCHEDULED\020\002\022\014\n\010CANCELED\020\003\022\023\n\013REP" + - "LACEMENT\020\005\032\002\010\001*\006\010\350\007\020\320\017\"M\n\021VehicleDescrip" + - "tor\022\n\n\002id\030\001 \001(\t\022\r\n\005label\030\002 \001(\t\022\025\n\rlicens" + - "e_plate\030\003 \001(\t*\006\010\350\007\020\320\017\"\222\001\n\016EntitySelector" + - "\022\021\n\tagency_id\030\001 \001(\t\022\020\n\010route_id\030\002 \001(\t\022\022\n" + - "\nroute_type\030\003 \001(\005\022.\n\004trip\030\004 \001(\0132 .transi" + - "t_realtime.TripDescriptor\022\017\n\007stop_id\030\005 \001" + - "(\t*\006\010\350\007\020\320\017\"\226\001\n\020TranslatedString\022C\n\013trans" + - "lation\030\001 \003(\0132..transit_realtime.Translat" + - "edString.Translation\0325\n\013Translation\022\014\n\004t" + - "ext\030\001 \002(\t\022\020\n\010language\030\002 \001(\t*\006\010\350\007\020\320\017*\006\010\350\007" + - "\020\320\017B\035\n\033com.google.transit.realtime" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_transit_realtime_FeedMessage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_transit_realtime_FeedMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_FeedMessage_descriptor, - new java.lang.String[] { "Header", "Entity", }); - internal_static_transit_realtime_FeedHeader_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_transit_realtime_FeedHeader_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_FeedHeader_descriptor, - new java.lang.String[] { "GtfsRealtimeVersion", "Incrementality", "Timestamp", }); - internal_static_transit_realtime_FeedEntity_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_transit_realtime_FeedEntity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_FeedEntity_descriptor, - new java.lang.String[] { "Id", "IsDeleted", "TripUpdate", "Vehicle", "Alert", }); - internal_static_transit_realtime_TripUpdate_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_transit_realtime_TripUpdate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_TripUpdate_descriptor, - new java.lang.String[] { "Trip", "Vehicle", "StopTimeUpdate", "Timestamp", "Delay", }); - internal_static_transit_realtime_TripUpdate_StopTimeEvent_descriptor = - internal_static_transit_realtime_TripUpdate_descriptor.getNestedTypes().get(0); - internal_static_transit_realtime_TripUpdate_StopTimeEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_TripUpdate_StopTimeEvent_descriptor, - new java.lang.String[] { "Delay", "Time", "Uncertainty", }); - internal_static_transit_realtime_TripUpdate_StopTimeProperties_descriptor = - internal_static_transit_realtime_TripUpdate_descriptor.getNestedTypes().get(1); - internal_static_transit_realtime_TripUpdate_StopTimeProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_TripUpdate_StopTimeProperties_descriptor, - new java.lang.String[] { "AssignedStopId", }); - internal_static_transit_realtime_TripUpdate_StopTimeUpdate_descriptor = - internal_static_transit_realtime_TripUpdate_descriptor.getNestedTypes().get(2); - internal_static_transit_realtime_TripUpdate_StopTimeUpdate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_TripUpdate_StopTimeUpdate_descriptor, - new java.lang.String[] { "StopSequence", "StopId", "Arrival", "Departure", "ScheduleRelationship", "StopTimeProperties", }); - internal_static_transit_realtime_VehiclePosition_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_transit_realtime_VehiclePosition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_VehiclePosition_descriptor, - new java.lang.String[] { "Trip", "Vehicle", "Position", "CurrentStopSequence", "StopId", "CurrentStatus", "Timestamp", "CongestionLevel", "OccupancyStatus", }); - internal_static_transit_realtime_Alert_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_transit_realtime_Alert_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_Alert_descriptor, - new java.lang.String[] { "ActivePeriod", "InformedEntity", "Cause", "Effect", "Url", "HeaderText", "DescriptionText", "TtsHeaderText", "TtsDescriptionText", "SeverityLevel", }); - internal_static_transit_realtime_TimeRange_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_transit_realtime_TimeRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_TimeRange_descriptor, - new java.lang.String[] { "Start", "End", }); - internal_static_transit_realtime_Position_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_transit_realtime_Position_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_Position_descriptor, - new java.lang.String[] { "Latitude", "Longitude", "Bearing", "Odometer", "Speed", }); - internal_static_transit_realtime_TripDescriptor_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_transit_realtime_TripDescriptor_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_TripDescriptor_descriptor, - new java.lang.String[] { "TripId", "RouteId", "DirectionId", "StartTime", "StartDate", "ScheduleRelationship", }); - internal_static_transit_realtime_VehicleDescriptor_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_transit_realtime_VehicleDescriptor_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_VehicleDescriptor_descriptor, - new java.lang.String[] { "Id", "Label", "LicensePlate", }); - internal_static_transit_realtime_EntitySelector_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_transit_realtime_EntitySelector_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_EntitySelector_descriptor, - new java.lang.String[] { "AgencyId", "RouteId", "RouteType", "Trip", "StopId", }); - internal_static_transit_realtime_TranslatedString_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_transit_realtime_TranslatedString_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_TranslatedString_descriptor, - new java.lang.String[] { "Translation", }); - internal_static_transit_realtime_TranslatedString_Translation_descriptor = - internal_static_transit_realtime_TranslatedString_descriptor.getNestedTypes().get(0); - internal_static_transit_realtime_TranslatedString_Translation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_transit_realtime_TranslatedString_Translation_descriptor, - new java.lang.String[] { "Text", "Language", }); - } - - // @@protoc_insertion_point(outer_class_scope) + @java.lang.Override + public com.google.transit.realtime.GtfsRealtime.TranslatedString getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_FeedMessage_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_FeedMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_FeedHeader_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_FeedHeader_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_FeedEntity_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_FeedEntity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_TripUpdate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_TripUpdate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_TripUpdate_StopTimeEvent_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_TripUpdate_StopTimeEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_TripUpdate_StopTimeProperties_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_TripUpdate_StopTimeProperties_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_TripUpdate_StopTimeUpdate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_TripUpdate_StopTimeUpdate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_VehiclePosition_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_VehiclePosition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_Alert_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_Alert_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_TimeRange_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_TimeRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_Position_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_Position_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_TripDescriptor_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_TripDescriptor_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_VehicleDescriptor_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_VehicleDescriptor_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_EntitySelector_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_EntitySelector_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_TranslatedString_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_TranslatedString_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_transit_realtime_TranslatedString_Translation_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_transit_realtime_TranslatedString_Translation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = {"\n\023gtfs-realtime.proto\022\020transit_realtime\"" + + "q\n\013FeedMessage\022,\n\006header\030\001 \002(\0132\034.transit" + + "_realtime.FeedHeader\022,\n\006entity\030\002 \003(\0132\034.t" + + "ransit_realtime.FeedEntity*\006\010\350\007\020\320\017\"\317\001\n\nF" + + "eedHeader\022\035\n\025gtfs_realtime_version\030\001 \002(\t" + + "\022Q\n\016incrementality\030\002 \001(\0162+.transit_realt" + + "ime.FeedHeader.Incrementality:\014FULL_DATA" + + "SET\022\021\n\ttimestamp\030\003 \001(\004\"4\n\016Incrementality" + + "\022\020\n\014FULL_DATASET\020\000\022\020\n\014DIFFERENTIAL\020\001*\006\010\350" + + "\007\020\320\017\"\312\001\n\nFeedEntity\022\n\n\002id\030\001 \002(\t\022\031\n\nis_de" + + "leted\030\002 \001(\010:\005false\0221\n\013trip_update\030\003 \001(\0132" + + "\034.transit_realtime.TripUpdate\0222\n\007vehicle" + + "\030\004 \001(\0132!.transit_realtime.VehiclePositio" + + "n\022&\n\005alert\030\005 \001(\0132\027.transit_realtime.Aler" + + "t*\006\010\350\007\020\320\017\"\231\006\n\nTripUpdate\022.\n\004trip\030\001 \002(\0132 " + + ".transit_realtime.TripDescriptor\0224\n\007vehi" + + "cle\030\003 \001(\0132#.transit_realtime.VehicleDesc" + + "riptor\022E\n\020stop_time_update\030\002 \003(\0132+.trans" + + "it_realtime.TripUpdate.StopTimeUpdate\022\021\n" + + "\ttimestamp\030\004 \001(\004\022\r\n\005delay\030\005 \001(\005\032I\n\rStopT" + + "imeEvent\022\r\n\005delay\030\001 \001(\005\022\014\n\004time\030\002 \001(\003\022\023\n" + + "\013uncertainty\030\003 \001(\005*\006\010\350\007\020\320\017\032.\n\022StopTimePr" + + "operties\022\030\n\020assigned_stop_id\030\001 \001(\t\032\270\003\n\016S" + + "topTimeUpdate\022\025\n\rstop_sequence\030\001 \001(\r\022\017\n\007" + + "stop_id\030\004 \001(\t\022;\n\007arrival\030\002 \001(\0132*.transit" + + "_realtime.TripUpdate.StopTimeEvent\022=\n\tde" + + "parture\030\003 \001(\0132*.transit_realtime.TripUpd" + + "ate.StopTimeEvent\022j\n\025schedule_relationsh" + + "ip\030\005 \001(\0162@.transit_realtime.TripUpdate.S" + "topTimeUpdate.ScheduleRelationship:\tSCHE" + + "DULED\022M\n\024stop_time_properties\030\006 \001(\0132/.tr" + + "ansit_realtime.TripUpdate.StopTimeProper" + "ties\"?\n\024ScheduleRelationship\022\r\n\tSCHEDULE" + + "D\020\000\022\013\n\007SKIPPED\020\001\022\013\n\007NO_DATA\020\002*\006\010\350\007\020\320\017*\006\010" + + "\350\007\020\320\017\"\340\006\n\017VehiclePosition\022.\n\004trip\030\001 \001(\0132" + + " .transit_realtime.TripDescriptor\0224\n\007veh" + + "icle\030\010 \001(\0132#.transit_realtime.VehicleDes" + + "criptor\022,\n\010position\030\002 \001(\0132\032.transit_real" + + "time.Position\022\035\n\025current_stop_sequence\030\003" + + " \001(\r\022\017\n\007stop_id\030\007 \001(\t\022Z\n\016current_status\030" + + "\004 \001(\01623.transit_realtime.VehiclePosition" + + ".VehicleStopStatus:\rIN_TRANSIT_TO\022\021\n\ttim" + + "estamp\030\005 \001(\004\022K\n\020congestion_level\030\006 \001(\01621" + + ".transit_realtime.VehiclePosition.Conges" + + "tionLevel\022K\n\020occupancy_status\030\t \001(\01621.tr" + + "ansit_realtime.VehiclePosition.Occupancy" + "Status\"G\n\021VehicleStopStatus\022\017\n\013INCOMING_" + + "AT\020\000\022\016\n\nSTOPPED_AT\020\001\022\021\n\rIN_TRANSIT_TO\020\002\"" + + "}\n\017CongestionLevel\022\034\n\030UNKNOWN_CONGESTION" + + "_LEVEL\020\000\022\024\n\020RUNNING_SMOOTHLY\020\001\022\017\n\013STOP_A" + + "ND_GO\020\002\022\016\n\nCONGESTION\020\003\022\025\n\021SEVERE_CONGES" + + "TION\020\004\"\257\001\n\017OccupancyStatus\022\t\n\005EMPTY\020\000\022\030\n" + + "\024MANY_SEATS_AVAILABLE\020\001\022\027\n\023FEW_SEATS_AVA" + + "ILABLE\020\002\022\026\n\022STANDING_ROOM_ONLY\020\003\022\036\n\032CRUS" + + "HED_STANDING_ROOM_ONLY\020\004\022\010\n\004FULL\020\005\022\034\n\030NO" + + "T_ACCEPTING_PASSENGERS\020\006*\006\010\350\007\020\320\017\"\337\010\n\005Ale" + + "rt\0222\n\ractive_period\030\001 \003(\0132\033.transit_real" + + "time.TimeRange\0229\n\017informed_entity\030\005 \003(\0132" + + " .transit_realtime.EntitySelector\022;\n\005cau" + + "se\030\006 \001(\0162\035.transit_realtime.Alert.Cause:" + + "\rUNKNOWN_CAUSE\022>\n\006effect\030\007 \001(\0162\036.transit" + + "_realtime.Alert.Effect:\016UNKNOWN_EFFECT\022/" + + "\n\003url\030\010 \001(\0132\".transit_realtime.Translate" + + "dString\0227\n\013header_text\030\n \001(\0132\".transit_r" + + "ealtime.TranslatedString\022<\n\020description_" + + "text\030\013 \001(\0132\".transit_realtime.Translated" + + "String\022;\n\017tts_header_text\030\014 \001(\0132\".transi" + + "t_realtime.TranslatedString\022@\n\024tts_descr" + + "iption_text\030\r \001(\0132\".transit_realtime.Tra" + + "nslatedString\022O\n\016severity_level\030\016 \001(\0162%." + + "transit_realtime.Alert.SeverityLevel:\020UN" + + "KNOWN_SEVERITY\"\330\001\n\005Cause\022\021\n\rUNKNOWN_CAUS" + + "E\020\001\022\017\n\013OTHER_CAUSE\020\002\022\025\n\021TECHNICAL_PROBLE" + + "M\020\003\022\n\n\006STRIKE\020\004\022\021\n\rDEMONSTRATION\020\005\022\014\n\010AC" + + "CIDENT\020\006\022\013\n\007HOLIDAY\020\007\022\013\n\007WEATHER\020\010\022\017\n\013MA" + + "INTENANCE\020\t\022\020\n\014CONSTRUCTION\020\n\022\023\n\017POLICE_" + + "ACTIVITY\020\013\022\025\n\021MEDICAL_EMERGENCY\020\014\"\304\001\n\006Ef" + + "fect\022\016\n\nNO_SERVICE\020\001\022\023\n\017REDUCED_SERVICE\020" + + "\002\022\026\n\022SIGNIFICANT_DELAYS\020\003\022\n\n\006DETOUR\020\004\022\026\n" + + "\022ADDITIONAL_SERVICE\020\005\022\024\n\020MODIFIED_SERVIC" + + "E\020\006\022\020\n\014OTHER_EFFECT\020\007\022\022\n\016UNKNOWN_EFFECT\020" + + "\010\022\016\n\nSTOP_MOVED\020\t\022\r\n\tNO_EFFECT\020\n\"H\n\rSeve" + + "rityLevel\022\024\n\020UNKNOWN_SEVERITY\020\001\022\010\n\004INFO\020" + + "\002\022\013\n\007WARNING\020\003\022\n\n\006SEVERE\020\004*\006\010\350\007\020\320\017\"/\n\tTi" + + "meRange\022\r\n\005start\030\001 \001(\004\022\013\n\003end\030\002 \001(\004*\006\010\350\007" + + "\020\320\017\"i\n\010Position\022\020\n\010latitude\030\001 \002(\002\022\021\n\tlon" + + "gitude\030\002 \002(\002\022\017\n\007bearing\030\003 \001(\002\022\020\n\010odomete" + + "r\030\004 \001(\001\022\r\n\005speed\030\005 \001(\002*\006\010\350\007\020\320\017\"\265\002\n\016TripD" + + "escriptor\022\017\n\007trip_id\030\001 \001(\t\022\020\n\010route_id\030\005" + + " \001(\t\022\024\n\014direction_id\030\006 \001(\r\022\022\n\nstart_time" + + "\030\002 \001(\t\022\022\n\nstart_date\030\003 \001(\t\022T\n\025schedule_r" + + "elationship\030\004 \001(\01625.transit_realtime.Tri" + + "pDescriptor.ScheduleRelationship\"d\n\024Sche" + + "duleRelationship\022\r\n\tSCHEDULED\020\000\022\t\n\005ADDED" + + "\020\001\022\017\n\013UNSCHEDULED\020\002\022\014\n\010CANCELED\020\003\022\023\n\013REP" + + "LACEMENT\020\005\032\002\010\001*\006\010\350\007\020\320\017\"M\n\021VehicleDescrip" + + "tor\022\n\n\002id\030\001 \001(\t\022\r\n\005label\030\002 \001(\t\022\025\n\rlicens" + + "e_plate\030\003 \001(\t*\006\010\350\007\020\320\017\"\222\001\n\016EntitySelector" + + "\022\021\n\tagency_id\030\001 \001(\t\022\020\n\010route_id\030\002 \001(\t\022\022\n" + + "\nroute_type\030\003 \001(\005\022.\n\004trip\030\004 \001(\0132 .transi" + + "t_realtime.TripDescriptor\022\017\n\007stop_id\030\005 \001" + + "(\t*\006\010\350\007\020\320\017\"\226\001\n\020TranslatedString\022C\n\013trans" + + "lation\030\001 \003(\0132..transit_realtime.Translat" + + "edString.Translation\0325\n\013Translation\022\014\n\004t" + + "ext\030\001 \002(\t\022\020\n\010language\030\002 \001(\t*\006\010\350\007\020\320\017*\006\010\350\007" + + "\020\320\017B\035\n\033com.google.transit.realtime"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[]{}); + internal_static_transit_realtime_FeedMessage_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_transit_realtime_FeedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_FeedMessage_descriptor, new java.lang.String[]{"Header", "Entity",}); + internal_static_transit_realtime_FeedHeader_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_transit_realtime_FeedHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_FeedHeader_descriptor, + new java.lang.String[]{"GtfsRealtimeVersion", "Incrementality", "Timestamp",}); + internal_static_transit_realtime_FeedEntity_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_transit_realtime_FeedEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_FeedEntity_descriptor, + new java.lang.String[]{"Id", "IsDeleted", "TripUpdate", "Vehicle", "Alert",}); + internal_static_transit_realtime_TripUpdate_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_transit_realtime_TripUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_TripUpdate_descriptor, + new java.lang.String[]{"Trip", "Vehicle", "StopTimeUpdate", "Timestamp", "Delay",}); + internal_static_transit_realtime_TripUpdate_StopTimeEvent_descriptor = internal_static_transit_realtime_TripUpdate_descriptor + .getNestedTypes().get(0); + internal_static_transit_realtime_TripUpdate_StopTimeEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_TripUpdate_StopTimeEvent_descriptor, + new java.lang.String[]{"Delay", "Time", "Uncertainty",}); + internal_static_transit_realtime_TripUpdate_StopTimeProperties_descriptor = internal_static_transit_realtime_TripUpdate_descriptor + .getNestedTypes().get(1); + internal_static_transit_realtime_TripUpdate_StopTimeProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_TripUpdate_StopTimeProperties_descriptor, + new java.lang.String[]{"AssignedStopId",}); + internal_static_transit_realtime_TripUpdate_StopTimeUpdate_descriptor = internal_static_transit_realtime_TripUpdate_descriptor + .getNestedTypes().get(2); + internal_static_transit_realtime_TripUpdate_StopTimeUpdate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_TripUpdate_StopTimeUpdate_descriptor, + new java.lang.String[]{"StopSequence", "StopId", "Arrival", "Departure", "ScheduleRelationship", + "StopTimeProperties",}); + internal_static_transit_realtime_VehiclePosition_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_transit_realtime_VehiclePosition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_VehiclePosition_descriptor, + new java.lang.String[]{"Trip", "Vehicle", "Position", "CurrentStopSequence", "StopId", "CurrentStatus", + "Timestamp", "CongestionLevel", "OccupancyStatus",}); + internal_static_transit_realtime_Alert_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_transit_realtime_Alert_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_Alert_descriptor, + new java.lang.String[]{"ActivePeriod", "InformedEntity", "Cause", "Effect", "Url", "HeaderText", + "DescriptionText", "TtsHeaderText", "TtsDescriptionText", "SeverityLevel",}); + internal_static_transit_realtime_TimeRange_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_transit_realtime_TimeRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_TimeRange_descriptor, new java.lang.String[]{"Start", "End",}); + internal_static_transit_realtime_Position_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_transit_realtime_Position_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_Position_descriptor, + new java.lang.String[]{"Latitude", "Longitude", "Bearing", "Odometer", "Speed",}); + internal_static_transit_realtime_TripDescriptor_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_transit_realtime_TripDescriptor_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_TripDescriptor_descriptor, new java.lang.String[]{"TripId", "RouteId", + "DirectionId", "StartTime", "StartDate", "ScheduleRelationship",}); + internal_static_transit_realtime_VehicleDescriptor_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_transit_realtime_VehicleDescriptor_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_VehicleDescriptor_descriptor, + new java.lang.String[]{"Id", "Label", "LicensePlate",}); + internal_static_transit_realtime_EntitySelector_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_transit_realtime_EntitySelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_EntitySelector_descriptor, + new java.lang.String[]{"AgencyId", "RouteId", "RouteType", "Trip", "StopId",}); + internal_static_transit_realtime_TranslatedString_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_transit_realtime_TranslatedString_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_TranslatedString_descriptor, new java.lang.String[]{"Translation",}); + internal_static_transit_realtime_TranslatedString_Translation_descriptor = internal_static_transit_realtime_TranslatedString_descriptor + .getNestedTypes().get(0); + internal_static_transit_realtime_TranslatedString_Translation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_transit_realtime_TranslatedString_Translation_descriptor, + new java.lang.String[]{"Text", "Language",}); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/fi/hsl/common/config/ConfigParser.java b/src/main/java/fi/hsl/common/config/ConfigParser.java index e6d308b7..ea62f007 100644 --- a/src/main/java/fi/hsl/common/config/ConfigParser.java +++ b/src/main/java/fi/hsl/common/config/ConfigParser.java @@ -14,7 +14,8 @@ public class ConfigParser { private static final Logger log = LoggerFactory.getLogger(ConfigParser.class); - private ConfigParser() {} + private ConfigParser() { + } /** * Create a valid Config from a configuration file and environment variables using default filename "environment.conf". diff --git a/src/main/java/fi/hsl/common/config/ConfigUtils.java b/src/main/java/fi/hsl/common/config/ConfigUtils.java index 51a29004..35346d38 100644 --- a/src/main/java/fi/hsl/common/config/ConfigUtils.java +++ b/src/main/java/fi/hsl/common/config/ConfigUtils.java @@ -14,7 +14,8 @@ public class ConfigUtils { private static final Logger log = LoggerFactory.getLogger(ConfigUtils.class); - private ConfigUtils() {} + private ConfigUtils() { + } @NotNull public static String getEnvOrThrow(@NotNull String name) throws IllegalArgumentException { @@ -29,8 +30,7 @@ public static Optional safeParseInt(@NotNull String value) { try { int n = Integer.parseInt(value); return Optional.of(n); - } - catch (NumberFormatException e) { + } catch (NumberFormatException e) { log.error("Failed to parse int from " + value, e); return Optional.empty(); } @@ -76,7 +76,8 @@ public static String getSecretFromFileOrThrow(@NotNull final String envName) thr } @NotNull - public static String getSecretFromFileOrThrow(@NotNull final String envName, final Optional defaultPath) throws Exception { + public static String getSecretFromFileOrThrow(@NotNull final String envName, final Optional defaultPath) + throws Exception { String secretFilePath; final Optional maybeSecretFilePath = getEnv(envName); if (maybeSecretFilePath.isPresent()) { diff --git a/src/main/java/fi/hsl/common/gtfsrt/FeedMessageFactory.java b/src/main/java/fi/hsl/common/gtfsrt/FeedMessageFactory.java index ef4a272a..ae06c049 100644 --- a/src/main/java/fi/hsl/common/gtfsrt/FeedMessageFactory.java +++ b/src/main/java/fi/hsl/common/gtfsrt/FeedMessageFactory.java @@ -6,54 +6,49 @@ import java.util.List; public class FeedMessageFactory { - private FeedMessageFactory(){} + private FeedMessageFactory() { + } @NotNull - private static GtfsRealtime.FeedMessage createDifferentialFeedMessage(@NotNull GtfsRealtime.FeedEntity entity, long timestampUtcSecs) { - return GtfsRealtime.FeedMessage.newBuilder() - .addEntity(entity) - .setHeader(createFeedHeader(GtfsRealtime.FeedHeader.Incrementality.DIFFERENTIAL, timestampUtcSecs)) - .build(); + private static GtfsRealtime.FeedMessage createDifferentialFeedMessage(@NotNull GtfsRealtime.FeedEntity entity, + long timestampUtcSecs) { + return GtfsRealtime.FeedMessage.newBuilder().addEntity(entity) + .setHeader(createFeedHeader(GtfsRealtime.FeedHeader.Incrementality.DIFFERENTIAL, timestampUtcSecs)) + .build(); } @NotNull - public static GtfsRealtime.FeedMessage createDifferentialFeedMessage(@NotNull String id, @NotNull GtfsRealtime.VehiclePosition vehiclePosition, long timestampUtcSecs) { - GtfsRealtime.FeedEntity entity = GtfsRealtime.FeedEntity.newBuilder() - .setVehicle(vehiclePosition) - .setId(id) - .build(); + public static GtfsRealtime.FeedMessage createDifferentialFeedMessage(@NotNull String id, + @NotNull GtfsRealtime.VehiclePosition vehiclePosition, long timestampUtcSecs) { + GtfsRealtime.FeedEntity entity = GtfsRealtime.FeedEntity.newBuilder().setVehicle(vehiclePosition).setId(id) + .build(); return createDifferentialFeedMessage(entity, timestampUtcSecs); } @NotNull - public static GtfsRealtime.FeedMessage createDifferentialFeedMessage(@NotNull String id, @NotNull GtfsRealtime.TripUpdate tripUpdate, long timestampUtcSecs) { - GtfsRealtime.FeedEntity entity = GtfsRealtime.FeedEntity.newBuilder() - .setTripUpdate(tripUpdate) - .setId(id) + public static GtfsRealtime.FeedMessage createDifferentialFeedMessage(@NotNull String id, + @NotNull GtfsRealtime.TripUpdate tripUpdate, long timestampUtcSecs) { + GtfsRealtime.FeedEntity entity = GtfsRealtime.FeedEntity.newBuilder().setTripUpdate(tripUpdate).setId(id) .build(); return createDifferentialFeedMessage(entity, timestampUtcSecs); } - @NotNull - public static GtfsRealtime.FeedMessage createFullFeedMessage(@NotNull List entities, long timestampUtcSecs) { - GtfsRealtime.FeedHeader header = createFeedHeader(GtfsRealtime.FeedHeader.Incrementality.FULL_DATASET, timestampUtcSecs); + public static GtfsRealtime.FeedMessage createFullFeedMessage(@NotNull List entities, + long timestampUtcSecs) { + GtfsRealtime.FeedHeader header = createFeedHeader(GtfsRealtime.FeedHeader.Incrementality.FULL_DATASET, + timestampUtcSecs); - return GtfsRealtime.FeedMessage.newBuilder() - .addAllEntity(entities) - .setHeader(header) - .build(); + return GtfsRealtime.FeedMessage.newBuilder().addAllEntity(entities).setHeader(header).build(); } @NotNull - public static GtfsRealtime.FeedHeader createFeedHeader(@NotNull GtfsRealtime.FeedHeader.Incrementality inc, long timestampUtcSecs) { - return GtfsRealtime.FeedHeader.newBuilder() - .setGtfsRealtimeVersion("2.0") - .setIncrementality(inc) - .setTimestamp(timestampUtcSecs) - .build(); + public static GtfsRealtime.FeedHeader createFeedHeader(@NotNull GtfsRealtime.FeedHeader.Incrementality inc, + long timestampUtcSecs) { + return GtfsRealtime.FeedHeader.newBuilder().setGtfsRealtimeVersion("2.0").setIncrementality(inc) + .setTimestamp(timestampUtcSecs).build(); } } diff --git a/src/main/java/fi/hsl/common/health/HealthServer.java b/src/main/java/fi/hsl/common/health/HealthServer.java index 5bf9a479..fc4d1611 100644 --- a/src/main/java/fi/hsl/common/health/HealthServer.java +++ b/src/main/java/fi/hsl/common/health/HealthServer.java @@ -22,8 +22,7 @@ public class HealthServer { public final int port; public final String endpoint; public final HttpServer httpServer; - private final ExecutorService healthCheckExecutor = - Executors.newCachedThreadPool(); + private final ExecutorService healthCheckExecutor = Executors.newCachedThreadPool(); private final List checks = new CopyOnWriteArrayList<>(); public HealthServer(final int port, @NotNull final String endpoint) throws IOException { @@ -38,7 +37,8 @@ public HealthServer(final int port, @NotNull final String endpoint) throws IOExc log.info("HealthServer started"); } - private void writeResponse(@NotNull final HttpExchange httpExchange, @NotNull final int responseCode, @NotNull final String responseBody) throws IOException { + private void writeResponse(@NotNull final HttpExchange httpExchange, @NotNull final int responseCode, + @NotNull final String responseBody) throws IOException { final byte[] response = responseBody.getBytes(StandardCharsets.UTF_8); httpExchange.getResponseHeaders().add("Content-Type", "text/plain; charset=" + StandardCharsets.UTF_8.name()); httpExchange.sendResponseHeaders(responseCode, response.length); @@ -95,8 +95,7 @@ public void clearChecks() { public boolean checkHealth() { try { - CompletionService executorCompletionService - = new ExecutorCompletionService<>(healthCheckExecutor); + CompletionService executorCompletionService = new ExecutorCompletionService<>(healthCheckExecutor); int n = checks.size(); List> futures = new ArrayList<>(n); try { @@ -110,7 +109,8 @@ public boolean checkHealth() { return false; // Return false immediately if any check fails } } catch (ExecutionException e) { - log.error("A health check task execution failed. Marking unhealthy.", e.getCause() != null ? e.getCause() : e); + log.error("A health check task execution failed. Marking unhealthy.", + e.getCause() != null ? e.getCause() : e); return false; } catch (InterruptedException e) { log.error("Health check interrupted. Marking unhealthy.", e); diff --git a/src/main/java/fi/hsl/common/hfp/HfpJson.java b/src/main/java/fi/hsl/common/hfp/HfpJson.java index f8f0fe1f..cbeff088 100644 --- a/src/main/java/fi/hsl/common/hfp/HfpJson.java +++ b/src/main/java/fi/hsl/common/hfp/HfpJson.java @@ -12,7 +12,8 @@ public class HfpJson { //Example payload: // {"VP":{"desi":"81","dir":"2","oper":22,"veh":792,"tst":"2018-04-05T17:38:36Z","tsi":1522949916,"spd":0.16,"hdg":225,"lat":60.194481,"long":25.03095,"acc":0,"dl":-25,"odo":2819,"drst":0,"oday":"2018-04-05","jrn":636,"line":112,"start":"20:25"}} - @JsonAttribute(nullable = false, name = "VP", alternativeNames = {"DUE", "ARR", "DEP", "ARS", "PDE", "PAS", "WAIT", "DOO", "DOC", "TLR", "TLA", "DA", "DOUT", "BA", "BOUT", "VJA", "VJOUT"}) + @JsonAttribute(nullable = false, name = "VP", alternativeNames = {"DUE", "ARR", "DEP", "ARS", "PDE", "PAS", "WAIT", + "DOO", "DOC", "TLR", "TLA", "DA", "DOUT", "BA", "BOUT", "VJA", "VJOUT"}) public Payload payload; @CompiledJson(onUnknown = CompiledJson.Behavior.IGNORE) @@ -125,8 +126,10 @@ public Double read(JsonReader reader) throws IOException { public static final JsonWriter.WriteObject JSON_WRITER = new JsonWriter.WriteObject() { public void write(JsonWriter writer, Double value) { - if (value == null) writer.writeNull(); - else NumberConverter.serializeNullable(value.intValue(), writer); + if (value == null) + writer.writeNull(); + else + NumberConverter.serializeNullable(value.intValue(), writer); } }; } diff --git a/src/main/java/fi/hsl/common/hfp/HfpParser.java b/src/main/java/fi/hsl/common/hfp/HfpParser.java index 3be5a7d8..1a262229 100644 --- a/src/main/java/fi/hsl/common/hfp/HfpParser.java +++ b/src/main/java/fi/hsl/common/hfp/HfpParser.java @@ -26,7 +26,7 @@ public class HfpParser { private static final Logger log = LoggerFactory.getLogger(HfpParser.class); static final Pattern topicVersionRegex = Pattern.compile("(^v\\d+|dev)"); - + private static Set vehiclesWithEmptyTransportMode = new HashSet<>(); // Let's use dsl-json (https://github.com/ngs-doo/dsl-json) for performance. @@ -36,10 +36,10 @@ public class HfpParser { //Note! Apparently not thread safe, for per thread reuse use ThreadLocal pattern or create separate instances final DslJson dslJson = new DslJson<>(Settings.withRuntime().allowArrayFormat(true).includeServiceLoader()); - + private static void foundVehicleWithEmptyTransportMode(String uniqueVehicleId) { vehiclesWithEmptyTransportMode.add(uniqueVehicleId); - + if (vehiclesWithEmptyTransportMode.size() > 100) { log.warn("Vehicles with empty transport mode: " + vehiclesWithEmptyTransportMode); vehiclesWithEmptyTransportMode.clear(); @@ -61,7 +61,7 @@ public HfpJson parseJson(@NotNull byte[] data) throws IOException, InvalidHfpPay return dslJson.deserialize(HfpJson.class, data, data.length); } catch (IOException ioe) { if (ioe instanceof ParsingException) { - throw new InvalidHfpPayloadException("Failed to parse HFP JSON", (ParsingException)ioe); + throw new InvalidHfpPayloadException("Failed to parse HFP JSON", (ParsingException) ioe); } else { throw ioe; } @@ -86,8 +86,7 @@ public Optional safeParse(@NotNull byte[] data) { try { HfpJson json = parseJson(data); return Optional.of(parsePayload(json)); - } - catch (Exception e) { + } catch (Exception e) { log.error("Failed to parse Json message {}", new String(data)); return Optional.empty(); } @@ -179,8 +178,7 @@ public static Hfp.Payload parsePayload(@NotNull HfpJson json) { public static Optional safeParseTopic(@NotNull String topic) { try { return Optional.of(parseTopic(topic)); - } - catch (Exception e) { + } catch (Exception e) { log.error("Failed to parse topic " + topic, e); return Optional.empty(); } @@ -189,8 +187,7 @@ public static Optional safeParseTopic(@NotNull String topic) { public static Optional safeParseTopic(@NotNull String topic, long receivedAtMs) { try { return Optional.of(parseTopic(topic, receivedAtMs)); - } - catch (Exception e) { + } catch (Exception e) { log.error("Failed to parse topic " + topic, e); return Optional.empty(); } @@ -221,16 +218,19 @@ public static Hfp.Topic parseTopic(@NotNull String topic, long receivedAtMs) thr final String versionStr = parts[index++]; builder.setTopicVersion(versionStr); - final Hfp.Topic.JourneyType journeyType = safeValueOf(Hfp.Topic.JourneyType.class, parts[index++]).orElseThrow(() -> new InvalidHfpTopicException("Unknown journey type: " + topic)); + final Hfp.Topic.JourneyType journeyType = safeValueOf(Hfp.Topic.JourneyType.class, parts[index++]) + .orElseThrow(() -> new InvalidHfpTopicException("Unknown journey type: " + topic)); builder.setJourneyType(journeyType); - final Hfp.Topic.TemporalType temporalType = safeValueOf(Hfp.Topic.TemporalType.class, parts[index++]).orElseThrow(() -> new InvalidHfpTopicException("Unknown temporal type: " + topic)); + final Hfp.Topic.TemporalType temporalType = safeValueOf(Hfp.Topic.TemporalType.class, parts[index++]) + .orElseThrow(() -> new InvalidHfpTopicException("Unknown temporal type: " + topic)); builder.setTemporalType(temporalType); if (versionStr.equals("v2")) { final String eventTypeStr = parts[index++]; if (eventTypeStr != null && !eventTypeStr.isEmpty()) { - final Hfp.Topic.EventType eventType = safeValueOf(Hfp.Topic.EventType.class, eventTypeStr.toUpperCase()).orElseThrow(() -> new InvalidHfpTopicException("Unknown event type: " + topic)); + final Hfp.Topic.EventType eventType = safeValueOf(Hfp.Topic.EventType.class, eventTypeStr.toUpperCase()) + .orElseThrow(() -> new InvalidHfpTopicException("Unknown event type: " + topic)); builder.setEventType(eventType); } } @@ -238,26 +238,27 @@ public static Hfp.Topic parseTopic(@NotNull String topic, long receivedAtMs) thr final String strTransportMode = parts[index++]; boolean transportModeIsEmpty = false; if (strTransportMode != null && !strTransportMode.isEmpty()) { - final Hfp.Topic.TransportMode transportMode = safeValueOf(Hfp.Topic.TransportMode.class, strTransportMode).orElseThrow(() -> new InvalidHfpTopicException("Unknown transport mode: " + topic)); + final Hfp.Topic.TransportMode transportMode = safeValueOf(Hfp.Topic.TransportMode.class, strTransportMode) + .orElseThrow(() -> new InvalidHfpTopicException("Unknown transport mode: " + topic)); builder.setTransportMode(transportMode); } else { transportModeIsEmpty = true; } - + final String operatorIdStr = parts[index++]; try { builder.setOperatorId(Integer.parseInt(operatorIdStr)); } catch (NumberFormatException e) { throw new InvalidHfpTopicException("Operator id is not number: " + operatorIdStr); } - + final String vehicleNumberStr = parts[index++]; try { builder.setVehicleNumber(Integer.parseInt(vehicleNumberStr)); } catch (NumberFormatException e) { throw new InvalidHfpTopicException("Vehicle number is not number: " + vehicleNumberStr); } - + builder.setUniqueVehicleId(createUniqueVehicleId(builder.getOperatorId(), builder.getVehicleNumber())); if (transportModeIsEmpty) { foundVehicleWithEmptyTransportMode(builder.getUniqueVehicleId()); @@ -269,16 +270,14 @@ public static Hfp.Topic parseTopic(@NotNull String topic, long receivedAtMs) thr HfpValidator.validateString(parts[index++]).ifPresent(builder::setStartTime); HfpValidator.validateString(parts[index++]).ifPresent(builder::setNextStop); safeParseInt(parts[index++]).ifPresent(builder::setGeohashLevel); - } - else { + } else { log.debug("could not parse Json's first batch of additional fields for topic {}", topic); } if (index + 4 <= parts.length) { Optional maybeGeoHash = parseGeoHash(parts, index); maybeGeoHash.map(hash -> hash.latitude).ifPresent(builder::setLatitude); maybeGeoHash.map(hash -> hash.longitude).ifPresent(builder::setLongitude); - } - else { + } else { log.debug("could not parse Json's second batch of additional fields (geohash) for topic {}", topic); } return builder.build(); @@ -325,8 +324,7 @@ static Optional parseGeoHash(@NotNull String[] parts, int startIndex) { geoHash.latitude = Double.parseDouble(latitude.toString()); geoHash.longitude = Double.parseDouble(longitude.toString()); maybeGeoHash = Optional.of(geoHash); - } - else { + } else { log.debug("Could not parse latitude & longitude from {}", firstLatLong); } } @@ -334,7 +332,6 @@ static Optional parseGeoHash(@NotNull String[] parts, int startIndex) { return maybeGeoHash; } - @NotNull static String createUniqueVehicleId(int ownerOperatorId, int vehicleNumber) { return ownerOperatorId + "/" + vehicleNumber; @@ -370,8 +367,7 @@ public static Optional safeParseInt(@Nullable String n) { else { try { return Optional.of(Integer.parseInt(n)); - } - catch (NumberFormatException e) { + } catch (NumberFormatException e) { log.error("Failed to convert {} to integer", n); return Optional.empty(); } @@ -391,8 +387,7 @@ public static Optional safeParseDate(@Nullable String date) { else { try { return Optional.of(Date.valueOf(date)); - } - catch (Exception e) { + } catch (Exception e) { log.error("Failed to convert {} to java.sql.Date", date); return Optional.empty(); } @@ -405,8 +400,7 @@ public static Optional safeParseLocalTime(@Nullable String time) { else { try { return Optional.of(LocalTime.parse(time)); - } - catch (Exception e) { + } catch (Exception e) { log.error("Failed to convert {} to LocalTime", time); return Optional.empty(); } @@ -433,8 +427,7 @@ public static Optional safeParseTimestamp(@Nullable String dt) { try { OffsetDateTime offsetDt = OffsetDateTime.parse(dt); return Optional.of(new Timestamp(offsetDt.toEpochSecond() * 1000L)); - } - catch (Exception e) { + } catch (Exception e) { log.error("Failed to convert {} to java.sql.Timestamp", dt); return Optional.empty(); } diff --git a/src/main/java/fi/hsl/common/hfp/HfpValidator.java b/src/main/java/fi/hsl/common/hfp/HfpValidator.java index 9d7dad16..781eac90 100644 --- a/src/main/java/fi/hsl/common/hfp/HfpValidator.java +++ b/src/main/java/fi/hsl/common/hfp/HfpValidator.java @@ -9,7 +9,6 @@ import javax.validation.constraints.Null; import java.util.Optional; - public class HfpValidator { private static final Logger log = LoggerFactory.getLogger(HfpParser.class); @@ -24,13 +23,13 @@ public static Optional validateString(@Nullable String str) { public static Optional validateLocationQualityMethod(@Nullable String str) { if (validateString(str).isPresent()) { switch (str) { - case "GPS": - case "ODO": - case "MAN": - case "DR": - case "N/A": + case "GPS" : + case "ODO" : + case "MAN" : + case "DR" : + case "N/A" : return Optional.of(str); - default: + default : log.warn("Received unknown location quality method: {}", str); return Optional.empty(); } diff --git a/src/main/java/fi/hsl/common/hfp/proto/Hfp.java b/src/main/java/fi/hsl/common/hfp/proto/Hfp.java index 6588e418..3966e9ec 100644 --- a/src/main/java/fi/hsl/common/hfp/proto/Hfp.java +++ b/src/main/java/fi/hsl/common/hfp/proto/Hfp.java @@ -4,11154 +4,10937 @@ package fi.hsl.common.hfp.proto; public final class Hfp { - private Hfp() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DataOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.Data) - com.google.protobuf.MessageOrBuilder { - - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - boolean hasSchemaVersion(); - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - int getSchemaVersion(); - - /** - * optional .proto.Topic topic = 2; - * @return Whether the topic field is set. - */ - boolean hasTopic(); - /** - * optional .proto.Topic topic = 2; - * @return The topic. - */ - fi.hsl.common.hfp.proto.Hfp.Topic getTopic(); - /** - * optional .proto.Topic topic = 2; - */ - fi.hsl.common.hfp.proto.Hfp.TopicOrBuilder getTopicOrBuilder(); - - /** - * required .proto.Payload payload = 3; - * @return Whether the payload field is set. - */ - boolean hasPayload(); - /** - * required .proto.Payload payload = 3; - * @return The payload. - */ - fi.hsl.common.hfp.proto.Hfp.Payload getPayload(); - /** - * required .proto.Payload payload = 3; - */ - fi.hsl.common.hfp.proto.Hfp.PayloadOrBuilder getPayloadOrBuilder(); - } - /** - * Protobuf type {@code proto.Data} - */ - public static final class Data extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.Data) - DataOrBuilder { - private static final long serialVersionUID = 0L; - // Use Data.newBuilder() to construct. - private Data(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Data() { - schemaVersion_ = 1; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Data(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Data_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.hfp.proto.Hfp.Data.class, fi.hsl.common.hfp.proto.Hfp.Data.Builder.class); - } - - private int bitField0_; - public static final int SCHEMAVERSION_FIELD_NUMBER = 1; - private int schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - - public static final int TOPIC_FIELD_NUMBER = 2; - private fi.hsl.common.hfp.proto.Hfp.Topic topic_; - /** - * optional .proto.Topic topic = 2; - * @return Whether the topic field is set. - */ - @java.lang.Override - public boolean hasTopic() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .proto.Topic topic = 2; - * @return The topic. - */ - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Topic getTopic() { - return topic_ == null ? fi.hsl.common.hfp.proto.Hfp.Topic.getDefaultInstance() : topic_; - } - /** - * optional .proto.Topic topic = 2; - */ - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.TopicOrBuilder getTopicOrBuilder() { - return topic_ == null ? fi.hsl.common.hfp.proto.Hfp.Topic.getDefaultInstance() : topic_; - } - - public static final int PAYLOAD_FIELD_NUMBER = 3; - private fi.hsl.common.hfp.proto.Hfp.Payload payload_; - /** - * required .proto.Payload payload = 3; - * @return Whether the payload field is set. - */ - @java.lang.Override - public boolean hasPayload() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required .proto.Payload payload = 3; - * @return The payload. - */ - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Payload getPayload() { - return payload_ == null ? fi.hsl.common.hfp.proto.Hfp.Payload.getDefaultInstance() : payload_; - } - /** - * required .proto.Payload payload = 3; - */ - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.PayloadOrBuilder getPayloadOrBuilder() { - return payload_ == null ? fi.hsl.common.hfp.proto.Hfp.Payload.getDefaultInstance() : payload_; - } - - 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 (!hasSchemaVersion()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPayload()) { - memoizedIsInitialized = 0; - return false; - } - if (hasTopic()) { - if (!getTopic().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (!getPayload().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.writeInt32(1, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getTopic()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getPayload()); - } - 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, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTopic()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPayload()); - } - 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 fi.hsl.common.hfp.proto.Hfp.Data)) { - return super.equals(obj); - } - fi.hsl.common.hfp.proto.Hfp.Data other = (fi.hsl.common.hfp.proto.Hfp.Data) obj; - - if (hasSchemaVersion() != other.hasSchemaVersion()) return false; - if (hasSchemaVersion()) { - if (getSchemaVersion() - != other.getSchemaVersion()) return false; - } - if (hasTopic() != other.hasTopic()) return false; - if (hasTopic()) { - if (!getTopic() - .equals(other.getTopic())) return false; - } - if (hasPayload() != other.hasPayload()) return false; - if (hasPayload()) { - if (!getPayload() - .equals(other.getPayload())) 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 (hasSchemaVersion()) { - hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getSchemaVersion(); - } - if (hasTopic()) { - hash = (37 * hash) + TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getTopic().hashCode(); - } - if (hasPayload()) { - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.hfp.proto.Hfp.Data parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.hfp.proto.Hfp.Data parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.hfp.proto.Hfp.Data prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + private Hfp() { + } + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.Data) + com.google.protobuf.MessageOrBuilder { + + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + boolean hasSchemaVersion(); + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + int getSchemaVersion(); + + /** + * optional .proto.Topic topic = 2; + * @return Whether the topic field is set. + */ + boolean hasTopic(); + /** + * optional .proto.Topic topic = 2; + * @return The topic. + */ + fi.hsl.common.hfp.proto.Hfp.Topic getTopic(); + /** + * optional .proto.Topic topic = 2; + */ + fi.hsl.common.hfp.proto.Hfp.TopicOrBuilder getTopicOrBuilder(); + + /** + * required .proto.Payload payload = 3; + * @return Whether the payload field is set. + */ + boolean hasPayload(); + /** + * required .proto.Payload payload = 3; + * @return The payload. + */ + fi.hsl.common.hfp.proto.Hfp.Payload getPayload(); + /** + * required .proto.Payload payload = 3; + */ + fi.hsl.common.hfp.proto.Hfp.PayloadOrBuilder getPayloadOrBuilder(); } /** * Protobuf type {@code proto.Data} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.Data) - fi.hsl.common.hfp.proto.Hfp.DataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Data_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.hfp.proto.Hfp.Data.class, fi.hsl.common.hfp.proto.Hfp.Data.Builder.class); - } - - // Construct using fi.hsl.common.hfp.proto.Hfp.Data.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTopicFieldBuilder(); - getPayloadFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - schemaVersion_ = 1; - topic_ = null; - if (topicBuilder_ != null) { - topicBuilder_.dispose(); - topicBuilder_ = null; - } - payload_ = null; - if (payloadBuilder_ != null) { - payloadBuilder_.dispose(); - payloadBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Data_descriptor; - } - - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Data getDefaultInstanceForType() { - return fi.hsl.common.hfp.proto.Hfp.Data.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Data build() { - fi.hsl.common.hfp.proto.Hfp.Data result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Data buildPartial() { - fi.hsl.common.hfp.proto.Hfp.Data result = new fi.hsl.common.hfp.proto.Hfp.Data(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.hfp.proto.Hfp.Data result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.schemaVersion_ = schemaVersion_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.topic_ = topicBuilder_ == null - ? topic_ - : topicBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.payload_ = payloadBuilder_ == null - ? payload_ - : payloadBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.hfp.proto.Hfp.Data) { - return mergeFrom((fi.hsl.common.hfp.proto.Hfp.Data)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.hfp.proto.Hfp.Data other) { - if (other == fi.hsl.common.hfp.proto.Hfp.Data.getDefaultInstance()) return this; - if (other.hasSchemaVersion()) { - setSchemaVersion(other.getSchemaVersion()); - } - if (other.hasTopic()) { - mergeTopic(other.getTopic()); - } - if (other.hasPayload()) { - mergePayload(other.getPayload()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSchemaVersion()) { - return false; - } - if (!hasPayload()) { - return false; - } - if (hasTopic()) { - if (!getTopic().isInitialized()) { - return false; - } - } - if (!getPayload().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: { - schemaVersion_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getTopicFieldBuilder().getBuilder(), + public static final class Data extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.Data) + DataOrBuilder { + private static final long serialVersionUID = 0L; + // Use Data.newBuilder() to construct. + private Data(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Data() { + schemaVersion_ = 1; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Data(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Data_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Data_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.hfp.proto.Hfp.Data.class, + fi.hsl.common.hfp.proto.Hfp.Data.Builder.class); + } + + private int bitField0_; + public static final int SCHEMAVERSION_FIELD_NUMBER = 1; + private int schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + + public static final int TOPIC_FIELD_NUMBER = 2; + private fi.hsl.common.hfp.proto.Hfp.Topic topic_; + /** + * optional .proto.Topic topic = 2; + * @return Whether the topic field is set. + */ + @java.lang.Override + public boolean hasTopic() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .proto.Topic topic = 2; + * @return The topic. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Topic getTopic() { + return topic_ == null ? fi.hsl.common.hfp.proto.Hfp.Topic.getDefaultInstance() : topic_; + } + /** + * optional .proto.Topic topic = 2; + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.TopicOrBuilder getTopicOrBuilder() { + return topic_ == null ? fi.hsl.common.hfp.proto.Hfp.Topic.getDefaultInstance() : topic_; + } + + public static final int PAYLOAD_FIELD_NUMBER = 3; + private fi.hsl.common.hfp.proto.Hfp.Payload payload_; + /** + * required .proto.Payload payload = 3; + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required .proto.Payload payload = 3; + * @return The payload. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Payload getPayload() { + return payload_ == null ? fi.hsl.common.hfp.proto.Hfp.Payload.getDefaultInstance() : payload_; + } + /** + * required .proto.Payload payload = 3; + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.PayloadOrBuilder getPayloadOrBuilder() { + return payload_ == null ? fi.hsl.common.hfp.proto.Hfp.Payload.getDefaultInstance() : payload_; + } + + 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 (!hasSchemaVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPayload()) { + memoizedIsInitialized = 0; + return false; + } + if (hasTopic()) { + if (!getTopic().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (!getPayload().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.writeInt32(1, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTopic()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getPayload()); + } + 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, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTopic()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPayload()); + } + 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 fi.hsl.common.hfp.proto.Hfp.Data)) { + return super.equals(obj); + } + fi.hsl.common.hfp.proto.Hfp.Data other = (fi.hsl.common.hfp.proto.Hfp.Data) obj; + + if (hasSchemaVersion() != other.hasSchemaVersion()) + return false; + if (hasSchemaVersion()) { + if (getSchemaVersion() != other.getSchemaVersion()) + return false; + } + if (hasTopic() != other.hasTopic()) + return false; + if (hasTopic()) { + if (!getTopic().equals(other.getTopic())) + return false; + } + if (hasPayload() != other.hasPayload()) + return false; + if (hasPayload()) { + if (!getPayload().equals(other.getPayload())) + 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 (hasSchemaVersion()) { + hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion(); + } + if (hasTopic()) { + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + } + if (hasPayload()) { + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.hfp.proto.Hfp.Data parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.hfp.proto.Hfp.Data parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.hfp.proto.Hfp.Data parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.hfp.proto.Hfp.Data prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.Data} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.Data) + fi.hsl.common.hfp.proto.Hfp.DataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Data_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Data_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.hfp.proto.Hfp.Data.class, + fi.hsl.common.hfp.proto.Hfp.Data.Builder.class); + } + + // Construct using fi.hsl.common.hfp.proto.Hfp.Data.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTopicFieldBuilder(); + getPayloadFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schemaVersion_ = 1; + topic_ = null; + if (topicBuilder_ != null) { + topicBuilder_.dispose(); + topicBuilder_ = null; + } + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); + payloadBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Data_descriptor; + } + + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Data getDefaultInstanceForType() { + return fi.hsl.common.hfp.proto.Hfp.Data.getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Data build() { + fi.hsl.common.hfp.proto.Hfp.Data result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Data buildPartial() { + fi.hsl.common.hfp.proto.Hfp.Data result = new fi.hsl.common.hfp.proto.Hfp.Data(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(fi.hsl.common.hfp.proto.Hfp.Data result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schemaVersion_ = schemaVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.topic_ = topicBuilder_ == null ? topic_ : topicBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.hfp.proto.Hfp.Data) { + return mergeFrom((fi.hsl.common.hfp.proto.Hfp.Data) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(fi.hsl.common.hfp.proto.Hfp.Data other) { + if (other == fi.hsl.common.hfp.proto.Hfp.Data.getDefaultInstance()) + return this; + if (other.hasSchemaVersion()) { + setSchemaVersion(other.getSchemaVersion()); + } + if (other.hasTopic()) { + mergeTopic(other.getTopic()); + } + if (other.hasPayload()) { + mergePayload(other.getPayload()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasSchemaVersion()) { + return false; + } + if (!hasPayload()) { + return false; + } + if (hasTopic()) { + if (!getTopic().isInitialized()) { + return false; + } + } + if (!getPayload().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 : { + schemaVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18 : { + input.readMessage(getTopicFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26 : { + input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry); + 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 int schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(int value) { + + schemaVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + schemaVersion_ = 1; + onChanged(); + return this; + } + + private fi.hsl.common.hfp.proto.Hfp.Topic topic_; + private com.google.protobuf.SingleFieldBuilderV3 topicBuilder_; + /** + * optional .proto.Topic topic = 2; + * @return Whether the topic field is set. + */ + public boolean hasTopic() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .proto.Topic topic = 2; + * @return The topic. + */ + public fi.hsl.common.hfp.proto.Hfp.Topic getTopic() { + if (topicBuilder_ == null) { + return topic_ == null ? fi.hsl.common.hfp.proto.Hfp.Topic.getDefaultInstance() : topic_; + } else { + return topicBuilder_.getMessage(); + } + } + /** + * optional .proto.Topic topic = 2; + */ + public Builder setTopic(fi.hsl.common.hfp.proto.Hfp.Topic value) { + if (topicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + topic_ = value; + } else { + topicBuilder_.setMessage(value); + } bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getPayloadFieldBuilder().getBuilder(), - extensionRegistry); + onChanged(); + return this; + } + /** + * optional .proto.Topic topic = 2; + */ + public Builder setTopic(fi.hsl.common.hfp.proto.Hfp.Topic.Builder builderForValue) { + if (topicBuilder_ == null) { + topic_ = builderForValue.build(); + } else { + topicBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional .proto.Topic topic = 2; + */ + public Builder mergeTopic(fi.hsl.common.hfp.proto.Hfp.Topic value) { + if (topicBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && topic_ != null + && topic_ != fi.hsl.common.hfp.proto.Hfp.Topic.getDefaultInstance()) { + getTopicBuilder().mergeFrom(value); + } else { + topic_ = value; + } + } else { + topicBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional .proto.Topic topic = 2; + */ + public Builder clearTopic() { + bitField0_ = (bitField0_ & ~0x00000002); + topic_ = null; + if (topicBuilder_ != null) { + topicBuilder_.dispose(); + topicBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .proto.Topic topic = 2; + */ + public fi.hsl.common.hfp.proto.Hfp.Topic.Builder getTopicBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTopicFieldBuilder().getBuilder(); + } + /** + * optional .proto.Topic topic = 2; + */ + public fi.hsl.common.hfp.proto.Hfp.TopicOrBuilder getTopicOrBuilder() { + if (topicBuilder_ != null) { + return topicBuilder_.getMessageOrBuilder(); + } else { + return topic_ == null ? fi.hsl.common.hfp.proto.Hfp.Topic.getDefaultInstance() : topic_; + } + } + /** + * optional .proto.Topic topic = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTopicFieldBuilder() { + if (topicBuilder_ == null) { + topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTopic(), getParentForChildren(), isClean()); + topic_ = null; + } + return topicBuilder_; + } + + private fi.hsl.common.hfp.proto.Hfp.Payload payload_; + private com.google.protobuf.SingleFieldBuilderV3 payloadBuilder_; + /** + * required .proto.Payload payload = 3; + * @return Whether the payload field is set. + */ + public boolean hasPayload() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required .proto.Payload payload = 3; + * @return The payload. + */ + public fi.hsl.common.hfp.proto.Hfp.Payload getPayload() { + if (payloadBuilder_ == null) { + return payload_ == null ? fi.hsl.common.hfp.proto.Hfp.Payload.getDefaultInstance() : payload_; + } else { + return payloadBuilder_.getMessage(); + } + } + /** + * required .proto.Payload payload = 3; + */ + public Builder setPayload(fi.hsl.common.hfp.proto.Hfp.Payload value) { + if (payloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + } else { + payloadBuilder_.setMessage(value); + } 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 int schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @param value The schemaVersion to set. - * @return This builder for chaining. - */ - public Builder setSchemaVersion(int value) { - - schemaVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return This builder for chaining. - */ - public Builder clearSchemaVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - schemaVersion_ = 1; - onChanged(); - return this; - } - - private fi.hsl.common.hfp.proto.Hfp.Topic topic_; - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.hfp.proto.Hfp.Topic, fi.hsl.common.hfp.proto.Hfp.Topic.Builder, fi.hsl.common.hfp.proto.Hfp.TopicOrBuilder> topicBuilder_; - /** - * optional .proto.Topic topic = 2; - * @return Whether the topic field is set. - */ - public boolean hasTopic() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .proto.Topic topic = 2; - * @return The topic. - */ - public fi.hsl.common.hfp.proto.Hfp.Topic getTopic() { - if (topicBuilder_ == null) { - return topic_ == null ? fi.hsl.common.hfp.proto.Hfp.Topic.getDefaultInstance() : topic_; - } else { - return topicBuilder_.getMessage(); - } - } - /** - * optional .proto.Topic topic = 2; - */ - public Builder setTopic(fi.hsl.common.hfp.proto.Hfp.Topic value) { - if (topicBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - topic_ = value; - } else { - topicBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional .proto.Topic topic = 2; - */ - public Builder setTopic( - fi.hsl.common.hfp.proto.Hfp.Topic.Builder builderForValue) { - if (topicBuilder_ == null) { - topic_ = builderForValue.build(); - } else { - topicBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional .proto.Topic topic = 2; - */ - public Builder mergeTopic(fi.hsl.common.hfp.proto.Hfp.Topic value) { - if (topicBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - topic_ != null && - topic_ != fi.hsl.common.hfp.proto.Hfp.Topic.getDefaultInstance()) { - getTopicBuilder().mergeFrom(value); - } else { - topic_ = value; - } - } else { - topicBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional .proto.Topic topic = 2; - */ - public Builder clearTopic() { - bitField0_ = (bitField0_ & ~0x00000002); - topic_ = null; - if (topicBuilder_ != null) { - topicBuilder_.dispose(); - topicBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .proto.Topic topic = 2; - */ - public fi.hsl.common.hfp.proto.Hfp.Topic.Builder getTopicBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getTopicFieldBuilder().getBuilder(); - } - /** - * optional .proto.Topic topic = 2; - */ - public fi.hsl.common.hfp.proto.Hfp.TopicOrBuilder getTopicOrBuilder() { - if (topicBuilder_ != null) { - return topicBuilder_.getMessageOrBuilder(); - } else { - return topic_ == null ? - fi.hsl.common.hfp.proto.Hfp.Topic.getDefaultInstance() : topic_; - } - } - /** - * optional .proto.Topic topic = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.hfp.proto.Hfp.Topic, fi.hsl.common.hfp.proto.Hfp.Topic.Builder, fi.hsl.common.hfp.proto.Hfp.TopicOrBuilder> - getTopicFieldBuilder() { - if (topicBuilder_ == null) { - topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.hfp.proto.Hfp.Topic, fi.hsl.common.hfp.proto.Hfp.Topic.Builder, fi.hsl.common.hfp.proto.Hfp.TopicOrBuilder>( - getTopic(), - getParentForChildren(), - isClean()); - topic_ = null; - } - return topicBuilder_; - } - - private fi.hsl.common.hfp.proto.Hfp.Payload payload_; - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.hfp.proto.Hfp.Payload, fi.hsl.common.hfp.proto.Hfp.Payload.Builder, fi.hsl.common.hfp.proto.Hfp.PayloadOrBuilder> payloadBuilder_; - /** - * required .proto.Payload payload = 3; - * @return Whether the payload field is set. - */ - public boolean hasPayload() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required .proto.Payload payload = 3; - * @return The payload. - */ - public fi.hsl.common.hfp.proto.Hfp.Payload getPayload() { - if (payloadBuilder_ == null) { - return payload_ == null ? fi.hsl.common.hfp.proto.Hfp.Payload.getDefaultInstance() : payload_; - } else { - return payloadBuilder_.getMessage(); - } - } - /** - * required .proto.Payload payload = 3; - */ - public Builder setPayload(fi.hsl.common.hfp.proto.Hfp.Payload value) { - if (payloadBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - } else { - payloadBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required .proto.Payload payload = 3; - */ - public Builder setPayload( - fi.hsl.common.hfp.proto.Hfp.Payload.Builder builderForValue) { - if (payloadBuilder_ == null) { - payload_ = builderForValue.build(); - } else { - payloadBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required .proto.Payload payload = 3; - */ - public Builder mergePayload(fi.hsl.common.hfp.proto.Hfp.Payload value) { - if (payloadBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - payload_ != null && - payload_ != fi.hsl.common.hfp.proto.Hfp.Payload.getDefaultInstance()) { - getPayloadBuilder().mergeFrom(value); - } else { - payload_ = value; - } - } else { - payloadBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required .proto.Payload payload = 3; - */ - public Builder clearPayload() { - bitField0_ = (bitField0_ & ~0x00000004); - payload_ = null; - if (payloadBuilder_ != null) { - payloadBuilder_.dispose(); - payloadBuilder_ = null; - } - onChanged(); - return this; - } - /** - * required .proto.Payload payload = 3; - */ - public fi.hsl.common.hfp.proto.Hfp.Payload.Builder getPayloadBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getPayloadFieldBuilder().getBuilder(); - } - /** - * required .proto.Payload payload = 3; - */ - public fi.hsl.common.hfp.proto.Hfp.PayloadOrBuilder getPayloadOrBuilder() { - if (payloadBuilder_ != null) { - return payloadBuilder_.getMessageOrBuilder(); - } else { - return payload_ == null ? - fi.hsl.common.hfp.proto.Hfp.Payload.getDefaultInstance() : payload_; - } - } - /** - * required .proto.Payload payload = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.hfp.proto.Hfp.Payload, fi.hsl.common.hfp.proto.Hfp.Payload.Builder, fi.hsl.common.hfp.proto.Hfp.PayloadOrBuilder> - getPayloadFieldBuilder() { - if (payloadBuilder_ == null) { - payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.hfp.proto.Hfp.Payload, fi.hsl.common.hfp.proto.Hfp.Payload.Builder, fi.hsl.common.hfp.proto.Hfp.PayloadOrBuilder>( - getPayload(), - getParentForChildren(), - isClean()); - payload_ = null; - } - return payloadBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.Data) - } - - // @@protoc_insertion_point(class_scope:proto.Data) - private static final fi.hsl.common.hfp.proto.Hfp.Data DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.hfp.proto.Hfp.Data(); - } - - public static fi.hsl.common.hfp.proto.Hfp.Data getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Data parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Data getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + onChanged(); + return this; + } + /** + * required .proto.Payload payload = 3; + */ + public Builder setPayload(fi.hsl.common.hfp.proto.Hfp.Payload.Builder builderForValue) { + if (payloadBuilder_ == null) { + payload_ = builderForValue.build(); + } else { + payloadBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required .proto.Payload payload = 3; + */ + public Builder mergePayload(fi.hsl.common.hfp.proto.Hfp.Payload value) { + if (payloadBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && payload_ != null + && payload_ != fi.hsl.common.hfp.proto.Hfp.Payload.getDefaultInstance()) { + getPayloadBuilder().mergeFrom(value); + } else { + payload_ = value; + } + } else { + payloadBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required .proto.Payload payload = 3; + */ + public Builder clearPayload() { + bitField0_ = (bitField0_ & ~0x00000004); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); + payloadBuilder_ = null; + } + onChanged(); + return this; + } + /** + * required .proto.Payload payload = 3; + */ + public fi.hsl.common.hfp.proto.Hfp.Payload.Builder getPayloadBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPayloadFieldBuilder().getBuilder(); + } + /** + * required .proto.Payload payload = 3; + */ + public fi.hsl.common.hfp.proto.Hfp.PayloadOrBuilder getPayloadOrBuilder() { + if (payloadBuilder_ != null) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + return payload_ == null ? fi.hsl.common.hfp.proto.Hfp.Payload.getDefaultInstance() : payload_; + } + } + /** + * required .proto.Payload payload = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getPayload(), getParentForChildren(), isClean()); + payload_ = null; + } + return payloadBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.Data) + } + + // @@protoc_insertion_point(class_scope:proto.Data) + private static final fi.hsl.common.hfp.proto.Hfp.Data DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.hfp.proto.Hfp.Data(); + } + + public static fi.hsl.common.hfp.proto.Hfp.Data getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Data parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Data getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TopicOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.Topic) + com.google.protobuf.MessageOrBuilder { + + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + boolean hasSchemaVersion(); + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + int getSchemaVersion(); + + /** + *
+         * Our server timestamp as Epoch ms
+         * 
+ * + * required int64 received_at = 2; + * @return Whether the receivedAt field is set. + */ + boolean hasReceivedAt(); + /** + *
+         * Our server timestamp as Epoch ms
+         * 
+ * + * required int64 received_at = 2; + * @return The receivedAt. + */ + long getReceivedAt(); + + /** + * required string topic_prefix = 3; + * @return Whether the topicPrefix field is set. + */ + boolean hasTopicPrefix(); + /** + * required string topic_prefix = 3; + * @return The topicPrefix. + */ + java.lang.String getTopicPrefix(); + /** + * required string topic_prefix = 3; + * @return The bytes for topicPrefix. + */ + com.google.protobuf.ByteString getTopicPrefixBytes(); + + /** + * required string topic_version = 4; + * @return Whether the topicVersion field is set. + */ + boolean hasTopicVersion(); + /** + * required string topic_version = 4; + * @return The topicVersion. + */ + java.lang.String getTopicVersion(); + /** + * required string topic_version = 4; + * @return The bytes for topicVersion. + */ + com.google.protobuf.ByteString getTopicVersionBytes(); + + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @return Whether the journeyType field is set. + */ + boolean hasJourneyType(); + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @return The journeyType. + */ + fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType getJourneyType(); + + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @return Whether the temporalType field is set. + */ + boolean hasTemporalType(); + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @return The temporalType. + */ + fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType getTemporalType(); + + /** + *
+         * v2
+         * 
+ * + * optional .proto.Topic.EventType event_type = 7; + * @return Whether the eventType field is set. + */ + boolean hasEventType(); + /** + *
+         * v2
+         * 
+ * + * optional .proto.Topic.EventType event_type = 7; + * @return The eventType. + */ + fi.hsl.common.hfp.proto.Hfp.Topic.EventType getEventType(); + + /** + *
+         * Optional because of rare bug in data source systems
+         * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @return Whether the transportMode field is set. + */ + boolean hasTransportMode(); + /** + *
+         * Optional because of rare bug in data source systems
+         * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @return The transportMode. + */ + fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode getTransportMode(); + + /** + * required int32 operator_id = 9; + * @return Whether the operatorId field is set. + */ + boolean hasOperatorId(); + /** + * required int32 operator_id = 9; + * @return The operatorId. + */ + int getOperatorId(); + + /** + * required int32 vehicle_number = 10; + * @return Whether the vehicleNumber field is set. + */ + boolean hasVehicleNumber(); + /** + * required int32 vehicle_number = 10; + * @return The vehicleNumber. + */ + int getVehicleNumber(); + + /** + * required string unique_vehicle_id = 11; + * @return Whether the uniqueVehicleId field is set. + */ + boolean hasUniqueVehicleId(); + /** + * required string unique_vehicle_id = 11; + * @return The uniqueVehicleId. + */ + java.lang.String getUniqueVehicleId(); + /** + * required string unique_vehicle_id = 11; + * @return The bytes for uniqueVehicleId. + */ + com.google.protobuf.ByteString getUniqueVehicleIdBytes(); + + /** + * optional string route_id = 12; + * @return Whether the routeId field is set. + */ + boolean hasRouteId(); + /** + * optional string route_id = 12; + * @return The routeId. + */ + java.lang.String getRouteId(); + /** + * optional string route_id = 12; + * @return The bytes for routeId. + */ + com.google.protobuf.ByteString getRouteIdBytes(); + + /** + * optional int32 direction_id = 13; + * @return Whether the directionId field is set. + */ + boolean hasDirectionId(); + /** + * optional int32 direction_id = 13; + * @return The directionId. + */ + int getDirectionId(); + + /** + * optional string headsign = 14; + * @return Whether the headsign field is set. + */ + boolean hasHeadsign(); + /** + * optional string headsign = 14; + * @return The headsign. + */ + java.lang.String getHeadsign(); + /** + * optional string headsign = 14; + * @return The bytes for headsign. + */ + com.google.protobuf.ByteString getHeadsignBytes(); + + /** + * optional string start_time = 15; + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * optional string start_time = 15; + * @return The startTime. + */ + java.lang.String getStartTime(); + /** + * optional string start_time = 15; + * @return The bytes for startTime. + */ + com.google.protobuf.ByteString getStartTimeBytes(); + + /** + * optional string next_stop = 16; + * @return Whether the nextStop field is set. + */ + boolean hasNextStop(); + /** + * optional string next_stop = 16; + * @return The nextStop. + */ + java.lang.String getNextStop(); + /** + * optional string next_stop = 16; + * @return The bytes for nextStop. + */ + com.google.protobuf.ByteString getNextStopBytes(); + + /** + * optional int32 geohash_level = 17; + * @return Whether the geohashLevel field is set. + */ + boolean hasGeohashLevel(); + /** + * optional int32 geohash_level = 17; + * @return The geohashLevel. + */ + int getGeohashLevel(); + + /** + * optional double latitude = 18; + * @return Whether the latitude field is set. + */ + boolean hasLatitude(); + /** + * optional double latitude = 18; + * @return The latitude. + */ + double getLatitude(); + + /** + * optional double longitude = 19; + * @return Whether the longitude field is set. + */ + boolean hasLongitude(); + /** + * optional double longitude = 19; + * @return The longitude. + */ + double getLongitude(); } - - } - - public interface TopicOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.Topic) - com.google.protobuf.MessageOrBuilder { - - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - boolean hasSchemaVersion(); - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - int getSchemaVersion(); - - /** - *
-     * Our server timestamp as Epoch ms
-     * 
- * - * required int64 received_at = 2; - * @return Whether the receivedAt field is set. - */ - boolean hasReceivedAt(); - /** - *
-     * Our server timestamp as Epoch ms
-     * 
- * - * required int64 received_at = 2; - * @return The receivedAt. - */ - long getReceivedAt(); - - /** - * required string topic_prefix = 3; - * @return Whether the topicPrefix field is set. - */ - boolean hasTopicPrefix(); - /** - * required string topic_prefix = 3; - * @return The topicPrefix. - */ - java.lang.String getTopicPrefix(); - /** - * required string topic_prefix = 3; - * @return The bytes for topicPrefix. - */ - com.google.protobuf.ByteString - getTopicPrefixBytes(); - - /** - * required string topic_version = 4; - * @return Whether the topicVersion field is set. - */ - boolean hasTopicVersion(); - /** - * required string topic_version = 4; - * @return The topicVersion. - */ - java.lang.String getTopicVersion(); - /** - * required string topic_version = 4; - * @return The bytes for topicVersion. - */ - com.google.protobuf.ByteString - getTopicVersionBytes(); - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @return Whether the journeyType field is set. - */ - boolean hasJourneyType(); - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @return The journeyType. - */ - fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType getJourneyType(); - - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @return Whether the temporalType field is set. - */ - boolean hasTemporalType(); - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @return The temporalType. - */ - fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType getTemporalType(); - - /** - *
-     * v2
-     * 
- * - * optional .proto.Topic.EventType event_type = 7; - * @return Whether the eventType field is set. - */ - boolean hasEventType(); - /** - *
-     * v2
-     * 
- * - * optional .proto.Topic.EventType event_type = 7; - * @return The eventType. + * Protobuf type {@code proto.Topic} */ - fi.hsl.common.hfp.proto.Hfp.Topic.EventType getEventType(); + public static final class Topic extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.Topic) + TopicOrBuilder { + private static final long serialVersionUID = 0L; + // Use Topic.newBuilder() to construct. + private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Topic() { + schemaVersion_ = 1; + topicPrefix_ = ""; + topicVersion_ = ""; + journeyType_ = 0; + temporalType_ = 0; + eventType_ = 0; + transportMode_ = 0; + uniqueVehicleId_ = ""; + routeId_ = ""; + headsign_ = ""; + startTime_ = ""; + nextStop_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Topic(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Topic_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Topic_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.hfp.proto.Hfp.Topic.class, + fi.hsl.common.hfp.proto.Hfp.Topic.Builder.class); + } + + /** + * Protobuf enum {@code proto.Topic.JourneyType} + */ + public enum JourneyType implements com.google.protobuf.ProtocolMessageEnum { + /** + * journey = 0; + */ + journey(0), + /** + * deadrun = 1; + */ + deadrun(1), + /** + * signoff = 2; + */ + signoff(2),; + + /** + * journey = 0; + */ + public static final int journey_VALUE = 0; + /** + * deadrun = 1; + */ + public static final int deadrun_VALUE = 1; + /** + * signoff = 2; + */ + public static final int signoff_VALUE = 2; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static JourneyType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static JourneyType forNumber(int value) { + switch (value) { + case 0 : + return journey; + case 1 : + return deadrun; + case 2 : + return signoff; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public JourneyType findValueByNumber(int number) { + return JourneyType.forNumber(number); + } + }; - /** - *
-     * Optional because of rare bug in data source systems
-     * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @return Whether the transportMode field is set. - */ - boolean hasTransportMode(); - /** - *
-     * Optional because of rare bug in data source systems
-     * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @return The transportMode. - */ - fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode getTransportMode(); + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.hfp.proto.Hfp.Topic.getDescriptor().getEnumTypes().get(0); + } + + private static final JourneyType[] VALUES = values(); + + public static JourneyType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private JourneyType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.Topic.JourneyType) + } + + /** + * Protobuf enum {@code proto.Topic.TemporalType} + */ + public enum TemporalType implements com.google.protobuf.ProtocolMessageEnum { + /** + * ongoing = 0; + */ + ongoing(0), + /** + * upcoming = 1; + */ + upcoming(1),; + + /** + * ongoing = 0; + */ + public static final int ongoing_VALUE = 0; + /** + * upcoming = 1; + */ + public static final int upcoming_VALUE = 1; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TemporalType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TemporalType forNumber(int value) { + switch (value) { + case 0 : + return ongoing; + case 1 : + return upcoming; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public TemporalType findValueByNumber(int number) { + return TemporalType.forNumber(number); + } + }; - /** - * required int32 operator_id = 9; - * @return Whether the operatorId field is set. - */ - boolean hasOperatorId(); - /** - * required int32 operator_id = 9; - * @return The operatorId. - */ - int getOperatorId(); + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.hfp.proto.Hfp.Topic.getDescriptor().getEnumTypes().get(1); + } + + private static final TemporalType[] VALUES = values(); + + public static TemporalType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TemporalType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.Topic.TemporalType) + } + + /** + * Protobuf enum {@code proto.Topic.EventType} + */ + public enum EventType implements com.google.protobuf.ProtocolMessageEnum { + /** + * VP = 0; + */ + VP(0), + /** + * DUE = 1; + */ + DUE(1), + /** + * ARR = 2; + */ + ARR(2), + /** + * ARS = 3; + */ + ARS(3), + /** + * PDE = 4; + */ + PDE(4), + /** + * DEP = 5; + */ + DEP(5), + /** + * PAS = 6; + */ + PAS(6), + /** + * WAIT = 7; + */ + WAIT(7), + /** + * DOO = 8; + */ + DOO(8), + /** + * DOC = 9; + */ + DOC(9), + /** + * TLR = 10; + */ + TLR(10), + /** + * TLA = 11; + */ + TLA(11), + /** + * DA = 12; + */ + DA(12), + /** + * DOUT = 13; + */ + DOUT(13), + /** + * BA = 14; + */ + BA(14), + /** + * BOUT = 15; + */ + BOUT(15), + /** + * VJA = 16; + */ + VJA(16), + /** + * VJOUT = 17; + */ + VJOUT(17),; + + /** + * VP = 0; + */ + public static final int VP_VALUE = 0; + /** + * DUE = 1; + */ + public static final int DUE_VALUE = 1; + /** + * ARR = 2; + */ + public static final int ARR_VALUE = 2; + /** + * ARS = 3; + */ + public static final int ARS_VALUE = 3; + /** + * PDE = 4; + */ + public static final int PDE_VALUE = 4; + /** + * DEP = 5; + */ + public static final int DEP_VALUE = 5; + /** + * PAS = 6; + */ + public static final int PAS_VALUE = 6; + /** + * WAIT = 7; + */ + public static final int WAIT_VALUE = 7; + /** + * DOO = 8; + */ + public static final int DOO_VALUE = 8; + /** + * DOC = 9; + */ + public static final int DOC_VALUE = 9; + /** + * TLR = 10; + */ + public static final int TLR_VALUE = 10; + /** + * TLA = 11; + */ + public static final int TLA_VALUE = 11; + /** + * DA = 12; + */ + public static final int DA_VALUE = 12; + /** + * DOUT = 13; + */ + public static final int DOUT_VALUE = 13; + /** + * BA = 14; + */ + public static final int BA_VALUE = 14; + /** + * BOUT = 15; + */ + public static final int BOUT_VALUE = 15; + /** + * VJA = 16; + */ + public static final int VJA_VALUE = 16; + /** + * VJOUT = 17; + */ + public static final int VJOUT_VALUE = 17; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EventType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EventType forNumber(int value) { + switch (value) { + case 0 : + return VP; + case 1 : + return DUE; + case 2 : + return ARR; + case 3 : + return ARS; + case 4 : + return PDE; + case 5 : + return DEP; + case 6 : + return PAS; + case 7 : + return WAIT; + case 8 : + return DOO; + case 9 : + return DOC; + case 10 : + return TLR; + case 11 : + return TLA; + case 12 : + return DA; + case 13 : + return DOUT; + case 14 : + return BA; + case 15 : + return BOUT; + case 16 : + return VJA; + case 17 : + return VJOUT; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public EventType findValueByNumber(int number) { + return EventType.forNumber(number); + } + }; - /** - * required int32 vehicle_number = 10; - * @return Whether the vehicleNumber field is set. - */ - boolean hasVehicleNumber(); - /** - * required int32 vehicle_number = 10; - * @return The vehicleNumber. - */ - int getVehicleNumber(); + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.hfp.proto.Hfp.Topic.getDescriptor().getEnumTypes().get(2); + } + + private static final EventType[] VALUES = values(); + + public static EventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.Topic.EventType) + } + + /** + * Protobuf enum {@code proto.Topic.TransportMode} + */ + public enum TransportMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * bus = 0; + */ + bus(0), + /** + * train = 1; + */ + train(1), + /** + * tram = 2; + */ + tram(2), + /** + * metro = 3; + */ + metro(3), + /** + * ferry = 4; + */ + ferry(4), + /** + *
+             *Used by U-line buses and other lines with limited real-time information
+             * 
+ * + * ubus = 5; + */ + ubus(5), + /** + *
+             *Used by robot buses
+             * 
+ * + * robot = 6; + */ + robot(6),; + + /** + * bus = 0; + */ + public static final int bus_VALUE = 0; + /** + * train = 1; + */ + public static final int train_VALUE = 1; + /** + * tram = 2; + */ + public static final int tram_VALUE = 2; + /** + * metro = 3; + */ + public static final int metro_VALUE = 3; + /** + * ferry = 4; + */ + public static final int ferry_VALUE = 4; + /** + *
+             *Used by U-line buses and other lines with limited real-time information
+             * 
+ * + * ubus = 5; + */ + public static final int ubus_VALUE = 5; + /** + *
+             *Used by robot buses
+             * 
+ * + * robot = 6; + */ + public static final int robot_VALUE = 6; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TransportMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TransportMode forNumber(int value) { + switch (value) { + case 0 : + return bus; + case 1 : + return train; + case 2 : + return tram; + case 3 : + return metro; + case 4 : + return ferry; + case 5 : + return ubus; + case 6 : + return robot; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public TransportMode findValueByNumber(int number) { + return TransportMode.forNumber(number); + } + }; - /** - * required string unique_vehicle_id = 11; - * @return Whether the uniqueVehicleId field is set. - */ - boolean hasUniqueVehicleId(); - /** - * required string unique_vehicle_id = 11; - * @return The uniqueVehicleId. - */ - java.lang.String getUniqueVehicleId(); - /** - * required string unique_vehicle_id = 11; - * @return The bytes for uniqueVehicleId. - */ - com.google.protobuf.ByteString - getUniqueVehicleIdBytes(); + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.hfp.proto.Hfp.Topic.getDescriptor().getEnumTypes().get(3); + } + + private static final TransportMode[] VALUES = values(); + + public static TransportMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TransportMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.Topic.TransportMode) + } + + private int bitField0_; + public static final int SCHEMAVERSION_FIELD_NUMBER = 1; + private int schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + + public static final int RECEIVED_AT_FIELD_NUMBER = 2; + private long receivedAt_ = 0L; + /** + *
+         * Our server timestamp as Epoch ms
+         * 
+ * + * required int64 received_at = 2; + * @return Whether the receivedAt field is set. + */ + @java.lang.Override + public boolean hasReceivedAt() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * Our server timestamp as Epoch ms
+         * 
+ * + * required int64 received_at = 2; + * @return The receivedAt. + */ + @java.lang.Override + public long getReceivedAt() { + return receivedAt_; + } + + public static final int TOPIC_PREFIX_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object topicPrefix_ = ""; + /** + * required string topic_prefix = 3; + * @return Whether the topicPrefix field is set. + */ + @java.lang.Override + public boolean hasTopicPrefix() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required string topic_prefix = 3; + * @return The topicPrefix. + */ + @java.lang.Override + public java.lang.String getTopicPrefix() { + java.lang.Object ref = topicPrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + topicPrefix_ = s; + } + return s; + } + } + /** + * required string topic_prefix = 3; + * @return The bytes for topicPrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicPrefixBytes() { + java.lang.Object ref = topicPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topicPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOPIC_VERSION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object topicVersion_ = ""; + /** + * required string topic_version = 4; + * @return Whether the topicVersion field is set. + */ + @java.lang.Override + public boolean hasTopicVersion() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * required string topic_version = 4; + * @return The topicVersion. + */ + @java.lang.Override + public java.lang.String getTopicVersion() { + java.lang.Object ref = topicVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + topicVersion_ = s; + } + return s; + } + } + /** + * required string topic_version = 4; + * @return The bytes for topicVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicVersionBytes() { + java.lang.Object ref = topicVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topicVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JOURNEY_TYPE_FIELD_NUMBER = 5; + private int journeyType_ = 0; + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @return Whether the journeyType field is set. + */ + @java.lang.Override + public boolean hasJourneyType() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @return The journeyType. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType getJourneyType() { + fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType result = fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType + .forNumber(journeyType_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType.journey : result; + } + + public static final int TEMPORAL_TYPE_FIELD_NUMBER = 6; + private int temporalType_ = 0; + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @return Whether the temporalType field is set. + */ + @java.lang.Override + public boolean hasTemporalType() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @return The temporalType. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType getTemporalType() { + fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType result = fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType + .forNumber(temporalType_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType.ongoing : result; + } + + public static final int EVENT_TYPE_FIELD_NUMBER = 7; + private int eventType_ = 0; + /** + *
+         * v2
+         * 
+ * + * optional .proto.Topic.EventType event_type = 7; + * @return Whether the eventType field is set. + */ + @java.lang.Override + public boolean hasEventType() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+         * v2
+         * 
+ * + * optional .proto.Topic.EventType event_type = 7; + * @return The eventType. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Topic.EventType getEventType() { + fi.hsl.common.hfp.proto.Hfp.Topic.EventType result = fi.hsl.common.hfp.proto.Hfp.Topic.EventType + .forNumber(eventType_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.EventType.VP : result; + } + + public static final int TRANSPORT_MODE_FIELD_NUMBER = 8; + private int transportMode_ = 0; + /** + *
+         * Optional because of rare bug in data source systems
+         * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @return Whether the transportMode field is set. + */ + @java.lang.Override + public boolean hasTransportMode() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+         * Optional because of rare bug in data source systems
+         * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @return The transportMode. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode getTransportMode() { + fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode result = fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode + .forNumber(transportMode_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode.bus : result; + } + + public static final int OPERATOR_ID_FIELD_NUMBER = 9; + private int operatorId_ = 0; + /** + * required int32 operator_id = 9; + * @return Whether the operatorId field is set. + */ + @java.lang.Override + public boolean hasOperatorId() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * required int32 operator_id = 9; + * @return The operatorId. + */ + @java.lang.Override + public int getOperatorId() { + return operatorId_; + } + + public static final int VEHICLE_NUMBER_FIELD_NUMBER = 10; + private int vehicleNumber_ = 0; + /** + * required int32 vehicle_number = 10; + * @return Whether the vehicleNumber field is set. + */ + @java.lang.Override + public boolean hasVehicleNumber() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * required int32 vehicle_number = 10; + * @return The vehicleNumber. + */ + @java.lang.Override + public int getVehicleNumber() { + return vehicleNumber_; + } + + public static final int UNIQUE_VEHICLE_ID_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object uniqueVehicleId_ = ""; + /** + * required string unique_vehicle_id = 11; + * @return Whether the uniqueVehicleId field is set. + */ + @java.lang.Override + public boolean hasUniqueVehicleId() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * required string unique_vehicle_id = 11; + * @return The uniqueVehicleId. + */ + @java.lang.Override + public java.lang.String getUniqueVehicleId() { + java.lang.Object ref = uniqueVehicleId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + uniqueVehicleId_ = s; + } + return s; + } + } + /** + * required string unique_vehicle_id = 11; + * @return The bytes for uniqueVehicleId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUniqueVehicleIdBytes() { + java.lang.Object ref = uniqueVehicleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uniqueVehicleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROUTE_ID_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object routeId_ = ""; + /** + * optional string route_id = 12; + * @return Whether the routeId field is set. + */ + @java.lang.Override + public boolean hasRouteId() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional string route_id = 12; + * @return The routeId. + */ + @java.lang.Override + public java.lang.String getRouteId() { + java.lang.Object ref = routeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + routeId_ = s; + } + return s; + } + } + /** + * optional string route_id = 12; + * @return The bytes for routeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRouteIdBytes() { + java.lang.Object ref = routeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIRECTION_ID_FIELD_NUMBER = 13; + private int directionId_ = 0; + /** + * optional int32 direction_id = 13; + * @return Whether the directionId field is set. + */ + @java.lang.Override + public boolean hasDirectionId() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional int32 direction_id = 13; + * @return The directionId. + */ + @java.lang.Override + public int getDirectionId() { + return directionId_; + } + + public static final int HEADSIGN_FIELD_NUMBER = 14; + @SuppressWarnings("serial") + private volatile java.lang.Object headsign_ = ""; + /** + * optional string headsign = 14; + * @return Whether the headsign field is set. + */ + @java.lang.Override + public boolean hasHeadsign() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * optional string headsign = 14; + * @return The headsign. + */ + @java.lang.Override + public java.lang.String getHeadsign() { + java.lang.Object ref = headsign_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + headsign_ = s; + } + return s; + } + } + /** + * optional string headsign = 14; + * @return The bytes for headsign. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHeadsignBytes() { + java.lang.Object ref = headsign_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + headsign_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 15; + @SuppressWarnings("serial") + private volatile java.lang.Object startTime_ = ""; + /** + * optional string start_time = 15; + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * optional string start_time = 15; + * @return The startTime. + */ + @java.lang.Override + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startTime_ = s; + } + return s; + } + } + /** + * optional string start_time = 15; + * @return The bytes for startTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEXT_STOP_FIELD_NUMBER = 16; + @SuppressWarnings("serial") + private volatile java.lang.Object nextStop_ = ""; + /** + * optional string next_stop = 16; + * @return Whether the nextStop field is set. + */ + @java.lang.Override + public boolean hasNextStop() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * optional string next_stop = 16; + * @return The nextStop. + */ + @java.lang.Override + public java.lang.String getNextStop() { + java.lang.Object ref = nextStop_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + nextStop_ = s; + } + return s; + } + } + /** + * optional string next_stop = 16; + * @return The bytes for nextStop. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextStopBytes() { + java.lang.Object ref = nextStop_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextStop_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GEOHASH_LEVEL_FIELD_NUMBER = 17; + private int geohashLevel_ = 0; + /** + * optional int32 geohash_level = 17; + * @return Whether the geohashLevel field is set. + */ + @java.lang.Override + public boolean hasGeohashLevel() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * optional int32 geohash_level = 17; + * @return The geohashLevel. + */ + @java.lang.Override + public int getGeohashLevel() { + return geohashLevel_; + } + + public static final int LATITUDE_FIELD_NUMBER = 18; + private double latitude_ = 0D; + /** + * optional double latitude = 18; + * @return Whether the latitude field is set. + */ + @java.lang.Override + public boolean hasLatitude() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * optional double latitude = 18; + * @return The latitude. + */ + @java.lang.Override + public double getLatitude() { + return latitude_; + } + + public static final int LONGITUDE_FIELD_NUMBER = 19; + private double longitude_ = 0D; + /** + * optional double longitude = 19; + * @return Whether the longitude field is set. + */ + @java.lang.Override + public boolean hasLongitude() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * optional double longitude = 19; + * @return The longitude. + */ + @java.lang.Override + public double getLongitude() { + return longitude_; + } + + 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 (!hasSchemaVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasReceivedAt()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTopicPrefix()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTopicVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasJourneyType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTemporalType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasOperatorId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasVehicleNumber()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasUniqueVehicleId()) { + 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.writeInt32(1, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, receivedAt_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topicPrefix_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, topicVersion_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(5, journeyType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(6, temporalType_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeEnum(7, eventType_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeEnum(8, transportMode_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeInt32(9, operatorId_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeInt32(10, vehicleNumber_); + } + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, uniqueVehicleId_); + } + if (((bitField0_ & 0x00000800) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, routeId_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeInt32(13, directionId_); + } + if (((bitField0_ & 0x00002000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, headsign_); + } + if (((bitField0_ & 0x00004000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, startTime_); + } + if (((bitField0_ & 0x00008000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, nextStop_); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeInt32(17, geohashLevel_); + } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeDouble(18, latitude_); + } + if (((bitField0_ & 0x00040000) != 0)) { + output.writeDouble(19, longitude_); + } + 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, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, receivedAt_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, topicPrefix_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, topicVersion_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, journeyType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, temporalType_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, eventType_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, transportMode_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, operatorId_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, vehicleNumber_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, uniqueVehicleId_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, routeId_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, directionId_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, headsign_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, startTime_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, nextStop_); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(17, geohashLevel_); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(18, latitude_); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(19, longitude_); + } + 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 fi.hsl.common.hfp.proto.Hfp.Topic)) { + return super.equals(obj); + } + fi.hsl.common.hfp.proto.Hfp.Topic other = (fi.hsl.common.hfp.proto.Hfp.Topic) obj; + + if (hasSchemaVersion() != other.hasSchemaVersion()) + return false; + if (hasSchemaVersion()) { + if (getSchemaVersion() != other.getSchemaVersion()) + return false; + } + if (hasReceivedAt() != other.hasReceivedAt()) + return false; + if (hasReceivedAt()) { + if (getReceivedAt() != other.getReceivedAt()) + return false; + } + if (hasTopicPrefix() != other.hasTopicPrefix()) + return false; + if (hasTopicPrefix()) { + if (!getTopicPrefix().equals(other.getTopicPrefix())) + return false; + } + if (hasTopicVersion() != other.hasTopicVersion()) + return false; + if (hasTopicVersion()) { + if (!getTopicVersion().equals(other.getTopicVersion())) + return false; + } + if (hasJourneyType() != other.hasJourneyType()) + return false; + if (hasJourneyType()) { + if (journeyType_ != other.journeyType_) + return false; + } + if (hasTemporalType() != other.hasTemporalType()) + return false; + if (hasTemporalType()) { + if (temporalType_ != other.temporalType_) + return false; + } + if (hasEventType() != other.hasEventType()) + return false; + if (hasEventType()) { + if (eventType_ != other.eventType_) + return false; + } + if (hasTransportMode() != other.hasTransportMode()) + return false; + if (hasTransportMode()) { + if (transportMode_ != other.transportMode_) + return false; + } + if (hasOperatorId() != other.hasOperatorId()) + return false; + if (hasOperatorId()) { + if (getOperatorId() != other.getOperatorId()) + return false; + } + if (hasVehicleNumber() != other.hasVehicleNumber()) + return false; + if (hasVehicleNumber()) { + if (getVehicleNumber() != other.getVehicleNumber()) + return false; + } + if (hasUniqueVehicleId() != other.hasUniqueVehicleId()) + return false; + if (hasUniqueVehicleId()) { + if (!getUniqueVehicleId().equals(other.getUniqueVehicleId())) + 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 (hasHeadsign() != other.hasHeadsign()) + return false; + if (hasHeadsign()) { + if (!getHeadsign().equals(other.getHeadsign())) + return false; + } + if (hasStartTime() != other.hasStartTime()) + return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) + return false; + } + if (hasNextStop() != other.hasNextStop()) + return false; + if (hasNextStop()) { + if (!getNextStop().equals(other.getNextStop())) + return false; + } + if (hasGeohashLevel() != other.hasGeohashLevel()) + return false; + if (hasGeohashLevel()) { + if (getGeohashLevel() != other.getGeohashLevel()) + return false; + } + if (hasLatitude() != other.hasLatitude()) + return false; + if (hasLatitude()) { + if (java.lang.Double.doubleToLongBits(getLatitude()) != java.lang.Double + .doubleToLongBits(other.getLatitude())) + return false; + } + if (hasLongitude() != other.hasLongitude()) + return false; + if (hasLongitude()) { + if (java.lang.Double.doubleToLongBits(getLongitude()) != java.lang.Double + .doubleToLongBits(other.getLongitude())) + 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 (hasSchemaVersion()) { + hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion(); + } + if (hasReceivedAt()) { + hash = (37 * hash) + RECEIVED_AT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReceivedAt()); + } + if (hasTopicPrefix()) { + hash = (37 * hash) + TOPIC_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getTopicPrefix().hashCode(); + } + if (hasTopicVersion()) { + hash = (37 * hash) + TOPIC_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getTopicVersion().hashCode(); + } + if (hasJourneyType()) { + hash = (37 * hash) + JOURNEY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + journeyType_; + } + if (hasTemporalType()) { + hash = (37 * hash) + TEMPORAL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + temporalType_; + } + if (hasEventType()) { + hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + eventType_; + } + if (hasTransportMode()) { + hash = (37 * hash) + TRANSPORT_MODE_FIELD_NUMBER; + hash = (53 * hash) + transportMode_; + } + if (hasOperatorId()) { + hash = (37 * hash) + OPERATOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperatorId(); + } + if (hasVehicleNumber()) { + hash = (37 * hash) + VEHICLE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getVehicleNumber(); + } + if (hasUniqueVehicleId()) { + hash = (37 * hash) + UNIQUE_VEHICLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getUniqueVehicleId().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 (hasHeadsign()) { + hash = (37 * hash) + HEADSIGN_FIELD_NUMBER; + hash = (53 * hash) + getHeadsign().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasNextStop()) { + hash = (37 * hash) + NEXT_STOP_FIELD_NUMBER; + hash = (53 * hash) + getNextStop().hashCode(); + } + if (hasGeohashLevel()) { + hash = (37 * hash) + GEOHASH_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getGeohashLevel(); + } + if (hasLatitude()) { + hash = (37 * hash) + LATITUDE_FIELD_NUMBER; + hash = (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getLatitude())); + } + if (hasLongitude()) { + hash = (37 * hash) + LONGITUDE_FIELD_NUMBER; + hash = (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getLongitude())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.hfp.proto.Hfp.Topic parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.hfp.proto.Hfp.Topic parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.hfp.proto.Hfp.Topic prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.Topic} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.Topic) + fi.hsl.common.hfp.proto.Hfp.TopicOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Topic_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Topic_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.hfp.proto.Hfp.Topic.class, + fi.hsl.common.hfp.proto.Hfp.Topic.Builder.class); + } + + // Construct using fi.hsl.common.hfp.proto.Hfp.Topic.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schemaVersion_ = 1; + receivedAt_ = 0L; + topicPrefix_ = ""; + topicVersion_ = ""; + journeyType_ = 0; + temporalType_ = 0; + eventType_ = 0; + transportMode_ = 0; + operatorId_ = 0; + vehicleNumber_ = 0; + uniqueVehicleId_ = ""; + routeId_ = ""; + directionId_ = 0; + headsign_ = ""; + startTime_ = ""; + nextStop_ = ""; + geohashLevel_ = 0; + latitude_ = 0D; + longitude_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Topic_descriptor; + } + + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Topic getDefaultInstanceForType() { + return fi.hsl.common.hfp.proto.Hfp.Topic.getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Topic build() { + fi.hsl.common.hfp.proto.Hfp.Topic result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Topic buildPartial() { + fi.hsl.common.hfp.proto.Hfp.Topic result = new fi.hsl.common.hfp.proto.Hfp.Topic(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(fi.hsl.common.hfp.proto.Hfp.Topic result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schemaVersion_ = schemaVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receivedAt_ = receivedAt_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.topicPrefix_ = topicPrefix_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.topicVersion_ = topicVersion_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.journeyType_ = journeyType_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.temporalType_ = temporalType_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.eventType_ = eventType_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.transportMode_ = transportMode_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.operatorId_ = operatorId_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.vehicleNumber_ = vehicleNumber_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.uniqueVehicleId_ = uniqueVehicleId_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.routeId_ = routeId_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.directionId_ = directionId_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.headsign_ = headsign_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.startTime_ = startTime_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.nextStop_ = nextStop_; + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.geohashLevel_ = geohashLevel_; + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.latitude_ = latitude_; + to_bitField0_ |= 0x00020000; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.longitude_ = longitude_; + to_bitField0_ |= 0x00040000; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.hfp.proto.Hfp.Topic) { + return mergeFrom((fi.hsl.common.hfp.proto.Hfp.Topic) other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * optional string route_id = 12; - * @return Whether the routeId field is set. - */ - boolean hasRouteId(); - /** - * optional string route_id = 12; - * @return The routeId. - */ - java.lang.String getRouteId(); - /** - * optional string route_id = 12; - * @return The bytes for routeId. - */ - com.google.protobuf.ByteString - getRouteIdBytes(); - - /** - * optional int32 direction_id = 13; - * @return Whether the directionId field is set. - */ - boolean hasDirectionId(); - /** - * optional int32 direction_id = 13; - * @return The directionId. - */ - int getDirectionId(); - - /** - * optional string headsign = 14; - * @return Whether the headsign field is set. - */ - boolean hasHeadsign(); - /** - * optional string headsign = 14; - * @return The headsign. - */ - java.lang.String getHeadsign(); - /** - * optional string headsign = 14; - * @return The bytes for headsign. - */ - com.google.protobuf.ByteString - getHeadsignBytes(); - - /** - * optional string start_time = 15; - * @return Whether the startTime field is set. - */ - boolean hasStartTime(); - /** - * optional string start_time = 15; - * @return The startTime. - */ - java.lang.String getStartTime(); - /** - * optional string start_time = 15; - * @return The bytes for startTime. - */ - com.google.protobuf.ByteString - getStartTimeBytes(); - - /** - * optional string next_stop = 16; - * @return Whether the nextStop field is set. - */ - boolean hasNextStop(); - /** - * optional string next_stop = 16; - * @return The nextStop. - */ - java.lang.String getNextStop(); - /** - * optional string next_stop = 16; - * @return The bytes for nextStop. - */ - com.google.protobuf.ByteString - getNextStopBytes(); - - /** - * optional int32 geohash_level = 17; - * @return Whether the geohashLevel field is set. - */ - boolean hasGeohashLevel(); - /** - * optional int32 geohash_level = 17; - * @return The geohashLevel. - */ - int getGeohashLevel(); - - /** - * optional double latitude = 18; - * @return Whether the latitude field is set. - */ - boolean hasLatitude(); - /** - * optional double latitude = 18; - * @return The latitude. - */ - double getLatitude(); - - /** - * optional double longitude = 19; - * @return Whether the longitude field is set. - */ - boolean hasLongitude(); - /** - * optional double longitude = 19; - * @return The longitude. - */ - double getLongitude(); - } - /** - * Protobuf type {@code proto.Topic} - */ - public static final class Topic extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.Topic) - TopicOrBuilder { - private static final long serialVersionUID = 0L; - // Use Topic.newBuilder() to construct. - private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Topic() { - schemaVersion_ = 1; - topicPrefix_ = ""; - topicVersion_ = ""; - journeyType_ = 0; - temporalType_ = 0; - eventType_ = 0; - transportMode_ = 0; - uniqueVehicleId_ = ""; - routeId_ = ""; - headsign_ = ""; - startTime_ = ""; - nextStop_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Topic(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Topic_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Topic_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.hfp.proto.Hfp.Topic.class, fi.hsl.common.hfp.proto.Hfp.Topic.Builder.class); - } - - /** - * Protobuf enum {@code proto.Topic.JourneyType} - */ - public enum JourneyType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * journey = 0; - */ - journey(0), - /** - * deadrun = 1; - */ - deadrun(1), - /** - * signoff = 2; - */ - signoff(2), - ; - - /** - * journey = 0; - */ - public static final int journey_VALUE = 0; - /** - * deadrun = 1; - */ - public static final int deadrun_VALUE = 1; - /** - * signoff = 2; - */ - public static final int signoff_VALUE = 2; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static JourneyType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static JourneyType forNumber(int value) { - switch (value) { - case 0: return journey; - case 1: return deadrun; - case 2: return signoff; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - JourneyType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public JourneyType findValueByNumber(int number) { - return JourneyType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.hfp.proto.Hfp.Topic.getDescriptor().getEnumTypes().get(0); - } - - private static final JourneyType[] VALUES = values(); - - public static JourneyType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private JourneyType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.Topic.JourneyType) - } - - /** - * Protobuf enum {@code proto.Topic.TemporalType} - */ - public enum TemporalType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ongoing = 0; - */ - ongoing(0), - /** - * upcoming = 1; - */ - upcoming(1), - ; - - /** - * ongoing = 0; - */ - public static final int ongoing_VALUE = 0; - /** - * upcoming = 1; - */ - public static final int upcoming_VALUE = 1; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TemporalType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static TemporalType forNumber(int value) { - switch (value) { - case 0: return ongoing; - case 1: return upcoming; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TemporalType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TemporalType findValueByNumber(int number) { - return TemporalType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.hfp.proto.Hfp.Topic.getDescriptor().getEnumTypes().get(1); - } - - private static final TemporalType[] VALUES = values(); - - public static TemporalType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private TemporalType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.Topic.TemporalType) - } - - /** - * Protobuf enum {@code proto.Topic.EventType} - */ - public enum EventType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * VP = 0; - */ - VP(0), - /** - * DUE = 1; - */ - DUE(1), - /** - * ARR = 2; - */ - ARR(2), - /** - * ARS = 3; - */ - ARS(3), - /** - * PDE = 4; - */ - PDE(4), - /** - * DEP = 5; - */ - DEP(5), - /** - * PAS = 6; - */ - PAS(6), - /** - * WAIT = 7; - */ - WAIT(7), - /** - * DOO = 8; - */ - DOO(8), - /** - * DOC = 9; - */ - DOC(9), - /** - * TLR = 10; - */ - TLR(10), - /** - * TLA = 11; - */ - TLA(11), - /** - * DA = 12; - */ - DA(12), - /** - * DOUT = 13; - */ - DOUT(13), - /** - * BA = 14; - */ - BA(14), - /** - * BOUT = 15; - */ - BOUT(15), - /** - * VJA = 16; - */ - VJA(16), - /** - * VJOUT = 17; - */ - VJOUT(17), - ; - - /** - * VP = 0; - */ - public static final int VP_VALUE = 0; - /** - * DUE = 1; - */ - public static final int DUE_VALUE = 1; - /** - * ARR = 2; - */ - public static final int ARR_VALUE = 2; - /** - * ARS = 3; - */ - public static final int ARS_VALUE = 3; - /** - * PDE = 4; - */ - public static final int PDE_VALUE = 4; - /** - * DEP = 5; - */ - public static final int DEP_VALUE = 5; - /** - * PAS = 6; - */ - public static final int PAS_VALUE = 6; - /** - * WAIT = 7; - */ - public static final int WAIT_VALUE = 7; - /** - * DOO = 8; - */ - public static final int DOO_VALUE = 8; - /** - * DOC = 9; - */ - public static final int DOC_VALUE = 9; - /** - * TLR = 10; - */ - public static final int TLR_VALUE = 10; - /** - * TLA = 11; - */ - public static final int TLA_VALUE = 11; - /** - * DA = 12; - */ - public static final int DA_VALUE = 12; - /** - * DOUT = 13; - */ - public static final int DOUT_VALUE = 13; - /** - * BA = 14; - */ - public static final int BA_VALUE = 14; - /** - * BOUT = 15; - */ - public static final int BOUT_VALUE = 15; - /** - * VJA = 16; - */ - public static final int VJA_VALUE = 16; - /** - * VJOUT = 17; - */ - public static final int VJOUT_VALUE = 17; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EventType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static EventType forNumber(int value) { - switch (value) { - case 0: return VP; - case 1: return DUE; - case 2: return ARR; - case 3: return ARS; - case 4: return PDE; - case 5: return DEP; - case 6: return PAS; - case 7: return WAIT; - case 8: return DOO; - case 9: return DOC; - case 10: return TLR; - case 11: return TLA; - case 12: return DA; - case 13: return DOUT; - case 14: return BA; - case 15: return BOUT; - case 16: return VJA; - case 17: return VJOUT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - EventType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EventType findValueByNumber(int number) { - return EventType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.hfp.proto.Hfp.Topic.getDescriptor().getEnumTypes().get(2); - } - - private static final EventType[] VALUES = values(); - - public static EventType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private EventType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.Topic.EventType) - } - - /** - * Protobuf enum {@code proto.Topic.TransportMode} - */ - public enum TransportMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - * bus = 0; - */ - bus(0), - /** - * train = 1; - */ - train(1), - /** - * tram = 2; - */ - tram(2), - /** - * metro = 3; - */ - metro(3), - /** - * ferry = 4; - */ - ferry(4), - /** - *
-       *Used by U-line buses and other lines with limited real-time information
-       * 
- * - * ubus = 5; - */ - ubus(5), - /** - *
-       *Used by robot buses
-       * 
- * - * robot = 6; - */ - robot(6), - ; - - /** - * bus = 0; - */ - public static final int bus_VALUE = 0; - /** - * train = 1; - */ - public static final int train_VALUE = 1; - /** - * tram = 2; - */ - public static final int tram_VALUE = 2; - /** - * metro = 3; - */ - public static final int metro_VALUE = 3; - /** - * ferry = 4; - */ - public static final int ferry_VALUE = 4; - /** - *
-       *Used by U-line buses and other lines with limited real-time information
-       * 
- * - * ubus = 5; - */ - public static final int ubus_VALUE = 5; - /** - *
-       *Used by robot buses
-       * 
- * - * robot = 6; - */ - public static final int robot_VALUE = 6; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TransportMode valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static TransportMode forNumber(int value) { - switch (value) { - case 0: return bus; - case 1: return train; - case 2: return tram; - case 3: return metro; - case 4: return ferry; - case 5: return ubus; - case 6: return robot; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TransportMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TransportMode findValueByNumber(int number) { - return TransportMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.hfp.proto.Hfp.Topic.getDescriptor().getEnumTypes().get(3); - } - - private static final TransportMode[] VALUES = values(); - - public static TransportMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private TransportMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.Topic.TransportMode) - } - - private int bitField0_; - public static final int SCHEMAVERSION_FIELD_NUMBER = 1; - private int schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - - public static final int RECEIVED_AT_FIELD_NUMBER = 2; - private long receivedAt_ = 0L; - /** - *
-     * Our server timestamp as Epoch ms
-     * 
- * - * required int64 received_at = 2; - * @return Whether the receivedAt field is set. - */ - @java.lang.Override - public boolean hasReceivedAt() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Our server timestamp as Epoch ms
-     * 
- * - * required int64 received_at = 2; - * @return The receivedAt. - */ - @java.lang.Override - public long getReceivedAt() { - return receivedAt_; - } - - public static final int TOPIC_PREFIX_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object topicPrefix_ = ""; - /** - * required string topic_prefix = 3; - * @return Whether the topicPrefix field is set. - */ - @java.lang.Override - public boolean hasTopicPrefix() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required string topic_prefix = 3; - * @return The topicPrefix. - */ - @java.lang.Override - public java.lang.String getTopicPrefix() { - java.lang.Object ref = topicPrefix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - topicPrefix_ = s; - } - return s; - } - } - /** - * required string topic_prefix = 3; - * @return The bytes for topicPrefix. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTopicPrefixBytes() { - java.lang.Object ref = topicPrefix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicPrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOPIC_VERSION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object topicVersion_ = ""; - /** - * required string topic_version = 4; - * @return Whether the topicVersion field is set. - */ - @java.lang.Override - public boolean hasTopicVersion() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required string topic_version = 4; - * @return The topicVersion. - */ - @java.lang.Override - public java.lang.String getTopicVersion() { - java.lang.Object ref = topicVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - topicVersion_ = s; - } - return s; - } - } - /** - * required string topic_version = 4; - * @return The bytes for topicVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTopicVersionBytes() { - java.lang.Object ref = topicVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOURNEY_TYPE_FIELD_NUMBER = 5; - private int journeyType_ = 0; - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @return Whether the journeyType field is set. - */ - @java.lang.Override public boolean hasJourneyType() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @return The journeyType. - */ - @java.lang.Override public fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType getJourneyType() { - fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType result = fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType.forNumber(journeyType_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType.journey : result; - } - - public static final int TEMPORAL_TYPE_FIELD_NUMBER = 6; - private int temporalType_ = 0; - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @return Whether the temporalType field is set. - */ - @java.lang.Override public boolean hasTemporalType() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @return The temporalType. - */ - @java.lang.Override public fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType getTemporalType() { - fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType result = fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType.forNumber(temporalType_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType.ongoing : result; - } - - public static final int EVENT_TYPE_FIELD_NUMBER = 7; - private int eventType_ = 0; - /** - *
-     * v2
-     * 
- * - * optional .proto.Topic.EventType event_type = 7; - * @return Whether the eventType field is set. - */ - @java.lang.Override public boolean hasEventType() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * v2
-     * 
- * - * optional .proto.Topic.EventType event_type = 7; - * @return The eventType. - */ - @java.lang.Override public fi.hsl.common.hfp.proto.Hfp.Topic.EventType getEventType() { - fi.hsl.common.hfp.proto.Hfp.Topic.EventType result = fi.hsl.common.hfp.proto.Hfp.Topic.EventType.forNumber(eventType_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.EventType.VP : result; - } - - public static final int TRANSPORT_MODE_FIELD_NUMBER = 8; - private int transportMode_ = 0; - /** - *
-     * Optional because of rare bug in data source systems
-     * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @return Whether the transportMode field is set. - */ - @java.lang.Override public boolean hasTransportMode() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-     * Optional because of rare bug in data source systems
-     * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @return The transportMode. - */ - @java.lang.Override public fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode getTransportMode() { - fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode result = fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode.forNumber(transportMode_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode.bus : result; - } - - public static final int OPERATOR_ID_FIELD_NUMBER = 9; - private int operatorId_ = 0; - /** - * required int32 operator_id = 9; - * @return Whether the operatorId field is set. - */ - @java.lang.Override - public boolean hasOperatorId() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * required int32 operator_id = 9; - * @return The operatorId. - */ - @java.lang.Override - public int getOperatorId() { - return operatorId_; - } - - public static final int VEHICLE_NUMBER_FIELD_NUMBER = 10; - private int vehicleNumber_ = 0; - /** - * required int32 vehicle_number = 10; - * @return Whether the vehicleNumber field is set. - */ - @java.lang.Override - public boolean hasVehicleNumber() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * required int32 vehicle_number = 10; - * @return The vehicleNumber. - */ - @java.lang.Override - public int getVehicleNumber() { - return vehicleNumber_; - } - - public static final int UNIQUE_VEHICLE_ID_FIELD_NUMBER = 11; - @SuppressWarnings("serial") - private volatile java.lang.Object uniqueVehicleId_ = ""; - /** - * required string unique_vehicle_id = 11; - * @return Whether the uniqueVehicleId field is set. - */ - @java.lang.Override - public boolean hasUniqueVehicleId() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * required string unique_vehicle_id = 11; - * @return The uniqueVehicleId. - */ - @java.lang.Override - public java.lang.String getUniqueVehicleId() { - java.lang.Object ref = uniqueVehicleId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - uniqueVehicleId_ = s; - } - return s; - } - } - /** - * required string unique_vehicle_id = 11; - * @return The bytes for uniqueVehicleId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUniqueVehicleIdBytes() { - java.lang.Object ref = uniqueVehicleId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uniqueVehicleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROUTE_ID_FIELD_NUMBER = 12; - @SuppressWarnings("serial") - private volatile java.lang.Object routeId_ = ""; - /** - * optional string route_id = 12; - * @return Whether the routeId field is set. - */ - @java.lang.Override - public boolean hasRouteId() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * optional string route_id = 12; - * @return The routeId. - */ - @java.lang.Override - public java.lang.String getRouteId() { - java.lang.Object ref = routeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - routeId_ = s; - } - return s; - } - } - /** - * optional string route_id = 12; - * @return The bytes for routeId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRouteIdBytes() { - java.lang.Object ref = routeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIRECTION_ID_FIELD_NUMBER = 13; - private int directionId_ = 0; - /** - * optional int32 direction_id = 13; - * @return Whether the directionId field is set. - */ - @java.lang.Override - public boolean hasDirectionId() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * optional int32 direction_id = 13; - * @return The directionId. - */ - @java.lang.Override - public int getDirectionId() { - return directionId_; - } - - public static final int HEADSIGN_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private volatile java.lang.Object headsign_ = ""; - /** - * optional string headsign = 14; - * @return Whether the headsign field is set. - */ - @java.lang.Override - public boolean hasHeadsign() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * optional string headsign = 14; - * @return The headsign. - */ - @java.lang.Override - public java.lang.String getHeadsign() { - java.lang.Object ref = headsign_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - headsign_ = s; - } - return s; - } - } - /** - * optional string headsign = 14; - * @return The bytes for headsign. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getHeadsignBytes() { - java.lang.Object ref = headsign_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - headsign_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int START_TIME_FIELD_NUMBER = 15; - @SuppressWarnings("serial") - private volatile java.lang.Object startTime_ = ""; - /** - * optional string start_time = 15; - * @return Whether the startTime field is set. - */ - @java.lang.Override - public boolean hasStartTime() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * optional string start_time = 15; - * @return The startTime. - */ - @java.lang.Override - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startTime_ = s; - } - return s; - } - } - /** - * optional string start_time = 15; - * @return The bytes for startTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NEXT_STOP_FIELD_NUMBER = 16; - @SuppressWarnings("serial") - private volatile java.lang.Object nextStop_ = ""; - /** - * optional string next_stop = 16; - * @return Whether the nextStop field is set. - */ - @java.lang.Override - public boolean hasNextStop() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * optional string next_stop = 16; - * @return The nextStop. - */ - @java.lang.Override - public java.lang.String getNextStop() { - java.lang.Object ref = nextStop_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - nextStop_ = s; - } - return s; - } - } - /** - * optional string next_stop = 16; - * @return The bytes for nextStop. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextStopBytes() { - java.lang.Object ref = nextStop_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextStop_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GEOHASH_LEVEL_FIELD_NUMBER = 17; - private int geohashLevel_ = 0; - /** - * optional int32 geohash_level = 17; - * @return Whether the geohashLevel field is set. - */ - @java.lang.Override - public boolean hasGeohashLevel() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * optional int32 geohash_level = 17; - * @return The geohashLevel. - */ - @java.lang.Override - public int getGeohashLevel() { - return geohashLevel_; - } - - public static final int LATITUDE_FIELD_NUMBER = 18; - private double latitude_ = 0D; - /** - * optional double latitude = 18; - * @return Whether the latitude field is set. - */ - @java.lang.Override - public boolean hasLatitude() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * optional double latitude = 18; - * @return The latitude. - */ - @java.lang.Override - public double getLatitude() { - return latitude_; - } - - public static final int LONGITUDE_FIELD_NUMBER = 19; - private double longitude_ = 0D; - /** - * optional double longitude = 19; - * @return Whether the longitude field is set. - */ - @java.lang.Override - public boolean hasLongitude() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * optional double longitude = 19; - * @return The longitude. - */ - @java.lang.Override - public double getLongitude() { - return longitude_; - } - - 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 (!hasSchemaVersion()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasReceivedAt()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTopicPrefix()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTopicVersion()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasJourneyType()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTemporalType()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasOperatorId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasVehicleNumber()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasUniqueVehicleId()) { - 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.writeInt32(1, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt64(2, receivedAt_); - } - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topicPrefix_); - } - if (((bitField0_ & 0x00000008) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, topicVersion_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeEnum(5, journeyType_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeEnum(6, temporalType_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeEnum(7, eventType_); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeEnum(8, transportMode_); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeInt32(9, operatorId_); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeInt32(10, vehicleNumber_); - } - if (((bitField0_ & 0x00000400) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, uniqueVehicleId_); - } - if (((bitField0_ & 0x00000800) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, routeId_); - } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeInt32(13, directionId_); - } - if (((bitField0_ & 0x00002000) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, headsign_); - } - if (((bitField0_ & 0x00004000) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 15, startTime_); - } - if (((bitField0_ & 0x00008000) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, nextStop_); - } - if (((bitField0_ & 0x00010000) != 0)) { - output.writeInt32(17, geohashLevel_); - } - if (((bitField0_ & 0x00020000) != 0)) { - output.writeDouble(18, latitude_); - } - if (((bitField0_ & 0x00040000) != 0)) { - output.writeDouble(19, longitude_); - } - 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, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, receivedAt_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, topicPrefix_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, topicVersion_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, journeyType_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, temporalType_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, eventType_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, transportMode_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, operatorId_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(10, vehicleNumber_); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, uniqueVehicleId_); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, routeId_); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(13, directionId_); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, headsign_); - } - if (((bitField0_ & 0x00004000) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, startTime_); - } - if (((bitField0_ & 0x00008000) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, nextStop_); - } - if (((bitField0_ & 0x00010000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(17, geohashLevel_); - } - if (((bitField0_ & 0x00020000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(18, latitude_); - } - if (((bitField0_ & 0x00040000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(19, longitude_); - } - 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 fi.hsl.common.hfp.proto.Hfp.Topic)) { - return super.equals(obj); - } - fi.hsl.common.hfp.proto.Hfp.Topic other = (fi.hsl.common.hfp.proto.Hfp.Topic) obj; - - if (hasSchemaVersion() != other.hasSchemaVersion()) return false; - if (hasSchemaVersion()) { - if (getSchemaVersion() - != other.getSchemaVersion()) return false; - } - if (hasReceivedAt() != other.hasReceivedAt()) return false; - if (hasReceivedAt()) { - if (getReceivedAt() - != other.getReceivedAt()) return false; - } - if (hasTopicPrefix() != other.hasTopicPrefix()) return false; - if (hasTopicPrefix()) { - if (!getTopicPrefix() - .equals(other.getTopicPrefix())) return false; - } - if (hasTopicVersion() != other.hasTopicVersion()) return false; - if (hasTopicVersion()) { - if (!getTopicVersion() - .equals(other.getTopicVersion())) return false; - } - if (hasJourneyType() != other.hasJourneyType()) return false; - if (hasJourneyType()) { - if (journeyType_ != other.journeyType_) return false; - } - if (hasTemporalType() != other.hasTemporalType()) return false; - if (hasTemporalType()) { - if (temporalType_ != other.temporalType_) return false; - } - if (hasEventType() != other.hasEventType()) return false; - if (hasEventType()) { - if (eventType_ != other.eventType_) return false; - } - if (hasTransportMode() != other.hasTransportMode()) return false; - if (hasTransportMode()) { - if (transportMode_ != other.transportMode_) return false; - } - if (hasOperatorId() != other.hasOperatorId()) return false; - if (hasOperatorId()) { - if (getOperatorId() - != other.getOperatorId()) return false; - } - if (hasVehicleNumber() != other.hasVehicleNumber()) return false; - if (hasVehicleNumber()) { - if (getVehicleNumber() - != other.getVehicleNumber()) return false; - } - if (hasUniqueVehicleId() != other.hasUniqueVehicleId()) return false; - if (hasUniqueVehicleId()) { - if (!getUniqueVehicleId() - .equals(other.getUniqueVehicleId())) 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 (hasHeadsign() != other.hasHeadsign()) return false; - if (hasHeadsign()) { - if (!getHeadsign() - .equals(other.getHeadsign())) return false; - } - if (hasStartTime() != other.hasStartTime()) return false; - if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; - } - if (hasNextStop() != other.hasNextStop()) return false; - if (hasNextStop()) { - if (!getNextStop() - .equals(other.getNextStop())) return false; - } - if (hasGeohashLevel() != other.hasGeohashLevel()) return false; - if (hasGeohashLevel()) { - if (getGeohashLevel() - != other.getGeohashLevel()) return false; - } - if (hasLatitude() != other.hasLatitude()) return false; - if (hasLatitude()) { - if (java.lang.Double.doubleToLongBits(getLatitude()) - != java.lang.Double.doubleToLongBits( - other.getLatitude())) return false; - } - if (hasLongitude() != other.hasLongitude()) return false; - if (hasLongitude()) { - if (java.lang.Double.doubleToLongBits(getLongitude()) - != java.lang.Double.doubleToLongBits( - other.getLongitude())) 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 (hasSchemaVersion()) { - hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getSchemaVersion(); - } - if (hasReceivedAt()) { - hash = (37 * hash) + RECEIVED_AT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getReceivedAt()); - } - if (hasTopicPrefix()) { - hash = (37 * hash) + TOPIC_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getTopicPrefix().hashCode(); - } - if (hasTopicVersion()) { - hash = (37 * hash) + TOPIC_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getTopicVersion().hashCode(); - } - if (hasJourneyType()) { - hash = (37 * hash) + JOURNEY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + journeyType_; - } - if (hasTemporalType()) { - hash = (37 * hash) + TEMPORAL_TYPE_FIELD_NUMBER; - hash = (53 * hash) + temporalType_; - } - if (hasEventType()) { - hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + eventType_; - } - if (hasTransportMode()) { - hash = (37 * hash) + TRANSPORT_MODE_FIELD_NUMBER; - hash = (53 * hash) + transportMode_; - } - if (hasOperatorId()) { - hash = (37 * hash) + OPERATOR_ID_FIELD_NUMBER; - hash = (53 * hash) + getOperatorId(); - } - if (hasVehicleNumber()) { - hash = (37 * hash) + VEHICLE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getVehicleNumber(); - } - if (hasUniqueVehicleId()) { - hash = (37 * hash) + UNIQUE_VEHICLE_ID_FIELD_NUMBER; - hash = (53 * hash) + getUniqueVehicleId().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 (hasHeadsign()) { - hash = (37 * hash) + HEADSIGN_FIELD_NUMBER; - hash = (53 * hash) + getHeadsign().hashCode(); - } - if (hasStartTime()) { - hash = (37 * hash) + START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStartTime().hashCode(); - } - if (hasNextStop()) { - hash = (37 * hash) + NEXT_STOP_FIELD_NUMBER; - hash = (53 * hash) + getNextStop().hashCode(); - } - if (hasGeohashLevel()) { - hash = (37 * hash) + GEOHASH_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getGeohashLevel(); - } - if (hasLatitude()) { - hash = (37 * hash) + LATITUDE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getLatitude())); - } - if (hasLongitude()) { - hash = (37 * hash) + LONGITUDE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getLongitude())); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.hfp.proto.Hfp.Topic parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.hfp.proto.Hfp.Topic parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.hfp.proto.Hfp.Topic parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.hfp.proto.Hfp.Topic prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.Topic} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.Topic) - fi.hsl.common.hfp.proto.Hfp.TopicOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Topic_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Topic_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.hfp.proto.Hfp.Topic.class, fi.hsl.common.hfp.proto.Hfp.Topic.Builder.class); - } - - // Construct using fi.hsl.common.hfp.proto.Hfp.Topic.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - schemaVersion_ = 1; - receivedAt_ = 0L; - topicPrefix_ = ""; - topicVersion_ = ""; - journeyType_ = 0; - temporalType_ = 0; - eventType_ = 0; - transportMode_ = 0; - operatorId_ = 0; - vehicleNumber_ = 0; - uniqueVehicleId_ = ""; - routeId_ = ""; - directionId_ = 0; - headsign_ = ""; - startTime_ = ""; - nextStop_ = ""; - geohashLevel_ = 0; - latitude_ = 0D; - longitude_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Topic_descriptor; - } - - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Topic getDefaultInstanceForType() { - return fi.hsl.common.hfp.proto.Hfp.Topic.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Topic build() { - fi.hsl.common.hfp.proto.Hfp.Topic result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Topic buildPartial() { - fi.hsl.common.hfp.proto.Hfp.Topic result = new fi.hsl.common.hfp.proto.Hfp.Topic(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.hfp.proto.Hfp.Topic result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.schemaVersion_ = schemaVersion_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.receivedAt_ = receivedAt_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.topicPrefix_ = topicPrefix_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.topicVersion_ = topicVersion_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.journeyType_ = journeyType_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.temporalType_ = temporalType_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.eventType_ = eventType_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.transportMode_ = transportMode_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.operatorId_ = operatorId_; - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.vehicleNumber_ = vehicleNumber_; - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.uniqueVehicleId_ = uniqueVehicleId_; - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.routeId_ = routeId_; - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.directionId_ = directionId_; - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.headsign_ = headsign_; - to_bitField0_ |= 0x00002000; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.startTime_ = startTime_; - to_bitField0_ |= 0x00004000; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.nextStop_ = nextStop_; - to_bitField0_ |= 0x00008000; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.geohashLevel_ = geohashLevel_; - to_bitField0_ |= 0x00010000; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.latitude_ = latitude_; - to_bitField0_ |= 0x00020000; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.longitude_ = longitude_; - to_bitField0_ |= 0x00040000; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.hfp.proto.Hfp.Topic) { - return mergeFrom((fi.hsl.common.hfp.proto.Hfp.Topic)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.hfp.proto.Hfp.Topic other) { - if (other == fi.hsl.common.hfp.proto.Hfp.Topic.getDefaultInstance()) return this; - if (other.hasSchemaVersion()) { - setSchemaVersion(other.getSchemaVersion()); - } - if (other.hasReceivedAt()) { - setReceivedAt(other.getReceivedAt()); - } - if (other.hasTopicPrefix()) { - topicPrefix_ = other.topicPrefix_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasTopicVersion()) { - topicVersion_ = other.topicVersion_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasJourneyType()) { - setJourneyType(other.getJourneyType()); - } - if (other.hasTemporalType()) { - setTemporalType(other.getTemporalType()); - } - if (other.hasEventType()) { - setEventType(other.getEventType()); - } - if (other.hasTransportMode()) { - setTransportMode(other.getTransportMode()); - } - if (other.hasOperatorId()) { - setOperatorId(other.getOperatorId()); - } - if (other.hasVehicleNumber()) { - setVehicleNumber(other.getVehicleNumber()); - } - if (other.hasUniqueVehicleId()) { - uniqueVehicleId_ = other.uniqueVehicleId_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (other.hasRouteId()) { - routeId_ = other.routeId_; - bitField0_ |= 0x00000800; - onChanged(); - } - if (other.hasDirectionId()) { - setDirectionId(other.getDirectionId()); - } - if (other.hasHeadsign()) { - headsign_ = other.headsign_; - bitField0_ |= 0x00002000; - onChanged(); - } - if (other.hasStartTime()) { - startTime_ = other.startTime_; - bitField0_ |= 0x00004000; - onChanged(); - } - if (other.hasNextStop()) { - nextStop_ = other.nextStop_; - bitField0_ |= 0x00008000; - onChanged(); - } - if (other.hasGeohashLevel()) { - setGeohashLevel(other.getGeohashLevel()); - } - if (other.hasLatitude()) { - setLatitude(other.getLatitude()); - } - if (other.hasLongitude()) { - setLongitude(other.getLongitude()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSchemaVersion()) { - return false; - } - if (!hasReceivedAt()) { - return false; - } - if (!hasTopicPrefix()) { - return false; - } - if (!hasTopicVersion()) { - return false; - } - if (!hasJourneyType()) { - return false; - } - if (!hasTemporalType()) { - return false; - } - if (!hasOperatorId()) { - return false; - } - if (!hasVehicleNumber()) { - return false; - } - if (!hasUniqueVehicleId()) { - 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: { - schemaVersion_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - receivedAt_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - topicPrefix_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - topicVersion_ = input.readBytes(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - int tmpRaw = input.readEnum(); - fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType tmpValue = - fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(5, tmpRaw); - } else { - journeyType_ = tmpRaw; - bitField0_ |= 0x00000010; - } - break; - } // case 40 - case 48: { - int tmpRaw = input.readEnum(); - fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType tmpValue = - fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(6, tmpRaw); - } else { - temporalType_ = tmpRaw; - bitField0_ |= 0x00000020; - } - break; - } // case 48 - case 56: { - int tmpRaw = input.readEnum(); - fi.hsl.common.hfp.proto.Hfp.Topic.EventType tmpValue = - fi.hsl.common.hfp.proto.Hfp.Topic.EventType.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(7, tmpRaw); - } else { - eventType_ = tmpRaw; - bitField0_ |= 0x00000040; - } - break; - } // case 56 - case 64: { - int tmpRaw = input.readEnum(); - fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode tmpValue = - fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(8, tmpRaw); - } else { - transportMode_ = tmpRaw; - bitField0_ |= 0x00000080; - } - break; - } // case 64 - case 72: { - operatorId_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 80: { - vehicleNumber_ = input.readInt32(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 90: { - uniqueVehicleId_ = input.readBytes(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: { - routeId_ = input.readBytes(); - bitField0_ |= 0x00000800; - break; - } // case 98 - case 104: { - directionId_ = input.readInt32(); - bitField0_ |= 0x00001000; - break; - } // case 104 - case 114: { - headsign_ = input.readBytes(); - bitField0_ |= 0x00002000; - break; - } // case 114 - case 122: { - startTime_ = input.readBytes(); - bitField0_ |= 0x00004000; - break; - } // case 122 - case 130: { - nextStop_ = input.readBytes(); - bitField0_ |= 0x00008000; - break; - } // case 130 - case 136: { - geohashLevel_ = input.readInt32(); - bitField0_ |= 0x00010000; - break; - } // case 136 - case 145: { - latitude_ = input.readDouble(); - bitField0_ |= 0x00020000; - break; - } // case 145 - case 153: { - longitude_ = input.readDouble(); - bitField0_ |= 0x00040000; - break; - } // case 153 - 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 schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @param value The schemaVersion to set. - * @return This builder for chaining. - */ - public Builder setSchemaVersion(int value) { - - schemaVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return This builder for chaining. - */ - public Builder clearSchemaVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - schemaVersion_ = 1; - onChanged(); - return this; - } - - private long receivedAt_ ; - /** - *
-       * Our server timestamp as Epoch ms
-       * 
- * - * required int64 received_at = 2; - * @return Whether the receivedAt field is set. - */ - @java.lang.Override - public boolean hasReceivedAt() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Our server timestamp as Epoch ms
-       * 
- * - * required int64 received_at = 2; - * @return The receivedAt. - */ - @java.lang.Override - public long getReceivedAt() { - return receivedAt_; - } - /** - *
-       * Our server timestamp as Epoch ms
-       * 
- * - * required int64 received_at = 2; - * @param value The receivedAt to set. - * @return This builder for chaining. - */ - public Builder setReceivedAt(long value) { - - receivedAt_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Our server timestamp as Epoch ms
-       * 
- * - * required int64 received_at = 2; - * @return This builder for chaining. - */ - public Builder clearReceivedAt() { - bitField0_ = (bitField0_ & ~0x00000002); - receivedAt_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object topicPrefix_ = ""; - /** - * required string topic_prefix = 3; - * @return Whether the topicPrefix field is set. - */ - public boolean hasTopicPrefix() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required string topic_prefix = 3; - * @return The topicPrefix. - */ - public java.lang.String getTopicPrefix() { - java.lang.Object ref = topicPrefix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - topicPrefix_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string topic_prefix = 3; - * @return The bytes for topicPrefix. - */ - public com.google.protobuf.ByteString - getTopicPrefixBytes() { - java.lang.Object ref = topicPrefix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicPrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string topic_prefix = 3; - * @param value The topicPrefix to set. - * @return This builder for chaining. - */ - public Builder setTopicPrefix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - topicPrefix_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required string topic_prefix = 3; - * @return This builder for chaining. - */ - public Builder clearTopicPrefix() { - topicPrefix_ = getDefaultInstance().getTopicPrefix(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * required string topic_prefix = 3; - * @param value The bytes for topicPrefix to set. - * @return This builder for chaining. - */ - public Builder setTopicPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - topicPrefix_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object topicVersion_ = ""; - /** - * required string topic_version = 4; - * @return Whether the topicVersion field is set. - */ - public boolean hasTopicVersion() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required string topic_version = 4; - * @return The topicVersion. - */ - public java.lang.String getTopicVersion() { - java.lang.Object ref = topicVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - topicVersion_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string topic_version = 4; - * @return The bytes for topicVersion. - */ - public com.google.protobuf.ByteString - getTopicVersionBytes() { - java.lang.Object ref = topicVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string topic_version = 4; - * @param value The topicVersion to set. - * @return This builder for chaining. - */ - public Builder setTopicVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - topicVersion_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * required string topic_version = 4; - * @return This builder for chaining. - */ - public Builder clearTopicVersion() { - topicVersion_ = getDefaultInstance().getTopicVersion(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * required string topic_version = 4; - * @param value The bytes for topicVersion to set. - * @return This builder for chaining. - */ - public Builder setTopicVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - topicVersion_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private int journeyType_ = 0; - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @return Whether the journeyType field is set. - */ - @java.lang.Override public boolean hasJourneyType() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @return The journeyType. - */ - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType getJourneyType() { - fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType result = fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType.forNumber(journeyType_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType.journey : result; - } - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @param value The journeyType to set. - * @return This builder for chaining. - */ - public Builder setJourneyType(fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - journeyType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @return This builder for chaining. - */ - public Builder clearJourneyType() { - bitField0_ = (bitField0_ & ~0x00000010); - journeyType_ = 0; - onChanged(); - return this; - } - - private int temporalType_ = 0; - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @return Whether the temporalType field is set. - */ - @java.lang.Override public boolean hasTemporalType() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @return The temporalType. - */ - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType getTemporalType() { - fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType result = fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType.forNumber(temporalType_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType.ongoing : result; - } - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @param value The temporalType to set. - * @return This builder for chaining. - */ - public Builder setTemporalType(fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - temporalType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @return This builder for chaining. - */ - public Builder clearTemporalType() { - bitField0_ = (bitField0_ & ~0x00000020); - temporalType_ = 0; - onChanged(); - return this; - } - - private int eventType_ = 0; - /** - *
-       * v2
-       * 
- * - * optional .proto.Topic.EventType event_type = 7; - * @return Whether the eventType field is set. - */ - @java.lang.Override public boolean hasEventType() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-       * v2
-       * 
- * - * optional .proto.Topic.EventType event_type = 7; - * @return The eventType. - */ - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Topic.EventType getEventType() { - fi.hsl.common.hfp.proto.Hfp.Topic.EventType result = fi.hsl.common.hfp.proto.Hfp.Topic.EventType.forNumber(eventType_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.EventType.VP : result; - } - /** - *
-       * v2
-       * 
- * - * optional .proto.Topic.EventType event_type = 7; - * @param value The eventType to set. - * @return This builder for chaining. - */ - public Builder setEventType(fi.hsl.common.hfp.proto.Hfp.Topic.EventType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - eventType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * v2
-       * 
- * - * optional .proto.Topic.EventType event_type = 7; - * @return This builder for chaining. - */ - public Builder clearEventType() { - bitField0_ = (bitField0_ & ~0x00000040); - eventType_ = 0; - onChanged(); - return this; - } - - private int transportMode_ = 0; - /** - *
-       * Optional because of rare bug in data source systems
-       * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @return Whether the transportMode field is set. - */ - @java.lang.Override public boolean hasTransportMode() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-       * Optional because of rare bug in data source systems
-       * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @return The transportMode. - */ - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode getTransportMode() { - fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode result = fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode.forNumber(transportMode_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode.bus : result; - } - /** - *
-       * Optional because of rare bug in data source systems
-       * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @param value The transportMode to set. - * @return This builder for chaining. - */ - public Builder setTransportMode(fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - transportMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Optional because of rare bug in data source systems
-       * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @return This builder for chaining. - */ - public Builder clearTransportMode() { - bitField0_ = (bitField0_ & ~0x00000080); - transportMode_ = 0; - onChanged(); - return this; - } - - private int operatorId_ ; - /** - * required int32 operator_id = 9; - * @return Whether the operatorId field is set. - */ - @java.lang.Override - public boolean hasOperatorId() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * required int32 operator_id = 9; - * @return The operatorId. - */ - @java.lang.Override - public int getOperatorId() { - return operatorId_; - } - /** - * required int32 operator_id = 9; - * @param value The operatorId to set. - * @return This builder for chaining. - */ - public Builder setOperatorId(int value) { - - operatorId_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * required int32 operator_id = 9; - * @return This builder for chaining. - */ - public Builder clearOperatorId() { - bitField0_ = (bitField0_ & ~0x00000100); - operatorId_ = 0; - onChanged(); - return this; - } - - private int vehicleNumber_ ; - /** - * required int32 vehicle_number = 10; - * @return Whether the vehicleNumber field is set. - */ - @java.lang.Override - public boolean hasVehicleNumber() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * required int32 vehicle_number = 10; - * @return The vehicleNumber. - */ - @java.lang.Override - public int getVehicleNumber() { - return vehicleNumber_; - } - /** - * required int32 vehicle_number = 10; - * @param value The vehicleNumber to set. - * @return This builder for chaining. - */ - public Builder setVehicleNumber(int value) { - - vehicleNumber_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * required int32 vehicle_number = 10; - * @return This builder for chaining. - */ - public Builder clearVehicleNumber() { - bitField0_ = (bitField0_ & ~0x00000200); - vehicleNumber_ = 0; - onChanged(); - return this; - } - - private java.lang.Object uniqueVehicleId_ = ""; - /** - * required string unique_vehicle_id = 11; - * @return Whether the uniqueVehicleId field is set. - */ - public boolean hasUniqueVehicleId() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * required string unique_vehicle_id = 11; - * @return The uniqueVehicleId. - */ - public java.lang.String getUniqueVehicleId() { - java.lang.Object ref = uniqueVehicleId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - uniqueVehicleId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string unique_vehicle_id = 11; - * @return The bytes for uniqueVehicleId. - */ - public com.google.protobuf.ByteString - getUniqueVehicleIdBytes() { - java.lang.Object ref = uniqueVehicleId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uniqueVehicleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string unique_vehicle_id = 11; - * @param value The uniqueVehicleId to set. - * @return This builder for chaining. - */ - public Builder setUniqueVehicleId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - uniqueVehicleId_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * required string unique_vehicle_id = 11; - * @return This builder for chaining. - */ - public Builder clearUniqueVehicleId() { - uniqueVehicleId_ = getDefaultInstance().getUniqueVehicleId(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - return this; - } - /** - * required string unique_vehicle_id = 11; - * @param value The bytes for uniqueVehicleId to set. - * @return This builder for chaining. - */ - public Builder setUniqueVehicleIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - uniqueVehicleId_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - private java.lang.Object routeId_ = ""; - /** - * optional string route_id = 12; - * @return Whether the routeId field is set. - */ - public boolean hasRouteId() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * optional string route_id = 12; - * @return The routeId. - */ - public java.lang.String getRouteId() { - java.lang.Object ref = routeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - routeId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string route_id = 12; - * @return The bytes for routeId. - */ - public com.google.protobuf.ByteString - getRouteIdBytes() { - java.lang.Object ref = routeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string route_id = 12; - * @param value The routeId to set. - * @return This builder for chaining. - */ - public Builder setRouteId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - routeId_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * optional string route_id = 12; - * @return This builder for chaining. - */ - public Builder clearRouteId() { - routeId_ = getDefaultInstance().getRouteId(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - return this; - } - /** - * optional string route_id = 12; - * @param value The bytes for routeId to set. - * @return This builder for chaining. - */ - public Builder setRouteIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - routeId_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - - private int directionId_ ; - /** - * optional int32 direction_id = 13; - * @return Whether the directionId field is set. - */ - @java.lang.Override - public boolean hasDirectionId() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * optional int32 direction_id = 13; - * @return The directionId. - */ - @java.lang.Override - public int getDirectionId() { - return directionId_; - } - /** - * optional int32 direction_id = 13; - * @param value The directionId to set. - * @return This builder for chaining. - */ - public Builder setDirectionId(int value) { - - directionId_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * optional int32 direction_id = 13; - * @return This builder for chaining. - */ - public Builder clearDirectionId() { - bitField0_ = (bitField0_ & ~0x00001000); - directionId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object headsign_ = ""; - /** - * optional string headsign = 14; - * @return Whether the headsign field is set. - */ - public boolean hasHeadsign() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * optional string headsign = 14; - * @return The headsign. - */ - public java.lang.String getHeadsign() { - java.lang.Object ref = headsign_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - headsign_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string headsign = 14; - * @return The bytes for headsign. - */ - public com.google.protobuf.ByteString - getHeadsignBytes() { - java.lang.Object ref = headsign_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - headsign_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string headsign = 14; - * @param value The headsign to set. - * @return This builder for chaining. - */ - public Builder setHeadsign( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - headsign_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * optional string headsign = 14; - * @return This builder for chaining. - */ - public Builder clearHeadsign() { - headsign_ = getDefaultInstance().getHeadsign(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - return this; - } - /** - * optional string headsign = 14; - * @param value The bytes for headsign to set. - * @return This builder for chaining. - */ - public Builder setHeadsignBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - headsign_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - - private java.lang.Object startTime_ = ""; - /** - * optional string start_time = 15; - * @return Whether the startTime field is set. - */ - public boolean hasStartTime() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * optional string start_time = 15; - * @return The startTime. - */ - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startTime_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string start_time = 15; - * @return The bytes for startTime. - */ - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string start_time = 15; - * @param value The startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTime( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - startTime_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * optional string start_time = 15; - * @return This builder for chaining. - */ - public Builder clearStartTime() { - startTime_ = getDefaultInstance().getStartTime(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); - return this; - } - /** - * optional string start_time = 15; - * @param value The bytes for startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - startTime_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - - private java.lang.Object nextStop_ = ""; - /** - * optional string next_stop = 16; - * @return Whether the nextStop field is set. - */ - public boolean hasNextStop() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * optional string next_stop = 16; - * @return The nextStop. - */ - public java.lang.String getNextStop() { - java.lang.Object ref = nextStop_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - nextStop_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string next_stop = 16; - * @return The bytes for nextStop. - */ - public com.google.protobuf.ByteString - getNextStopBytes() { - java.lang.Object ref = nextStop_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextStop_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string next_stop = 16; - * @param value The nextStop to set. - * @return This builder for chaining. - */ - public Builder setNextStop( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextStop_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * optional string next_stop = 16; - * @return This builder for chaining. - */ - public Builder clearNextStop() { - nextStop_ = getDefaultInstance().getNextStop(); - bitField0_ = (bitField0_ & ~0x00008000); - onChanged(); - return this; - } - /** - * optional string next_stop = 16; - * @param value The bytes for nextStop to set. - * @return This builder for chaining. - */ - public Builder setNextStopBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - nextStop_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - - private int geohashLevel_ ; - /** - * optional int32 geohash_level = 17; - * @return Whether the geohashLevel field is set. - */ - @java.lang.Override - public boolean hasGeohashLevel() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * optional int32 geohash_level = 17; - * @return The geohashLevel. - */ - @java.lang.Override - public int getGeohashLevel() { - return geohashLevel_; - } - /** - * optional int32 geohash_level = 17; - * @param value The geohashLevel to set. - * @return This builder for chaining. - */ - public Builder setGeohashLevel(int value) { - - geohashLevel_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * optional int32 geohash_level = 17; - * @return This builder for chaining. - */ - public Builder clearGeohashLevel() { - bitField0_ = (bitField0_ & ~0x00010000); - geohashLevel_ = 0; - onChanged(); - return this; - } - - private double latitude_ ; - /** - * optional double latitude = 18; - * @return Whether the latitude field is set. - */ - @java.lang.Override - public boolean hasLatitude() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * optional double latitude = 18; - * @return The latitude. - */ - @java.lang.Override - public double getLatitude() { - return latitude_; - } - /** - * optional double latitude = 18; - * @param value The latitude to set. - * @return This builder for chaining. - */ - public Builder setLatitude(double value) { - - latitude_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * optional double latitude = 18; - * @return This builder for chaining. - */ - public Builder clearLatitude() { - bitField0_ = (bitField0_ & ~0x00020000); - latitude_ = 0D; - onChanged(); - return this; - } - - private double longitude_ ; - /** - * optional double longitude = 19; - * @return Whether the longitude field is set. - */ - @java.lang.Override - public boolean hasLongitude() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * optional double longitude = 19; - * @return The longitude. - */ - @java.lang.Override - public double getLongitude() { - return longitude_; - } - /** - * optional double longitude = 19; - * @param value The longitude to set. - * @return This builder for chaining. - */ - public Builder setLongitude(double value) { - - longitude_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * optional double longitude = 19; - * @return This builder for chaining. - */ - public Builder clearLongitude() { - bitField0_ = (bitField0_ & ~0x00040000); - longitude_ = 0D; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.Topic) - } - - // @@protoc_insertion_point(class_scope:proto.Topic) - private static final fi.hsl.common.hfp.proto.Hfp.Topic DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.hfp.proto.Hfp.Topic(); - } - - public static fi.hsl.common.hfp.proto.Hfp.Topic getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Topic parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Topic getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PayloadOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.Payload) - com.google.protobuf.MessageOrBuilder { - - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - boolean hasSchemaVersion(); - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - int getSchemaVersion(); - - /** - * optional string desi = 2; - * @return Whether the desi field is set. - */ - boolean hasDesi(); - /** - * optional string desi = 2; - * @return The desi. - */ - java.lang.String getDesi(); - /** - * optional string desi = 2; - * @return The bytes for desi. - */ - com.google.protobuf.ByteString - getDesiBytes(); - - /** - * optional string dir = 3; - * @return Whether the dir field is set. - */ - boolean hasDir(); - /** - * optional string dir = 3; - * @return The dir. - */ - java.lang.String getDir(); - /** - * optional string dir = 3; - * @return The bytes for dir. - */ - com.google.protobuf.ByteString - getDirBytes(); - - /** - * optional int32 oper = 4; - * @return Whether the oper field is set. - */ - boolean hasOper(); - /** - * optional int32 oper = 4; - * @return The oper. - */ - int getOper(); - - /** - * optional int32 veh = 5; - * @return Whether the veh field is set. - */ - boolean hasVeh(); - /** - * optional int32 veh = 5; - * @return The veh. - */ - int getVeh(); - - /** - * required string tst = 6; - * @return Whether the tst field is set. - */ - boolean hasTst(); - /** - * required string tst = 6; - * @return The tst. - */ - java.lang.String getTst(); - /** - * required string tst = 6; - * @return The bytes for tst. - */ - com.google.protobuf.ByteString - getTstBytes(); - - /** - * required int64 tsi = 7; - * @return Whether the tsi field is set. - */ - boolean hasTsi(); - /** - * required int64 tsi = 7; - * @return The tsi. - */ - long getTsi(); - - /** - * optional double spd = 8; - * @return Whether the spd field is set. - */ - boolean hasSpd(); - /** - * optional double spd = 8; - * @return The spd. - */ - double getSpd(); - - /** - * optional int32 hdg = 9; - * @return Whether the hdg field is set. - */ - boolean hasHdg(); - /** - * optional int32 hdg = 9; - * @return The hdg. - */ - int getHdg(); - - /** - * optional double lat = 10; - * @return Whether the lat field is set. - */ - boolean hasLat(); - /** - * optional double lat = 10; - * @return The lat. - */ - double getLat(); - - /** - * optional double long = 11; - * @return Whether the long field is set. - */ - boolean hasLong(); - /** - * optional double long = 11; - * @return The long. - */ - double getLong(); - - /** - * optional double acc = 12; - * @return Whether the acc field is set. - */ - boolean hasAcc(); - /** - * optional double acc = 12; - * @return The acc. - */ - double getAcc(); - - /** - * optional uint32 dl = 13; - * @return Whether the dl field is set. - */ - boolean hasDl(); - /** - * optional uint32 dl = 13; - * @return The dl. - */ - int getDl(); - - /** - * optional double odo = 14; - * @return Whether the odo field is set. - */ - boolean hasOdo(); - /** - * optional double odo = 14; - * @return The odo. - */ - double getOdo(); - - /** - * optional uint32 drst = 15; - * @return Whether the drst field is set. - */ - boolean hasDrst(); - /** - * optional uint32 drst = 15; - * @return The drst. - */ - int getDrst(); - - /** - * optional string oday = 16; - * @return Whether the oday field is set. - */ - boolean hasOday(); - /** - * optional string oday = 16; - * @return The oday. - */ - java.lang.String getOday(); - /** - * optional string oday = 16; - * @return The bytes for oday. - */ - com.google.protobuf.ByteString - getOdayBytes(); - - /** - * optional int32 jrn = 17; - * @return Whether the jrn field is set. - */ - boolean hasJrn(); - /** - * optional int32 jrn = 17; - * @return The jrn. - */ - int getJrn(); - - /** - * optional int32 line = 18; - * @return Whether the line field is set. - */ - boolean hasLine(); - /** - * optional int32 line = 18; - * @return The line. - */ - int getLine(); - - /** - * optional string start = 19; - * @return Whether the start field is set. - */ - boolean hasStart(); - /** - * optional string start = 19; - * @return The start. - */ - java.lang.String getStart(); - /** - * optional string start = 19; - * @return The bytes for start. - */ - com.google.protobuf.ByteString - getStartBytes(); - - /** - *
-     * v2
-     * 
- * - * optional .proto.Payload.LocationQualityMethod loc = 20; - * @return Whether the loc field is set. - */ - boolean hasLoc(); - /** - *
-     * v2
-     * 
- * - * optional .proto.Payload.LocationQualityMethod loc = 20; - * @return The loc. - */ - fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod getLoc(); - - /** - *
-     * v2
-     * 
- * - * optional int32 stop = 21; - * @return Whether the stop field is set. - */ - boolean hasStop(); - /** - *
-     * v2
-     * 
- * - * optional int32 stop = 21; - * @return The stop. - */ - int getStop(); - - /** - *
-     * v2
-     * 
- * - * optional string route = 22; - * @return Whether the route field is set. - */ - boolean hasRoute(); - /** - *
-     * v2
-     * 
- * - * optional string route = 22; - * @return The route. - */ - java.lang.String getRoute(); - /** - *
-     * v2
-     * 
- * - * optional string route = 22; - * @return The bytes for route. - */ - com.google.protobuf.ByteString - getRouteBytes(); - - /** - *
-     * v2
-     * 
- * - * optional int32 occu = 23; - * @return Whether the occu field is set. - */ - boolean hasOccu(); - /** - *
-     * v2
-     * 
- * - * optional int32 occu = 23; - * @return The occu. - */ - int getOccu(); - - /** - * optional int32 seq = 24; - * @return Whether the seq field is set. - */ - boolean hasSeq(); - /** - * optional int32 seq = 24; - * @return The seq. - */ - int getSeq(); - - /** - * optional string ttarr = 25; - * @return Whether the ttarr field is set. - */ - boolean hasTtarr(); - /** - * optional string ttarr = 25; - * @return The ttarr. - */ - java.lang.String getTtarr(); - /** - * optional string ttarr = 25; - * @return The bytes for ttarr. - */ - com.google.protobuf.ByteString - getTtarrBytes(); - - /** - * optional string ttdep = 26; - * @return Whether the ttdep field is set. - */ - boolean hasTtdep(); - /** - * optional string ttdep = 26; - * @return The ttdep. - */ - java.lang.String getTtdep(); - /** - * optional string ttdep = 26; - * @return The bytes for ttdep. - */ - com.google.protobuf.ByteString - getTtdepBytes(); - - /** - * optional int32 dr_type = 27; - * @return Whether the drType field is set. - */ - boolean hasDrType(); - /** - * optional int32 dr_type = 27; - * @return The drType. - */ - int getDrType(); - - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_requestid = 28; - * @return Whether the tlpRequestid field is set. - */ - boolean hasTlpRequestid(); - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_requestid = 28; - * @return The tlpRequestid. - */ - int getTlpRequestid(); - - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; - * @return Whether the tlpRequesttype field is set. - */ - boolean hasTlpRequesttype(); - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; - * @return The tlpRequesttype. - */ - fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType getTlpRequesttype(); - - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; - * @return Whether the tlpPrioritylevel field is set. - */ - boolean hasTlpPrioritylevel(); - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; - * @return The tlpPrioritylevel. - */ - fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel getTlpPrioritylevel(); - - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpReason tlp_reason = 31; - * @return Whether the tlpReason field is set. - */ - boolean hasTlpReason(); - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpReason tlp_reason = 31; - * @return The tlpReason. - */ - fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason getTlpReason(); - - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_att_seq = 32; - * @return Whether the tlpAttSeq field is set. - */ - boolean hasTlpAttSeq(); - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_att_seq = 32; - * @return The tlpAttSeq. - */ - int getTlpAttSeq(); - - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpDecision tlp_decision = 33; - * @return Whether the tlpDecision field is set. - */ - boolean hasTlpDecision(); - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpDecision tlp_decision = 33; - * @return The tlpDecision. - */ - fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision getTlpDecision(); - - /** - *
-     * tlr
-     * 
- * - * optional int32 sid = 34; - * @return Whether the sid field is set. - */ - boolean hasSid(); - /** - *
-     * tlr
-     * 
- * - * optional int32 sid = 34; - * @return The sid. - */ - int getSid(); - - /** - *
-     * tlr
-     * 
- * - * optional int32 signal_groupid = 35; - * @return Whether the signalGroupid field is set. - */ - boolean hasSignalGroupid(); - /** - *
-     * tlr
-     * 
- * - * optional int32 signal_groupid = 35; - * @return The signalGroupid. - */ - int getSignalGroupid(); - - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_signalgroupnbr = 36; - * @return Whether the tlpSignalgroupnbr field is set. - */ - boolean hasTlpSignalgroupnbr(); - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_signalgroupnbr = 36; - * @return The tlpSignalgroupnbr. - */ - int getTlpSignalgroupnbr(); - - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_line_configid = 38; - * @return Whether the tlpLineConfigid field is set. - */ - boolean hasTlpLineConfigid(); - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_line_configid = 38; - * @return The tlpLineConfigid. - */ - int getTlpLineConfigid(); - - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_point_configid = 39; - * @return Whether the tlpPointConfigid field is set. - */ - boolean hasTlpPointConfigid(); - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_point_configid = 39; - * @return The tlpPointConfigid. - */ - int getTlpPointConfigid(); - - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_frequency = 40; - * @return Whether the tlpFrequency field is set. - */ - boolean hasTlpFrequency(); - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_frequency = 40; - * @return The tlpFrequency. - */ - int getTlpFrequency(); - - /** - *
-     * tlr
-     * 
- * - * optional string tlp_protocol = 41; - * @return Whether the tlpProtocol field is set. - */ - boolean hasTlpProtocol(); - /** - *
-     * tlr
-     * 
- * - * optional string tlp_protocol = 41; - * @return The tlpProtocol. - */ - java.lang.String getTlpProtocol(); - /** - *
-     * tlr
-     * 
- * - * optional string tlp_protocol = 41; - * @return The bytes for tlpProtocol. - */ - com.google.protobuf.ByteString - getTlpProtocolBytes(); - - /** - * optional string label = 42; - * @return Whether the label field is set. - */ - boolean hasLabel(); - /** - * optional string label = 42; - * @return The label. - */ - java.lang.String getLabel(); - /** - * optional string label = 42; - * @return The bytes for label. - */ - com.google.protobuf.ByteString - getLabelBytes(); - } - /** - * Protobuf type {@code proto.Payload} - */ - public static final class Payload extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.Payload) - PayloadOrBuilder { - private static final long serialVersionUID = 0L; - // Use Payload.newBuilder() to construct. - private Payload(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Payload() { - schemaVersion_ = 1; - desi_ = ""; - dir_ = ""; - tst_ = ""; - oday_ = ""; - start_ = ""; - loc_ = 0; - route_ = ""; - ttarr_ = ""; - ttdep_ = ""; - tlpRequesttype_ = 0; - tlpPrioritylevel_ = 0; - tlpReason_ = 0; - tlpDecision_ = 0; - tlpProtocol_ = ""; - label_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Payload(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Payload_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Payload_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.hfp.proto.Hfp.Payload.class, fi.hsl.common.hfp.proto.Hfp.Payload.Builder.class); - } - - /** - * Protobuf enum {@code proto.Payload.LocationQualityMethod} - */ - public enum LocationQualityMethod - implements com.google.protobuf.ProtocolMessageEnum { - /** - * GPS = 0; - */ - GPS(0), - /** - * ODO = 1; - */ - ODO(1), - /** - * MAN = 2; - */ - MAN(2), - /** - * NA = 3; - */ - NA(3), - /** - * DR = 4; - */ - DR(4), - ; - - /** - * GPS = 0; - */ - public static final int GPS_VALUE = 0; - /** - * ODO = 1; - */ - public static final int ODO_VALUE = 1; - /** - * MAN = 2; - */ - public static final int MAN_VALUE = 2; - /** - * NA = 3; - */ - public static final int NA_VALUE = 3; - /** - * DR = 4; - */ - public static final int DR_VALUE = 4; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LocationQualityMethod valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static LocationQualityMethod forNumber(int value) { - switch (value) { - case 0: return GPS; - case 1: return ODO; - case 2: return MAN; - case 3: return NA; - case 4: return DR; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LocationQualityMethod> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LocationQualityMethod findValueByNumber(int number) { - return LocationQualityMethod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.hfp.proto.Hfp.Payload.getDescriptor().getEnumTypes().get(0); - } - - private static final LocationQualityMethod[] VALUES = values(); - - public static LocationQualityMethod valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private LocationQualityMethod(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.Payload.LocationQualityMethod) - } - - /** - * Protobuf enum {@code proto.Payload.TlpRequestType} - */ - public enum TlpRequestType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NORMAL = 0; - */ - NORMAL(0), - /** - * DOOR_CLOSE = 1; - */ - DOOR_CLOSE(1), - /** - * DOOR_OPEN = 2; - */ - DOOR_OPEN(2), - /** - * ADVANCE = 3; - */ - ADVANCE(3), - ; - - /** - * NORMAL = 0; - */ - public static final int NORMAL_VALUE = 0; - /** - * DOOR_CLOSE = 1; - */ - public static final int DOOR_CLOSE_VALUE = 1; - /** - * DOOR_OPEN = 2; - */ - public static final int DOOR_OPEN_VALUE = 2; - /** - * ADVANCE = 3; - */ - public static final int ADVANCE_VALUE = 3; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TlpRequestType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static TlpRequestType forNumber(int value) { - switch (value) { - case 0: return NORMAL; - case 1: return DOOR_CLOSE; - case 2: return DOOR_OPEN; - case 3: return ADVANCE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TlpRequestType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TlpRequestType findValueByNumber(int number) { - return TlpRequestType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.hfp.proto.Hfp.Payload.getDescriptor().getEnumTypes().get(1); - } - - private static final TlpRequestType[] VALUES = values(); - - public static TlpRequestType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private TlpRequestType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.Payload.TlpRequestType) - } - - /** - * Protobuf enum {@code proto.Payload.TlpPriorityLevel} - */ - public enum TlpPriorityLevel - implements com.google.protobuf.ProtocolMessageEnum { - /** - * normal = 0; - */ - normal(0), - /** - * high = 1; - */ - high(1), - /** - * norequest = 2; - */ - norequest(2), - ; - - /** - * normal = 0; - */ - public static final int normal_VALUE = 0; - /** - * high = 1; - */ - public static final int high_VALUE = 1; - /** - * norequest = 2; - */ - public static final int norequest_VALUE = 2; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TlpPriorityLevel valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static TlpPriorityLevel forNumber(int value) { - switch (value) { - case 0: return normal; - case 1: return high; - case 2: return norequest; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TlpPriorityLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TlpPriorityLevel findValueByNumber(int number) { - return TlpPriorityLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.hfp.proto.Hfp.Payload.getDescriptor().getEnumTypes().get(2); - } - - private static final TlpPriorityLevel[] VALUES = values(); - - public static TlpPriorityLevel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private TlpPriorityLevel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.Payload.TlpPriorityLevel) - } - - /** - * Protobuf enum {@code proto.Payload.TlpReason} - */ - public enum TlpReason - implements com.google.protobuf.ProtocolMessageEnum { - /** - * GLOBAL = 0; - */ - GLOBAL(0), - /** - * AHEAD = 1; - */ - AHEAD(1), - /** - * LINE = 2; - */ - LINE(2), - /** - * PRIOEXEP = 3; - */ - PRIOEXEP(3), - ; - - /** - * GLOBAL = 0; - */ - public static final int GLOBAL_VALUE = 0; - /** - * AHEAD = 1; - */ - public static final int AHEAD_VALUE = 1; - /** - * LINE = 2; - */ - public static final int LINE_VALUE = 2; - /** - * PRIOEXEP = 3; - */ - public static final int PRIOEXEP_VALUE = 3; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TlpReason valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static TlpReason forNumber(int value) { - switch (value) { - case 0: return GLOBAL; - case 1: return AHEAD; - case 2: return LINE; - case 3: return PRIOEXEP; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TlpReason> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TlpReason findValueByNumber(int number) { - return TlpReason.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.hfp.proto.Hfp.Payload.getDescriptor().getEnumTypes().get(3); - } - - private static final TlpReason[] VALUES = values(); - - public static TlpReason valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private TlpReason(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.Payload.TlpReason) - } - - /** - * Protobuf enum {@code proto.Payload.TlpDecision} - */ - public enum TlpDecision - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ACK = 0; - */ - ACK(0), - /** - * NAK = 1; - */ - NAK(1), - ; - - /** - * ACK = 0; - */ - public static final int ACK_VALUE = 0; - /** - * NAK = 1; - */ - public static final int NAK_VALUE = 1; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TlpDecision valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static TlpDecision forNumber(int value) { - switch (value) { - case 0: return ACK; - case 1: return NAK; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TlpDecision> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TlpDecision findValueByNumber(int number) { - return TlpDecision.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.hfp.proto.Hfp.Payload.getDescriptor().getEnumTypes().get(4); - } - - private static final TlpDecision[] VALUES = values(); - - public static TlpDecision valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private TlpDecision(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.Payload.TlpDecision) - } - - private int bitField0_; - private int bitField1_; - public static final int SCHEMAVERSION_FIELD_NUMBER = 1; - private int schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - - public static final int DESI_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object desi_ = ""; - /** - * optional string desi = 2; - * @return Whether the desi field is set. - */ - @java.lang.Override - public boolean hasDesi() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional string desi = 2; - * @return The desi. - */ - @java.lang.Override - public java.lang.String getDesi() { - java.lang.Object ref = desi_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - desi_ = s; - } - return s; - } - } - /** - * optional string desi = 2; - * @return The bytes for desi. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDesiBytes() { - java.lang.Object ref = desi_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIR_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object dir_ = ""; - /** - * optional string dir = 3; - * @return Whether the dir field is set. - */ - @java.lang.Override - public boolean hasDir() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional string dir = 3; - * @return The dir. - */ - @java.lang.Override - public java.lang.String getDir() { - java.lang.Object ref = dir_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - dir_ = s; - } - return s; - } - } - /** - * optional string dir = 3; - * @return The bytes for dir. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDirBytes() { - java.lang.Object ref = dir_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dir_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPER_FIELD_NUMBER = 4; - private int oper_ = 0; - /** - * optional int32 oper = 4; - * @return Whether the oper field is set. - */ - @java.lang.Override - public boolean hasOper() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional int32 oper = 4; - * @return The oper. - */ - @java.lang.Override - public int getOper() { - return oper_; - } - - public static final int VEH_FIELD_NUMBER = 5; - private int veh_ = 0; - /** - * optional int32 veh = 5; - * @return Whether the veh field is set. - */ - @java.lang.Override - public boolean hasVeh() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional int32 veh = 5; - * @return The veh. - */ - @java.lang.Override - public int getVeh() { - return veh_; - } - - public static final int TST_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object tst_ = ""; - /** - * required string tst = 6; - * @return Whether the tst field is set. - */ - @java.lang.Override - public boolean hasTst() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * required string tst = 6; - * @return The tst. - */ - @java.lang.Override - public java.lang.String getTst() { - java.lang.Object ref = tst_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tst_ = s; - } - return s; - } - } - /** - * required string tst = 6; - * @return The bytes for tst. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTstBytes() { - java.lang.Object ref = tst_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tst_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TSI_FIELD_NUMBER = 7; - private long tsi_ = 0L; - /** - * required int64 tsi = 7; - * @return Whether the tsi field is set. - */ - @java.lang.Override - public boolean hasTsi() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * required int64 tsi = 7; - * @return The tsi. - */ - @java.lang.Override - public long getTsi() { - return tsi_; - } - - public static final int SPD_FIELD_NUMBER = 8; - private double spd_ = 0D; - /** - * optional double spd = 8; - * @return Whether the spd field is set. - */ - @java.lang.Override - public boolean hasSpd() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional double spd = 8; - * @return The spd. - */ - @java.lang.Override - public double getSpd() { - return spd_; - } - - public static final int HDG_FIELD_NUMBER = 9; - private int hdg_ = 0; - /** - * optional int32 hdg = 9; - * @return Whether the hdg field is set. - */ - @java.lang.Override - public boolean hasHdg() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * optional int32 hdg = 9; - * @return The hdg. - */ - @java.lang.Override - public int getHdg() { - return hdg_; - } - - public static final int LAT_FIELD_NUMBER = 10; - private double lat_ = 0D; - /** - * optional double lat = 10; - * @return Whether the lat field is set. - */ - @java.lang.Override - public boolean hasLat() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * optional double lat = 10; - * @return The lat. - */ - @java.lang.Override - public double getLat() { - return lat_; - } - - public static final int LONG_FIELD_NUMBER = 11; - private double long_ = 0D; - /** - * optional double long = 11; - * @return Whether the long field is set. - */ - @java.lang.Override - public boolean hasLong() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * optional double long = 11; - * @return The long. - */ - @java.lang.Override - public double getLong() { - return long_; - } - - public static final int ACC_FIELD_NUMBER = 12; - private double acc_ = 0D; - /** - * optional double acc = 12; - * @return Whether the acc field is set. - */ - @java.lang.Override - public boolean hasAcc() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * optional double acc = 12; - * @return The acc. - */ - @java.lang.Override - public double getAcc() { - return acc_; - } - - public static final int DL_FIELD_NUMBER = 13; - private int dl_ = 0; - /** - * optional uint32 dl = 13; - * @return Whether the dl field is set. - */ - @java.lang.Override - public boolean hasDl() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * optional uint32 dl = 13; - * @return The dl. - */ - @java.lang.Override - public int getDl() { - return dl_; - } - - public static final int ODO_FIELD_NUMBER = 14; - private double odo_ = 0D; - /** - * optional double odo = 14; - * @return Whether the odo field is set. - */ - @java.lang.Override - public boolean hasOdo() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * optional double odo = 14; - * @return The odo. - */ - @java.lang.Override - public double getOdo() { - return odo_; - } - - public static final int DRST_FIELD_NUMBER = 15; - private int drst_ = 0; - /** - * optional uint32 drst = 15; - * @return Whether the drst field is set. - */ - @java.lang.Override - public boolean hasDrst() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * optional uint32 drst = 15; - * @return The drst. - */ - @java.lang.Override - public int getDrst() { - return drst_; - } - - public static final int ODAY_FIELD_NUMBER = 16; - @SuppressWarnings("serial") - private volatile java.lang.Object oday_ = ""; - /** - * optional string oday = 16; - * @return Whether the oday field is set. - */ - @java.lang.Override - public boolean hasOday() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * optional string oday = 16; - * @return The oday. - */ - @java.lang.Override - public java.lang.String getOday() { - java.lang.Object ref = oday_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - oday_ = s; - } - return s; - } - } - /** - * optional string oday = 16; - * @return The bytes for oday. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOdayBytes() { - java.lang.Object ref = oday_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oday_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JRN_FIELD_NUMBER = 17; - private int jrn_ = 0; - /** - * optional int32 jrn = 17; - * @return Whether the jrn field is set. - */ - @java.lang.Override - public boolean hasJrn() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * optional int32 jrn = 17; - * @return The jrn. - */ - @java.lang.Override - public int getJrn() { - return jrn_; - } - - public static final int LINE_FIELD_NUMBER = 18; - private int line_ = 0; - /** - * optional int32 line = 18; - * @return Whether the line field is set. - */ - @java.lang.Override - public boolean hasLine() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * optional int32 line = 18; - * @return The line. - */ - @java.lang.Override - public int getLine() { - return line_; - } - - public static final int START_FIELD_NUMBER = 19; - @SuppressWarnings("serial") - private volatile java.lang.Object start_ = ""; - /** - * optional string start = 19; - * @return Whether the start field is set. - */ - @java.lang.Override - public boolean hasStart() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * optional string start = 19; - * @return The start. - */ - @java.lang.Override - public java.lang.String getStart() { - java.lang.Object ref = start_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - start_ = s; - } - return s; - } - } - /** - * optional string start = 19; - * @return The bytes for start. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartBytes() { - java.lang.Object ref = start_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - start_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOC_FIELD_NUMBER = 20; - private int loc_ = 0; - /** - *
-     * v2
-     * 
- * - * optional .proto.Payload.LocationQualityMethod loc = 20; - * @return Whether the loc field is set. - */ - @java.lang.Override public boolean hasLoc() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - *
-     * v2
-     * 
- * - * optional .proto.Payload.LocationQualityMethod loc = 20; - * @return The loc. - */ - @java.lang.Override public fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod getLoc() { - fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod result = fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod.forNumber(loc_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod.GPS : result; - } - - public static final int STOP_FIELD_NUMBER = 21; - private int stop_ = 0; - /** - *
-     * v2
-     * 
- * - * optional int32 stop = 21; - * @return Whether the stop field is set. - */ - @java.lang.Override - public boolean hasStop() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - *
-     * v2
-     * 
- * - * optional int32 stop = 21; - * @return The stop. - */ - @java.lang.Override - public int getStop() { - return stop_; - } - - public static final int ROUTE_FIELD_NUMBER = 22; - @SuppressWarnings("serial") - private volatile java.lang.Object route_ = ""; - /** - *
-     * v2
-     * 
- * - * optional string route = 22; - * @return Whether the route field is set. - */ - @java.lang.Override - public boolean hasRoute() { - return ((bitField0_ & 0x00200000) != 0); - } - /** - *
-     * v2
-     * 
- * - * optional string route = 22; - * @return The route. - */ - @java.lang.Override - public java.lang.String getRoute() { - java.lang.Object ref = route_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - route_ = s; - } - return s; - } - } - /** - *
-     * v2
-     * 
- * - * optional string route = 22; - * @return The bytes for route. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRouteBytes() { - java.lang.Object ref = route_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - route_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OCCU_FIELD_NUMBER = 23; - private int occu_ = 0; - /** - *
-     * v2
-     * 
- * - * optional int32 occu = 23; - * @return Whether the occu field is set. - */ - @java.lang.Override - public boolean hasOccu() { - return ((bitField0_ & 0x00400000) != 0); - } - /** - *
-     * v2
-     * 
- * - * optional int32 occu = 23; - * @return The occu. - */ - @java.lang.Override - public int getOccu() { - return occu_; - } - - public static final int SEQ_FIELD_NUMBER = 24; - private int seq_ = 0; - /** - * optional int32 seq = 24; - * @return Whether the seq field is set. - */ - @java.lang.Override - public boolean hasSeq() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - * optional int32 seq = 24; - * @return The seq. - */ - @java.lang.Override - public int getSeq() { - return seq_; - } - - public static final int TTARR_FIELD_NUMBER = 25; - @SuppressWarnings("serial") - private volatile java.lang.Object ttarr_ = ""; - /** - * optional string ttarr = 25; - * @return Whether the ttarr field is set. - */ - @java.lang.Override - public boolean hasTtarr() { - return ((bitField0_ & 0x01000000) != 0); - } - /** - * optional string ttarr = 25; - * @return The ttarr. - */ - @java.lang.Override - public java.lang.String getTtarr() { - java.lang.Object ref = ttarr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ttarr_ = s; - } - return s; - } - } - /** - * optional string ttarr = 25; - * @return The bytes for ttarr. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTtarrBytes() { - java.lang.Object ref = ttarr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ttarr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TTDEP_FIELD_NUMBER = 26; - @SuppressWarnings("serial") - private volatile java.lang.Object ttdep_ = ""; - /** - * optional string ttdep = 26; - * @return Whether the ttdep field is set. - */ - @java.lang.Override - public boolean hasTtdep() { - return ((bitField0_ & 0x02000000) != 0); - } - /** - * optional string ttdep = 26; - * @return The ttdep. - */ - @java.lang.Override - public java.lang.String getTtdep() { - java.lang.Object ref = ttdep_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ttdep_ = s; - } - return s; - } - } - /** - * optional string ttdep = 26; - * @return The bytes for ttdep. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTtdepBytes() { - java.lang.Object ref = ttdep_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ttdep_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DR_TYPE_FIELD_NUMBER = 27; - private int drType_ = 0; - /** - * optional int32 dr_type = 27; - * @return Whether the drType field is set. - */ - @java.lang.Override - public boolean hasDrType() { - return ((bitField0_ & 0x04000000) != 0); - } - /** - * optional int32 dr_type = 27; - * @return The drType. - */ - @java.lang.Override - public int getDrType() { - return drType_; - } - - public static final int TLP_REQUESTID_FIELD_NUMBER = 28; - private int tlpRequestid_ = 0; - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_requestid = 28; - * @return Whether the tlpRequestid field is set. - */ - @java.lang.Override - public boolean hasTlpRequestid() { - return ((bitField0_ & 0x08000000) != 0); - } - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_requestid = 28; - * @return The tlpRequestid. - */ - @java.lang.Override - public int getTlpRequestid() { - return tlpRequestid_; - } - - public static final int TLP_REQUESTTYPE_FIELD_NUMBER = 29; - private int tlpRequesttype_ = 0; - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; - * @return Whether the tlpRequesttype field is set. - */ - @java.lang.Override public boolean hasTlpRequesttype() { - return ((bitField0_ & 0x10000000) != 0); - } - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; - * @return The tlpRequesttype. - */ - @java.lang.Override public fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType getTlpRequesttype() { - fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType.forNumber(tlpRequesttype_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType.NORMAL : result; - } - - public static final int TLP_PRIORITYLEVEL_FIELD_NUMBER = 30; - private int tlpPrioritylevel_ = 0; - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; - * @return Whether the tlpPrioritylevel field is set. - */ - @java.lang.Override public boolean hasTlpPrioritylevel() { - return ((bitField0_ & 0x20000000) != 0); - } - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; - * @return The tlpPrioritylevel. - */ - @java.lang.Override public fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel getTlpPrioritylevel() { - fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel.forNumber(tlpPrioritylevel_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel.normal : result; - } - - public static final int TLP_REASON_FIELD_NUMBER = 31; - private int tlpReason_ = 0; - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpReason tlp_reason = 31; - * @return Whether the tlpReason field is set. - */ - @java.lang.Override public boolean hasTlpReason() { - return ((bitField0_ & 0x40000000) != 0); - } - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpReason tlp_reason = 31; - * @return The tlpReason. - */ - @java.lang.Override public fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason getTlpReason() { - fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason.forNumber(tlpReason_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason.GLOBAL : result; - } - - public static final int TLP_ATT_SEQ_FIELD_NUMBER = 32; - private int tlpAttSeq_ = 0; - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_att_seq = 32; - * @return Whether the tlpAttSeq field is set. - */ - @java.lang.Override - public boolean hasTlpAttSeq() { - return ((bitField0_ & 0x80000000) != 0); - } - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_att_seq = 32; - * @return The tlpAttSeq. - */ - @java.lang.Override - public int getTlpAttSeq() { - return tlpAttSeq_; - } - - public static final int TLP_DECISION_FIELD_NUMBER = 33; - private int tlpDecision_ = 0; - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpDecision tlp_decision = 33; - * @return Whether the tlpDecision field is set. - */ - @java.lang.Override public boolean hasTlpDecision() { - return ((bitField1_ & 0x00000001) != 0); - } - /** - *
-     * tlr
-     * 
- * - * optional .proto.Payload.TlpDecision tlp_decision = 33; - * @return The tlpDecision. - */ - @java.lang.Override public fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision getTlpDecision() { - fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision.forNumber(tlpDecision_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision.ACK : result; - } - - public static final int SID_FIELD_NUMBER = 34; - private int sid_ = 0; - /** - *
-     * tlr
-     * 
- * - * optional int32 sid = 34; - * @return Whether the sid field is set. - */ - @java.lang.Override - public boolean hasSid() { - return ((bitField1_ & 0x00000002) != 0); - } - /** - *
-     * tlr
-     * 
- * - * optional int32 sid = 34; - * @return The sid. - */ - @java.lang.Override - public int getSid() { - return sid_; - } - - public static final int SIGNAL_GROUPID_FIELD_NUMBER = 35; - private int signalGroupid_ = 0; - /** - *
-     * tlr
-     * 
- * - * optional int32 signal_groupid = 35; - * @return Whether the signalGroupid field is set. - */ - @java.lang.Override - public boolean hasSignalGroupid() { - return ((bitField1_ & 0x00000004) != 0); - } - /** - *
-     * tlr
-     * 
- * - * optional int32 signal_groupid = 35; - * @return The signalGroupid. - */ - @java.lang.Override - public int getSignalGroupid() { - return signalGroupid_; - } - - public static final int TLP_SIGNALGROUPNBR_FIELD_NUMBER = 36; - private int tlpSignalgroupnbr_ = 0; - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_signalgroupnbr = 36; - * @return Whether the tlpSignalgroupnbr field is set. - */ - @java.lang.Override - public boolean hasTlpSignalgroupnbr() { - return ((bitField1_ & 0x00000008) != 0); - } - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_signalgroupnbr = 36; - * @return The tlpSignalgroupnbr. - */ - @java.lang.Override - public int getTlpSignalgroupnbr() { - return tlpSignalgroupnbr_; - } - - public static final int TLP_LINE_CONFIGID_FIELD_NUMBER = 38; - private int tlpLineConfigid_ = 0; - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_line_configid = 38; - * @return Whether the tlpLineConfigid field is set. - */ - @java.lang.Override - public boolean hasTlpLineConfigid() { - return ((bitField1_ & 0x00000010) != 0); - } - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_line_configid = 38; - * @return The tlpLineConfigid. - */ - @java.lang.Override - public int getTlpLineConfigid() { - return tlpLineConfigid_; - } - - public static final int TLP_POINT_CONFIGID_FIELD_NUMBER = 39; - private int tlpPointConfigid_ = 0; - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_point_configid = 39; - * @return Whether the tlpPointConfigid field is set. - */ - @java.lang.Override - public boolean hasTlpPointConfigid() { - return ((bitField1_ & 0x00000020) != 0); - } - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_point_configid = 39; - * @return The tlpPointConfigid. - */ - @java.lang.Override - public int getTlpPointConfigid() { - return tlpPointConfigid_; - } - - public static final int TLP_FREQUENCY_FIELD_NUMBER = 40; - private int tlpFrequency_ = 0; - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_frequency = 40; - * @return Whether the tlpFrequency field is set. - */ - @java.lang.Override - public boolean hasTlpFrequency() { - return ((bitField1_ & 0x00000040) != 0); - } - /** - *
-     * tlr
-     * 
- * - * optional int32 tlp_frequency = 40; - * @return The tlpFrequency. - */ - @java.lang.Override - public int getTlpFrequency() { - return tlpFrequency_; - } - - public static final int TLP_PROTOCOL_FIELD_NUMBER = 41; - @SuppressWarnings("serial") - private volatile java.lang.Object tlpProtocol_ = ""; - /** - *
-     * tlr
-     * 
- * - * optional string tlp_protocol = 41; - * @return Whether the tlpProtocol field is set. - */ - @java.lang.Override - public boolean hasTlpProtocol() { - return ((bitField1_ & 0x00000080) != 0); - } - /** - *
-     * tlr
-     * 
- * - * optional string tlp_protocol = 41; - * @return The tlpProtocol. - */ - @java.lang.Override - public java.lang.String getTlpProtocol() { - java.lang.Object ref = tlpProtocol_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tlpProtocol_ = s; - } - return s; - } - } - /** - *
-     * tlr
-     * 
- * - * optional string tlp_protocol = 41; - * @return The bytes for tlpProtocol. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTlpProtocolBytes() { - java.lang.Object ref = tlpProtocol_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tlpProtocol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABEL_FIELD_NUMBER = 42; - @SuppressWarnings("serial") - private volatile java.lang.Object label_ = ""; - /** - * optional string label = 42; - * @return Whether the label field is set. - */ - @java.lang.Override - public boolean hasLabel() { - return ((bitField1_ & 0x00000100) != 0); - } - /** - * optional string label = 42; - * @return The label. - */ - @java.lang.Override - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } - } - /** - * optional string label = 42; - * @return The bytes for label. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!hasSchemaVersion()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTst()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTsi()) { - 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.writeInt32(1, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, desi_); - } - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dir_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeInt32(4, oper_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeInt32(5, veh_); - } - if (((bitField0_ & 0x00000020) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tst_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeInt64(7, tsi_); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeDouble(8, spd_); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeInt32(9, hdg_); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeDouble(10, lat_); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeDouble(11, long_); - } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeDouble(12, acc_); - } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeUInt32(13, dl_); - } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeDouble(14, odo_); - } - if (((bitField0_ & 0x00004000) != 0)) { - output.writeUInt32(15, drst_); - } - if (((bitField0_ & 0x00008000) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, oday_); - } - if (((bitField0_ & 0x00010000) != 0)) { - output.writeInt32(17, jrn_); - } - if (((bitField0_ & 0x00020000) != 0)) { - output.writeInt32(18, line_); - } - if (((bitField0_ & 0x00040000) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, start_); - } - if (((bitField0_ & 0x00080000) != 0)) { - output.writeEnum(20, loc_); - } - if (((bitField0_ & 0x00100000) != 0)) { - output.writeInt32(21, stop_); - } - if (((bitField0_ & 0x00200000) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 22, route_); - } - if (((bitField0_ & 0x00400000) != 0)) { - output.writeInt32(23, occu_); - } - if (((bitField0_ & 0x00800000) != 0)) { - output.writeInt32(24, seq_); - } - if (((bitField0_ & 0x01000000) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 25, ttarr_); - } - if (((bitField0_ & 0x02000000) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 26, ttdep_); - } - if (((bitField0_ & 0x04000000) != 0)) { - output.writeInt32(27, drType_); - } - if (((bitField0_ & 0x08000000) != 0)) { - output.writeInt32(28, tlpRequestid_); - } - if (((bitField0_ & 0x10000000) != 0)) { - output.writeEnum(29, tlpRequesttype_); - } - if (((bitField0_ & 0x20000000) != 0)) { - output.writeEnum(30, tlpPrioritylevel_); - } - if (((bitField0_ & 0x40000000) != 0)) { - output.writeEnum(31, tlpReason_); - } - if (((bitField0_ & 0x80000000) != 0)) { - output.writeInt32(32, tlpAttSeq_); - } - if (((bitField1_ & 0x00000001) != 0)) { - output.writeEnum(33, tlpDecision_); - } - if (((bitField1_ & 0x00000002) != 0)) { - output.writeInt32(34, sid_); - } - if (((bitField1_ & 0x00000004) != 0)) { - output.writeInt32(35, signalGroupid_); - } - if (((bitField1_ & 0x00000008) != 0)) { - output.writeInt32(36, tlpSignalgroupnbr_); - } - if (((bitField1_ & 0x00000010) != 0)) { - output.writeInt32(38, tlpLineConfigid_); - } - if (((bitField1_ & 0x00000020) != 0)) { - output.writeInt32(39, tlpPointConfigid_); - } - if (((bitField1_ & 0x00000040) != 0)) { - output.writeInt32(40, tlpFrequency_); - } - if (((bitField1_ & 0x00000080) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 41, tlpProtocol_); - } - if (((bitField1_ & 0x00000100) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 42, label_); - } - 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, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, desi_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dir_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, oper_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, veh_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tst_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, tsi_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(8, spd_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, hdg_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(10, lat_); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(11, long_); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(12, acc_); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, dl_); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(14, odo_); - } - if (((bitField0_ & 0x00004000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(15, drst_); - } - if (((bitField0_ & 0x00008000) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, oday_); - } - if (((bitField0_ & 0x00010000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(17, jrn_); - } - if (((bitField0_ & 0x00020000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(18, line_); - } - if (((bitField0_ & 0x00040000) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, start_); - } - if (((bitField0_ & 0x00080000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(20, loc_); - } - if (((bitField0_ & 0x00100000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(21, stop_); - } - if (((bitField0_ & 0x00200000) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, route_); - } - if (((bitField0_ & 0x00400000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(23, occu_); - } - if (((bitField0_ & 0x00800000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(24, seq_); - } - if (((bitField0_ & 0x01000000) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, ttarr_); - } - if (((bitField0_ & 0x02000000) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, ttdep_); - } - if (((bitField0_ & 0x04000000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(27, drType_); - } - if (((bitField0_ & 0x08000000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(28, tlpRequestid_); - } - if (((bitField0_ & 0x10000000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(29, tlpRequesttype_); - } - if (((bitField0_ & 0x20000000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(30, tlpPrioritylevel_); - } - if (((bitField0_ & 0x40000000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(31, tlpReason_); - } - if (((bitField0_ & 0x80000000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(32, tlpAttSeq_); - } - if (((bitField1_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(33, tlpDecision_); - } - if (((bitField1_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(34, sid_); - } - if (((bitField1_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(35, signalGroupid_); - } - if (((bitField1_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(36, tlpSignalgroupnbr_); - } - if (((bitField1_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(38, tlpLineConfigid_); - } - if (((bitField1_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(39, tlpPointConfigid_); - } - if (((bitField1_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(40, tlpFrequency_); - } - if (((bitField1_ & 0x00000080) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(41, tlpProtocol_); - } - if (((bitField1_ & 0x00000100) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(42, label_); - } - 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 fi.hsl.common.hfp.proto.Hfp.Payload)) { - return super.equals(obj); - } - fi.hsl.common.hfp.proto.Hfp.Payload other = (fi.hsl.common.hfp.proto.Hfp.Payload) obj; - - if (hasSchemaVersion() != other.hasSchemaVersion()) return false; - if (hasSchemaVersion()) { - if (getSchemaVersion() - != other.getSchemaVersion()) return false; - } - if (hasDesi() != other.hasDesi()) return false; - if (hasDesi()) { - if (!getDesi() - .equals(other.getDesi())) return false; - } - if (hasDir() != other.hasDir()) return false; - if (hasDir()) { - if (!getDir() - .equals(other.getDir())) return false; - } - if (hasOper() != other.hasOper()) return false; - if (hasOper()) { - if (getOper() - != other.getOper()) return false; - } - if (hasVeh() != other.hasVeh()) return false; - if (hasVeh()) { - if (getVeh() - != other.getVeh()) return false; - } - if (hasTst() != other.hasTst()) return false; - if (hasTst()) { - if (!getTst() - .equals(other.getTst())) return false; - } - if (hasTsi() != other.hasTsi()) return false; - if (hasTsi()) { - if (getTsi() - != other.getTsi()) return false; - } - if (hasSpd() != other.hasSpd()) return false; - if (hasSpd()) { - if (java.lang.Double.doubleToLongBits(getSpd()) - != java.lang.Double.doubleToLongBits( - other.getSpd())) return false; - } - if (hasHdg() != other.hasHdg()) return false; - if (hasHdg()) { - if (getHdg() - != other.getHdg()) return false; - } - if (hasLat() != other.hasLat()) return false; - if (hasLat()) { - if (java.lang.Double.doubleToLongBits(getLat()) - != java.lang.Double.doubleToLongBits( - other.getLat())) return false; - } - if (hasLong() != other.hasLong()) return false; - if (hasLong()) { - if (java.lang.Double.doubleToLongBits(getLong()) - != java.lang.Double.doubleToLongBits( - other.getLong())) return false; - } - if (hasAcc() != other.hasAcc()) return false; - if (hasAcc()) { - if (java.lang.Double.doubleToLongBits(getAcc()) - != java.lang.Double.doubleToLongBits( - other.getAcc())) return false; - } - if (hasDl() != other.hasDl()) return false; - if (hasDl()) { - if (getDl() - != other.getDl()) return false; - } - if (hasOdo() != other.hasOdo()) return false; - if (hasOdo()) { - if (java.lang.Double.doubleToLongBits(getOdo()) - != java.lang.Double.doubleToLongBits( - other.getOdo())) return false; - } - if (hasDrst() != other.hasDrst()) return false; - if (hasDrst()) { - if (getDrst() - != other.getDrst()) return false; - } - if (hasOday() != other.hasOday()) return false; - if (hasOday()) { - if (!getOday() - .equals(other.getOday())) return false; - } - if (hasJrn() != other.hasJrn()) return false; - if (hasJrn()) { - if (getJrn() - != other.getJrn()) return false; - } - if (hasLine() != other.hasLine()) return false; - if (hasLine()) { - if (getLine() - != other.getLine()) return false; - } - if (hasStart() != other.hasStart()) return false; - if (hasStart()) { - if (!getStart() - .equals(other.getStart())) return false; - } - if (hasLoc() != other.hasLoc()) return false; - if (hasLoc()) { - if (loc_ != other.loc_) return false; - } - if (hasStop() != other.hasStop()) return false; - if (hasStop()) { - if (getStop() - != other.getStop()) return false; - } - if (hasRoute() != other.hasRoute()) return false; - if (hasRoute()) { - if (!getRoute() - .equals(other.getRoute())) return false; - } - if (hasOccu() != other.hasOccu()) return false; - if (hasOccu()) { - if (getOccu() - != other.getOccu()) return false; - } - if (hasSeq() != other.hasSeq()) return false; - if (hasSeq()) { - if (getSeq() - != other.getSeq()) return false; - } - if (hasTtarr() != other.hasTtarr()) return false; - if (hasTtarr()) { - if (!getTtarr() - .equals(other.getTtarr())) return false; - } - if (hasTtdep() != other.hasTtdep()) return false; - if (hasTtdep()) { - if (!getTtdep() - .equals(other.getTtdep())) return false; - } - if (hasDrType() != other.hasDrType()) return false; - if (hasDrType()) { - if (getDrType() - != other.getDrType()) return false; - } - if (hasTlpRequestid() != other.hasTlpRequestid()) return false; - if (hasTlpRequestid()) { - if (getTlpRequestid() - != other.getTlpRequestid()) return false; - } - if (hasTlpRequesttype() != other.hasTlpRequesttype()) return false; - if (hasTlpRequesttype()) { - if (tlpRequesttype_ != other.tlpRequesttype_) return false; - } - if (hasTlpPrioritylevel() != other.hasTlpPrioritylevel()) return false; - if (hasTlpPrioritylevel()) { - if (tlpPrioritylevel_ != other.tlpPrioritylevel_) return false; - } - if (hasTlpReason() != other.hasTlpReason()) return false; - if (hasTlpReason()) { - if (tlpReason_ != other.tlpReason_) return false; - } - if (hasTlpAttSeq() != other.hasTlpAttSeq()) return false; - if (hasTlpAttSeq()) { - if (getTlpAttSeq() - != other.getTlpAttSeq()) return false; - } - if (hasTlpDecision() != other.hasTlpDecision()) return false; - if (hasTlpDecision()) { - if (tlpDecision_ != other.tlpDecision_) return false; - } - if (hasSid() != other.hasSid()) return false; - if (hasSid()) { - if (getSid() - != other.getSid()) return false; - } - if (hasSignalGroupid() != other.hasSignalGroupid()) return false; - if (hasSignalGroupid()) { - if (getSignalGroupid() - != other.getSignalGroupid()) return false; - } - if (hasTlpSignalgroupnbr() != other.hasTlpSignalgroupnbr()) return false; - if (hasTlpSignalgroupnbr()) { - if (getTlpSignalgroupnbr() - != other.getTlpSignalgroupnbr()) return false; - } - if (hasTlpLineConfigid() != other.hasTlpLineConfigid()) return false; - if (hasTlpLineConfigid()) { - if (getTlpLineConfigid() - != other.getTlpLineConfigid()) return false; - } - if (hasTlpPointConfigid() != other.hasTlpPointConfigid()) return false; - if (hasTlpPointConfigid()) { - if (getTlpPointConfigid() - != other.getTlpPointConfigid()) return false; - } - if (hasTlpFrequency() != other.hasTlpFrequency()) return false; - if (hasTlpFrequency()) { - if (getTlpFrequency() - != other.getTlpFrequency()) return false; - } - if (hasTlpProtocol() != other.hasTlpProtocol()) return false; - if (hasTlpProtocol()) { - if (!getTlpProtocol() - .equals(other.getTlpProtocol())) return false; - } - if (hasLabel() != other.hasLabel()) return false; - if (hasLabel()) { - if (!getLabel() - .equals(other.getLabel())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + public Builder mergeFrom(fi.hsl.common.hfp.proto.Hfp.Topic other) { + if (other == fi.hsl.common.hfp.proto.Hfp.Topic.getDefaultInstance()) + return this; + if (other.hasSchemaVersion()) { + setSchemaVersion(other.getSchemaVersion()); + } + if (other.hasReceivedAt()) { + setReceivedAt(other.getReceivedAt()); + } + if (other.hasTopicPrefix()) { + topicPrefix_ = other.topicPrefix_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTopicVersion()) { + topicVersion_ = other.topicVersion_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasJourneyType()) { + setJourneyType(other.getJourneyType()); + } + if (other.hasTemporalType()) { + setTemporalType(other.getTemporalType()); + } + if (other.hasEventType()) { + setEventType(other.getEventType()); + } + if (other.hasTransportMode()) { + setTransportMode(other.getTransportMode()); + } + if (other.hasOperatorId()) { + setOperatorId(other.getOperatorId()); + } + if (other.hasVehicleNumber()) { + setVehicleNumber(other.getVehicleNumber()); + } + if (other.hasUniqueVehicleId()) { + uniqueVehicleId_ = other.uniqueVehicleId_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasRouteId()) { + routeId_ = other.routeId_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.hasDirectionId()) { + setDirectionId(other.getDirectionId()); + } + if (other.hasHeadsign()) { + headsign_ = other.headsign_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (other.hasStartTime()) { + startTime_ = other.startTime_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (other.hasNextStop()) { + nextStop_ = other.nextStop_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (other.hasGeohashLevel()) { + setGeohashLevel(other.getGeohashLevel()); + } + if (other.hasLatitude()) { + setLatitude(other.getLatitude()); + } + if (other.hasLongitude()) { + setLongitude(other.getLongitude()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasSchemaVersion()) { + return false; + } + if (!hasReceivedAt()) { + return false; + } + if (!hasTopicPrefix()) { + return false; + } + if (!hasTopicVersion()) { + return false; + } + if (!hasJourneyType()) { + return false; + } + if (!hasTemporalType()) { + return false; + } + if (!hasOperatorId()) { + return false; + } + if (!hasVehicleNumber()) { + return false; + } + if (!hasUniqueVehicleId()) { + 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 : { + schemaVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16 : { + receivedAt_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26 : { + topicPrefix_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34 : { + topicVersion_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType tmpValue = fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(5, tmpRaw); + } else { + journeyType_ = tmpRaw; + bitField0_ |= 0x00000010; + } + break; + } // case 40 + case 48 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType tmpValue = fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(6, tmpRaw); + } else { + temporalType_ = tmpRaw; + bitField0_ |= 0x00000020; + } + break; + } // case 48 + case 56 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.hfp.proto.Hfp.Topic.EventType tmpValue = fi.hsl.common.hfp.proto.Hfp.Topic.EventType + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(7, tmpRaw); + } else { + eventType_ = tmpRaw; + bitField0_ |= 0x00000040; + } + break; + } // case 56 + case 64 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode tmpValue = fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(8, tmpRaw); + } else { + transportMode_ = tmpRaw; + bitField0_ |= 0x00000080; + } + break; + } // case 64 + case 72 : { + operatorId_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80 : { + vehicleNumber_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90 : { + uniqueVehicleId_ = input.readBytes(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98 : { + routeId_ = input.readBytes(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 104 : { + directionId_ = input.readInt32(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 114 : { + headsign_ = input.readBytes(); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122 : { + startTime_ = input.readBytes(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130 : { + nextStop_ = input.readBytes(); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 136 : { + geohashLevel_ = input.readInt32(); + bitField0_ |= 0x00010000; + break; + } // case 136 + case 145 : { + latitude_ = input.readDouble(); + bitField0_ |= 0x00020000; + break; + } // case 145 + case 153 : { + longitude_ = input.readDouble(); + bitField0_ |= 0x00040000; + break; + } // case 153 + 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 schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(int value) { + + schemaVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + schemaVersion_ = 1; + onChanged(); + return this; + } + + private long receivedAt_; + /** + *
+             * Our server timestamp as Epoch ms
+             * 
+ * + * required int64 received_at = 2; + * @return Whether the receivedAt field is set. + */ + @java.lang.Override + public boolean hasReceivedAt() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * Our server timestamp as Epoch ms
+             * 
+ * + * required int64 received_at = 2; + * @return The receivedAt. + */ + @java.lang.Override + public long getReceivedAt() { + return receivedAt_; + } + /** + *
+             * Our server timestamp as Epoch ms
+             * 
+ * + * required int64 received_at = 2; + * @param value The receivedAt to set. + * @return This builder for chaining. + */ + public Builder setReceivedAt(long value) { + + receivedAt_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Our server timestamp as Epoch ms
+             * 
+ * + * required int64 received_at = 2; + * @return This builder for chaining. + */ + public Builder clearReceivedAt() { + bitField0_ = (bitField0_ & ~0x00000002); + receivedAt_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object topicPrefix_ = ""; + /** + * required string topic_prefix = 3; + * @return Whether the topicPrefix field is set. + */ + public boolean hasTopicPrefix() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required string topic_prefix = 3; + * @return The topicPrefix. + */ + public java.lang.String getTopicPrefix() { + java.lang.Object ref = topicPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + topicPrefix_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string topic_prefix = 3; + * @return The bytes for topicPrefix. + */ + public com.google.protobuf.ByteString getTopicPrefixBytes() { + java.lang.Object ref = topicPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + topicPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string topic_prefix = 3; + * @param value The topicPrefix to set. + * @return This builder for chaining. + */ + public Builder setTopicPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topicPrefix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required string topic_prefix = 3; + * @return This builder for chaining. + */ + public Builder clearTopicPrefix() { + topicPrefix_ = getDefaultInstance().getTopicPrefix(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * required string topic_prefix = 3; + * @param value The bytes for topicPrefix to set. + * @return This builder for chaining. + */ + public Builder setTopicPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + topicPrefix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object topicVersion_ = ""; + /** + * required string topic_version = 4; + * @return Whether the topicVersion field is set. + */ + public boolean hasTopicVersion() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * required string topic_version = 4; + * @return The topicVersion. + */ + public java.lang.String getTopicVersion() { + java.lang.Object ref = topicVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + topicVersion_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string topic_version = 4; + * @return The bytes for topicVersion. + */ + public com.google.protobuf.ByteString getTopicVersionBytes() { + java.lang.Object ref = topicVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + topicVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string topic_version = 4; + * @param value The topicVersion to set. + * @return This builder for chaining. + */ + public Builder setTopicVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topicVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * required string topic_version = 4; + * @return This builder for chaining. + */ + public Builder clearTopicVersion() { + topicVersion_ = getDefaultInstance().getTopicVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * required string topic_version = 4; + * @param value The bytes for topicVersion to set. + * @return This builder for chaining. + */ + public Builder setTopicVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + topicVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int journeyType_ = 0; + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @return Whether the journeyType field is set. + */ + @java.lang.Override + public boolean hasJourneyType() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @return The journeyType. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType getJourneyType() { + fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType result = fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType + .forNumber(journeyType_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType.journey : result; + } + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @param value The journeyType to set. + * @return This builder for chaining. + */ + public Builder setJourneyType(fi.hsl.common.hfp.proto.Hfp.Topic.JourneyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + journeyType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @return This builder for chaining. + */ + public Builder clearJourneyType() { + bitField0_ = (bitField0_ & ~0x00000010); + journeyType_ = 0; + onChanged(); + return this; + } + + private int temporalType_ = 0; + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @return Whether the temporalType field is set. + */ + @java.lang.Override + public boolean hasTemporalType() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @return The temporalType. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType getTemporalType() { + fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType result = fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType + .forNumber(temporalType_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType.ongoing : result; + } + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @param value The temporalType to set. + * @return This builder for chaining. + */ + public Builder setTemporalType(fi.hsl.common.hfp.proto.Hfp.Topic.TemporalType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + temporalType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @return This builder for chaining. + */ + public Builder clearTemporalType() { + bitField0_ = (bitField0_ & ~0x00000020); + temporalType_ = 0; + onChanged(); + return this; + } + + private int eventType_ = 0; + /** + *
+             * v2
+             * 
+ * + * optional .proto.Topic.EventType event_type = 7; + * @return Whether the eventType field is set. + */ + @java.lang.Override + public boolean hasEventType() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+             * v2
+             * 
+ * + * optional .proto.Topic.EventType event_type = 7; + * @return The eventType. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Topic.EventType getEventType() { + fi.hsl.common.hfp.proto.Hfp.Topic.EventType result = fi.hsl.common.hfp.proto.Hfp.Topic.EventType + .forNumber(eventType_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.EventType.VP : result; + } + /** + *
+             * v2
+             * 
+ * + * optional .proto.Topic.EventType event_type = 7; + * @param value The eventType to set. + * @return This builder for chaining. + */ + public Builder setEventType(fi.hsl.common.hfp.proto.Hfp.Topic.EventType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + eventType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * v2
+             * 
+ * + * optional .proto.Topic.EventType event_type = 7; + * @return This builder for chaining. + */ + public Builder clearEventType() { + bitField0_ = (bitField0_ & ~0x00000040); + eventType_ = 0; + onChanged(); + return this; + } + + private int transportMode_ = 0; + /** + *
+             * Optional because of rare bug in data source systems
+             * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @return Whether the transportMode field is set. + */ + @java.lang.Override + public boolean hasTransportMode() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+             * Optional because of rare bug in data source systems
+             * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @return The transportMode. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode getTransportMode() { + fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode result = fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode + .forNumber(transportMode_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode.bus : result; + } + /** + *
+             * Optional because of rare bug in data source systems
+             * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @param value The transportMode to set. + * @return This builder for chaining. + */ + public Builder setTransportMode(fi.hsl.common.hfp.proto.Hfp.Topic.TransportMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + transportMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * Optional because of rare bug in data source systems
+             * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @return This builder for chaining. + */ + public Builder clearTransportMode() { + bitField0_ = (bitField0_ & ~0x00000080); + transportMode_ = 0; + onChanged(); + return this; + } + + private int operatorId_; + /** + * required int32 operator_id = 9; + * @return Whether the operatorId field is set. + */ + @java.lang.Override + public boolean hasOperatorId() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * required int32 operator_id = 9; + * @return The operatorId. + */ + @java.lang.Override + public int getOperatorId() { + return operatorId_; + } + /** + * required int32 operator_id = 9; + * @param value The operatorId to set. + * @return This builder for chaining. + */ + public Builder setOperatorId(int value) { + + operatorId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * required int32 operator_id = 9; + * @return This builder for chaining. + */ + public Builder clearOperatorId() { + bitField0_ = (bitField0_ & ~0x00000100); + operatorId_ = 0; + onChanged(); + return this; + } + + private int vehicleNumber_; + /** + * required int32 vehicle_number = 10; + * @return Whether the vehicleNumber field is set. + */ + @java.lang.Override + public boolean hasVehicleNumber() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * required int32 vehicle_number = 10; + * @return The vehicleNumber. + */ + @java.lang.Override + public int getVehicleNumber() { + return vehicleNumber_; + } + /** + * required int32 vehicle_number = 10; + * @param value The vehicleNumber to set. + * @return This builder for chaining. + */ + public Builder setVehicleNumber(int value) { + + vehicleNumber_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * required int32 vehicle_number = 10; + * @return This builder for chaining. + */ + public Builder clearVehicleNumber() { + bitField0_ = (bitField0_ & ~0x00000200); + vehicleNumber_ = 0; + onChanged(); + return this; + } + + private java.lang.Object uniqueVehicleId_ = ""; + /** + * required string unique_vehicle_id = 11; + * @return Whether the uniqueVehicleId field is set. + */ + public boolean hasUniqueVehicleId() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * required string unique_vehicle_id = 11; + * @return The uniqueVehicleId. + */ + public java.lang.String getUniqueVehicleId() { + java.lang.Object ref = uniqueVehicleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + uniqueVehicleId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string unique_vehicle_id = 11; + * @return The bytes for uniqueVehicleId. + */ + public com.google.protobuf.ByteString getUniqueVehicleIdBytes() { + java.lang.Object ref = uniqueVehicleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + uniqueVehicleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string unique_vehicle_id = 11; + * @param value The uniqueVehicleId to set. + * @return This builder for chaining. + */ + public Builder setUniqueVehicleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uniqueVehicleId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * required string unique_vehicle_id = 11; + * @return This builder for chaining. + */ + public Builder clearUniqueVehicleId() { + uniqueVehicleId_ = getDefaultInstance().getUniqueVehicleId(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * required string unique_vehicle_id = 11; + * @param value The bytes for uniqueVehicleId to set. + * @return This builder for chaining. + */ + public Builder setUniqueVehicleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + uniqueVehicleId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object routeId_ = ""; + /** + * optional string route_id = 12; + * @return Whether the routeId field is set. + */ + public boolean hasRouteId() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional string route_id = 12; + * @return The routeId. + */ + public java.lang.String getRouteId() { + java.lang.Object ref = routeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + routeId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string route_id = 12; + * @return The bytes for routeId. + */ + public com.google.protobuf.ByteString getRouteIdBytes() { + java.lang.Object ref = routeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + routeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string route_id = 12; + * @param value The routeId to set. + * @return This builder for chaining. + */ + public Builder setRouteId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + routeId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * optional string route_id = 12; + * @return This builder for chaining. + */ + public Builder clearRouteId() { + routeId_ = getDefaultInstance().getRouteId(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * optional string route_id = 12; + * @param value The bytes for routeId to set. + * @return This builder for chaining. + */ + public Builder setRouteIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + routeId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private int directionId_; + /** + * optional int32 direction_id = 13; + * @return Whether the directionId field is set. + */ + @java.lang.Override + public boolean hasDirectionId() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional int32 direction_id = 13; + * @return The directionId. + */ + @java.lang.Override + public int getDirectionId() { + return directionId_; + } + /** + * optional int32 direction_id = 13; + * @param value The directionId to set. + * @return This builder for chaining. + */ + public Builder setDirectionId(int value) { + + directionId_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * optional int32 direction_id = 13; + * @return This builder for chaining. + */ + public Builder clearDirectionId() { + bitField0_ = (bitField0_ & ~0x00001000); + directionId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object headsign_ = ""; + /** + * optional string headsign = 14; + * @return Whether the headsign field is set. + */ + public boolean hasHeadsign() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * optional string headsign = 14; + * @return The headsign. + */ + public java.lang.String getHeadsign() { + java.lang.Object ref = headsign_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + headsign_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string headsign = 14; + * @return The bytes for headsign. + */ + public com.google.protobuf.ByteString getHeadsignBytes() { + java.lang.Object ref = headsign_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + headsign_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string headsign = 14; + * @param value The headsign to set. + * @return This builder for chaining. + */ + public Builder setHeadsign(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + headsign_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * optional string headsign = 14; + * @return This builder for chaining. + */ + public Builder clearHeadsign() { + headsign_ = getDefaultInstance().getHeadsign(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + /** + * optional string headsign = 14; + * @param value The bytes for headsign to set. + * @return This builder for chaining. + */ + public Builder setHeadsignBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + headsign_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private java.lang.Object startTime_ = ""; + /** + * optional string start_time = 15; + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * optional string start_time = 15; + * @return The startTime. + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startTime_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string start_time = 15; + * @return The bytes for startTime. + */ + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string start_time = 15; + * @param value The startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * optional string start_time = 15; + * @return This builder for chaining. + */ + public Builder clearStartTime() { + startTime_ = getDefaultInstance().getStartTime(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + /** + * optional string start_time = 15; + * @param value The bytes for startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private java.lang.Object nextStop_ = ""; + /** + * optional string next_stop = 16; + * @return Whether the nextStop field is set. + */ + public boolean hasNextStop() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * optional string next_stop = 16; + * @return The nextStop. + */ + public java.lang.String getNextStop() { + java.lang.Object ref = nextStop_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + nextStop_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string next_stop = 16; + * @return The bytes for nextStop. + */ + public com.google.protobuf.ByteString getNextStopBytes() { + java.lang.Object ref = nextStop_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + nextStop_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string next_stop = 16; + * @param value The nextStop to set. + * @return This builder for chaining. + */ + public Builder setNextStop(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextStop_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * optional string next_stop = 16; + * @return This builder for chaining. + */ + public Builder clearNextStop() { + nextStop_ = getDefaultInstance().getNextStop(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + /** + * optional string next_stop = 16; + * @param value The bytes for nextStop to set. + * @return This builder for chaining. + */ + public Builder setNextStopBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + nextStop_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private int geohashLevel_; + /** + * optional int32 geohash_level = 17; + * @return Whether the geohashLevel field is set. + */ + @java.lang.Override + public boolean hasGeohashLevel() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * optional int32 geohash_level = 17; + * @return The geohashLevel. + */ + @java.lang.Override + public int getGeohashLevel() { + return geohashLevel_; + } + /** + * optional int32 geohash_level = 17; + * @param value The geohashLevel to set. + * @return This builder for chaining. + */ + public Builder setGeohashLevel(int value) { + + geohashLevel_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * optional int32 geohash_level = 17; + * @return This builder for chaining. + */ + public Builder clearGeohashLevel() { + bitField0_ = (bitField0_ & ~0x00010000); + geohashLevel_ = 0; + onChanged(); + return this; + } + + private double latitude_; + /** + * optional double latitude = 18; + * @return Whether the latitude field is set. + */ + @java.lang.Override + public boolean hasLatitude() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * optional double latitude = 18; + * @return The latitude. + */ + @java.lang.Override + public double getLatitude() { + return latitude_; + } + /** + * optional double latitude = 18; + * @param value The latitude to set. + * @return This builder for chaining. + */ + public Builder setLatitude(double value) { + + latitude_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * optional double latitude = 18; + * @return This builder for chaining. + */ + public Builder clearLatitude() { + bitField0_ = (bitField0_ & ~0x00020000); + latitude_ = 0D; + onChanged(); + return this; + } + + private double longitude_; + /** + * optional double longitude = 19; + * @return Whether the longitude field is set. + */ + @java.lang.Override + public boolean hasLongitude() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * optional double longitude = 19; + * @return The longitude. + */ + @java.lang.Override + public double getLongitude() { + return longitude_; + } + /** + * optional double longitude = 19; + * @param value The longitude to set. + * @return This builder for chaining. + */ + public Builder setLongitude(double value) { + + longitude_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * optional double longitude = 19; + * @return This builder for chaining. + */ + public Builder clearLongitude() { + bitField0_ = (bitField0_ & ~0x00040000); + longitude_ = 0D; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.Topic) + } + + // @@protoc_insertion_point(class_scope:proto.Topic) + private static final fi.hsl.common.hfp.proto.Hfp.Topic DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.hfp.proto.Hfp.Topic(); + } + + public static fi.hsl.common.hfp.proto.Hfp.Topic getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Topic parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Topic getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PayloadOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.Payload) + com.google.protobuf.MessageOrBuilder { + + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + boolean hasSchemaVersion(); + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + int getSchemaVersion(); + + /** + * optional string desi = 2; + * @return Whether the desi field is set. + */ + boolean hasDesi(); + /** + * optional string desi = 2; + * @return The desi. + */ + java.lang.String getDesi(); + /** + * optional string desi = 2; + * @return The bytes for desi. + */ + com.google.protobuf.ByteString getDesiBytes(); + + /** + * optional string dir = 3; + * @return Whether the dir field is set. + */ + boolean hasDir(); + /** + * optional string dir = 3; + * @return The dir. + */ + java.lang.String getDir(); + /** + * optional string dir = 3; + * @return The bytes for dir. + */ + com.google.protobuf.ByteString getDirBytes(); + + /** + * optional int32 oper = 4; + * @return Whether the oper field is set. + */ + boolean hasOper(); + /** + * optional int32 oper = 4; + * @return The oper. + */ + int getOper(); + + /** + * optional int32 veh = 5; + * @return Whether the veh field is set. + */ + boolean hasVeh(); + /** + * optional int32 veh = 5; + * @return The veh. + */ + int getVeh(); + + /** + * required string tst = 6; + * @return Whether the tst field is set. + */ + boolean hasTst(); + /** + * required string tst = 6; + * @return The tst. + */ + java.lang.String getTst(); + /** + * required string tst = 6; + * @return The bytes for tst. + */ + com.google.protobuf.ByteString getTstBytes(); + + /** + * required int64 tsi = 7; + * @return Whether the tsi field is set. + */ + boolean hasTsi(); + /** + * required int64 tsi = 7; + * @return The tsi. + */ + long getTsi(); + + /** + * optional double spd = 8; + * @return Whether the spd field is set. + */ + boolean hasSpd(); + /** + * optional double spd = 8; + * @return The spd. + */ + double getSpd(); + + /** + * optional int32 hdg = 9; + * @return Whether the hdg field is set. + */ + boolean hasHdg(); + /** + * optional int32 hdg = 9; + * @return The hdg. + */ + int getHdg(); + + /** + * optional double lat = 10; + * @return Whether the lat field is set. + */ + boolean hasLat(); + /** + * optional double lat = 10; + * @return The lat. + */ + double getLat(); + + /** + * optional double long = 11; + * @return Whether the long field is set. + */ + boolean hasLong(); + /** + * optional double long = 11; + * @return The long. + */ + double getLong(); + + /** + * optional double acc = 12; + * @return Whether the acc field is set. + */ + boolean hasAcc(); + /** + * optional double acc = 12; + * @return The acc. + */ + double getAcc(); + + /** + * optional uint32 dl = 13; + * @return Whether the dl field is set. + */ + boolean hasDl(); + /** + * optional uint32 dl = 13; + * @return The dl. + */ + int getDl(); + + /** + * optional double odo = 14; + * @return Whether the odo field is set. + */ + boolean hasOdo(); + /** + * optional double odo = 14; + * @return The odo. + */ + double getOdo(); + + /** + * optional uint32 drst = 15; + * @return Whether the drst field is set. + */ + boolean hasDrst(); + /** + * optional uint32 drst = 15; + * @return The drst. + */ + int getDrst(); + + /** + * optional string oday = 16; + * @return Whether the oday field is set. + */ + boolean hasOday(); + /** + * optional string oday = 16; + * @return The oday. + */ + java.lang.String getOday(); + /** + * optional string oday = 16; + * @return The bytes for oday. + */ + com.google.protobuf.ByteString getOdayBytes(); + + /** + * optional int32 jrn = 17; + * @return Whether the jrn field is set. + */ + boolean hasJrn(); + /** + * optional int32 jrn = 17; + * @return The jrn. + */ + int getJrn(); + + /** + * optional int32 line = 18; + * @return Whether the line field is set. + */ + boolean hasLine(); + /** + * optional int32 line = 18; + * @return The line. + */ + int getLine(); + + /** + * optional string start = 19; + * @return Whether the start field is set. + */ + boolean hasStart(); + /** + * optional string start = 19; + * @return The start. + */ + java.lang.String getStart(); + /** + * optional string start = 19; + * @return The bytes for start. + */ + com.google.protobuf.ByteString getStartBytes(); + + /** + *
+         * v2
+         * 
+ * + * optional .proto.Payload.LocationQualityMethod loc = 20; + * @return Whether the loc field is set. + */ + boolean hasLoc(); + /** + *
+         * v2
+         * 
+ * + * optional .proto.Payload.LocationQualityMethod loc = 20; + * @return The loc. + */ + fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod getLoc(); + + /** + *
+         * v2
+         * 
+ * + * optional int32 stop = 21; + * @return Whether the stop field is set. + */ + boolean hasStop(); + /** + *
+         * v2
+         * 
+ * + * optional int32 stop = 21; + * @return The stop. + */ + int getStop(); + + /** + *
+         * v2
+         * 
+ * + * optional string route = 22; + * @return Whether the route field is set. + */ + boolean hasRoute(); + /** + *
+         * v2
+         * 
+ * + * optional string route = 22; + * @return The route. + */ + java.lang.String getRoute(); + /** + *
+         * v2
+         * 
+ * + * optional string route = 22; + * @return The bytes for route. + */ + com.google.protobuf.ByteString getRouteBytes(); + + /** + *
+         * v2
+         * 
+ * + * optional int32 occu = 23; + * @return Whether the occu field is set. + */ + boolean hasOccu(); + /** + *
+         * v2
+         * 
+ * + * optional int32 occu = 23; + * @return The occu. + */ + int getOccu(); + + /** + * optional int32 seq = 24; + * @return Whether the seq field is set. + */ + boolean hasSeq(); + /** + * optional int32 seq = 24; + * @return The seq. + */ + int getSeq(); + + /** + * optional string ttarr = 25; + * @return Whether the ttarr field is set. + */ + boolean hasTtarr(); + /** + * optional string ttarr = 25; + * @return The ttarr. + */ + java.lang.String getTtarr(); + /** + * optional string ttarr = 25; + * @return The bytes for ttarr. + */ + com.google.protobuf.ByteString getTtarrBytes(); + + /** + * optional string ttdep = 26; + * @return Whether the ttdep field is set. + */ + boolean hasTtdep(); + /** + * optional string ttdep = 26; + * @return The ttdep. + */ + java.lang.String getTtdep(); + /** + * optional string ttdep = 26; + * @return The bytes for ttdep. + */ + com.google.protobuf.ByteString getTtdepBytes(); + + /** + * optional int32 dr_type = 27; + * @return Whether the drType field is set. + */ + boolean hasDrType(); + /** + * optional int32 dr_type = 27; + * @return The drType. + */ + int getDrType(); + + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_requestid = 28; + * @return Whether the tlpRequestid field is set. + */ + boolean hasTlpRequestid(); + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_requestid = 28; + * @return The tlpRequestid. + */ + int getTlpRequestid(); + + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; + * @return Whether the tlpRequesttype field is set. + */ + boolean hasTlpRequesttype(); + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; + * @return The tlpRequesttype. + */ + fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType getTlpRequesttype(); + + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; + * @return Whether the tlpPrioritylevel field is set. + */ + boolean hasTlpPrioritylevel(); + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; + * @return The tlpPrioritylevel. + */ + fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel getTlpPrioritylevel(); + + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpReason tlp_reason = 31; + * @return Whether the tlpReason field is set. + */ + boolean hasTlpReason(); + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpReason tlp_reason = 31; + * @return The tlpReason. + */ + fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason getTlpReason(); + + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_att_seq = 32; + * @return Whether the tlpAttSeq field is set. + */ + boolean hasTlpAttSeq(); + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_att_seq = 32; + * @return The tlpAttSeq. + */ + int getTlpAttSeq(); + + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpDecision tlp_decision = 33; + * @return Whether the tlpDecision field is set. + */ + boolean hasTlpDecision(); + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpDecision tlp_decision = 33; + * @return The tlpDecision. + */ + fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision getTlpDecision(); + + /** + *
+         * tlr
+         * 
+ * + * optional int32 sid = 34; + * @return Whether the sid field is set. + */ + boolean hasSid(); + /** + *
+         * tlr
+         * 
+ * + * optional int32 sid = 34; + * @return The sid. + */ + int getSid(); + + /** + *
+         * tlr
+         * 
+ * + * optional int32 signal_groupid = 35; + * @return Whether the signalGroupid field is set. + */ + boolean hasSignalGroupid(); + /** + *
+         * tlr
+         * 
+ * + * optional int32 signal_groupid = 35; + * @return The signalGroupid. + */ + int getSignalGroupid(); + + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_signalgroupnbr = 36; + * @return Whether the tlpSignalgroupnbr field is set. + */ + boolean hasTlpSignalgroupnbr(); + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_signalgroupnbr = 36; + * @return The tlpSignalgroupnbr. + */ + int getTlpSignalgroupnbr(); + + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_line_configid = 38; + * @return Whether the tlpLineConfigid field is set. + */ + boolean hasTlpLineConfigid(); + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_line_configid = 38; + * @return The tlpLineConfigid. + */ + int getTlpLineConfigid(); + + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_point_configid = 39; + * @return Whether the tlpPointConfigid field is set. + */ + boolean hasTlpPointConfigid(); + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_point_configid = 39; + * @return The tlpPointConfigid. + */ + int getTlpPointConfigid(); + + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_frequency = 40; + * @return Whether the tlpFrequency field is set. + */ + boolean hasTlpFrequency(); + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_frequency = 40; + * @return The tlpFrequency. + */ + int getTlpFrequency(); + + /** + *
+         * tlr
+         * 
+ * + * optional string tlp_protocol = 41; + * @return Whether the tlpProtocol field is set. + */ + boolean hasTlpProtocol(); + /** + *
+         * tlr
+         * 
+ * + * optional string tlp_protocol = 41; + * @return The tlpProtocol. + */ + java.lang.String getTlpProtocol(); + /** + *
+         * tlr
+         * 
+ * + * optional string tlp_protocol = 41; + * @return The bytes for tlpProtocol. + */ + com.google.protobuf.ByteString getTlpProtocolBytes(); + + /** + * optional string label = 42; + * @return Whether the label field is set. + */ + boolean hasLabel(); + /** + * optional string label = 42; + * @return The label. + */ + java.lang.String getLabel(); + /** + * optional string label = 42; + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); } + /** + * Protobuf type {@code proto.Payload} + */ + public static final class Payload extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.Payload) + PayloadOrBuilder { + private static final long serialVersionUID = 0L; + // Use Payload.newBuilder() to construct. + private Payload(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Payload() { + schemaVersion_ = 1; + desi_ = ""; + dir_ = ""; + tst_ = ""; + oday_ = ""; + start_ = ""; + loc_ = 0; + route_ = ""; + ttarr_ = ""; + ttdep_ = ""; + tlpRequesttype_ = 0; + tlpPrioritylevel_ = 0; + tlpReason_ = 0; + tlpDecision_ = 0; + tlpProtocol_ = ""; + label_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Payload(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Payload_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Payload_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.hfp.proto.Hfp.Payload.class, + fi.hsl.common.hfp.proto.Hfp.Payload.Builder.class); + } + + /** + * Protobuf enum {@code proto.Payload.LocationQualityMethod} + */ + public enum LocationQualityMethod implements com.google.protobuf.ProtocolMessageEnum { + /** + * GPS = 0; + */ + GPS(0), + /** + * ODO = 1; + */ + ODO(1), + /** + * MAN = 2; + */ + MAN(2), + /** + * NA = 3; + */ + NA(3), + /** + * DR = 4; + */ + DR(4),; + + /** + * GPS = 0; + */ + public static final int GPS_VALUE = 0; + /** + * ODO = 1; + */ + public static final int ODO_VALUE = 1; + /** + * MAN = 2; + */ + public static final int MAN_VALUE = 2; + /** + * NA = 3; + */ + public static final int NA_VALUE = 3; + /** + * DR = 4; + */ + public static final int DR_VALUE = 4; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LocationQualityMethod valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LocationQualityMethod forNumber(int value) { + switch (value) { + case 0 : + return GPS; + case 1 : + return ODO; + case 2 : + return MAN; + case 3 : + return NA; + case 4 : + return DR; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public LocationQualityMethod findValueByNumber(int number) { + return LocationQualityMethod.forNumber(number); + } + }; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSchemaVersion()) { - hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getSchemaVersion(); - } - if (hasDesi()) { - hash = (37 * hash) + DESI_FIELD_NUMBER; - hash = (53 * hash) + getDesi().hashCode(); - } - if (hasDir()) { - hash = (37 * hash) + DIR_FIELD_NUMBER; - hash = (53 * hash) + getDir().hashCode(); - } - if (hasOper()) { - hash = (37 * hash) + OPER_FIELD_NUMBER; - hash = (53 * hash) + getOper(); - } - if (hasVeh()) { - hash = (37 * hash) + VEH_FIELD_NUMBER; - hash = (53 * hash) + getVeh(); - } - if (hasTst()) { - hash = (37 * hash) + TST_FIELD_NUMBER; - hash = (53 * hash) + getTst().hashCode(); - } - if (hasTsi()) { - hash = (37 * hash) + TSI_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTsi()); - } - if (hasSpd()) { - hash = (37 * hash) + SPD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getSpd())); - } - if (hasHdg()) { - hash = (37 * hash) + HDG_FIELD_NUMBER; - hash = (53 * hash) + getHdg(); - } - if (hasLat()) { - hash = (37 * hash) + LAT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getLat())); - } - if (hasLong()) { - hash = (37 * hash) + LONG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getLong())); - } - if (hasAcc()) { - hash = (37 * hash) + ACC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getAcc())); - } - if (hasDl()) { - hash = (37 * hash) + DL_FIELD_NUMBER; - hash = (53 * hash) + getDl(); - } - if (hasOdo()) { - hash = (37 * hash) + ODO_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getOdo())); - } - if (hasDrst()) { - hash = (37 * hash) + DRST_FIELD_NUMBER; - hash = (53 * hash) + getDrst(); - } - if (hasOday()) { - hash = (37 * hash) + ODAY_FIELD_NUMBER; - hash = (53 * hash) + getOday().hashCode(); - } - if (hasJrn()) { - hash = (37 * hash) + JRN_FIELD_NUMBER; - hash = (53 * hash) + getJrn(); - } - if (hasLine()) { - hash = (37 * hash) + LINE_FIELD_NUMBER; - hash = (53 * hash) + getLine(); - } - if (hasStart()) { - hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + getStart().hashCode(); - } - if (hasLoc()) { - hash = (37 * hash) + LOC_FIELD_NUMBER; - hash = (53 * hash) + loc_; - } - if (hasStop()) { - hash = (37 * hash) + STOP_FIELD_NUMBER; - hash = (53 * hash) + getStop(); - } - if (hasRoute()) { - hash = (37 * hash) + ROUTE_FIELD_NUMBER; - hash = (53 * hash) + getRoute().hashCode(); - } - if (hasOccu()) { - hash = (37 * hash) + OCCU_FIELD_NUMBER; - hash = (53 * hash) + getOccu(); - } - if (hasSeq()) { - hash = (37 * hash) + SEQ_FIELD_NUMBER; - hash = (53 * hash) + getSeq(); - } - if (hasTtarr()) { - hash = (37 * hash) + TTARR_FIELD_NUMBER; - hash = (53 * hash) + getTtarr().hashCode(); - } - if (hasTtdep()) { - hash = (37 * hash) + TTDEP_FIELD_NUMBER; - hash = (53 * hash) + getTtdep().hashCode(); - } - if (hasDrType()) { - hash = (37 * hash) + DR_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getDrType(); - } - if (hasTlpRequestid()) { - hash = (37 * hash) + TLP_REQUESTID_FIELD_NUMBER; - hash = (53 * hash) + getTlpRequestid(); - } - if (hasTlpRequesttype()) { - hash = (37 * hash) + TLP_REQUESTTYPE_FIELD_NUMBER; - hash = (53 * hash) + tlpRequesttype_; - } - if (hasTlpPrioritylevel()) { - hash = (37 * hash) + TLP_PRIORITYLEVEL_FIELD_NUMBER; - hash = (53 * hash) + tlpPrioritylevel_; - } - if (hasTlpReason()) { - hash = (37 * hash) + TLP_REASON_FIELD_NUMBER; - hash = (53 * hash) + tlpReason_; - } - if (hasTlpAttSeq()) { - hash = (37 * hash) + TLP_ATT_SEQ_FIELD_NUMBER; - hash = (53 * hash) + getTlpAttSeq(); - } - if (hasTlpDecision()) { - hash = (37 * hash) + TLP_DECISION_FIELD_NUMBER; - hash = (53 * hash) + tlpDecision_; - } - if (hasSid()) { - hash = (37 * hash) + SID_FIELD_NUMBER; - hash = (53 * hash) + getSid(); - } - if (hasSignalGroupid()) { - hash = (37 * hash) + SIGNAL_GROUPID_FIELD_NUMBER; - hash = (53 * hash) + getSignalGroupid(); - } - if (hasTlpSignalgroupnbr()) { - hash = (37 * hash) + TLP_SIGNALGROUPNBR_FIELD_NUMBER; - hash = (53 * hash) + getTlpSignalgroupnbr(); - } - if (hasTlpLineConfigid()) { - hash = (37 * hash) + TLP_LINE_CONFIGID_FIELD_NUMBER; - hash = (53 * hash) + getTlpLineConfigid(); - } - if (hasTlpPointConfigid()) { - hash = (37 * hash) + TLP_POINT_CONFIGID_FIELD_NUMBER; - hash = (53 * hash) + getTlpPointConfigid(); - } - if (hasTlpFrequency()) { - hash = (37 * hash) + TLP_FREQUENCY_FIELD_NUMBER; - hash = (53 * hash) + getTlpFrequency(); - } - if (hasTlpProtocol()) { - hash = (37 * hash) + TLP_PROTOCOL_FIELD_NUMBER; - hash = (53 * hash) + getTlpProtocol().hashCode(); - } - if (hasLabel()) { - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.hfp.proto.Hfp.Payload.getDescriptor().getEnumTypes().get(0); + } + + private static final LocationQualityMethod[] VALUES = values(); + + public static LocationQualityMethod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LocationQualityMethod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.Payload.LocationQualityMethod) + } + + /** + * Protobuf enum {@code proto.Payload.TlpRequestType} + */ + public enum TlpRequestType implements com.google.protobuf.ProtocolMessageEnum { + /** + * NORMAL = 0; + */ + NORMAL(0), + /** + * DOOR_CLOSE = 1; + */ + DOOR_CLOSE(1), + /** + * DOOR_OPEN = 2; + */ + DOOR_OPEN(2), + /** + * ADVANCE = 3; + */ + ADVANCE(3),; + + /** + * NORMAL = 0; + */ + public static final int NORMAL_VALUE = 0; + /** + * DOOR_CLOSE = 1; + */ + public static final int DOOR_CLOSE_VALUE = 1; + /** + * DOOR_OPEN = 2; + */ + public static final int DOOR_OPEN_VALUE = 2; + /** + * ADVANCE = 3; + */ + public static final int ADVANCE_VALUE = 3; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TlpRequestType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TlpRequestType forNumber(int value) { + switch (value) { + case 0 : + return NORMAL; + case 1 : + return DOOR_CLOSE; + case 2 : + return DOOR_OPEN; + case 3 : + return ADVANCE; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public TlpRequestType findValueByNumber(int number) { + return TlpRequestType.forNumber(number); + } + }; - public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.hfp.proto.Hfp.Payload parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.hfp.proto.Hfp.Payload parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.hfp.proto.Hfp.Payload.getDescriptor().getEnumTypes().get(1); + } + + private static final TlpRequestType[] VALUES = values(); + + public static TlpRequestType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TlpRequestType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.Payload.TlpRequestType) + } + + /** + * Protobuf enum {@code proto.Payload.TlpPriorityLevel} + */ + public enum TlpPriorityLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * normal = 0; + */ + normal(0), + /** + * high = 1; + */ + high(1), + /** + * norequest = 2; + */ + norequest(2),; + + /** + * normal = 0; + */ + public static final int normal_VALUE = 0; + /** + * high = 1; + */ + public static final int high_VALUE = 1; + /** + * norequest = 2; + */ + public static final int norequest_VALUE = 2; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TlpPriorityLevel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TlpPriorityLevel forNumber(int value) { + switch (value) { + case 0 : + return normal; + case 1 : + return high; + case 2 : + return norequest; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public TlpPriorityLevel findValueByNumber(int number) { + return TlpPriorityLevel.forNumber(number); + } + }; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.hfp.proto.Hfp.Payload prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.hfp.proto.Hfp.Payload.getDescriptor().getEnumTypes().get(2); + } + + private static final TlpPriorityLevel[] VALUES = values(); + + public static TlpPriorityLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TlpPriorityLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.Payload.TlpPriorityLevel) + } + + /** + * Protobuf enum {@code proto.Payload.TlpReason} + */ + public enum TlpReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * GLOBAL = 0; + */ + GLOBAL(0), + /** + * AHEAD = 1; + */ + AHEAD(1), + /** + * LINE = 2; + */ + LINE(2), + /** + * PRIOEXEP = 3; + */ + PRIOEXEP(3),; + + /** + * GLOBAL = 0; + */ + public static final int GLOBAL_VALUE = 0; + /** + * AHEAD = 1; + */ + public static final int AHEAD_VALUE = 1; + /** + * LINE = 2; + */ + public static final int LINE_VALUE = 2; + /** + * PRIOEXEP = 3; + */ + public static final int PRIOEXEP_VALUE = 3; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TlpReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TlpReason forNumber(int value) { + switch (value) { + case 0 : + return GLOBAL; + case 1 : + return AHEAD; + case 2 : + return LINE; + case 3 : + return PRIOEXEP; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public TlpReason findValueByNumber(int number) { + return TlpReason.forNumber(number); + } + }; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.Payload} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.Payload) - fi.hsl.common.hfp.proto.Hfp.PayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Payload_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Payload_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.hfp.proto.Hfp.Payload.class, fi.hsl.common.hfp.proto.Hfp.Payload.Builder.class); - } - - // Construct using fi.hsl.common.hfp.proto.Hfp.Payload.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bitField1_ = 0; - schemaVersion_ = 1; - desi_ = ""; - dir_ = ""; - oper_ = 0; - veh_ = 0; - tst_ = ""; - tsi_ = 0L; - spd_ = 0D; - hdg_ = 0; - lat_ = 0D; - long_ = 0D; - acc_ = 0D; - dl_ = 0; - odo_ = 0D; - drst_ = 0; - oday_ = ""; - jrn_ = 0; - line_ = 0; - start_ = ""; - loc_ = 0; - stop_ = 0; - route_ = ""; - occu_ = 0; - seq_ = 0; - ttarr_ = ""; - ttdep_ = ""; - drType_ = 0; - tlpRequestid_ = 0; - tlpRequesttype_ = 0; - tlpPrioritylevel_ = 0; - tlpReason_ = 0; - tlpAttSeq_ = 0; - tlpDecision_ = 0; - sid_ = 0; - signalGroupid_ = 0; - tlpSignalgroupnbr_ = 0; - tlpLineConfigid_ = 0; - tlpPointConfigid_ = 0; - tlpFrequency_ = 0; - tlpProtocol_ = ""; - label_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Payload_descriptor; - } - - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Payload getDefaultInstanceForType() { - return fi.hsl.common.hfp.proto.Hfp.Payload.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Payload build() { - fi.hsl.common.hfp.proto.Hfp.Payload result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Payload buildPartial() { - fi.hsl.common.hfp.proto.Hfp.Payload result = new fi.hsl.common.hfp.proto.Hfp.Payload(this); - if (bitField0_ != 0) { buildPartial0(result); } - if (bitField1_ != 0) { buildPartial1(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.hfp.proto.Hfp.Payload result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.schemaVersion_ = schemaVersion_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.desi_ = desi_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.dir_ = dir_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.oper_ = oper_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.veh_ = veh_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.tst_ = tst_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.tsi_ = tsi_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.spd_ = spd_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.hdg_ = hdg_; - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.lat_ = lat_; - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.long_ = long_; - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.acc_ = acc_; - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.dl_ = dl_; - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.odo_ = odo_; - to_bitField0_ |= 0x00002000; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.drst_ = drst_; - to_bitField0_ |= 0x00004000; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.oday_ = oday_; - to_bitField0_ |= 0x00008000; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.jrn_ = jrn_; - to_bitField0_ |= 0x00010000; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.line_ = line_; - to_bitField0_ |= 0x00020000; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.start_ = start_; - to_bitField0_ |= 0x00040000; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.loc_ = loc_; - to_bitField0_ |= 0x00080000; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.stop_ = stop_; - to_bitField0_ |= 0x00100000; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.route_ = route_; - to_bitField0_ |= 0x00200000; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.occu_ = occu_; - to_bitField0_ |= 0x00400000; - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.seq_ = seq_; - to_bitField0_ |= 0x00800000; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.ttarr_ = ttarr_; - to_bitField0_ |= 0x01000000; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.ttdep_ = ttdep_; - to_bitField0_ |= 0x02000000; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.drType_ = drType_; - to_bitField0_ |= 0x04000000; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.tlpRequestid_ = tlpRequestid_; - to_bitField0_ |= 0x08000000; - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.tlpRequesttype_ = tlpRequesttype_; - to_bitField0_ |= 0x10000000; - } - if (((from_bitField0_ & 0x20000000) != 0)) { - result.tlpPrioritylevel_ = tlpPrioritylevel_; - to_bitField0_ |= 0x20000000; - } - if (((from_bitField0_ & 0x40000000) != 0)) { - result.tlpReason_ = tlpReason_; - to_bitField0_ |= 0x40000000; - } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.tlpAttSeq_ = tlpAttSeq_; - to_bitField0_ |= 0x80000000; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartial1(fi.hsl.common.hfp.proto.Hfp.Payload result) { - int from_bitField1_ = bitField1_; - int to_bitField1_ = 0; - if (((from_bitField1_ & 0x00000001) != 0)) { - result.tlpDecision_ = tlpDecision_; - to_bitField1_ |= 0x00000001; - } - if (((from_bitField1_ & 0x00000002) != 0)) { - result.sid_ = sid_; - to_bitField1_ |= 0x00000002; - } - if (((from_bitField1_ & 0x00000004) != 0)) { - result.signalGroupid_ = signalGroupid_; - to_bitField1_ |= 0x00000004; - } - if (((from_bitField1_ & 0x00000008) != 0)) { - result.tlpSignalgroupnbr_ = tlpSignalgroupnbr_; - to_bitField1_ |= 0x00000008; - } - if (((from_bitField1_ & 0x00000010) != 0)) { - result.tlpLineConfigid_ = tlpLineConfigid_; - to_bitField1_ |= 0x00000010; - } - if (((from_bitField1_ & 0x00000020) != 0)) { - result.tlpPointConfigid_ = tlpPointConfigid_; - to_bitField1_ |= 0x00000020; - } - if (((from_bitField1_ & 0x00000040) != 0)) { - result.tlpFrequency_ = tlpFrequency_; - to_bitField1_ |= 0x00000040; - } - if (((from_bitField1_ & 0x00000080) != 0)) { - result.tlpProtocol_ = tlpProtocol_; - to_bitField1_ |= 0x00000080; - } - if (((from_bitField1_ & 0x00000100) != 0)) { - result.label_ = label_; - to_bitField1_ |= 0x00000100; - } - result.bitField1_ |= to_bitField1_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.hfp.proto.Hfp.Payload) { - return mergeFrom((fi.hsl.common.hfp.proto.Hfp.Payload)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.hfp.proto.Hfp.Payload other) { - if (other == fi.hsl.common.hfp.proto.Hfp.Payload.getDefaultInstance()) return this; - if (other.hasSchemaVersion()) { - setSchemaVersion(other.getSchemaVersion()); - } - if (other.hasDesi()) { - desi_ = other.desi_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasDir()) { - dir_ = other.dir_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasOper()) { - setOper(other.getOper()); - } - if (other.hasVeh()) { - setVeh(other.getVeh()); - } - if (other.hasTst()) { - tst_ = other.tst_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.hasTsi()) { - setTsi(other.getTsi()); - } - if (other.hasSpd()) { - setSpd(other.getSpd()); - } - if (other.hasHdg()) { - setHdg(other.getHdg()); - } - if (other.hasLat()) { - setLat(other.getLat()); - } - if (other.hasLong()) { - setLong(other.getLong()); - } - if (other.hasAcc()) { - setAcc(other.getAcc()); - } - if (other.hasDl()) { - setDl(other.getDl()); - } - if (other.hasOdo()) { - setOdo(other.getOdo()); - } - if (other.hasDrst()) { - setDrst(other.getDrst()); - } - if (other.hasOday()) { - oday_ = other.oday_; - bitField0_ |= 0x00008000; - onChanged(); - } - if (other.hasJrn()) { - setJrn(other.getJrn()); - } - if (other.hasLine()) { - setLine(other.getLine()); - } - if (other.hasStart()) { - start_ = other.start_; - bitField0_ |= 0x00040000; - onChanged(); - } - if (other.hasLoc()) { - setLoc(other.getLoc()); - } - if (other.hasStop()) { - setStop(other.getStop()); - } - if (other.hasRoute()) { - route_ = other.route_; - bitField0_ |= 0x00200000; - onChanged(); - } - if (other.hasOccu()) { - setOccu(other.getOccu()); - } - if (other.hasSeq()) { - setSeq(other.getSeq()); - } - if (other.hasTtarr()) { - ttarr_ = other.ttarr_; - bitField0_ |= 0x01000000; - onChanged(); - } - if (other.hasTtdep()) { - ttdep_ = other.ttdep_; - bitField0_ |= 0x02000000; - onChanged(); - } - if (other.hasDrType()) { - setDrType(other.getDrType()); - } - if (other.hasTlpRequestid()) { - setTlpRequestid(other.getTlpRequestid()); - } - if (other.hasTlpRequesttype()) { - setTlpRequesttype(other.getTlpRequesttype()); - } - if (other.hasTlpPrioritylevel()) { - setTlpPrioritylevel(other.getTlpPrioritylevel()); - } - if (other.hasTlpReason()) { - setTlpReason(other.getTlpReason()); - } - if (other.hasTlpAttSeq()) { - setTlpAttSeq(other.getTlpAttSeq()); - } - if (other.hasTlpDecision()) { - setTlpDecision(other.getTlpDecision()); - } - if (other.hasSid()) { - setSid(other.getSid()); - } - if (other.hasSignalGroupid()) { - setSignalGroupid(other.getSignalGroupid()); - } - if (other.hasTlpSignalgroupnbr()) { - setTlpSignalgroupnbr(other.getTlpSignalgroupnbr()); - } - if (other.hasTlpLineConfigid()) { - setTlpLineConfigid(other.getTlpLineConfigid()); - } - if (other.hasTlpPointConfigid()) { - setTlpPointConfigid(other.getTlpPointConfigid()); - } - if (other.hasTlpFrequency()) { - setTlpFrequency(other.getTlpFrequency()); - } - if (other.hasTlpProtocol()) { - tlpProtocol_ = other.tlpProtocol_; - bitField1_ |= 0x00000080; - onChanged(); - } - if (other.hasLabel()) { - label_ = other.label_; - bitField1_ |= 0x00000100; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.hfp.proto.Hfp.Payload.getDescriptor().getEnumTypes().get(3); + } + + private static final TlpReason[] VALUES = values(); + + public static TlpReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TlpReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.Payload.TlpReason) + } + + /** + * Protobuf enum {@code proto.Payload.TlpDecision} + */ + public enum TlpDecision implements com.google.protobuf.ProtocolMessageEnum { + /** + * ACK = 0; + */ + ACK(0), + /** + * NAK = 1; + */ + NAK(1),; + + /** + * ACK = 0; + */ + public static final int ACK_VALUE = 0; + /** + * NAK = 1; + */ + public static final int NAK_VALUE = 1; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TlpDecision valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TlpDecision forNumber(int value) { + switch (value) { + case 0 : + return ACK; + case 1 : + return NAK; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public TlpDecision findValueByNumber(int number) { + return TlpDecision.forNumber(number); + } + }; - @java.lang.Override - public final boolean isInitialized() { - if (!hasSchemaVersion()) { - return false; - } - if (!hasTst()) { - return false; - } - if (!hasTsi()) { - return false; + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.hfp.proto.Hfp.Payload.getDescriptor().getEnumTypes().get(4); + } + + private static final TlpDecision[] VALUES = values(); + + public static TlpDecision valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TlpDecision(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.Payload.TlpDecision) + } + + private int bitField0_; + private int bitField1_; + public static final int SCHEMAVERSION_FIELD_NUMBER = 1; + private int schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + + public static final int DESI_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object desi_ = ""; + /** + * optional string desi = 2; + * @return Whether the desi field is set. + */ + @java.lang.Override + public boolean hasDesi() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string desi = 2; + * @return The desi. + */ + @java.lang.Override + public java.lang.String getDesi() { + java.lang.Object ref = desi_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + desi_ = s; + } + return s; + } + } + /** + * optional string desi = 2; + * @return The bytes for desi. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiBytes() { + java.lang.Object ref = desi_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIR_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object dir_ = ""; + /** + * optional string dir = 3; + * @return Whether the dir field is set. + */ + @java.lang.Override + public boolean hasDir() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string dir = 3; + * @return The dir. + */ + @java.lang.Override + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + dir_ = s; + } + return s; + } + } + /** + * optional string dir = 3; + * @return The bytes for dir. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPER_FIELD_NUMBER = 4; + private int oper_ = 0; + /** + * optional int32 oper = 4; + * @return Whether the oper field is set. + */ + @java.lang.Override + public boolean hasOper() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int32 oper = 4; + * @return The oper. + */ + @java.lang.Override + public int getOper() { + return oper_; + } + + public static final int VEH_FIELD_NUMBER = 5; + private int veh_ = 0; + /** + * optional int32 veh = 5; + * @return Whether the veh field is set. + */ + @java.lang.Override + public boolean hasVeh() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional int32 veh = 5; + * @return The veh. + */ + @java.lang.Override + public int getVeh() { + return veh_; + } + + public static final int TST_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object tst_ = ""; + /** + * required string tst = 6; + * @return Whether the tst field is set. + */ + @java.lang.Override + public boolean hasTst() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * required string tst = 6; + * @return The tst. + */ + @java.lang.Override + public java.lang.String getTst() { + java.lang.Object ref = tst_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + tst_ = s; + } + return s; + } + } + /** + * required string tst = 6; + * @return The bytes for tst. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTstBytes() { + java.lang.Object ref = tst_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tst_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TSI_FIELD_NUMBER = 7; + private long tsi_ = 0L; + /** + * required int64 tsi = 7; + * @return Whether the tsi field is set. + */ + @java.lang.Override + public boolean hasTsi() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * required int64 tsi = 7; + * @return The tsi. + */ + @java.lang.Override + public long getTsi() { + return tsi_; + } + + public static final int SPD_FIELD_NUMBER = 8; + private double spd_ = 0D; + /** + * optional double spd = 8; + * @return Whether the spd field is set. + */ + @java.lang.Override + public boolean hasSpd() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional double spd = 8; + * @return The spd. + */ + @java.lang.Override + public double getSpd() { + return spd_; + } + + public static final int HDG_FIELD_NUMBER = 9; + private int hdg_ = 0; + /** + * optional int32 hdg = 9; + * @return Whether the hdg field is set. + */ + @java.lang.Override + public boolean hasHdg() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional int32 hdg = 9; + * @return The hdg. + */ + @java.lang.Override + public int getHdg() { + return hdg_; + } + + public static final int LAT_FIELD_NUMBER = 10; + private double lat_ = 0D; + /** + * optional double lat = 10; + * @return Whether the lat field is set. + */ + @java.lang.Override + public boolean hasLat() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional double lat = 10; + * @return The lat. + */ + @java.lang.Override + public double getLat() { + return lat_; + } + + public static final int LONG_FIELD_NUMBER = 11; + private double long_ = 0D; + /** + * optional double long = 11; + * @return Whether the long field is set. + */ + @java.lang.Override + public boolean hasLong() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional double long = 11; + * @return The long. + */ + @java.lang.Override + public double getLong() { + return long_; + } + + public static final int ACC_FIELD_NUMBER = 12; + private double acc_ = 0D; + /** + * optional double acc = 12; + * @return Whether the acc field is set. + */ + @java.lang.Override + public boolean hasAcc() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional double acc = 12; + * @return The acc. + */ + @java.lang.Override + public double getAcc() { + return acc_; + } + + public static final int DL_FIELD_NUMBER = 13; + private int dl_ = 0; + /** + * optional uint32 dl = 13; + * @return Whether the dl field is set. + */ + @java.lang.Override + public boolean hasDl() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional uint32 dl = 13; + * @return The dl. + */ + @java.lang.Override + public int getDl() { + return dl_; + } + + public static final int ODO_FIELD_NUMBER = 14; + private double odo_ = 0D; + /** + * optional double odo = 14; + * @return Whether the odo field is set. + */ + @java.lang.Override + public boolean hasOdo() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * optional double odo = 14; + * @return The odo. + */ + @java.lang.Override + public double getOdo() { + return odo_; + } + + public static final int DRST_FIELD_NUMBER = 15; + private int drst_ = 0; + /** + * optional uint32 drst = 15; + * @return Whether the drst field is set. + */ + @java.lang.Override + public boolean hasDrst() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * optional uint32 drst = 15; + * @return The drst. + */ + @java.lang.Override + public int getDrst() { + return drst_; + } + + public static final int ODAY_FIELD_NUMBER = 16; + @SuppressWarnings("serial") + private volatile java.lang.Object oday_ = ""; + /** + * optional string oday = 16; + * @return Whether the oday field is set. + */ + @java.lang.Override + public boolean hasOday() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * optional string oday = 16; + * @return The oday. + */ + @java.lang.Override + public java.lang.String getOday() { + java.lang.Object ref = oday_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + oday_ = s; + } + return s; + } + } + /** + * optional string oday = 16; + * @return The bytes for oday. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOdayBytes() { + java.lang.Object ref = oday_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oday_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JRN_FIELD_NUMBER = 17; + private int jrn_ = 0; + /** + * optional int32 jrn = 17; + * @return Whether the jrn field is set. + */ + @java.lang.Override + public boolean hasJrn() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * optional int32 jrn = 17; + * @return The jrn. + */ + @java.lang.Override + public int getJrn() { + return jrn_; + } + + public static final int LINE_FIELD_NUMBER = 18; + private int line_ = 0; + /** + * optional int32 line = 18; + * @return Whether the line field is set. + */ + @java.lang.Override + public boolean hasLine() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * optional int32 line = 18; + * @return The line. + */ + @java.lang.Override + public int getLine() { + return line_; + } + + public static final int START_FIELD_NUMBER = 19; + @SuppressWarnings("serial") + private volatile java.lang.Object start_ = ""; + /** + * optional string start = 19; + * @return Whether the start field is set. + */ + @java.lang.Override + public boolean hasStart() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * optional string start = 19; + * @return The start. + */ + @java.lang.Override + public java.lang.String getStart() { + java.lang.Object ref = start_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + start_ = s; + } + return s; + } + } + /** + * optional string start = 19; + * @return The bytes for start. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartBytes() { + java.lang.Object ref = start_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + start_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOC_FIELD_NUMBER = 20; + private int loc_ = 0; + /** + *
+         * v2
+         * 
+ * + * optional .proto.Payload.LocationQualityMethod loc = 20; + * @return Whether the loc field is set. + */ + @java.lang.Override + public boolean hasLoc() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+         * v2
+         * 
+ * + * optional .proto.Payload.LocationQualityMethod loc = 20; + * @return The loc. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod getLoc() { + fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod result = fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod + .forNumber(loc_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod.GPS : result; + } + + public static final int STOP_FIELD_NUMBER = 21; + private int stop_ = 0; + /** + *
+         * v2
+         * 
+ * + * optional int32 stop = 21; + * @return Whether the stop field is set. + */ + @java.lang.Override + public boolean hasStop() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+         * v2
+         * 
+ * + * optional int32 stop = 21; + * @return The stop. + */ + @java.lang.Override + public int getStop() { + return stop_; + } + + public static final int ROUTE_FIELD_NUMBER = 22; + @SuppressWarnings("serial") + private volatile java.lang.Object route_ = ""; + /** + *
+         * v2
+         * 
+ * + * optional string route = 22; + * @return Whether the route field is set. + */ + @java.lang.Override + public boolean hasRoute() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+         * v2
+         * 
+ * + * optional string route = 22; + * @return The route. + */ + @java.lang.Override + public java.lang.String getRoute() { + java.lang.Object ref = route_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + route_ = s; + } + return s; + } + } + /** + *
+         * v2
+         * 
+ * + * optional string route = 22; + * @return The bytes for route. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRouteBytes() { + java.lang.Object ref = route_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + route_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OCCU_FIELD_NUMBER = 23; + private int occu_ = 0; + /** + *
+         * v2
+         * 
+ * + * optional int32 occu = 23; + * @return Whether the occu field is set. + */ + @java.lang.Override + public boolean hasOccu() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + *
+         * v2
+         * 
+ * + * optional int32 occu = 23; + * @return The occu. + */ + @java.lang.Override + public int getOccu() { + return occu_; + } + + public static final int SEQ_FIELD_NUMBER = 24; + private int seq_ = 0; + /** + * optional int32 seq = 24; + * @return Whether the seq field is set. + */ + @java.lang.Override + public boolean hasSeq() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + * optional int32 seq = 24; + * @return The seq. + */ + @java.lang.Override + public int getSeq() { + return seq_; + } + + public static final int TTARR_FIELD_NUMBER = 25; + @SuppressWarnings("serial") + private volatile java.lang.Object ttarr_ = ""; + /** + * optional string ttarr = 25; + * @return Whether the ttarr field is set. + */ + @java.lang.Override + public boolean hasTtarr() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + * optional string ttarr = 25; + * @return The ttarr. + */ + @java.lang.Override + public java.lang.String getTtarr() { + java.lang.Object ref = ttarr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + ttarr_ = s; + } + return s; + } + } + /** + * optional string ttarr = 25; + * @return The bytes for ttarr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTtarrBytes() { + java.lang.Object ref = ttarr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ttarr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TTDEP_FIELD_NUMBER = 26; + @SuppressWarnings("serial") + private volatile java.lang.Object ttdep_ = ""; + /** + * optional string ttdep = 26; + * @return Whether the ttdep field is set. + */ + @java.lang.Override + public boolean hasTtdep() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + * optional string ttdep = 26; + * @return The ttdep. + */ + @java.lang.Override + public java.lang.String getTtdep() { + java.lang.Object ref = ttdep_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + ttdep_ = s; + } + return s; + } + } + /** + * optional string ttdep = 26; + * @return The bytes for ttdep. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTtdepBytes() { + java.lang.Object ref = ttdep_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ttdep_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DR_TYPE_FIELD_NUMBER = 27; + private int drType_ = 0; + /** + * optional int32 dr_type = 27; + * @return Whether the drType field is set. + */ + @java.lang.Override + public boolean hasDrType() { + return ((bitField0_ & 0x04000000) != 0); + } + /** + * optional int32 dr_type = 27; + * @return The drType. + */ + @java.lang.Override + public int getDrType() { + return drType_; + } + + public static final int TLP_REQUESTID_FIELD_NUMBER = 28; + private int tlpRequestid_ = 0; + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_requestid = 28; + * @return Whether the tlpRequestid field is set. + */ + @java.lang.Override + public boolean hasTlpRequestid() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_requestid = 28; + * @return The tlpRequestid. + */ + @java.lang.Override + public int getTlpRequestid() { + return tlpRequestid_; + } + + public static final int TLP_REQUESTTYPE_FIELD_NUMBER = 29; + private int tlpRequesttype_ = 0; + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; + * @return Whether the tlpRequesttype field is set. + */ + @java.lang.Override + public boolean hasTlpRequesttype() { + return ((bitField0_ & 0x10000000) != 0); + } + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; + * @return The tlpRequesttype. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType getTlpRequesttype() { + fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType + .forNumber(tlpRequesttype_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType.NORMAL : result; + } + + public static final int TLP_PRIORITYLEVEL_FIELD_NUMBER = 30; + private int tlpPrioritylevel_ = 0; + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; + * @return Whether the tlpPrioritylevel field is set. + */ + @java.lang.Override + public boolean hasTlpPrioritylevel() { + return ((bitField0_ & 0x20000000) != 0); + } + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; + * @return The tlpPrioritylevel. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel getTlpPrioritylevel() { + fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel + .forNumber(tlpPrioritylevel_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel.normal : result; + } + + public static final int TLP_REASON_FIELD_NUMBER = 31; + private int tlpReason_ = 0; + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpReason tlp_reason = 31; + * @return Whether the tlpReason field is set. + */ + @java.lang.Override + public boolean hasTlpReason() { + return ((bitField0_ & 0x40000000) != 0); + } + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpReason tlp_reason = 31; + * @return The tlpReason. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason getTlpReason() { + fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason + .forNumber(tlpReason_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason.GLOBAL : result; + } + + public static final int TLP_ATT_SEQ_FIELD_NUMBER = 32; + private int tlpAttSeq_ = 0; + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_att_seq = 32; + * @return Whether the tlpAttSeq field is set. + */ + @java.lang.Override + public boolean hasTlpAttSeq() { + return ((bitField0_ & 0x80000000) != 0); + } + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_att_seq = 32; + * @return The tlpAttSeq. + */ + @java.lang.Override + public int getTlpAttSeq() { + return tlpAttSeq_; + } + + public static final int TLP_DECISION_FIELD_NUMBER = 33; + private int tlpDecision_ = 0; + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpDecision tlp_decision = 33; + * @return Whether the tlpDecision field is set. + */ + @java.lang.Override + public boolean hasTlpDecision() { + return ((bitField1_ & 0x00000001) != 0); + } + /** + *
+         * tlr
+         * 
+ * + * optional .proto.Payload.TlpDecision tlp_decision = 33; + * @return The tlpDecision. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision getTlpDecision() { + fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision + .forNumber(tlpDecision_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision.ACK : result; + } + + public static final int SID_FIELD_NUMBER = 34; + private int sid_ = 0; + /** + *
+         * tlr
+         * 
+ * + * optional int32 sid = 34; + * @return Whether the sid field is set. + */ + @java.lang.Override + public boolean hasSid() { + return ((bitField1_ & 0x00000002) != 0); + } + /** + *
+         * tlr
+         * 
+ * + * optional int32 sid = 34; + * @return The sid. + */ + @java.lang.Override + public int getSid() { + return sid_; + } + + public static final int SIGNAL_GROUPID_FIELD_NUMBER = 35; + private int signalGroupid_ = 0; + /** + *
+         * tlr
+         * 
+ * + * optional int32 signal_groupid = 35; + * @return Whether the signalGroupid field is set. + */ + @java.lang.Override + public boolean hasSignalGroupid() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + *
+         * tlr
+         * 
+ * + * optional int32 signal_groupid = 35; + * @return The signalGroupid. + */ + @java.lang.Override + public int getSignalGroupid() { + return signalGroupid_; + } + + public static final int TLP_SIGNALGROUPNBR_FIELD_NUMBER = 36; + private int tlpSignalgroupnbr_ = 0; + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_signalgroupnbr = 36; + * @return Whether the tlpSignalgroupnbr field is set. + */ + @java.lang.Override + public boolean hasTlpSignalgroupnbr() { + return ((bitField1_ & 0x00000008) != 0); + } + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_signalgroupnbr = 36; + * @return The tlpSignalgroupnbr. + */ + @java.lang.Override + public int getTlpSignalgroupnbr() { + return tlpSignalgroupnbr_; + } + + public static final int TLP_LINE_CONFIGID_FIELD_NUMBER = 38; + private int tlpLineConfigid_ = 0; + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_line_configid = 38; + * @return Whether the tlpLineConfigid field is set. + */ + @java.lang.Override + public boolean hasTlpLineConfigid() { + return ((bitField1_ & 0x00000010) != 0); + } + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_line_configid = 38; + * @return The tlpLineConfigid. + */ + @java.lang.Override + public int getTlpLineConfigid() { + return tlpLineConfigid_; + } + + public static final int TLP_POINT_CONFIGID_FIELD_NUMBER = 39; + private int tlpPointConfigid_ = 0; + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_point_configid = 39; + * @return Whether the tlpPointConfigid field is set. + */ + @java.lang.Override + public boolean hasTlpPointConfigid() { + return ((bitField1_ & 0x00000020) != 0); + } + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_point_configid = 39; + * @return The tlpPointConfigid. + */ + @java.lang.Override + public int getTlpPointConfigid() { + return tlpPointConfigid_; + } + + public static final int TLP_FREQUENCY_FIELD_NUMBER = 40; + private int tlpFrequency_ = 0; + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_frequency = 40; + * @return Whether the tlpFrequency field is set. + */ + @java.lang.Override + public boolean hasTlpFrequency() { + return ((bitField1_ & 0x00000040) != 0); + } + /** + *
+         * tlr
+         * 
+ * + * optional int32 tlp_frequency = 40; + * @return The tlpFrequency. + */ + @java.lang.Override + public int getTlpFrequency() { + return tlpFrequency_; + } + + public static final int TLP_PROTOCOL_FIELD_NUMBER = 41; + @SuppressWarnings("serial") + private volatile java.lang.Object tlpProtocol_ = ""; + /** + *
+         * tlr
+         * 
+ * + * optional string tlp_protocol = 41; + * @return Whether the tlpProtocol field is set. + */ + @java.lang.Override + public boolean hasTlpProtocol() { + return ((bitField1_ & 0x00000080) != 0); + } + /** + *
+         * tlr
+         * 
+ * + * optional string tlp_protocol = 41; + * @return The tlpProtocol. + */ + @java.lang.Override + public java.lang.String getTlpProtocol() { + java.lang.Object ref = tlpProtocol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + tlpProtocol_ = s; + } + return s; + } + } + /** + *
+         * tlr
+         * 
+ * + * optional string tlp_protocol = 41; + * @return The bytes for tlpProtocol. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTlpProtocolBytes() { + java.lang.Object ref = tlpProtocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tlpProtocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABEL_FIELD_NUMBER = 42; + @SuppressWarnings("serial") + private volatile java.lang.Object label_ = ""; + /** + * optional string label = 42; + * @return Whether the label field is set. + */ + @java.lang.Override + public boolean hasLabel() { + return ((bitField1_ & 0x00000100) != 0); + } + /** + * optional string label = 42; + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + label_ = s; + } + return s; + } + } + /** + * optional string label = 42; + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (!hasSchemaVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTst()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTsi()) { + 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.writeInt32(1, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, desi_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dir_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt32(4, oper_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt32(5, veh_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tst_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt64(7, tsi_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeDouble(8, spd_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeInt32(9, hdg_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeDouble(10, lat_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeDouble(11, long_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeDouble(12, acc_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeUInt32(13, dl_); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeDouble(14, odo_); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeUInt32(15, drst_); + } + if (((bitField0_ & 0x00008000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, oday_); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeInt32(17, jrn_); + } + if (((bitField0_ & 0x00020000) != 0)) { + output.writeInt32(18, line_); + } + if (((bitField0_ & 0x00040000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, start_); + } + if (((bitField0_ & 0x00080000) != 0)) { + output.writeEnum(20, loc_); + } + if (((bitField0_ & 0x00100000) != 0)) { + output.writeInt32(21, stop_); + } + if (((bitField0_ & 0x00200000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, route_); + } + if (((bitField0_ & 0x00400000) != 0)) { + output.writeInt32(23, occu_); + } + if (((bitField0_ & 0x00800000) != 0)) { + output.writeInt32(24, seq_); + } + if (((bitField0_ & 0x01000000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 25, ttarr_); + } + if (((bitField0_ & 0x02000000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 26, ttdep_); + } + if (((bitField0_ & 0x04000000) != 0)) { + output.writeInt32(27, drType_); + } + if (((bitField0_ & 0x08000000) != 0)) { + output.writeInt32(28, tlpRequestid_); + } + if (((bitField0_ & 0x10000000) != 0)) { + output.writeEnum(29, tlpRequesttype_); + } + if (((bitField0_ & 0x20000000) != 0)) { + output.writeEnum(30, tlpPrioritylevel_); + } + if (((bitField0_ & 0x40000000) != 0)) { + output.writeEnum(31, tlpReason_); + } + if (((bitField0_ & 0x80000000) != 0)) { + output.writeInt32(32, tlpAttSeq_); + } + if (((bitField1_ & 0x00000001) != 0)) { + output.writeEnum(33, tlpDecision_); + } + if (((bitField1_ & 0x00000002) != 0)) { + output.writeInt32(34, sid_); + } + if (((bitField1_ & 0x00000004) != 0)) { + output.writeInt32(35, signalGroupid_); + } + if (((bitField1_ & 0x00000008) != 0)) { + output.writeInt32(36, tlpSignalgroupnbr_); + } + if (((bitField1_ & 0x00000010) != 0)) { + output.writeInt32(38, tlpLineConfigid_); + } + if (((bitField1_ & 0x00000020) != 0)) { + output.writeInt32(39, tlpPointConfigid_); + } + if (((bitField1_ & 0x00000040) != 0)) { + output.writeInt32(40, tlpFrequency_); + } + if (((bitField1_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 41, tlpProtocol_); + } + if (((bitField1_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 42, label_); + } + 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, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, desi_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dir_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, oper_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, veh_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tst_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, tsi_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(8, spd_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, hdg_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(10, lat_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(11, long_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(12, acc_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(13, dl_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(14, odo_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(15, drst_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, oday_); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(17, jrn_); + } + if (((bitField0_ & 0x00020000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(18, line_); + } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, start_); + } + if (((bitField0_ & 0x00080000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, loc_); + } + if (((bitField0_ & 0x00100000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(21, stop_); + } + if (((bitField0_ & 0x00200000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, route_); + } + if (((bitField0_ & 0x00400000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(23, occu_); + } + if (((bitField0_ & 0x00800000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(24, seq_); + } + if (((bitField0_ & 0x01000000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, ttarr_); + } + if (((bitField0_ & 0x02000000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, ttdep_); + } + if (((bitField0_ & 0x04000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(27, drType_); + } + if (((bitField0_ & 0x08000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(28, tlpRequestid_); + } + if (((bitField0_ & 0x10000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(29, tlpRequesttype_); + } + if (((bitField0_ & 0x20000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(30, tlpPrioritylevel_); + } + if (((bitField0_ & 0x40000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(31, tlpReason_); + } + if (((bitField0_ & 0x80000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(32, tlpAttSeq_); + } + if (((bitField1_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(33, tlpDecision_); + } + if (((bitField1_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(34, sid_); + } + if (((bitField1_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(35, signalGroupid_); + } + if (((bitField1_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(36, tlpSignalgroupnbr_); + } + if (((bitField1_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(38, tlpLineConfigid_); + } + if (((bitField1_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(39, tlpPointConfigid_); + } + if (((bitField1_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(40, tlpFrequency_); + } + if (((bitField1_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(41, tlpProtocol_); + } + if (((bitField1_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(42, label_); + } + 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 fi.hsl.common.hfp.proto.Hfp.Payload)) { + return super.equals(obj); + } + fi.hsl.common.hfp.proto.Hfp.Payload other = (fi.hsl.common.hfp.proto.Hfp.Payload) obj; + + if (hasSchemaVersion() != other.hasSchemaVersion()) + return false; + if (hasSchemaVersion()) { + if (getSchemaVersion() != other.getSchemaVersion()) + return false; + } + if (hasDesi() != other.hasDesi()) + return false; + if (hasDesi()) { + if (!getDesi().equals(other.getDesi())) + return false; + } + if (hasDir() != other.hasDir()) + return false; + if (hasDir()) { + if (!getDir().equals(other.getDir())) + return false; + } + if (hasOper() != other.hasOper()) + return false; + if (hasOper()) { + if (getOper() != other.getOper()) + return false; + } + if (hasVeh() != other.hasVeh()) + return false; + if (hasVeh()) { + if (getVeh() != other.getVeh()) + return false; + } + if (hasTst() != other.hasTst()) + return false; + if (hasTst()) { + if (!getTst().equals(other.getTst())) + return false; + } + if (hasTsi() != other.hasTsi()) + return false; + if (hasTsi()) { + if (getTsi() != other.getTsi()) + return false; + } + if (hasSpd() != other.hasSpd()) + return false; + if (hasSpd()) { + if (java.lang.Double.doubleToLongBits(getSpd()) != java.lang.Double.doubleToLongBits(other.getSpd())) + return false; + } + if (hasHdg() != other.hasHdg()) + return false; + if (hasHdg()) { + if (getHdg() != other.getHdg()) + return false; + } + if (hasLat() != other.hasLat()) + return false; + if (hasLat()) { + if (java.lang.Double.doubleToLongBits(getLat()) != java.lang.Double.doubleToLongBits(other.getLat())) + return false; + } + if (hasLong() != other.hasLong()) + return false; + if (hasLong()) { + if (java.lang.Double.doubleToLongBits(getLong()) != java.lang.Double.doubleToLongBits(other.getLong())) + return false; + } + if (hasAcc() != other.hasAcc()) + return false; + if (hasAcc()) { + if (java.lang.Double.doubleToLongBits(getAcc()) != java.lang.Double.doubleToLongBits(other.getAcc())) + return false; + } + if (hasDl() != other.hasDl()) + return false; + if (hasDl()) { + if (getDl() != other.getDl()) + return false; + } + if (hasOdo() != other.hasOdo()) + return false; + if (hasOdo()) { + if (java.lang.Double.doubleToLongBits(getOdo()) != java.lang.Double.doubleToLongBits(other.getOdo())) + return false; + } + if (hasDrst() != other.hasDrst()) + return false; + if (hasDrst()) { + if (getDrst() != other.getDrst()) + return false; + } + if (hasOday() != other.hasOday()) + return false; + if (hasOday()) { + if (!getOday().equals(other.getOday())) + return false; + } + if (hasJrn() != other.hasJrn()) + return false; + if (hasJrn()) { + if (getJrn() != other.getJrn()) + return false; + } + if (hasLine() != other.hasLine()) + return false; + if (hasLine()) { + if (getLine() != other.getLine()) + return false; + } + if (hasStart() != other.hasStart()) + return false; + if (hasStart()) { + if (!getStart().equals(other.getStart())) + return false; + } + if (hasLoc() != other.hasLoc()) + return false; + if (hasLoc()) { + if (loc_ != other.loc_) + return false; + } + if (hasStop() != other.hasStop()) + return false; + if (hasStop()) { + if (getStop() != other.getStop()) + return false; + } + if (hasRoute() != other.hasRoute()) + return false; + if (hasRoute()) { + if (!getRoute().equals(other.getRoute())) + return false; + } + if (hasOccu() != other.hasOccu()) + return false; + if (hasOccu()) { + if (getOccu() != other.getOccu()) + return false; + } + if (hasSeq() != other.hasSeq()) + return false; + if (hasSeq()) { + if (getSeq() != other.getSeq()) + return false; + } + if (hasTtarr() != other.hasTtarr()) + return false; + if (hasTtarr()) { + if (!getTtarr().equals(other.getTtarr())) + return false; + } + if (hasTtdep() != other.hasTtdep()) + return false; + if (hasTtdep()) { + if (!getTtdep().equals(other.getTtdep())) + return false; + } + if (hasDrType() != other.hasDrType()) + return false; + if (hasDrType()) { + if (getDrType() != other.getDrType()) + return false; + } + if (hasTlpRequestid() != other.hasTlpRequestid()) + return false; + if (hasTlpRequestid()) { + if (getTlpRequestid() != other.getTlpRequestid()) + return false; + } + if (hasTlpRequesttype() != other.hasTlpRequesttype()) + return false; + if (hasTlpRequesttype()) { + if (tlpRequesttype_ != other.tlpRequesttype_) + return false; + } + if (hasTlpPrioritylevel() != other.hasTlpPrioritylevel()) + return false; + if (hasTlpPrioritylevel()) { + if (tlpPrioritylevel_ != other.tlpPrioritylevel_) + return false; + } + if (hasTlpReason() != other.hasTlpReason()) + return false; + if (hasTlpReason()) { + if (tlpReason_ != other.tlpReason_) + return false; + } + if (hasTlpAttSeq() != other.hasTlpAttSeq()) + return false; + if (hasTlpAttSeq()) { + if (getTlpAttSeq() != other.getTlpAttSeq()) + return false; + } + if (hasTlpDecision() != other.hasTlpDecision()) + return false; + if (hasTlpDecision()) { + if (tlpDecision_ != other.tlpDecision_) + return false; + } + if (hasSid() != other.hasSid()) + return false; + if (hasSid()) { + if (getSid() != other.getSid()) + return false; + } + if (hasSignalGroupid() != other.hasSignalGroupid()) + return false; + if (hasSignalGroupid()) { + if (getSignalGroupid() != other.getSignalGroupid()) + return false; + } + if (hasTlpSignalgroupnbr() != other.hasTlpSignalgroupnbr()) + return false; + if (hasTlpSignalgroupnbr()) { + if (getTlpSignalgroupnbr() != other.getTlpSignalgroupnbr()) + return false; + } + if (hasTlpLineConfigid() != other.hasTlpLineConfigid()) + return false; + if (hasTlpLineConfigid()) { + if (getTlpLineConfigid() != other.getTlpLineConfigid()) + return false; + } + if (hasTlpPointConfigid() != other.hasTlpPointConfigid()) + return false; + if (hasTlpPointConfigid()) { + if (getTlpPointConfigid() != other.getTlpPointConfigid()) + return false; + } + if (hasTlpFrequency() != other.hasTlpFrequency()) + return false; + if (hasTlpFrequency()) { + if (getTlpFrequency() != other.getTlpFrequency()) + return false; + } + if (hasTlpProtocol() != other.hasTlpProtocol()) + return false; + if (hasTlpProtocol()) { + if (!getTlpProtocol().equals(other.getTlpProtocol())) + return false; + } + if (hasLabel() != other.hasLabel()) + return false; + if (hasLabel()) { + if (!getLabel().equals(other.getLabel())) + 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 (hasSchemaVersion()) { + hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion(); + } + if (hasDesi()) { + hash = (37 * hash) + DESI_FIELD_NUMBER; + hash = (53 * hash) + getDesi().hashCode(); + } + if (hasDir()) { + hash = (37 * hash) + DIR_FIELD_NUMBER; + hash = (53 * hash) + getDir().hashCode(); + } + if (hasOper()) { + hash = (37 * hash) + OPER_FIELD_NUMBER; + hash = (53 * hash) + getOper(); + } + if (hasVeh()) { + hash = (37 * hash) + VEH_FIELD_NUMBER; + hash = (53 * hash) + getVeh(); + } + if (hasTst()) { + hash = (37 * hash) + TST_FIELD_NUMBER; + hash = (53 * hash) + getTst().hashCode(); + } + if (hasTsi()) { + hash = (37 * hash) + TSI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTsi()); + } + if (hasSpd()) { + hash = (37 * hash) + SPD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getSpd())); + } + if (hasHdg()) { + hash = (37 * hash) + HDG_FIELD_NUMBER; + hash = (53 * hash) + getHdg(); + } + if (hasLat()) { + hash = (37 * hash) + LAT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getLat())); + } + if (hasLong()) { + hash = (37 * hash) + LONG_FIELD_NUMBER; + hash = (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getLong())); + } + if (hasAcc()) { + hash = (37 * hash) + ACC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getAcc())); + } + if (hasDl()) { + hash = (37 * hash) + DL_FIELD_NUMBER; + hash = (53 * hash) + getDl(); + } + if (hasOdo()) { + hash = (37 * hash) + ODO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getOdo())); + } + if (hasDrst()) { + hash = (37 * hash) + DRST_FIELD_NUMBER; + hash = (53 * hash) + getDrst(); + } + if (hasOday()) { + hash = (37 * hash) + ODAY_FIELD_NUMBER; + hash = (53 * hash) + getOday().hashCode(); + } + if (hasJrn()) { + hash = (37 * hash) + JRN_FIELD_NUMBER; + hash = (53 * hash) + getJrn(); + } + if (hasLine()) { + hash = (37 * hash) + LINE_FIELD_NUMBER; + hash = (53 * hash) + getLine(); + } + if (hasStart()) { + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + getStart().hashCode(); + } + if (hasLoc()) { + hash = (37 * hash) + LOC_FIELD_NUMBER; + hash = (53 * hash) + loc_; + } + if (hasStop()) { + hash = (37 * hash) + STOP_FIELD_NUMBER; + hash = (53 * hash) + getStop(); + } + if (hasRoute()) { + hash = (37 * hash) + ROUTE_FIELD_NUMBER; + hash = (53 * hash) + getRoute().hashCode(); + } + if (hasOccu()) { + hash = (37 * hash) + OCCU_FIELD_NUMBER; + hash = (53 * hash) + getOccu(); + } + if (hasSeq()) { + hash = (37 * hash) + SEQ_FIELD_NUMBER; + hash = (53 * hash) + getSeq(); + } + if (hasTtarr()) { + hash = (37 * hash) + TTARR_FIELD_NUMBER; + hash = (53 * hash) + getTtarr().hashCode(); + } + if (hasTtdep()) { + hash = (37 * hash) + TTDEP_FIELD_NUMBER; + hash = (53 * hash) + getTtdep().hashCode(); + } + if (hasDrType()) { + hash = (37 * hash) + DR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDrType(); + } + if (hasTlpRequestid()) { + hash = (37 * hash) + TLP_REQUESTID_FIELD_NUMBER; + hash = (53 * hash) + getTlpRequestid(); + } + if (hasTlpRequesttype()) { + hash = (37 * hash) + TLP_REQUESTTYPE_FIELD_NUMBER; + hash = (53 * hash) + tlpRequesttype_; + } + if (hasTlpPrioritylevel()) { + hash = (37 * hash) + TLP_PRIORITYLEVEL_FIELD_NUMBER; + hash = (53 * hash) + tlpPrioritylevel_; + } + if (hasTlpReason()) { + hash = (37 * hash) + TLP_REASON_FIELD_NUMBER; + hash = (53 * hash) + tlpReason_; + } + if (hasTlpAttSeq()) { + hash = (37 * hash) + TLP_ATT_SEQ_FIELD_NUMBER; + hash = (53 * hash) + getTlpAttSeq(); + } + if (hasTlpDecision()) { + hash = (37 * hash) + TLP_DECISION_FIELD_NUMBER; + hash = (53 * hash) + tlpDecision_; + } + if (hasSid()) { + hash = (37 * hash) + SID_FIELD_NUMBER; + hash = (53 * hash) + getSid(); + } + if (hasSignalGroupid()) { + hash = (37 * hash) + SIGNAL_GROUPID_FIELD_NUMBER; + hash = (53 * hash) + getSignalGroupid(); + } + if (hasTlpSignalgroupnbr()) { + hash = (37 * hash) + TLP_SIGNALGROUPNBR_FIELD_NUMBER; + hash = (53 * hash) + getTlpSignalgroupnbr(); + } + if (hasTlpLineConfigid()) { + hash = (37 * hash) + TLP_LINE_CONFIGID_FIELD_NUMBER; + hash = (53 * hash) + getTlpLineConfigid(); + } + if (hasTlpPointConfigid()) { + hash = (37 * hash) + TLP_POINT_CONFIGID_FIELD_NUMBER; + hash = (53 * hash) + getTlpPointConfigid(); + } + if (hasTlpFrequency()) { + hash = (37 * hash) + TLP_FREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getTlpFrequency(); + } + if (hasTlpProtocol()) { + hash = (37 * hash) + TLP_PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getTlpProtocol().hashCode(); + } + if (hasLabel()) { + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.hfp.proto.Hfp.Payload parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.hfp.proto.Hfp.Payload parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); } - return true; - } + public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.hfp.proto.Hfp.Payload parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.hfp.proto.Hfp.Payload prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.Payload} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.Payload) + fi.hsl.common.hfp.proto.Hfp.PayloadOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Payload_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Payload_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.hfp.proto.Hfp.Payload.class, + fi.hsl.common.hfp.proto.Hfp.Payload.Builder.class); + } + + // Construct using fi.hsl.common.hfp.proto.Hfp.Payload.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + schemaVersion_ = 1; + desi_ = ""; + dir_ = ""; + oper_ = 0; + veh_ = 0; + tst_ = ""; + tsi_ = 0L; + spd_ = 0D; + hdg_ = 0; + lat_ = 0D; + long_ = 0D; + acc_ = 0D; + dl_ = 0; + odo_ = 0D; + drst_ = 0; + oday_ = ""; + jrn_ = 0; + line_ = 0; + start_ = ""; + loc_ = 0; + stop_ = 0; + route_ = ""; + occu_ = 0; + seq_ = 0; + ttarr_ = ""; + ttdep_ = ""; + drType_ = 0; + tlpRequestid_ = 0; + tlpRequesttype_ = 0; + tlpPrioritylevel_ = 0; + tlpReason_ = 0; + tlpAttSeq_ = 0; + tlpDecision_ = 0; + sid_ = 0; + signalGroupid_ = 0; + tlpSignalgroupnbr_ = 0; + tlpLineConfigid_ = 0; + tlpPointConfigid_ = 0; + tlpFrequency_ = 0; + tlpProtocol_ = ""; + label_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.hfp.proto.Hfp.internal_static_proto_Payload_descriptor; + } + + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Payload getDefaultInstanceForType() { + return fi.hsl.common.hfp.proto.Hfp.Payload.getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Payload build() { + fi.hsl.common.hfp.proto.Hfp.Payload result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Payload buildPartial() { + fi.hsl.common.hfp.proto.Hfp.Payload result = new fi.hsl.common.hfp.proto.Hfp.Payload(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + if (bitField1_ != 0) { + buildPartial1(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(fi.hsl.common.hfp.proto.Hfp.Payload result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schemaVersion_ = schemaVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.desi_ = desi_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dir_ = dir_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.oper_ = oper_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.veh_ = veh_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.tst_ = tst_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.tsi_ = tsi_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.spd_ = spd_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.hdg_ = hdg_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.lat_ = lat_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.long_ = long_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.acc_ = acc_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.dl_ = dl_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.odo_ = odo_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.drst_ = drst_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.oday_ = oday_; + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.jrn_ = jrn_; + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.line_ = line_; + to_bitField0_ |= 0x00020000; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.start_ = start_; + to_bitField0_ |= 0x00040000; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.loc_ = loc_; + to_bitField0_ |= 0x00080000; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.stop_ = stop_; + to_bitField0_ |= 0x00100000; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.route_ = route_; + to_bitField0_ |= 0x00200000; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.occu_ = occu_; + to_bitField0_ |= 0x00400000; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.seq_ = seq_; + to_bitField0_ |= 0x00800000; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.ttarr_ = ttarr_; + to_bitField0_ |= 0x01000000; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.ttdep_ = ttdep_; + to_bitField0_ |= 0x02000000; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.drType_ = drType_; + to_bitField0_ |= 0x04000000; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.tlpRequestid_ = tlpRequestid_; + to_bitField0_ |= 0x08000000; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.tlpRequesttype_ = tlpRequesttype_; + to_bitField0_ |= 0x10000000; + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.tlpPrioritylevel_ = tlpPrioritylevel_; + to_bitField0_ |= 0x20000000; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.tlpReason_ = tlpReason_; + to_bitField0_ |= 0x40000000; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.tlpAttSeq_ = tlpAttSeq_; + to_bitField0_ |= 0x80000000; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(fi.hsl.common.hfp.proto.Hfp.Payload result) { + int from_bitField1_ = bitField1_; + int to_bitField1_ = 0; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.tlpDecision_ = tlpDecision_; + to_bitField1_ |= 0x00000001; + } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.sid_ = sid_; + to_bitField1_ |= 0x00000002; + } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.signalGroupid_ = signalGroupid_; + to_bitField1_ |= 0x00000004; + } + if (((from_bitField1_ & 0x00000008) != 0)) { + result.tlpSignalgroupnbr_ = tlpSignalgroupnbr_; + to_bitField1_ |= 0x00000008; + } + if (((from_bitField1_ & 0x00000010) != 0)) { + result.tlpLineConfigid_ = tlpLineConfigid_; + to_bitField1_ |= 0x00000010; + } + if (((from_bitField1_ & 0x00000020) != 0)) { + result.tlpPointConfigid_ = tlpPointConfigid_; + to_bitField1_ |= 0x00000020; + } + if (((from_bitField1_ & 0x00000040) != 0)) { + result.tlpFrequency_ = tlpFrequency_; + to_bitField1_ |= 0x00000040; + } + if (((from_bitField1_ & 0x00000080) != 0)) { + result.tlpProtocol_ = tlpProtocol_; + to_bitField1_ |= 0x00000080; + } + if (((from_bitField1_ & 0x00000100) != 0)) { + result.label_ = label_; + to_bitField1_ |= 0x00000100; + } + result.bitField1_ |= to_bitField1_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.hfp.proto.Hfp.Payload) { + return mergeFrom((fi.hsl.common.hfp.proto.Hfp.Payload) other); + } else { + super.mergeFrom(other); + return this; + } + } - @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: { - schemaVersion_ = input.readInt32(); + public Builder mergeFrom(fi.hsl.common.hfp.proto.Hfp.Payload other) { + if (other == fi.hsl.common.hfp.proto.Hfp.Payload.getDefaultInstance()) + return this; + if (other.hasSchemaVersion()) { + setSchemaVersion(other.getSchemaVersion()); + } + if (other.hasDesi()) { + desi_ = other.desi_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDir()) { + dir_ = other.dir_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasOper()) { + setOper(other.getOper()); + } + if (other.hasVeh()) { + setVeh(other.getVeh()); + } + if (other.hasTst()) { + tst_ = other.tst_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasTsi()) { + setTsi(other.getTsi()); + } + if (other.hasSpd()) { + setSpd(other.getSpd()); + } + if (other.hasHdg()) { + setHdg(other.getHdg()); + } + if (other.hasLat()) { + setLat(other.getLat()); + } + if (other.hasLong()) { + setLong(other.getLong()); + } + if (other.hasAcc()) { + setAcc(other.getAcc()); + } + if (other.hasDl()) { + setDl(other.getDl()); + } + if (other.hasOdo()) { + setOdo(other.getOdo()); + } + if (other.hasDrst()) { + setDrst(other.getDrst()); + } + if (other.hasOday()) { + oday_ = other.oday_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (other.hasJrn()) { + setJrn(other.getJrn()); + } + if (other.hasLine()) { + setLine(other.getLine()); + } + if (other.hasStart()) { + start_ = other.start_; + bitField0_ |= 0x00040000; + onChanged(); + } + if (other.hasLoc()) { + setLoc(other.getLoc()); + } + if (other.hasStop()) { + setStop(other.getStop()); + } + if (other.hasRoute()) { + route_ = other.route_; + bitField0_ |= 0x00200000; + onChanged(); + } + if (other.hasOccu()) { + setOccu(other.getOccu()); + } + if (other.hasSeq()) { + setSeq(other.getSeq()); + } + if (other.hasTtarr()) { + ttarr_ = other.ttarr_; + bitField0_ |= 0x01000000; + onChanged(); + } + if (other.hasTtdep()) { + ttdep_ = other.ttdep_; + bitField0_ |= 0x02000000; + onChanged(); + } + if (other.hasDrType()) { + setDrType(other.getDrType()); + } + if (other.hasTlpRequestid()) { + setTlpRequestid(other.getTlpRequestid()); + } + if (other.hasTlpRequesttype()) { + setTlpRequesttype(other.getTlpRequesttype()); + } + if (other.hasTlpPrioritylevel()) { + setTlpPrioritylevel(other.getTlpPrioritylevel()); + } + if (other.hasTlpReason()) { + setTlpReason(other.getTlpReason()); + } + if (other.hasTlpAttSeq()) { + setTlpAttSeq(other.getTlpAttSeq()); + } + if (other.hasTlpDecision()) { + setTlpDecision(other.getTlpDecision()); + } + if (other.hasSid()) { + setSid(other.getSid()); + } + if (other.hasSignalGroupid()) { + setSignalGroupid(other.getSignalGroupid()); + } + if (other.hasTlpSignalgroupnbr()) { + setTlpSignalgroupnbr(other.getTlpSignalgroupnbr()); + } + if (other.hasTlpLineConfigid()) { + setTlpLineConfigid(other.getTlpLineConfigid()); + } + if (other.hasTlpPointConfigid()) { + setTlpPointConfigid(other.getTlpPointConfigid()); + } + if (other.hasTlpFrequency()) { + setTlpFrequency(other.getTlpFrequency()); + } + if (other.hasTlpProtocol()) { + tlpProtocol_ = other.tlpProtocol_; + bitField1_ |= 0x00000080; + onChanged(); + } + if (other.hasLabel()) { + label_ = other.label_; + bitField1_ |= 0x00000100; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasSchemaVersion()) { + return false; + } + if (!hasTst()) { + return false; + } + if (!hasTsi()) { + 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 : { + schemaVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18 : { + desi_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26 : { + dir_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32 : { + oper_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40 : { + veh_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50 : { + tst_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56 : { + tsi_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 65 : { + spd_ = input.readDouble(); + bitField0_ |= 0x00000080; + break; + } // case 65 + case 72 : { + hdg_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 81 : { + lat_ = input.readDouble(); + bitField0_ |= 0x00000200; + break; + } // case 81 + case 89 : { + long_ = input.readDouble(); + bitField0_ |= 0x00000400; + break; + } // case 89 + case 97 : { + acc_ = input.readDouble(); + bitField0_ |= 0x00000800; + break; + } // case 97 + case 104 : { + dl_ = input.readUInt32(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 113 : { + odo_ = input.readDouble(); + bitField0_ |= 0x00002000; + break; + } // case 113 + case 120 : { + drst_ = input.readUInt32(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 130 : { + oday_ = input.readBytes(); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 136 : { + jrn_ = input.readInt32(); + bitField0_ |= 0x00010000; + break; + } // case 136 + case 144 : { + line_ = input.readInt32(); + bitField0_ |= 0x00020000; + break; + } // case 144 + case 154 : { + start_ = input.readBytes(); + bitField0_ |= 0x00040000; + break; + } // case 154 + case 160 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod tmpValue = fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(20, tmpRaw); + } else { + loc_ = tmpRaw; + bitField0_ |= 0x00080000; + } + break; + } // case 160 + case 168 : { + stop_ = input.readInt32(); + bitField0_ |= 0x00100000; + break; + } // case 168 + case 178 : { + route_ = input.readBytes(); + bitField0_ |= 0x00200000; + break; + } // case 178 + case 184 : { + occu_ = input.readInt32(); + bitField0_ |= 0x00400000; + break; + } // case 184 + case 192 : { + seq_ = input.readInt32(); + bitField0_ |= 0x00800000; + break; + } // case 192 + case 202 : { + ttarr_ = input.readBytes(); + bitField0_ |= 0x01000000; + break; + } // case 202 + case 210 : { + ttdep_ = input.readBytes(); + bitField0_ |= 0x02000000; + break; + } // case 210 + case 216 : { + drType_ = input.readInt32(); + bitField0_ |= 0x04000000; + break; + } // case 216 + case 224 : { + tlpRequestid_ = input.readInt32(); + bitField0_ |= 0x08000000; + break; + } // case 224 + case 232 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType tmpValue = fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(29, tmpRaw); + } else { + tlpRequesttype_ = tmpRaw; + bitField0_ |= 0x10000000; + } + break; + } // case 232 + case 240 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel tmpValue = fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(30, tmpRaw); + } else { + tlpPrioritylevel_ = tmpRaw; + bitField0_ |= 0x20000000; + } + break; + } // case 240 + case 248 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason tmpValue = fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(31, tmpRaw); + } else { + tlpReason_ = tmpRaw; + bitField0_ |= 0x40000000; + } + break; + } // case 248 + case 256 : { + tlpAttSeq_ = input.readInt32(); + bitField0_ |= 0x80000000; + break; + } // case 256 + case 264 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision tmpValue = fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(33, tmpRaw); + } else { + tlpDecision_ = tmpRaw; + bitField1_ |= 0x00000001; + } + break; + } // case 264 + case 272 : { + sid_ = input.readInt32(); + bitField1_ |= 0x00000002; + break; + } // case 272 + case 280 : { + signalGroupid_ = input.readInt32(); + bitField1_ |= 0x00000004; + break; + } // case 280 + case 288 : { + tlpSignalgroupnbr_ = input.readInt32(); + bitField1_ |= 0x00000008; + break; + } // case 288 + case 304 : { + tlpLineConfigid_ = input.readInt32(); + bitField1_ |= 0x00000010; + break; + } // case 304 + case 312 : { + tlpPointConfigid_ = input.readInt32(); + bitField1_ |= 0x00000020; + break; + } // case 312 + case 320 : { + tlpFrequency_ = input.readInt32(); + bitField1_ |= 0x00000040; + break; + } // case 320 + case 330 : { + tlpProtocol_ = input.readBytes(); + bitField1_ |= 0x00000080; + break; + } // case 330 + case 338 : { + label_ = input.readBytes(); + bitField1_ |= 0x00000100; + break; + } // case 338 + 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 bitField1_; + + private int schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(int value) { + + schemaVersion_ = value; bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - desi_ = input.readBytes(); + onChanged(); + return this; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + schemaVersion_ = 1; + onChanged(); + return this; + } + + private java.lang.Object desi_ = ""; + /** + * optional string desi = 2; + * @return Whether the desi field is set. + */ + public boolean hasDesi() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string desi = 2; + * @return The desi. + */ + public java.lang.String getDesi() { + java.lang.Object ref = desi_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + desi_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string desi = 2; + * @return The bytes for desi. + */ + public com.google.protobuf.ByteString getDesiBytes() { + java.lang.Object ref = desi_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + desi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string desi = 2; + * @param value The desi to set. + * @return This builder for chaining. + */ + public Builder setDesi(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + desi_ = value; bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - dir_ = input.readBytes(); + onChanged(); + return this; + } + /** + * optional string desi = 2; + * @return This builder for chaining. + */ + public Builder clearDesi() { + desi_ = getDefaultInstance().getDesi(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * optional string desi = 2; + * @param value The bytes for desi to set. + * @return This builder for chaining. + */ + public Builder setDesiBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + desi_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object dir_ = ""; + /** + * optional string dir = 3; + * @return Whether the dir field is set. + */ + public boolean hasDir() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string dir = 3; + * @return The dir. + */ + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + dir_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string dir = 3; + * @return The bytes for dir. + */ + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string dir = 3; + * @param value The dir to set. + * @return This builder for chaining. + */ + public Builder setDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dir_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional string dir = 3; + * @return This builder for chaining. + */ + public Builder clearDir() { + dir_ = getDefaultInstance().getDir(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * optional string dir = 3; + * @param value The bytes for dir to set. + * @return This builder for chaining. + */ + public Builder setDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + dir_ = value; bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - oper_ = input.readInt32(); + onChanged(); + return this; + } + + private int oper_; + /** + * optional int32 oper = 4; + * @return Whether the oper field is set. + */ + @java.lang.Override + public boolean hasOper() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int32 oper = 4; + * @return The oper. + */ + @java.lang.Override + public int getOper() { + return oper_; + } + /** + * optional int32 oper = 4; + * @param value The oper to set. + * @return This builder for chaining. + */ + public Builder setOper(int value) { + + oper_ = value; bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - veh_ = input.readInt32(); + onChanged(); + return this; + } + /** + * optional int32 oper = 4; + * @return This builder for chaining. + */ + public Builder clearOper() { + bitField0_ = (bitField0_ & ~0x00000008); + oper_ = 0; + onChanged(); + return this; + } + + private int veh_; + /** + * optional int32 veh = 5; + * @return Whether the veh field is set. + */ + @java.lang.Override + public boolean hasVeh() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional int32 veh = 5; + * @return The veh. + */ + @java.lang.Override + public int getVeh() { + return veh_; + } + /** + * optional int32 veh = 5; + * @param value The veh to set. + * @return This builder for chaining. + */ + public Builder setVeh(int value) { + + veh_ = value; bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: { - tst_ = input.readBytes(); + onChanged(); + return this; + } + /** + * optional int32 veh = 5; + * @return This builder for chaining. + */ + public Builder clearVeh() { + bitField0_ = (bitField0_ & ~0x00000010); + veh_ = 0; + onChanged(); + return this; + } + + private java.lang.Object tst_ = ""; + /** + * required string tst = 6; + * @return Whether the tst field is set. + */ + public boolean hasTst() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * required string tst = 6; + * @return The tst. + */ + public java.lang.String getTst() { + java.lang.Object ref = tst_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + tst_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string tst = 6; + * @return The bytes for tst. + */ + public com.google.protobuf.ByteString getTstBytes() { + java.lang.Object ref = tst_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + tst_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string tst = 6; + * @param value The tst to set. + * @return This builder for chaining. + */ + public Builder setTst(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tst_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * required string tst = 6; + * @return This builder for chaining. + */ + public Builder clearTst() { + tst_ = getDefaultInstance().getTst(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * required string tst = 6; + * @param value The bytes for tst to set. + * @return This builder for chaining. + */ + public Builder setTstBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + tst_ = value; bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - tsi_ = input.readInt64(); + onChanged(); + return this; + } + + private long tsi_; + /** + * required int64 tsi = 7; + * @return Whether the tsi field is set. + */ + @java.lang.Override + public boolean hasTsi() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * required int64 tsi = 7; + * @return The tsi. + */ + @java.lang.Override + public long getTsi() { + return tsi_; + } + /** + * required int64 tsi = 7; + * @param value The tsi to set. + * @return This builder for chaining. + */ + public Builder setTsi(long value) { + + tsi_ = value; bitField0_ |= 0x00000040; - break; - } // case 56 - case 65: { - spd_ = input.readDouble(); + onChanged(); + return this; + } + /** + * required int64 tsi = 7; + * @return This builder for chaining. + */ + public Builder clearTsi() { + bitField0_ = (bitField0_ & ~0x00000040); + tsi_ = 0L; + onChanged(); + return this; + } + + private double spd_; + /** + * optional double spd = 8; + * @return Whether the spd field is set. + */ + @java.lang.Override + public boolean hasSpd() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional double spd = 8; + * @return The spd. + */ + @java.lang.Override + public double getSpd() { + return spd_; + } + /** + * optional double spd = 8; + * @param value The spd to set. + * @return This builder for chaining. + */ + public Builder setSpd(double value) { + + spd_ = value; bitField0_ |= 0x00000080; - break; - } // case 65 - case 72: { - hdg_ = input.readInt32(); + onChanged(); + return this; + } + /** + * optional double spd = 8; + * @return This builder for chaining. + */ + public Builder clearSpd() { + bitField0_ = (bitField0_ & ~0x00000080); + spd_ = 0D; + onChanged(); + return this; + } + + private int hdg_; + /** + * optional int32 hdg = 9; + * @return Whether the hdg field is set. + */ + @java.lang.Override + public boolean hasHdg() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional int32 hdg = 9; + * @return The hdg. + */ + @java.lang.Override + public int getHdg() { + return hdg_; + } + /** + * optional int32 hdg = 9; + * @param value The hdg to set. + * @return This builder for chaining. + */ + public Builder setHdg(int value) { + + hdg_ = value; bitField0_ |= 0x00000100; - break; - } // case 72 - case 81: { - lat_ = input.readDouble(); + onChanged(); + return this; + } + /** + * optional int32 hdg = 9; + * @return This builder for chaining. + */ + public Builder clearHdg() { + bitField0_ = (bitField0_ & ~0x00000100); + hdg_ = 0; + onChanged(); + return this; + } + + private double lat_; + /** + * optional double lat = 10; + * @return Whether the lat field is set. + */ + @java.lang.Override + public boolean hasLat() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional double lat = 10; + * @return The lat. + */ + @java.lang.Override + public double getLat() { + return lat_; + } + /** + * optional double lat = 10; + * @param value The lat to set. + * @return This builder for chaining. + */ + public Builder setLat(double value) { + + lat_ = value; bitField0_ |= 0x00000200; - break; - } // case 81 - case 89: { - long_ = input.readDouble(); + onChanged(); + return this; + } + /** + * optional double lat = 10; + * @return This builder for chaining. + */ + public Builder clearLat() { + bitField0_ = (bitField0_ & ~0x00000200); + lat_ = 0D; + onChanged(); + return this; + } + + private double long_; + /** + * optional double long = 11; + * @return Whether the long field is set. + */ + @java.lang.Override + public boolean hasLong() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional double long = 11; + * @return The long. + */ + @java.lang.Override + public double getLong() { + return long_; + } + /** + * optional double long = 11; + * @param value The long to set. + * @return This builder for chaining. + */ + public Builder setLong(double value) { + + long_ = value; bitField0_ |= 0x00000400; - break; - } // case 89 - case 97: { - acc_ = input.readDouble(); + onChanged(); + return this; + } + /** + * optional double long = 11; + * @return This builder for chaining. + */ + public Builder clearLong() { + bitField0_ = (bitField0_ & ~0x00000400); + long_ = 0D; + onChanged(); + return this; + } + + private double acc_; + /** + * optional double acc = 12; + * @return Whether the acc field is set. + */ + @java.lang.Override + public boolean hasAcc() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional double acc = 12; + * @return The acc. + */ + @java.lang.Override + public double getAcc() { + return acc_; + } + /** + * optional double acc = 12; + * @param value The acc to set. + * @return This builder for chaining. + */ + public Builder setAcc(double value) { + + acc_ = value; bitField0_ |= 0x00000800; - break; - } // case 97 - case 104: { - dl_ = input.readUInt32(); + onChanged(); + return this; + } + /** + * optional double acc = 12; + * @return This builder for chaining. + */ + public Builder clearAcc() { + bitField0_ = (bitField0_ & ~0x00000800); + acc_ = 0D; + onChanged(); + return this; + } + + private int dl_; + /** + * optional uint32 dl = 13; + * @return Whether the dl field is set. + */ + @java.lang.Override + public boolean hasDl() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional uint32 dl = 13; + * @return The dl. + */ + @java.lang.Override + public int getDl() { + return dl_; + } + /** + * optional uint32 dl = 13; + * @param value The dl to set. + * @return This builder for chaining. + */ + public Builder setDl(int value) { + + dl_ = value; bitField0_ |= 0x00001000; - break; - } // case 104 - case 113: { - odo_ = input.readDouble(); + onChanged(); + return this; + } + /** + * optional uint32 dl = 13; + * @return This builder for chaining. + */ + public Builder clearDl() { + bitField0_ = (bitField0_ & ~0x00001000); + dl_ = 0; + onChanged(); + return this; + } + + private double odo_; + /** + * optional double odo = 14; + * @return Whether the odo field is set. + */ + @java.lang.Override + public boolean hasOdo() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * optional double odo = 14; + * @return The odo. + */ + @java.lang.Override + public double getOdo() { + return odo_; + } + /** + * optional double odo = 14; + * @param value The odo to set. + * @return This builder for chaining. + */ + public Builder setOdo(double value) { + + odo_ = value; bitField0_ |= 0x00002000; - break; - } // case 113 - case 120: { - drst_ = input.readUInt32(); + onChanged(); + return this; + } + /** + * optional double odo = 14; + * @return This builder for chaining. + */ + public Builder clearOdo() { + bitField0_ = (bitField0_ & ~0x00002000); + odo_ = 0D; + onChanged(); + return this; + } + + private int drst_; + /** + * optional uint32 drst = 15; + * @return Whether the drst field is set. + */ + @java.lang.Override + public boolean hasDrst() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * optional uint32 drst = 15; + * @return The drst. + */ + @java.lang.Override + public int getDrst() { + return drst_; + } + /** + * optional uint32 drst = 15; + * @param value The drst to set. + * @return This builder for chaining. + */ + public Builder setDrst(int value) { + + drst_ = value; bitField0_ |= 0x00004000; - break; - } // case 120 - case 130: { - oday_ = input.readBytes(); + onChanged(); + return this; + } + /** + * optional uint32 drst = 15; + * @return This builder for chaining. + */ + public Builder clearDrst() { + bitField0_ = (bitField0_ & ~0x00004000); + drst_ = 0; + onChanged(); + return this; + } + + private java.lang.Object oday_ = ""; + /** + * optional string oday = 16; + * @return Whether the oday field is set. + */ + public boolean hasOday() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * optional string oday = 16; + * @return The oday. + */ + public java.lang.String getOday() { + java.lang.Object ref = oday_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + oday_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string oday = 16; + * @return The bytes for oday. + */ + public com.google.protobuf.ByteString getOdayBytes() { + java.lang.Object ref = oday_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + oday_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string oday = 16; + * @param value The oday to set. + * @return This builder for chaining. + */ + public Builder setOday(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oday_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * optional string oday = 16; + * @return This builder for chaining. + */ + public Builder clearOday() { + oday_ = getDefaultInstance().getOday(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + /** + * optional string oday = 16; + * @param value The bytes for oday to set. + * @return This builder for chaining. + */ + public Builder setOdayBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + oday_ = value; bitField0_ |= 0x00008000; - break; - } // case 130 - case 136: { - jrn_ = input.readInt32(); + onChanged(); + return this; + } + + private int jrn_; + /** + * optional int32 jrn = 17; + * @return Whether the jrn field is set. + */ + @java.lang.Override + public boolean hasJrn() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * optional int32 jrn = 17; + * @return The jrn. + */ + @java.lang.Override + public int getJrn() { + return jrn_; + } + /** + * optional int32 jrn = 17; + * @param value The jrn to set. + * @return This builder for chaining. + */ + public Builder setJrn(int value) { + + jrn_ = value; bitField0_ |= 0x00010000; - break; - } // case 136 - case 144: { - line_ = input.readInt32(); + onChanged(); + return this; + } + /** + * optional int32 jrn = 17; + * @return This builder for chaining. + */ + public Builder clearJrn() { + bitField0_ = (bitField0_ & ~0x00010000); + jrn_ = 0; + onChanged(); + return this; + } + + private int line_; + /** + * optional int32 line = 18; + * @return Whether the line field is set. + */ + @java.lang.Override + public boolean hasLine() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * optional int32 line = 18; + * @return The line. + */ + @java.lang.Override + public int getLine() { + return line_; + } + /** + * optional int32 line = 18; + * @param value The line to set. + * @return This builder for chaining. + */ + public Builder setLine(int value) { + + line_ = value; bitField0_ |= 0x00020000; - break; - } // case 144 - case 154: { - start_ = input.readBytes(); - bitField0_ |= 0x00040000; - break; - } // case 154 - case 160: { - int tmpRaw = input.readEnum(); - fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod tmpValue = - fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(20, tmpRaw); + onChanged(); + return this; + } + /** + * optional int32 line = 18; + * @return This builder for chaining. + */ + public Builder clearLine() { + bitField0_ = (bitField0_ & ~0x00020000); + line_ = 0; + onChanged(); + return this; + } + + private java.lang.Object start_ = ""; + /** + * optional string start = 19; + * @return Whether the start field is set. + */ + public boolean hasStart() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * optional string start = 19; + * @return The start. + */ + public java.lang.String getStart() { + java.lang.Object ref = start_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + start_ = s; + } + return s; } else { - loc_ = tmpRaw; - bitField0_ |= 0x00080000; + return (java.lang.String) ref; + } + } + /** + * optional string start = 19; + * @return The bytes for start. + */ + public com.google.protobuf.ByteString getStartBytes() { + java.lang.Object ref = start_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + start_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string start = 19; + * @param value The start to set. + * @return This builder for chaining. + */ + public Builder setStart(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + start_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * optional string start = 19; + * @return This builder for chaining. + */ + public Builder clearStart() { + start_ = getDefaultInstance().getStart(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + * optional string start = 19; + * @param value The bytes for start to set. + * @return This builder for chaining. + */ + public Builder setStartBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + start_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + private int loc_ = 0; + /** + *
+             * v2
+             * 
+ * + * optional .proto.Payload.LocationQualityMethod loc = 20; + * @return Whether the loc field is set. + */ + @java.lang.Override + public boolean hasLoc() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+             * v2
+             * 
+ * + * optional .proto.Payload.LocationQualityMethod loc = 20; + * @return The loc. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod getLoc() { + fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod result = fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod + .forNumber(loc_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod.GPS : result; + } + /** + *
+             * v2
+             * 
+ * + * optional .proto.Payload.LocationQualityMethod loc = 20; + * @param value The loc to set. + * @return This builder for chaining. + */ + public Builder setLoc(fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod value) { + if (value == null) { + throw new NullPointerException(); } - break; - } // case 160 - case 168: { - stop_ = input.readInt32(); + bitField0_ |= 0x00080000; + loc_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * v2
+             * 
+ * + * optional .proto.Payload.LocationQualityMethod loc = 20; + * @return This builder for chaining. + */ + public Builder clearLoc() { + bitField0_ = (bitField0_ & ~0x00080000); + loc_ = 0; + onChanged(); + return this; + } + + private int stop_; + /** + *
+             * v2
+             * 
+ * + * optional int32 stop = 21; + * @return Whether the stop field is set. + */ + @java.lang.Override + public boolean hasStop() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + *
+             * v2
+             * 
+ * + * optional int32 stop = 21; + * @return The stop. + */ + @java.lang.Override + public int getStop() { + return stop_; + } + /** + *
+             * v2
+             * 
+ * + * optional int32 stop = 21; + * @param value The stop to set. + * @return This builder for chaining. + */ + public Builder setStop(int value) { + + stop_ = value; bitField0_ |= 0x00100000; - break; - } // case 168 - case 178: { - route_ = input.readBytes(); + onChanged(); + return this; + } + /** + *
+             * v2
+             * 
+ * + * optional int32 stop = 21; + * @return This builder for chaining. + */ + public Builder clearStop() { + bitField0_ = (bitField0_ & ~0x00100000); + stop_ = 0; + onChanged(); + return this; + } + + private java.lang.Object route_ = ""; + /** + *
+             * v2
+             * 
+ * + * optional string route = 22; + * @return Whether the route field is set. + */ + public boolean hasRoute() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + *
+             * v2
+             * 
+ * + * optional string route = 22; + * @return The route. + */ + public java.lang.String getRoute() { + java.lang.Object ref = route_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + route_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * v2
+             * 
+ * + * optional string route = 22; + * @return The bytes for route. + */ + public com.google.protobuf.ByteString getRouteBytes() { + java.lang.Object ref = route_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + route_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * v2
+             * 
+ * + * optional string route = 22; + * @param value The route to set. + * @return This builder for chaining. + */ + public Builder setRoute(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + route_ = value; bitField0_ |= 0x00200000; - break; - } // case 178 - case 184: { - occu_ = input.readInt32(); + onChanged(); + return this; + } + /** + *
+             * v2
+             * 
+ * + * optional string route = 22; + * @return This builder for chaining. + */ + public Builder clearRoute() { + route_ = getDefaultInstance().getRoute(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + return this; + } + /** + *
+             * v2
+             * 
+ * + * optional string route = 22; + * @param value The bytes for route to set. + * @return This builder for chaining. + */ + public Builder setRouteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + route_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + private int occu_; + /** + *
+             * v2
+             * 
+ * + * optional int32 occu = 23; + * @return Whether the occu field is set. + */ + @java.lang.Override + public boolean hasOccu() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + *
+             * v2
+             * 
+ * + * optional int32 occu = 23; + * @return The occu. + */ + @java.lang.Override + public int getOccu() { + return occu_; + } + /** + *
+             * v2
+             * 
+ * + * optional int32 occu = 23; + * @param value The occu to set. + * @return This builder for chaining. + */ + public Builder setOccu(int value) { + + occu_ = value; bitField0_ |= 0x00400000; - break; - } // case 184 - case 192: { - seq_ = input.readInt32(); + onChanged(); + return this; + } + /** + *
+             * v2
+             * 
+ * + * optional int32 occu = 23; + * @return This builder for chaining. + */ + public Builder clearOccu() { + bitField0_ = (bitField0_ & ~0x00400000); + occu_ = 0; + onChanged(); + return this; + } + + private int seq_; + /** + * optional int32 seq = 24; + * @return Whether the seq field is set. + */ + @java.lang.Override + public boolean hasSeq() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + * optional int32 seq = 24; + * @return The seq. + */ + @java.lang.Override + public int getSeq() { + return seq_; + } + /** + * optional int32 seq = 24; + * @param value The seq to set. + * @return This builder for chaining. + */ + public Builder setSeq(int value) { + + seq_ = value; bitField0_ |= 0x00800000; - break; - } // case 192 - case 202: { - ttarr_ = input.readBytes(); + onChanged(); + return this; + } + /** + * optional int32 seq = 24; + * @return This builder for chaining. + */ + public Builder clearSeq() { + bitField0_ = (bitField0_ & ~0x00800000); + seq_ = 0; + onChanged(); + return this; + } + + private java.lang.Object ttarr_ = ""; + /** + * optional string ttarr = 25; + * @return Whether the ttarr field is set. + */ + public boolean hasTtarr() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + * optional string ttarr = 25; + * @return The ttarr. + */ + public java.lang.String getTtarr() { + java.lang.Object ref = ttarr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + ttarr_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string ttarr = 25; + * @return The bytes for ttarr. + */ + public com.google.protobuf.ByteString getTtarrBytes() { + java.lang.Object ref = ttarr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + ttarr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string ttarr = 25; + * @param value The ttarr to set. + * @return This builder for chaining. + */ + public Builder setTtarr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ttarr_ = value; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + /** + * optional string ttarr = 25; + * @return This builder for chaining. + */ + public Builder clearTtarr() { + ttarr_ = getDefaultInstance().getTtarr(); + bitField0_ = (bitField0_ & ~0x01000000); + onChanged(); + return this; + } + /** + * optional string ttarr = 25; + * @param value The bytes for ttarr to set. + * @return This builder for chaining. + */ + public Builder setTtarrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ttarr_ = value; bitField0_ |= 0x01000000; - break; - } // case 202 - case 210: { - ttdep_ = input.readBytes(); + onChanged(); + return this; + } + + private java.lang.Object ttdep_ = ""; + /** + * optional string ttdep = 26; + * @return Whether the ttdep field is set. + */ + public boolean hasTtdep() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + * optional string ttdep = 26; + * @return The ttdep. + */ + public java.lang.String getTtdep() { + java.lang.Object ref = ttdep_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + ttdep_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string ttdep = 26; + * @return The bytes for ttdep. + */ + public com.google.protobuf.ByteString getTtdepBytes() { + java.lang.Object ref = ttdep_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + ttdep_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string ttdep = 26; + * @param value The ttdep to set. + * @return This builder for chaining. + */ + public Builder setTtdep(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ttdep_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + * optional string ttdep = 26; + * @return This builder for chaining. + */ + public Builder clearTtdep() { + ttdep_ = getDefaultInstance().getTtdep(); + bitField0_ = (bitField0_ & ~0x02000000); + onChanged(); + return this; + } + /** + * optional string ttdep = 26; + * @param value The bytes for ttdep to set. + * @return This builder for chaining. + */ + public Builder setTtdepBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ttdep_ = value; bitField0_ |= 0x02000000; - break; - } // case 210 - case 216: { - drType_ = input.readInt32(); + onChanged(); + return this; + } + + private int drType_; + /** + * optional int32 dr_type = 27; + * @return Whether the drType field is set. + */ + @java.lang.Override + public boolean hasDrType() { + return ((bitField0_ & 0x04000000) != 0); + } + /** + * optional int32 dr_type = 27; + * @return The drType. + */ + @java.lang.Override + public int getDrType() { + return drType_; + } + /** + * optional int32 dr_type = 27; + * @param value The drType to set. + * @return This builder for chaining. + */ + public Builder setDrType(int value) { + + drType_ = value; bitField0_ |= 0x04000000; - break; - } // case 216 - case 224: { - tlpRequestid_ = input.readInt32(); + onChanged(); + return this; + } + /** + * optional int32 dr_type = 27; + * @return This builder for chaining. + */ + public Builder clearDrType() { + bitField0_ = (bitField0_ & ~0x04000000); + drType_ = 0; + onChanged(); + return this; + } + + private int tlpRequestid_; + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_requestid = 28; + * @return Whether the tlpRequestid field is set. + */ + @java.lang.Override + public boolean hasTlpRequestid() { + return ((bitField0_ & 0x08000000) != 0); + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_requestid = 28; + * @return The tlpRequestid. + */ + @java.lang.Override + public int getTlpRequestid() { + return tlpRequestid_; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_requestid = 28; + * @param value The tlpRequestid to set. + * @return This builder for chaining. + */ + public Builder setTlpRequestid(int value) { + + tlpRequestid_ = value; bitField0_ |= 0x08000000; - break; - } // case 224 - case 232: { - int tmpRaw = input.readEnum(); - fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType tmpValue = - fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(29, tmpRaw); - } else { - tlpRequesttype_ = tmpRaw; - bitField0_ |= 0x10000000; - } - break; - } // case 232 - case 240: { - int tmpRaw = input.readEnum(); - fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel tmpValue = - fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(30, tmpRaw); - } else { - tlpPrioritylevel_ = tmpRaw; - bitField0_ |= 0x20000000; - } - break; - } // case 240 - case 248: { - int tmpRaw = input.readEnum(); - fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason tmpValue = - fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(31, tmpRaw); - } else { - tlpReason_ = tmpRaw; - bitField0_ |= 0x40000000; + onChanged(); + return this; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_requestid = 28; + * @return This builder for chaining. + */ + public Builder clearTlpRequestid() { + bitField0_ = (bitField0_ & ~0x08000000); + tlpRequestid_ = 0; + onChanged(); + return this; + } + + private int tlpRequesttype_ = 0; + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; + * @return Whether the tlpRequesttype field is set. + */ + @java.lang.Override + public boolean hasTlpRequesttype() { + return ((bitField0_ & 0x10000000) != 0); + } + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; + * @return The tlpRequesttype. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType getTlpRequesttype() { + fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType + .forNumber(tlpRequesttype_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType.NORMAL : result; + } + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; + * @param value The tlpRequesttype to set. + * @return This builder for chaining. + */ + public Builder setTlpRequesttype(fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x10000000; + tlpRequesttype_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; + * @return This builder for chaining. + */ + public Builder clearTlpRequesttype() { + bitField0_ = (bitField0_ & ~0x10000000); + tlpRequesttype_ = 0; + onChanged(); + return this; + } + + private int tlpPrioritylevel_ = 0; + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; + * @return Whether the tlpPrioritylevel field is set. + */ + @java.lang.Override + public boolean hasTlpPrioritylevel() { + return ((bitField0_ & 0x20000000) != 0); + } + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; + * @return The tlpPrioritylevel. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel getTlpPrioritylevel() { + fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel + .forNumber(tlpPrioritylevel_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel.normal : result; + } + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; + * @param value The tlpPrioritylevel to set. + * @return This builder for chaining. + */ + public Builder setTlpPrioritylevel(fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel value) { + if (value == null) { + throw new NullPointerException(); } - break; - } // case 248 - case 256: { - tlpAttSeq_ = input.readInt32(); + bitField0_ |= 0x20000000; + tlpPrioritylevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; + * @return This builder for chaining. + */ + public Builder clearTlpPrioritylevel() { + bitField0_ = (bitField0_ & ~0x20000000); + tlpPrioritylevel_ = 0; + onChanged(); + return this; + } + + private int tlpReason_ = 0; + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpReason tlp_reason = 31; + * @return Whether the tlpReason field is set. + */ + @java.lang.Override + public boolean hasTlpReason() { + return ((bitField0_ & 0x40000000) != 0); + } + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpReason tlp_reason = 31; + * @return The tlpReason. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason getTlpReason() { + fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason + .forNumber(tlpReason_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason.GLOBAL : result; + } + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpReason tlp_reason = 31; + * @param value The tlpReason to set. + * @return This builder for chaining. + */ + public Builder setTlpReason(fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x40000000; + tlpReason_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpReason tlp_reason = 31; + * @return This builder for chaining. + */ + public Builder clearTlpReason() { + bitField0_ = (bitField0_ & ~0x40000000); + tlpReason_ = 0; + onChanged(); + return this; + } + + private int tlpAttSeq_; + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_att_seq = 32; + * @return Whether the tlpAttSeq field is set. + */ + @java.lang.Override + public boolean hasTlpAttSeq() { + return ((bitField0_ & 0x80000000) != 0); + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_att_seq = 32; + * @return The tlpAttSeq. + */ + @java.lang.Override + public int getTlpAttSeq() { + return tlpAttSeq_; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_att_seq = 32; + * @param value The tlpAttSeq to set. + * @return This builder for chaining. + */ + public Builder setTlpAttSeq(int value) { + + tlpAttSeq_ = value; bitField0_ |= 0x80000000; - break; - } // case 256 - case 264: { - int tmpRaw = input.readEnum(); - fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision tmpValue = - fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(33, tmpRaw); - } else { - tlpDecision_ = tmpRaw; - bitField1_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_att_seq = 32; + * @return This builder for chaining. + */ + public Builder clearTlpAttSeq() { + bitField0_ = (bitField0_ & ~0x80000000); + tlpAttSeq_ = 0; + onChanged(); + return this; + } + + private int tlpDecision_ = 0; + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpDecision tlp_decision = 33; + * @return Whether the tlpDecision field is set. + */ + @java.lang.Override + public boolean hasTlpDecision() { + return ((bitField1_ & 0x00000001) != 0); + } + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpDecision tlp_decision = 33; + * @return The tlpDecision. + */ + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision getTlpDecision() { + fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision + .forNumber(tlpDecision_); + return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision.ACK : result; + } + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpDecision tlp_decision = 33; + * @param value The tlpDecision to set. + * @return This builder for chaining. + */ + public Builder setTlpDecision(fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision value) { + if (value == null) { + throw new NullPointerException(); } - break; - } // case 264 - case 272: { - sid_ = input.readInt32(); + bitField1_ |= 0x00000001; + tlpDecision_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * tlr
+             * 
+ * + * optional .proto.Payload.TlpDecision tlp_decision = 33; + * @return This builder for chaining. + */ + public Builder clearTlpDecision() { + bitField1_ = (bitField1_ & ~0x00000001); + tlpDecision_ = 0; + onChanged(); + return this; + } + + private int sid_; + /** + *
+             * tlr
+             * 
+ * + * optional int32 sid = 34; + * @return Whether the sid field is set. + */ + @java.lang.Override + public boolean hasSid() { + return ((bitField1_ & 0x00000002) != 0); + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 sid = 34; + * @return The sid. + */ + @java.lang.Override + public int getSid() { + return sid_; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 sid = 34; + * @param value The sid to set. + * @return This builder for chaining. + */ + public Builder setSid(int value) { + + sid_ = value; bitField1_ |= 0x00000002; - break; - } // case 272 - case 280: { - signalGroupid_ = input.readInt32(); + onChanged(); + return this; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 sid = 34; + * @return This builder for chaining. + */ + public Builder clearSid() { + bitField1_ = (bitField1_ & ~0x00000002); + sid_ = 0; + onChanged(); + return this; + } + + private int signalGroupid_; + /** + *
+             * tlr
+             * 
+ * + * optional int32 signal_groupid = 35; + * @return Whether the signalGroupid field is set. + */ + @java.lang.Override + public boolean hasSignalGroupid() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 signal_groupid = 35; + * @return The signalGroupid. + */ + @java.lang.Override + public int getSignalGroupid() { + return signalGroupid_; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 signal_groupid = 35; + * @param value The signalGroupid to set. + * @return This builder for chaining. + */ + public Builder setSignalGroupid(int value) { + + signalGroupid_ = value; bitField1_ |= 0x00000004; - break; - } // case 280 - case 288: { - tlpSignalgroupnbr_ = input.readInt32(); + onChanged(); + return this; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 signal_groupid = 35; + * @return This builder for chaining. + */ + public Builder clearSignalGroupid() { + bitField1_ = (bitField1_ & ~0x00000004); + signalGroupid_ = 0; + onChanged(); + return this; + } + + private int tlpSignalgroupnbr_; + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_signalgroupnbr = 36; + * @return Whether the tlpSignalgroupnbr field is set. + */ + @java.lang.Override + public boolean hasTlpSignalgroupnbr() { + return ((bitField1_ & 0x00000008) != 0); + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_signalgroupnbr = 36; + * @return The tlpSignalgroupnbr. + */ + @java.lang.Override + public int getTlpSignalgroupnbr() { + return tlpSignalgroupnbr_; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_signalgroupnbr = 36; + * @param value The tlpSignalgroupnbr to set. + * @return This builder for chaining. + */ + public Builder setTlpSignalgroupnbr(int value) { + + tlpSignalgroupnbr_ = value; bitField1_ |= 0x00000008; - break; - } // case 288 - case 304: { - tlpLineConfigid_ = input.readInt32(); + onChanged(); + return this; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_signalgroupnbr = 36; + * @return This builder for chaining. + */ + public Builder clearTlpSignalgroupnbr() { + bitField1_ = (bitField1_ & ~0x00000008); + tlpSignalgroupnbr_ = 0; + onChanged(); + return this; + } + + private int tlpLineConfigid_; + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_line_configid = 38; + * @return Whether the tlpLineConfigid field is set. + */ + @java.lang.Override + public boolean hasTlpLineConfigid() { + return ((bitField1_ & 0x00000010) != 0); + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_line_configid = 38; + * @return The tlpLineConfigid. + */ + @java.lang.Override + public int getTlpLineConfigid() { + return tlpLineConfigid_; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_line_configid = 38; + * @param value The tlpLineConfigid to set. + * @return This builder for chaining. + */ + public Builder setTlpLineConfigid(int value) { + + tlpLineConfigid_ = value; bitField1_ |= 0x00000010; - break; - } // case 304 - case 312: { - tlpPointConfigid_ = input.readInt32(); + onChanged(); + return this; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_line_configid = 38; + * @return This builder for chaining. + */ + public Builder clearTlpLineConfigid() { + bitField1_ = (bitField1_ & ~0x00000010); + tlpLineConfigid_ = 0; + onChanged(); + return this; + } + + private int tlpPointConfigid_; + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_point_configid = 39; + * @return Whether the tlpPointConfigid field is set. + */ + @java.lang.Override + public boolean hasTlpPointConfigid() { + return ((bitField1_ & 0x00000020) != 0); + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_point_configid = 39; + * @return The tlpPointConfigid. + */ + @java.lang.Override + public int getTlpPointConfigid() { + return tlpPointConfigid_; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_point_configid = 39; + * @param value The tlpPointConfigid to set. + * @return This builder for chaining. + */ + public Builder setTlpPointConfigid(int value) { + + tlpPointConfigid_ = value; bitField1_ |= 0x00000020; - break; - } // case 312 - case 320: { - tlpFrequency_ = input.readInt32(); + onChanged(); + return this; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_point_configid = 39; + * @return This builder for chaining. + */ + public Builder clearTlpPointConfigid() { + bitField1_ = (bitField1_ & ~0x00000020); + tlpPointConfigid_ = 0; + onChanged(); + return this; + } + + private int tlpFrequency_; + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_frequency = 40; + * @return Whether the tlpFrequency field is set. + */ + @java.lang.Override + public boolean hasTlpFrequency() { + return ((bitField1_ & 0x00000040) != 0); + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_frequency = 40; + * @return The tlpFrequency. + */ + @java.lang.Override + public int getTlpFrequency() { + return tlpFrequency_; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_frequency = 40; + * @param value The tlpFrequency to set. + * @return This builder for chaining. + */ + public Builder setTlpFrequency(int value) { + + tlpFrequency_ = value; bitField1_ |= 0x00000040; - break; - } // case 320 - case 330: { - tlpProtocol_ = input.readBytes(); + onChanged(); + return this; + } + /** + *
+             * tlr
+             * 
+ * + * optional int32 tlp_frequency = 40; + * @return This builder for chaining. + */ + public Builder clearTlpFrequency() { + bitField1_ = (bitField1_ & ~0x00000040); + tlpFrequency_ = 0; + onChanged(); + return this; + } + + private java.lang.Object tlpProtocol_ = ""; + /** + *
+             * tlr
+             * 
+ * + * optional string tlp_protocol = 41; + * @return Whether the tlpProtocol field is set. + */ + public boolean hasTlpProtocol() { + return ((bitField1_ & 0x00000080) != 0); + } + /** + *
+             * tlr
+             * 
+ * + * optional string tlp_protocol = 41; + * @return The tlpProtocol. + */ + public java.lang.String getTlpProtocol() { + java.lang.Object ref = tlpProtocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + tlpProtocol_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * tlr
+             * 
+ * + * optional string tlp_protocol = 41; + * @return The bytes for tlpProtocol. + */ + public com.google.protobuf.ByteString getTlpProtocolBytes() { + java.lang.Object ref = tlpProtocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + tlpProtocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * tlr
+             * 
+ * + * optional string tlp_protocol = 41; + * @param value The tlpProtocol to set. + * @return This builder for chaining. + */ + public Builder setTlpProtocol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tlpProtocol_ = value; + bitField1_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+             * tlr
+             * 
+ * + * optional string tlp_protocol = 41; + * @return This builder for chaining. + */ + public Builder clearTlpProtocol() { + tlpProtocol_ = getDefaultInstance().getTlpProtocol(); + bitField1_ = (bitField1_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+             * tlr
+             * 
+ * + * optional string tlp_protocol = 41; + * @param value The bytes for tlpProtocol to set. + * @return This builder for chaining. + */ + public Builder setTlpProtocolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + tlpProtocol_ = value; bitField1_ |= 0x00000080; - break; - } // case 330 - case 338: { - label_ = input.readBytes(); + onChanged(); + return this; + } + + private java.lang.Object label_ = ""; + /** + * optional string label = 42; + * @return Whether the label field is set. + */ + public boolean hasLabel() { + return ((bitField1_ & 0x00000100) != 0); + } + /** + * optional string label = 42; + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + label_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string label = 42; + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string label = 42; + * @param value The label to set. + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + label_ = value; bitField1_ |= 0x00000100; - break; - } // case 338 - 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 bitField1_; - - private int schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @param value The schemaVersion to set. - * @return This builder for chaining. - */ - public Builder setSchemaVersion(int value) { - - schemaVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return This builder for chaining. - */ - public Builder clearSchemaVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - schemaVersion_ = 1; - onChanged(); - return this; - } - - private java.lang.Object desi_ = ""; - /** - * optional string desi = 2; - * @return Whether the desi field is set. - */ - public boolean hasDesi() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional string desi = 2; - * @return The desi. - */ - public java.lang.String getDesi() { - java.lang.Object ref = desi_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - desi_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string desi = 2; - * @return The bytes for desi. - */ - public com.google.protobuf.ByteString - getDesiBytes() { - java.lang.Object ref = desi_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string desi = 2; - * @param value The desi to set. - * @return This builder for chaining. - */ - public Builder setDesi( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - desi_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional string desi = 2; - * @return This builder for chaining. - */ - public Builder clearDesi() { - desi_ = getDefaultInstance().getDesi(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * optional string desi = 2; - * @param value The bytes for desi to set. - * @return This builder for chaining. - */ - public Builder setDesiBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - desi_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object dir_ = ""; - /** - * optional string dir = 3; - * @return Whether the dir field is set. - */ - public boolean hasDir() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional string dir = 3; - * @return The dir. - */ - public java.lang.String getDir() { - java.lang.Object ref = dir_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - dir_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string dir = 3; - * @return The bytes for dir. - */ - public com.google.protobuf.ByteString - getDirBytes() { - java.lang.Object ref = dir_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dir_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string dir = 3; - * @param value The dir to set. - * @return This builder for chaining. - */ - public Builder setDir( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - dir_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * optional string dir = 3; - * @return This builder for chaining. - */ - public Builder clearDir() { - dir_ = getDefaultInstance().getDir(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * optional string dir = 3; - * @param value The bytes for dir to set. - * @return This builder for chaining. - */ - public Builder setDirBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - dir_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private int oper_ ; - /** - * optional int32 oper = 4; - * @return Whether the oper field is set. - */ - @java.lang.Override - public boolean hasOper() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional int32 oper = 4; - * @return The oper. - */ - @java.lang.Override - public int getOper() { - return oper_; - } - /** - * optional int32 oper = 4; - * @param value The oper to set. - * @return This builder for chaining. - */ - public Builder setOper(int value) { - - oper_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * optional int32 oper = 4; - * @return This builder for chaining. - */ - public Builder clearOper() { - bitField0_ = (bitField0_ & ~0x00000008); - oper_ = 0; - onChanged(); - return this; - } - - private int veh_ ; - /** - * optional int32 veh = 5; - * @return Whether the veh field is set. - */ - @java.lang.Override - public boolean hasVeh() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional int32 veh = 5; - * @return The veh. - */ - @java.lang.Override - public int getVeh() { - return veh_; - } - /** - * optional int32 veh = 5; - * @param value The veh to set. - * @return This builder for chaining. - */ - public Builder setVeh(int value) { - - veh_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * optional int32 veh = 5; - * @return This builder for chaining. - */ - public Builder clearVeh() { - bitField0_ = (bitField0_ & ~0x00000010); - veh_ = 0; - onChanged(); - return this; - } - - private java.lang.Object tst_ = ""; - /** - * required string tst = 6; - * @return Whether the tst field is set. - */ - public boolean hasTst() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * required string tst = 6; - * @return The tst. - */ - public java.lang.String getTst() { - java.lang.Object ref = tst_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tst_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string tst = 6; - * @return The bytes for tst. - */ - public com.google.protobuf.ByteString - getTstBytes() { - java.lang.Object ref = tst_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tst_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string tst = 6; - * @param value The tst to set. - * @return This builder for chaining. - */ - public Builder setTst( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - tst_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * required string tst = 6; - * @return This builder for chaining. - */ - public Builder clearTst() { - tst_ = getDefaultInstance().getTst(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * required string tst = 6; - * @param value The bytes for tst to set. - * @return This builder for chaining. - */ - public Builder setTstBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - tst_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private long tsi_ ; - /** - * required int64 tsi = 7; - * @return Whether the tsi field is set. - */ - @java.lang.Override - public boolean hasTsi() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * required int64 tsi = 7; - * @return The tsi. - */ - @java.lang.Override - public long getTsi() { - return tsi_; - } - /** - * required int64 tsi = 7; - * @param value The tsi to set. - * @return This builder for chaining. - */ - public Builder setTsi(long value) { - - tsi_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * required int64 tsi = 7; - * @return This builder for chaining. - */ - public Builder clearTsi() { - bitField0_ = (bitField0_ & ~0x00000040); - tsi_ = 0L; - onChanged(); - return this; - } - - private double spd_ ; - /** - * optional double spd = 8; - * @return Whether the spd field is set. - */ - @java.lang.Override - public boolean hasSpd() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional double spd = 8; - * @return The spd. - */ - @java.lang.Override - public double getSpd() { - return spd_; - } - /** - * optional double spd = 8; - * @param value The spd to set. - * @return This builder for chaining. - */ - public Builder setSpd(double value) { - - spd_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * optional double spd = 8; - * @return This builder for chaining. - */ - public Builder clearSpd() { - bitField0_ = (bitField0_ & ~0x00000080); - spd_ = 0D; - onChanged(); - return this; - } - - private int hdg_ ; - /** - * optional int32 hdg = 9; - * @return Whether the hdg field is set. - */ - @java.lang.Override - public boolean hasHdg() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * optional int32 hdg = 9; - * @return The hdg. - */ - @java.lang.Override - public int getHdg() { - return hdg_; - } - /** - * optional int32 hdg = 9; - * @param value The hdg to set. - * @return This builder for chaining. - */ - public Builder setHdg(int value) { - - hdg_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * optional int32 hdg = 9; - * @return This builder for chaining. - */ - public Builder clearHdg() { - bitField0_ = (bitField0_ & ~0x00000100); - hdg_ = 0; - onChanged(); - return this; - } - - private double lat_ ; - /** - * optional double lat = 10; - * @return Whether the lat field is set. - */ - @java.lang.Override - public boolean hasLat() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * optional double lat = 10; - * @return The lat. - */ - @java.lang.Override - public double getLat() { - return lat_; - } - /** - * optional double lat = 10; - * @param value The lat to set. - * @return This builder for chaining. - */ - public Builder setLat(double value) { - - lat_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * optional double lat = 10; - * @return This builder for chaining. - */ - public Builder clearLat() { - bitField0_ = (bitField0_ & ~0x00000200); - lat_ = 0D; - onChanged(); - return this; - } - - private double long_ ; - /** - * optional double long = 11; - * @return Whether the long field is set. - */ - @java.lang.Override - public boolean hasLong() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * optional double long = 11; - * @return The long. - */ - @java.lang.Override - public double getLong() { - return long_; - } - /** - * optional double long = 11; - * @param value The long to set. - * @return This builder for chaining. - */ - public Builder setLong(double value) { - - long_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * optional double long = 11; - * @return This builder for chaining. - */ - public Builder clearLong() { - bitField0_ = (bitField0_ & ~0x00000400); - long_ = 0D; - onChanged(); - return this; - } - - private double acc_ ; - /** - * optional double acc = 12; - * @return Whether the acc field is set. - */ - @java.lang.Override - public boolean hasAcc() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * optional double acc = 12; - * @return The acc. - */ - @java.lang.Override - public double getAcc() { - return acc_; - } - /** - * optional double acc = 12; - * @param value The acc to set. - * @return This builder for chaining. - */ - public Builder setAcc(double value) { - - acc_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * optional double acc = 12; - * @return This builder for chaining. - */ - public Builder clearAcc() { - bitField0_ = (bitField0_ & ~0x00000800); - acc_ = 0D; - onChanged(); - return this; - } - - private int dl_ ; - /** - * optional uint32 dl = 13; - * @return Whether the dl field is set. - */ - @java.lang.Override - public boolean hasDl() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * optional uint32 dl = 13; - * @return The dl. - */ - @java.lang.Override - public int getDl() { - return dl_; - } - /** - * optional uint32 dl = 13; - * @param value The dl to set. - * @return This builder for chaining. - */ - public Builder setDl(int value) { - - dl_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * optional uint32 dl = 13; - * @return This builder for chaining. - */ - public Builder clearDl() { - bitField0_ = (bitField0_ & ~0x00001000); - dl_ = 0; - onChanged(); - return this; - } - - private double odo_ ; - /** - * optional double odo = 14; - * @return Whether the odo field is set. - */ - @java.lang.Override - public boolean hasOdo() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * optional double odo = 14; - * @return The odo. - */ - @java.lang.Override - public double getOdo() { - return odo_; - } - /** - * optional double odo = 14; - * @param value The odo to set. - * @return This builder for chaining. - */ - public Builder setOdo(double value) { - - odo_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * optional double odo = 14; - * @return This builder for chaining. - */ - public Builder clearOdo() { - bitField0_ = (bitField0_ & ~0x00002000); - odo_ = 0D; - onChanged(); - return this; - } - - private int drst_ ; - /** - * optional uint32 drst = 15; - * @return Whether the drst field is set. - */ - @java.lang.Override - public boolean hasDrst() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * optional uint32 drst = 15; - * @return The drst. - */ - @java.lang.Override - public int getDrst() { - return drst_; - } - /** - * optional uint32 drst = 15; - * @param value The drst to set. - * @return This builder for chaining. - */ - public Builder setDrst(int value) { - - drst_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * optional uint32 drst = 15; - * @return This builder for chaining. - */ - public Builder clearDrst() { - bitField0_ = (bitField0_ & ~0x00004000); - drst_ = 0; - onChanged(); - return this; - } - - private java.lang.Object oday_ = ""; - /** - * optional string oday = 16; - * @return Whether the oday field is set. - */ - public boolean hasOday() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * optional string oday = 16; - * @return The oday. - */ - public java.lang.String getOday() { - java.lang.Object ref = oday_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - oday_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string oday = 16; - * @return The bytes for oday. - */ - public com.google.protobuf.ByteString - getOdayBytes() { - java.lang.Object ref = oday_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oday_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string oday = 16; - * @param value The oday to set. - * @return This builder for chaining. - */ - public Builder setOday( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - oday_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * optional string oday = 16; - * @return This builder for chaining. - */ - public Builder clearOday() { - oday_ = getDefaultInstance().getOday(); - bitField0_ = (bitField0_ & ~0x00008000); - onChanged(); - return this; - } - /** - * optional string oday = 16; - * @param value The bytes for oday to set. - * @return This builder for chaining. - */ - public Builder setOdayBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - oday_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - - private int jrn_ ; - /** - * optional int32 jrn = 17; - * @return Whether the jrn field is set. - */ - @java.lang.Override - public boolean hasJrn() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * optional int32 jrn = 17; - * @return The jrn. - */ - @java.lang.Override - public int getJrn() { - return jrn_; - } - /** - * optional int32 jrn = 17; - * @param value The jrn to set. - * @return This builder for chaining. - */ - public Builder setJrn(int value) { - - jrn_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * optional int32 jrn = 17; - * @return This builder for chaining. - */ - public Builder clearJrn() { - bitField0_ = (bitField0_ & ~0x00010000); - jrn_ = 0; - onChanged(); - return this; - } - - private int line_ ; - /** - * optional int32 line = 18; - * @return Whether the line field is set. - */ - @java.lang.Override - public boolean hasLine() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * optional int32 line = 18; - * @return The line. - */ - @java.lang.Override - public int getLine() { - return line_; - } - /** - * optional int32 line = 18; - * @param value The line to set. - * @return This builder for chaining. - */ - public Builder setLine(int value) { - - line_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * optional int32 line = 18; - * @return This builder for chaining. - */ - public Builder clearLine() { - bitField0_ = (bitField0_ & ~0x00020000); - line_ = 0; - onChanged(); - return this; - } - - private java.lang.Object start_ = ""; - /** - * optional string start = 19; - * @return Whether the start field is set. - */ - public boolean hasStart() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * optional string start = 19; - * @return The start. - */ - public java.lang.String getStart() { - java.lang.Object ref = start_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - start_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string start = 19; - * @return The bytes for start. - */ - public com.google.protobuf.ByteString - getStartBytes() { - java.lang.Object ref = start_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - start_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string start = 19; - * @param value The start to set. - * @return This builder for chaining. - */ - public Builder setStart( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - start_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * optional string start = 19; - * @return This builder for chaining. - */ - public Builder clearStart() { - start_ = getDefaultInstance().getStart(); - bitField0_ = (bitField0_ & ~0x00040000); - onChanged(); - return this; - } - /** - * optional string start = 19; - * @param value The bytes for start to set. - * @return This builder for chaining. - */ - public Builder setStartBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - start_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - - private int loc_ = 0; - /** - *
-       * v2
-       * 
- * - * optional .proto.Payload.LocationQualityMethod loc = 20; - * @return Whether the loc field is set. - */ - @java.lang.Override public boolean hasLoc() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - *
-       * v2
-       * 
- * - * optional .proto.Payload.LocationQualityMethod loc = 20; - * @return The loc. - */ - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod getLoc() { - fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod result = fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod.forNumber(loc_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod.GPS : result; - } - /** - *
-       * v2
-       * 
- * - * optional .proto.Payload.LocationQualityMethod loc = 20; - * @param value The loc to set. - * @return This builder for chaining. - */ - public Builder setLoc(fi.hsl.common.hfp.proto.Hfp.Payload.LocationQualityMethod value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00080000; - loc_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * v2
-       * 
- * - * optional .proto.Payload.LocationQualityMethod loc = 20; - * @return This builder for chaining. - */ - public Builder clearLoc() { - bitField0_ = (bitField0_ & ~0x00080000); - loc_ = 0; - onChanged(); - return this; - } - - private int stop_ ; - /** - *
-       * v2
-       * 
- * - * optional int32 stop = 21; - * @return Whether the stop field is set. - */ - @java.lang.Override - public boolean hasStop() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - *
-       * v2
-       * 
- * - * optional int32 stop = 21; - * @return The stop. - */ - @java.lang.Override - public int getStop() { - return stop_; - } - /** - *
-       * v2
-       * 
- * - * optional int32 stop = 21; - * @param value The stop to set. - * @return This builder for chaining. - */ - public Builder setStop(int value) { - - stop_ = value; - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - *
-       * v2
-       * 
- * - * optional int32 stop = 21; - * @return This builder for chaining. - */ - public Builder clearStop() { - bitField0_ = (bitField0_ & ~0x00100000); - stop_ = 0; - onChanged(); - return this; - } - - private java.lang.Object route_ = ""; - /** - *
-       * v2
-       * 
- * - * optional string route = 22; - * @return Whether the route field is set. - */ - public boolean hasRoute() { - return ((bitField0_ & 0x00200000) != 0); - } - /** - *
-       * v2
-       * 
- * - * optional string route = 22; - * @return The route. - */ - public java.lang.String getRoute() { - java.lang.Object ref = route_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - route_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * v2
-       * 
- * - * optional string route = 22; - * @return The bytes for route. - */ - public com.google.protobuf.ByteString - getRouteBytes() { - java.lang.Object ref = route_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - route_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * v2
-       * 
- * - * optional string route = 22; - * @param value The route to set. - * @return This builder for chaining. - */ - public Builder setRoute( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - route_ = value; - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - *
-       * v2
-       * 
- * - * optional string route = 22; - * @return This builder for chaining. - */ - public Builder clearRoute() { - route_ = getDefaultInstance().getRoute(); - bitField0_ = (bitField0_ & ~0x00200000); - onChanged(); - return this; - } - /** - *
-       * v2
-       * 
- * - * optional string route = 22; - * @param value The bytes for route to set. - * @return This builder for chaining. - */ - public Builder setRouteBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - route_ = value; - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - - private int occu_ ; - /** - *
-       * v2
-       * 
- * - * optional int32 occu = 23; - * @return Whether the occu field is set. - */ - @java.lang.Override - public boolean hasOccu() { - return ((bitField0_ & 0x00400000) != 0); - } - /** - *
-       * v2
-       * 
- * - * optional int32 occu = 23; - * @return The occu. - */ - @java.lang.Override - public int getOccu() { - return occu_; - } - /** - *
-       * v2
-       * 
- * - * optional int32 occu = 23; - * @param value The occu to set. - * @return This builder for chaining. - */ - public Builder setOccu(int value) { - - occu_ = value; - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - *
-       * v2
-       * 
- * - * optional int32 occu = 23; - * @return This builder for chaining. - */ - public Builder clearOccu() { - bitField0_ = (bitField0_ & ~0x00400000); - occu_ = 0; - onChanged(); - return this; - } - - private int seq_ ; - /** - * optional int32 seq = 24; - * @return Whether the seq field is set. - */ - @java.lang.Override - public boolean hasSeq() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - * optional int32 seq = 24; - * @return The seq. - */ - @java.lang.Override - public int getSeq() { - return seq_; - } - /** - * optional int32 seq = 24; - * @param value The seq to set. - * @return This builder for chaining. - */ - public Builder setSeq(int value) { - - seq_ = value; - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * optional int32 seq = 24; - * @return This builder for chaining. - */ - public Builder clearSeq() { - bitField0_ = (bitField0_ & ~0x00800000); - seq_ = 0; - onChanged(); - return this; - } - - private java.lang.Object ttarr_ = ""; - /** - * optional string ttarr = 25; - * @return Whether the ttarr field is set. - */ - public boolean hasTtarr() { - return ((bitField0_ & 0x01000000) != 0); - } - /** - * optional string ttarr = 25; - * @return The ttarr. - */ - public java.lang.String getTtarr() { - java.lang.Object ref = ttarr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ttarr_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string ttarr = 25; - * @return The bytes for ttarr. - */ - public com.google.protobuf.ByteString - getTtarrBytes() { - java.lang.Object ref = ttarr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ttarr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string ttarr = 25; - * @param value The ttarr to set. - * @return This builder for chaining. - */ - public Builder setTtarr( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ttarr_ = value; - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - /** - * optional string ttarr = 25; - * @return This builder for chaining. - */ - public Builder clearTtarr() { - ttarr_ = getDefaultInstance().getTtarr(); - bitField0_ = (bitField0_ & ~0x01000000); - onChanged(); - return this; - } - /** - * optional string ttarr = 25; - * @param value The bytes for ttarr to set. - * @return This builder for chaining. - */ - public Builder setTtarrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ttarr_ = value; - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - - private java.lang.Object ttdep_ = ""; - /** - * optional string ttdep = 26; - * @return Whether the ttdep field is set. - */ - public boolean hasTtdep() { - return ((bitField0_ & 0x02000000) != 0); - } - /** - * optional string ttdep = 26; - * @return The ttdep. - */ - public java.lang.String getTtdep() { - java.lang.Object ref = ttdep_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ttdep_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string ttdep = 26; - * @return The bytes for ttdep. - */ - public com.google.protobuf.ByteString - getTtdepBytes() { - java.lang.Object ref = ttdep_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ttdep_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string ttdep = 26; - * @param value The ttdep to set. - * @return This builder for chaining. - */ - public Builder setTtdep( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ttdep_ = value; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - * optional string ttdep = 26; - * @return This builder for chaining. - */ - public Builder clearTtdep() { - ttdep_ = getDefaultInstance().getTtdep(); - bitField0_ = (bitField0_ & ~0x02000000); - onChanged(); - return this; - } - /** - * optional string ttdep = 26; - * @param value The bytes for ttdep to set. - * @return This builder for chaining. - */ - public Builder setTtdepBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ttdep_ = value; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - - private int drType_ ; - /** - * optional int32 dr_type = 27; - * @return Whether the drType field is set. - */ - @java.lang.Override - public boolean hasDrType() { - return ((bitField0_ & 0x04000000) != 0); - } - /** - * optional int32 dr_type = 27; - * @return The drType. - */ - @java.lang.Override - public int getDrType() { - return drType_; - } - /** - * optional int32 dr_type = 27; - * @param value The drType to set. - * @return This builder for chaining. - */ - public Builder setDrType(int value) { - - drType_ = value; - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * optional int32 dr_type = 27; - * @return This builder for chaining. - */ - public Builder clearDrType() { - bitField0_ = (bitField0_ & ~0x04000000); - drType_ = 0; - onChanged(); - return this; - } - - private int tlpRequestid_ ; - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_requestid = 28; - * @return Whether the tlpRequestid field is set. - */ - @java.lang.Override - public boolean hasTlpRequestid() { - return ((bitField0_ & 0x08000000) != 0); - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_requestid = 28; - * @return The tlpRequestid. - */ - @java.lang.Override - public int getTlpRequestid() { - return tlpRequestid_; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_requestid = 28; - * @param value The tlpRequestid to set. - * @return This builder for chaining. - */ - public Builder setTlpRequestid(int value) { - - tlpRequestid_ = value; - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_requestid = 28; - * @return This builder for chaining. - */ - public Builder clearTlpRequestid() { - bitField0_ = (bitField0_ & ~0x08000000); - tlpRequestid_ = 0; - onChanged(); - return this; - } - - private int tlpRequesttype_ = 0; - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; - * @return Whether the tlpRequesttype field is set. - */ - @java.lang.Override public boolean hasTlpRequesttype() { - return ((bitField0_ & 0x10000000) != 0); - } - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; - * @return The tlpRequesttype. - */ - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType getTlpRequesttype() { - fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType.forNumber(tlpRequesttype_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType.NORMAL : result; - } - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; - * @param value The tlpRequesttype to set. - * @return This builder for chaining. - */ - public Builder setTlpRequesttype(fi.hsl.common.hfp.proto.Hfp.Payload.TlpRequestType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x10000000; - tlpRequesttype_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpRequestType tlp_requesttype = 29; - * @return This builder for chaining. - */ - public Builder clearTlpRequesttype() { - bitField0_ = (bitField0_ & ~0x10000000); - tlpRequesttype_ = 0; - onChanged(); - return this; - } - - private int tlpPrioritylevel_ = 0; - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; - * @return Whether the tlpPrioritylevel field is set. - */ - @java.lang.Override public boolean hasTlpPrioritylevel() { - return ((bitField0_ & 0x20000000) != 0); - } - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; - * @return The tlpPrioritylevel. - */ - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel getTlpPrioritylevel() { - fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel.forNumber(tlpPrioritylevel_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel.normal : result; - } - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; - * @param value The tlpPrioritylevel to set. - * @return This builder for chaining. - */ - public Builder setTlpPrioritylevel(fi.hsl.common.hfp.proto.Hfp.Payload.TlpPriorityLevel value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x20000000; - tlpPrioritylevel_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpPriorityLevel tlp_prioritylevel = 30; - * @return This builder for chaining. - */ - public Builder clearTlpPrioritylevel() { - bitField0_ = (bitField0_ & ~0x20000000); - tlpPrioritylevel_ = 0; - onChanged(); - return this; - } - - private int tlpReason_ = 0; - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpReason tlp_reason = 31; - * @return Whether the tlpReason field is set. - */ - @java.lang.Override public boolean hasTlpReason() { - return ((bitField0_ & 0x40000000) != 0); - } - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpReason tlp_reason = 31; - * @return The tlpReason. - */ - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason getTlpReason() { - fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason.forNumber(tlpReason_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason.GLOBAL : result; - } - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpReason tlp_reason = 31; - * @param value The tlpReason to set. - * @return This builder for chaining. - */ - public Builder setTlpReason(fi.hsl.common.hfp.proto.Hfp.Payload.TlpReason value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x40000000; - tlpReason_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpReason tlp_reason = 31; - * @return This builder for chaining. - */ - public Builder clearTlpReason() { - bitField0_ = (bitField0_ & ~0x40000000); - tlpReason_ = 0; - onChanged(); - return this; - } - - private int tlpAttSeq_ ; - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_att_seq = 32; - * @return Whether the tlpAttSeq field is set. - */ - @java.lang.Override - public boolean hasTlpAttSeq() { - return ((bitField0_ & 0x80000000) != 0); - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_att_seq = 32; - * @return The tlpAttSeq. - */ - @java.lang.Override - public int getTlpAttSeq() { - return tlpAttSeq_; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_att_seq = 32; - * @param value The tlpAttSeq to set. - * @return This builder for chaining. - */ - public Builder setTlpAttSeq(int value) { - - tlpAttSeq_ = value; - bitField0_ |= 0x80000000; - onChanged(); - return this; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_att_seq = 32; - * @return This builder for chaining. - */ - public Builder clearTlpAttSeq() { - bitField0_ = (bitField0_ & ~0x80000000); - tlpAttSeq_ = 0; - onChanged(); - return this; - } - - private int tlpDecision_ = 0; - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpDecision tlp_decision = 33; - * @return Whether the tlpDecision field is set. - */ - @java.lang.Override public boolean hasTlpDecision() { - return ((bitField1_ & 0x00000001) != 0); - } - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpDecision tlp_decision = 33; - * @return The tlpDecision. - */ - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision getTlpDecision() { - fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision result = fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision.forNumber(tlpDecision_); - return result == null ? fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision.ACK : result; - } - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpDecision tlp_decision = 33; - * @param value The tlpDecision to set. - * @return This builder for chaining. - */ - public Builder setTlpDecision(fi.hsl.common.hfp.proto.Hfp.Payload.TlpDecision value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x00000001; - tlpDecision_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * tlr
-       * 
- * - * optional .proto.Payload.TlpDecision tlp_decision = 33; - * @return This builder for chaining. - */ - public Builder clearTlpDecision() { - bitField1_ = (bitField1_ & ~0x00000001); - tlpDecision_ = 0; - onChanged(); - return this; - } - - private int sid_ ; - /** - *
-       * tlr
-       * 
- * - * optional int32 sid = 34; - * @return Whether the sid field is set. - */ - @java.lang.Override - public boolean hasSid() { - return ((bitField1_ & 0x00000002) != 0); - } - /** - *
-       * tlr
-       * 
- * - * optional int32 sid = 34; - * @return The sid. - */ - @java.lang.Override - public int getSid() { - return sid_; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 sid = 34; - * @param value The sid to set. - * @return This builder for chaining. - */ - public Builder setSid(int value) { - - sid_ = value; - bitField1_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 sid = 34; - * @return This builder for chaining. - */ - public Builder clearSid() { - bitField1_ = (bitField1_ & ~0x00000002); - sid_ = 0; - onChanged(); - return this; - } - - private int signalGroupid_ ; - /** - *
-       * tlr
-       * 
- * - * optional int32 signal_groupid = 35; - * @return Whether the signalGroupid field is set. - */ - @java.lang.Override - public boolean hasSignalGroupid() { - return ((bitField1_ & 0x00000004) != 0); - } - /** - *
-       * tlr
-       * 
- * - * optional int32 signal_groupid = 35; - * @return The signalGroupid. - */ - @java.lang.Override - public int getSignalGroupid() { - return signalGroupid_; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 signal_groupid = 35; - * @param value The signalGroupid to set. - * @return This builder for chaining. - */ - public Builder setSignalGroupid(int value) { - - signalGroupid_ = value; - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 signal_groupid = 35; - * @return This builder for chaining. - */ - public Builder clearSignalGroupid() { - bitField1_ = (bitField1_ & ~0x00000004); - signalGroupid_ = 0; - onChanged(); - return this; - } - - private int tlpSignalgroupnbr_ ; - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_signalgroupnbr = 36; - * @return Whether the tlpSignalgroupnbr field is set. - */ - @java.lang.Override - public boolean hasTlpSignalgroupnbr() { - return ((bitField1_ & 0x00000008) != 0); - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_signalgroupnbr = 36; - * @return The tlpSignalgroupnbr. - */ - @java.lang.Override - public int getTlpSignalgroupnbr() { - return tlpSignalgroupnbr_; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_signalgroupnbr = 36; - * @param value The tlpSignalgroupnbr to set. - * @return This builder for chaining. - */ - public Builder setTlpSignalgroupnbr(int value) { - - tlpSignalgroupnbr_ = value; - bitField1_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_signalgroupnbr = 36; - * @return This builder for chaining. - */ - public Builder clearTlpSignalgroupnbr() { - bitField1_ = (bitField1_ & ~0x00000008); - tlpSignalgroupnbr_ = 0; - onChanged(); - return this; - } - - private int tlpLineConfigid_ ; - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_line_configid = 38; - * @return Whether the tlpLineConfigid field is set. - */ - @java.lang.Override - public boolean hasTlpLineConfigid() { - return ((bitField1_ & 0x00000010) != 0); - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_line_configid = 38; - * @return The tlpLineConfigid. - */ - @java.lang.Override - public int getTlpLineConfigid() { - return tlpLineConfigid_; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_line_configid = 38; - * @param value The tlpLineConfigid to set. - * @return This builder for chaining. - */ - public Builder setTlpLineConfigid(int value) { - - tlpLineConfigid_ = value; - bitField1_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_line_configid = 38; - * @return This builder for chaining. - */ - public Builder clearTlpLineConfigid() { - bitField1_ = (bitField1_ & ~0x00000010); - tlpLineConfigid_ = 0; - onChanged(); - return this; - } - - private int tlpPointConfigid_ ; - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_point_configid = 39; - * @return Whether the tlpPointConfigid field is set. - */ - @java.lang.Override - public boolean hasTlpPointConfigid() { - return ((bitField1_ & 0x00000020) != 0); - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_point_configid = 39; - * @return The tlpPointConfigid. - */ - @java.lang.Override - public int getTlpPointConfigid() { - return tlpPointConfigid_; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_point_configid = 39; - * @param value The tlpPointConfigid to set. - * @return This builder for chaining. - */ - public Builder setTlpPointConfigid(int value) { - - tlpPointConfigid_ = value; - bitField1_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_point_configid = 39; - * @return This builder for chaining. - */ - public Builder clearTlpPointConfigid() { - bitField1_ = (bitField1_ & ~0x00000020); - tlpPointConfigid_ = 0; - onChanged(); - return this; - } - - private int tlpFrequency_ ; - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_frequency = 40; - * @return Whether the tlpFrequency field is set. - */ - @java.lang.Override - public boolean hasTlpFrequency() { - return ((bitField1_ & 0x00000040) != 0); - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_frequency = 40; - * @return The tlpFrequency. - */ - @java.lang.Override - public int getTlpFrequency() { - return tlpFrequency_; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_frequency = 40; - * @param value The tlpFrequency to set. - * @return This builder for chaining. - */ - public Builder setTlpFrequency(int value) { - - tlpFrequency_ = value; - bitField1_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-       * tlr
-       * 
- * - * optional int32 tlp_frequency = 40; - * @return This builder for chaining. - */ - public Builder clearTlpFrequency() { - bitField1_ = (bitField1_ & ~0x00000040); - tlpFrequency_ = 0; - onChanged(); - return this; - } - - private java.lang.Object tlpProtocol_ = ""; - /** - *
-       * tlr
-       * 
- * - * optional string tlp_protocol = 41; - * @return Whether the tlpProtocol field is set. - */ - public boolean hasTlpProtocol() { - return ((bitField1_ & 0x00000080) != 0); - } - /** - *
-       * tlr
-       * 
- * - * optional string tlp_protocol = 41; - * @return The tlpProtocol. - */ - public java.lang.String getTlpProtocol() { - java.lang.Object ref = tlpProtocol_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tlpProtocol_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * tlr
-       * 
- * - * optional string tlp_protocol = 41; - * @return The bytes for tlpProtocol. - */ - public com.google.protobuf.ByteString - getTlpProtocolBytes() { - java.lang.Object ref = tlpProtocol_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tlpProtocol_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * tlr
-       * 
- * - * optional string tlp_protocol = 41; - * @param value The tlpProtocol to set. - * @return This builder for chaining. - */ - public Builder setTlpProtocol( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - tlpProtocol_ = value; - bitField1_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-       * tlr
-       * 
- * - * optional string tlp_protocol = 41; - * @return This builder for chaining. - */ - public Builder clearTlpProtocol() { - tlpProtocol_ = getDefaultInstance().getTlpProtocol(); - bitField1_ = (bitField1_ & ~0x00000080); - onChanged(); - return this; - } - /** - *
-       * tlr
-       * 
- * - * optional string tlp_protocol = 41; - * @param value The bytes for tlpProtocol to set. - * @return This builder for chaining. - */ - public Builder setTlpProtocolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - tlpProtocol_ = value; - bitField1_ |= 0x00000080; - onChanged(); - return this; - } - - private java.lang.Object label_ = ""; - /** - * optional string label = 42; - * @return Whether the label field is set. - */ - public boolean hasLabel() { - return ((bitField1_ & 0x00000100) != 0); - } - /** - * optional string label = 42; - * @return The label. - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string label = 42; - * @return The bytes for label. - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string label = 42; - * @param value The label to set. - * @return This builder for chaining. - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - label_ = value; - bitField1_ |= 0x00000100; - onChanged(); - return this; - } - /** - * optional string label = 42; - * @return This builder for chaining. - */ - public Builder clearLabel() { - label_ = getDefaultInstance().getLabel(); - bitField1_ = (bitField1_ & ~0x00000100); - onChanged(); - return this; - } - /** - * optional string label = 42; - * @param value The bytes for label to set. - * @return This builder for chaining. - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - label_ = value; - bitField1_ |= 0x00000100; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.Payload) - } + onChanged(); + return this; + } + /** + * optional string label = 42; + * @return This builder for chaining. + */ + public Builder clearLabel() { + label_ = getDefaultInstance().getLabel(); + bitField1_ = (bitField1_ & ~0x00000100); + onChanged(); + return this; + } + /** + * optional string label = 42; + * @param value The bytes for label to set. + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + label_ = value; + bitField1_ |= 0x00000100; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.Payload) + } + + // @@protoc_insertion_point(class_scope:proto.Payload) + private static final fi.hsl.common.hfp.proto.Hfp.Payload DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.hfp.proto.Hfp.Payload(); + } + + public static fi.hsl.common.hfp.proto.Hfp.Payload getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Payload parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - // @@protoc_insertion_point(class_scope:proto.Payload) - private static final fi.hsl.common.hfp.proto.Hfp.Payload DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.hfp.proto.Hfp.Payload(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static fi.hsl.common.hfp.proto.Hfp.Payload getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Payload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public fi.hsl.common.hfp.proto.Hfp.Payload getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; } - @java.lang.Override - public fi.hsl.common.hfp.proto.Hfp.Payload getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_Data_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_Data_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_Topic_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_Topic_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_Payload_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_Payload_fieldAccessorTable; - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_Data_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_Data_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_Topic_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_Topic_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_Payload_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_Payload_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\thfp.proto\022\005proto\"^\n\004Data\022\030\n\rSchemaVers" + - "ion\030\001 \002(\005:\0011\022\033\n\005topic\030\002 \001(\0132\014.proto.Topi" + - "c\022\037\n\007payload\030\003 \002(\0132\016.proto.Payload\"\367\006\n\005T" + - "opic\022\030\n\rSchemaVersion\030\001 \002(\005:\0011\022\023\n\013receiv" + - "ed_at\030\002 \002(\003\022\024\n\014topic_prefix\030\003 \002(\t\022\025\n\rtop" + - "ic_version\030\004 \002(\t\022.\n\014journey_type\030\005 \002(\0162\030" + - ".proto.Topic.JourneyType\0220\n\rtemporal_typ" + - "e\030\006 \002(\0162\031.proto.Topic.TemporalType\022*\n\nev" + - "ent_type\030\007 \001(\0162\026.proto.Topic.EventType\0222" + - "\n\016transport_mode\030\010 \001(\0162\032.proto.Topic.Tra" + - "nsportMode\022\023\n\013operator_id\030\t \002(\005\022\026\n\016vehic" + - "le_number\030\n \002(\005\022\031\n\021unique_vehicle_id\030\013 \002" + - "(\t\022\020\n\010route_id\030\014 \001(\t\022\024\n\014direction_id\030\r \001" + - "(\005\022\020\n\010headsign\030\016 \001(\t\022\022\n\nstart_time\030\017 \001(\t" + - "\022\021\n\tnext_stop\030\020 \001(\t\022\025\n\rgeohash_level\030\021 \001" + - "(\005\022\020\n\010latitude\030\022 \001(\001\022\021\n\tlongitude\030\023 \001(\001\"" + - "4\n\013JourneyType\022\013\n\007journey\020\000\022\013\n\007deadrun\020\001" + - "\022\013\n\007signoff\020\002\")\n\014TemporalType\022\013\n\007ongoing" + - "\020\000\022\014\n\010upcoming\020\001\"\257\001\n\tEventType\022\006\n\002VP\020\000\022\007" + - "\n\003DUE\020\001\022\007\n\003ARR\020\002\022\007\n\003ARS\020\003\022\007\n\003PDE\020\004\022\007\n\003DE" + - "P\020\005\022\007\n\003PAS\020\006\022\010\n\004WAIT\020\007\022\007\n\003DOO\020\010\022\007\n\003DOC\020\t" + - "\022\007\n\003TLR\020\n\022\007\n\003TLA\020\013\022\006\n\002DA\020\014\022\010\n\004DOUT\020\r\022\006\n\002" + - "BA\020\016\022\010\n\004BOUT\020\017\022\007\n\003VJA\020\020\022\t\n\005VJOUT\020\021\"X\n\rTr" + - "ansportMode\022\007\n\003bus\020\000\022\t\n\005train\020\001\022\010\n\004tram\020" + - "\002\022\t\n\005metro\020\003\022\t\n\005ferry\020\004\022\010\n\004ubus\020\005\022\t\n\005rob" + - "ot\020\006\"\206\t\n\007Payload\022\030\n\rSchemaVersion\030\001 \002(\005:" + - "\0011\022\014\n\004desi\030\002 \001(\t\022\013\n\003dir\030\003 \001(\t\022\014\n\004oper\030\004 " + - "\001(\005\022\013\n\003veh\030\005 \001(\005\022\013\n\003tst\030\006 \002(\t\022\013\n\003tsi\030\007 \002" + - "(\003\022\013\n\003spd\030\010 \001(\001\022\013\n\003hdg\030\t \001(\005\022\013\n\003lat\030\n \001(" + - "\001\022\014\n\004long\030\013 \001(\001\022\013\n\003acc\030\014 \001(\001\022\n\n\002dl\030\r \001(\r" + - "\022\013\n\003odo\030\016 \001(\001\022\014\n\004drst\030\017 \001(\r\022\014\n\004oday\030\020 \001(" + - "\t\022\013\n\003jrn\030\021 \001(\005\022\014\n\004line\030\022 \001(\005\022\r\n\005start\030\023 " + - "\001(\t\0221\n\003loc\030\024 \001(\0162$.proto.Payload.Locatio" + - "nQualityMethod\022\014\n\004stop\030\025 \001(\005\022\r\n\005route\030\026 " + - "\001(\t\022\014\n\004occu\030\027 \001(\005\022\013\n\003seq\030\030 \001(\005\022\r\n\005ttarr\030" + - "\031 \001(\t\022\r\n\005ttdep\030\032 \001(\t\022\017\n\007dr_type\030\033 \001(\005\022\025\n" + - "\rtlp_requestid\030\034 \001(\005\0226\n\017tlp_requesttype\030" + - "\035 \001(\0162\035.proto.Payload.TlpRequestType\022:\n\021" + - "tlp_prioritylevel\030\036 \001(\0162\037.proto.Payload." + - "TlpPriorityLevel\022,\n\ntlp_reason\030\037 \001(\0162\030.p" + - "roto.Payload.TlpReason\022\023\n\013tlp_att_seq\030 " + - "\001(\005\0220\n\014tlp_decision\030! \001(\0162\032.proto.Payloa" + - "d.TlpDecision\022\013\n\003sid\030\" \001(\005\022\026\n\016signal_gro" + - "upid\030# \001(\005\022\032\n\022tlp_signalgroupnbr\030$ \001(\005\022\031" + - "\n\021tlp_line_configid\030& \001(\005\022\032\n\022tlp_point_c" + - "onfigid\030\' \001(\005\022\025\n\rtlp_frequency\030( \001(\005\022\024\n\014" + - "tlp_protocol\030) \001(\t\022\r\n\005label\030* \001(\t\"B\n\025Loc" + - "ationQualityMethod\022\007\n\003GPS\020\000\022\007\n\003ODO\020\001\022\007\n\003" + - "MAN\020\002\022\006\n\002NA\020\003\022\006\n\002DR\020\004\"H\n\016TlpRequestType\022" + - "\n\n\006NORMAL\020\000\022\016\n\nDOOR_CLOSE\020\001\022\r\n\tDOOR_OPEN" + - "\020\002\022\013\n\007ADVANCE\020\003\"7\n\020TlpPriorityLevel\022\n\n\006n" + - "ormal\020\000\022\010\n\004high\020\001\022\r\n\tnorequest\020\002\":\n\tTlpR" + - "eason\022\n\n\006GLOBAL\020\000\022\t\n\005AHEAD\020\001\022\010\n\004LINE\020\002\022\014" + - "\n\010PRIOEXEP\020\003\"\037\n\013TlpDecision\022\007\n\003ACK\020\000\022\007\n\003" + - "NAK\020\001B\036\n\027fi.hsl.common.hfp.protoB\003Hfp" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_proto_Data_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_proto_Data_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_Data_descriptor, - new java.lang.String[] { "SchemaVersion", "Topic", "Payload", }); - internal_static_proto_Topic_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_proto_Topic_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_Topic_descriptor, - new java.lang.String[] { "SchemaVersion", "ReceivedAt", "TopicPrefix", "TopicVersion", "JourneyType", "TemporalType", "EventType", "TransportMode", "OperatorId", "VehicleNumber", "UniqueVehicleId", "RouteId", "DirectionId", "Headsign", "StartTime", "NextStop", "GeohashLevel", "Latitude", "Longitude", }); - internal_static_proto_Payload_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_proto_Payload_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_Payload_descriptor, - new java.lang.String[] { "SchemaVersion", "Desi", "Dir", "Oper", "Veh", "Tst", "Tsi", "Spd", "Hdg", "Lat", "Long", "Acc", "Dl", "Odo", "Drst", "Oday", "Jrn", "Line", "Start", "Loc", "Stop", "Route", "Occu", "Seq", "Ttarr", "Ttdep", "DrType", "TlpRequestid", "TlpRequesttype", "TlpPrioritylevel", "TlpReason", "TlpAttSeq", "TlpDecision", "Sid", "SignalGroupid", "TlpSignalgroupnbr", "TlpLineConfigid", "TlpPointConfigid", "TlpFrequency", "TlpProtocol", "Label", }); - } - - // @@protoc_insertion_point(outer_class_scope) + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = {"\n\thfp.proto\022\005proto\"^\n\004Data\022\030\n\rSchemaVers" + + "ion\030\001 \002(\005:\0011\022\033\n\005topic\030\002 \001(\0132\014.proto.Topi" + + "c\022\037\n\007payload\030\003 \002(\0132\016.proto.Payload\"\367\006\n\005T" + + "opic\022\030\n\rSchemaVersion\030\001 \002(\005:\0011\022\023\n\013receiv" + + "ed_at\030\002 \002(\003\022\024\n\014topic_prefix\030\003 \002(\t\022\025\n\rtop" + + "ic_version\030\004 \002(\t\022.\n\014journey_type\030\005 \002(\0162\030" + + ".proto.Topic.JourneyType\0220\n\rtemporal_typ" + + "e\030\006 \002(\0162\031.proto.Topic.TemporalType\022*\n\nev" + + "ent_type\030\007 \001(\0162\026.proto.Topic.EventType\0222" + + "\n\016transport_mode\030\010 \001(\0162\032.proto.Topic.Tra" + + "nsportMode\022\023\n\013operator_id\030\t \002(\005\022\026\n\016vehic" + + "le_number\030\n \002(\005\022\031\n\021unique_vehicle_id\030\013 \002" + + "(\t\022\020\n\010route_id\030\014 \001(\t\022\024\n\014direction_id\030\r \001" + + "(\005\022\020\n\010headsign\030\016 \001(\t\022\022\n\nstart_time\030\017 \001(\t" + + "\022\021\n\tnext_stop\030\020 \001(\t\022\025\n\rgeohash_level\030\021 \001" + + "(\005\022\020\n\010latitude\030\022 \001(\001\022\021\n\tlongitude\030\023 \001(\001\"" + + "4\n\013JourneyType\022\013\n\007journey\020\000\022\013\n\007deadrun\020\001" + + "\022\013\n\007signoff\020\002\")\n\014TemporalType\022\013\n\007ongoing" + + "\020\000\022\014\n\010upcoming\020\001\"\257\001\n\tEventType\022\006\n\002VP\020\000\022\007" + + "\n\003DUE\020\001\022\007\n\003ARR\020\002\022\007\n\003ARS\020\003\022\007\n\003PDE\020\004\022\007\n\003DE" + + "P\020\005\022\007\n\003PAS\020\006\022\010\n\004WAIT\020\007\022\007\n\003DOO\020\010\022\007\n\003DOC\020\t" + + "\022\007\n\003TLR\020\n\022\007\n\003TLA\020\013\022\006\n\002DA\020\014\022\010\n\004DOUT\020\r\022\006\n\002" + + "BA\020\016\022\010\n\004BOUT\020\017\022\007\n\003VJA\020\020\022\t\n\005VJOUT\020\021\"X\n\rTr" + + "ansportMode\022\007\n\003bus\020\000\022\t\n\005train\020\001\022\010\n\004tram\020" + + "\002\022\t\n\005metro\020\003\022\t\n\005ferry\020\004\022\010\n\004ubus\020\005\022\t\n\005rob" + + "ot\020\006\"\206\t\n\007Payload\022\030\n\rSchemaVersion\030\001 \002(\005:" + + "\0011\022\014\n\004desi\030\002 \001(\t\022\013\n\003dir\030\003 \001(\t\022\014\n\004oper\030\004 " + + "\001(\005\022\013\n\003veh\030\005 \001(\005\022\013\n\003tst\030\006 \002(\t\022\013\n\003tsi\030\007 \002" + + "(\003\022\013\n\003spd\030\010 \001(\001\022\013\n\003hdg\030\t \001(\005\022\013\n\003lat\030\n \001(" + + "\001\022\014\n\004long\030\013 \001(\001\022\013\n\003acc\030\014 \001(\001\022\n\n\002dl\030\r \001(\r" + + "\022\013\n\003odo\030\016 \001(\001\022\014\n\004drst\030\017 \001(\r\022\014\n\004oday\030\020 \001(" + + "\t\022\013\n\003jrn\030\021 \001(\005\022\014\n\004line\030\022 \001(\005\022\r\n\005start\030\023 " + + "\001(\t\0221\n\003loc\030\024 \001(\0162$.proto.Payload.Locatio" + + "nQualityMethod\022\014\n\004stop\030\025 \001(\005\022\r\n\005route\030\026 " + + "\001(\t\022\014\n\004occu\030\027 \001(\005\022\013\n\003seq\030\030 \001(\005\022\r\n\005ttarr\030" + + "\031 \001(\t\022\r\n\005ttdep\030\032 \001(\t\022\017\n\007dr_type\030\033 \001(\005\022\025\n" + + "\rtlp_requestid\030\034 \001(\005\0226\n\017tlp_requesttype\030" + + "\035 \001(\0162\035.proto.Payload.TlpRequestType\022:\n\021" + + "tlp_prioritylevel\030\036 \001(\0162\037.proto.Payload." + + "TlpPriorityLevel\022,\n\ntlp_reason\030\037 \001(\0162\030.p" + + "roto.Payload.TlpReason\022\023\n\013tlp_att_seq\030 " + + "\001(\005\0220\n\014tlp_decision\030! \001(\0162\032.proto.Payloa" + + "d.TlpDecision\022\013\n\003sid\030\" \001(\005\022\026\n\016signal_gro" + + "upid\030# \001(\005\022\032\n\022tlp_signalgroupnbr\030$ \001(\005\022\031" + + "\n\021tlp_line_configid\030& \001(\005\022\032\n\022tlp_point_c" + + "onfigid\030\' \001(\005\022\025\n\rtlp_frequency\030( \001(\005\022\024\n\014" + + "tlp_protocol\030) \001(\t\022\r\n\005label\030* \001(\t\"B\n\025Loc" + + "ationQualityMethod\022\007\n\003GPS\020\000\022\007\n\003ODO\020\001\022\007\n\003" + + "MAN\020\002\022\006\n\002NA\020\003\022\006\n\002DR\020\004\"H\n\016TlpRequestType\022" + + "\n\n\006NORMAL\020\000\022\016\n\nDOOR_CLOSE\020\001\022\r\n\tDOOR_OPEN" + + "\020\002\022\013\n\007ADVANCE\020\003\"7\n\020TlpPriorityLevel\022\n\n\006n" + + "ormal\020\000\022\010\n\004high\020\001\022\r\n\tnorequest\020\002\":\n\tTlpR" + + "eason\022\n\n\006GLOBAL\020\000\022\t\n\005AHEAD\020\001\022\010\n\004LINE\020\002\022\014" + + "\n\010PRIOEXEP\020\003\"\037\n\013TlpDecision\022\007\n\003ACK\020\000\022\007\n\003" + + "NAK\020\001B\036\n\027fi.hsl.common.hfp.protoB\003Hfp"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[]{}); + internal_static_proto_Data_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_proto_Data_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Data_descriptor, new java.lang.String[]{"SchemaVersion", "Topic", "Payload",}); + internal_static_proto_Topic_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_proto_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Topic_descriptor, + new java.lang.String[]{"SchemaVersion", "ReceivedAt", "TopicPrefix", "TopicVersion", "JourneyType", + "TemporalType", "EventType", "TransportMode", "OperatorId", "VehicleNumber", "UniqueVehicleId", + "RouteId", "DirectionId", "Headsign", "StartTime", "NextStop", "GeohashLevel", "Latitude", + "Longitude",}); + internal_static_proto_Payload_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_proto_Payload_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Payload_descriptor, + new java.lang.String[]{"SchemaVersion", "Desi", "Dir", "Oper", "Veh", "Tst", "Tsi", "Spd", "Hdg", "Lat", + "Long", "Acc", "Dl", "Odo", "Drst", "Oday", "Jrn", "Line", "Start", "Loc", "Stop", "Route", + "Occu", "Seq", "Ttarr", "Ttdep", "DrType", "TlpRequestid", "TlpRequesttype", "TlpPrioritylevel", + "TlpReason", "TlpAttSeq", "TlpDecision", "Sid", "SignalGroupid", "TlpSignalgroupnbr", + "TlpLineConfigid", "TlpPointConfigid", "TlpFrequency", "TlpProtocol", "Label",}); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/fi/hsl/common/mqtt/proto/Mqtt.java b/src/main/java/fi/hsl/common/mqtt/proto/Mqtt.java index 642857e1..cbbef7a5 100644 --- a/src/main/java/fi/hsl/common/mqtt/proto/Mqtt.java +++ b/src/main/java/fi/hsl/common/mqtt/proto/Mqtt.java @@ -4,840 +4,793 @@ package fi.hsl.common.mqtt.proto; public final class Mqtt { - private Mqtt() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface RawMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.RawMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - boolean hasSchemaVersion(); - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - int getSchemaVersion(); - - /** - * optional string topic = 2; - * @return Whether the topic field is set. - */ - boolean hasTopic(); - /** - * optional string topic = 2; - * @return The topic. - */ - java.lang.String getTopic(); + private Mqtt() { + } + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface RawMessageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.RawMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + boolean hasSchemaVersion(); + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + int getSchemaVersion(); + + /** + * optional string topic = 2; + * @return Whether the topic field is set. + */ + boolean hasTopic(); + /** + * optional string topic = 2; + * @return The topic. + */ + java.lang.String getTopic(); + /** + * optional string topic = 2; + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); + + /** + * optional bytes payload = 3; + * @return Whether the payload field is set. + */ + boolean hasPayload(); + /** + * optional bytes payload = 3; + * @return The payload. + */ + com.google.protobuf.ByteString getPayload(); + } /** - * optional string topic = 2; - * @return The bytes for topic. + * Protobuf type {@code proto.RawMessage} */ - com.google.protobuf.ByteString - getTopicBytes(); + public static final class RawMessage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.RawMessage) + RawMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use RawMessage.newBuilder() to construct. + private RawMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RawMessage() { + schemaVersion_ = 1; + topic_ = ""; + payload_ = com.google.protobuf.ByteString.EMPTY; + } - /** - * optional bytes payload = 3; - * @return Whether the payload field is set. - */ - boolean hasPayload(); - /** - * optional bytes payload = 3; - * @return The payload. - */ - com.google.protobuf.ByteString getPayload(); - } - /** - * Protobuf type {@code proto.RawMessage} - */ - public static final class RawMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.RawMessage) - RawMessageOrBuilder { - private static final long serialVersionUID = 0L; - // Use RawMessage.newBuilder() to construct. - private RawMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RawMessage() { - schemaVersion_ = 1; - topic_ = ""; - payload_ = com.google.protobuf.ByteString.EMPTY; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RawMessage(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RawMessage(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.mqtt.proto.Mqtt.internal_static_proto_RawMessage_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.mqtt.proto.Mqtt.internal_static_proto_RawMessage_descriptor; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.mqtt.proto.Mqtt.internal_static_proto_RawMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.mqtt.proto.Mqtt.RawMessage.class, + fi.hsl.common.mqtt.proto.Mqtt.RawMessage.Builder.class); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.mqtt.proto.Mqtt.internal_static_proto_RawMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.mqtt.proto.Mqtt.RawMessage.class, fi.hsl.common.mqtt.proto.Mqtt.RawMessage.Builder.class); - } + private int bitField0_; + public static final int SCHEMAVERSION_FIELD_NUMBER = 1; + private int schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } - private int bitField0_; - public static final int SCHEMAVERSION_FIELD_NUMBER = 1; - private int schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } + public static final int TOPIC_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; + /** + * optional string topic = 2; + * @return Whether the topic field is set. + */ + @java.lang.Override + public boolean hasTopic() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string topic = 2; + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + topic_ = s; + } + return s; + } + } + /** + * optional string topic = 2; + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int TOPIC_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object topic_ = ""; - /** - * optional string topic = 2; - * @return Whether the topic field is set. - */ - @java.lang.Override - public boolean hasTopic() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional string topic = 2; - * @return The topic. - */ - @java.lang.Override - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - topic_ = s; - } - return s; - } - } - /** - * optional string topic = 2; - * @return The bytes for topic. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final int PAYLOAD_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes payload = 3; + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional bytes payload = 3; + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } - public static final int PAYLOAD_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes payload = 3; - * @return Whether the payload field is set. - */ - @java.lang.Override - public boolean hasPayload() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional bytes payload = 3; - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPayload() { - return payload_; - } + 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 (!hasSchemaVersion()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - 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 (!hasSchemaVersion()) { - 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.writeInt32(1, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBytes(3, payload_); + } + getUnknownFields().writeTo(output); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeBytes(3, payload_); - } - 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, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, payload_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @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, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, payload_); - } - 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 fi.hsl.common.mqtt.proto.Mqtt.RawMessage)) { + return super.equals(obj); + } + fi.hsl.common.mqtt.proto.Mqtt.RawMessage other = (fi.hsl.common.mqtt.proto.Mqtt.RawMessage) obj; + + if (hasSchemaVersion() != other.hasSchemaVersion()) + return false; + if (hasSchemaVersion()) { + if (getSchemaVersion() != other.getSchemaVersion()) + return false; + } + if (hasTopic() != other.hasTopic()) + return false; + if (hasTopic()) { + if (!getTopic().equals(other.getTopic())) + return false; + } + if (hasPayload() != other.hasPayload()) + return false; + if (hasPayload()) { + if (!getPayload().equals(other.getPayload())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof fi.hsl.common.mqtt.proto.Mqtt.RawMessage)) { - return super.equals(obj); - } - fi.hsl.common.mqtt.proto.Mqtt.RawMessage other = (fi.hsl.common.mqtt.proto.Mqtt.RawMessage) obj; - - if (hasSchemaVersion() != other.hasSchemaVersion()) return false; - if (hasSchemaVersion()) { - if (getSchemaVersion() - != other.getSchemaVersion()) return false; - } - if (hasTopic() != other.hasTopic()) return false; - if (hasTopic()) { - if (!getTopic() - .equals(other.getTopic())) return false; - } - if (hasPayload() != other.hasPayload()) return false; - if (hasPayload()) { - if (!getPayload() - .equals(other.getPayload())) 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 (hasSchemaVersion()) { + hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion(); + } + if (hasTopic()) { + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + } + if (hasPayload()) { + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSchemaVersion()) { - hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getSchemaVersion(); - } - if (hasTopic()) { - hash = (37 * hash) + TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getTopic().hashCode(); - } - if (hasPayload()) { - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.mqtt.proto.Mqtt.RawMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.mqtt.proto.Mqtt.RawMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.RawMessage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.RawMessage) + fi.hsl.common.mqtt.proto.Mqtt.RawMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.mqtt.proto.Mqtt.internal_static_proto_RawMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.mqtt.proto.Mqtt.internal_static_proto_RawMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.mqtt.proto.Mqtt.RawMessage.class, + fi.hsl.common.mqtt.proto.Mqtt.RawMessage.Builder.class); + } + + // Construct using fi.hsl.common.mqtt.proto.Mqtt.RawMessage.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schemaVersion_ = 1; + topic_ = ""; + payload_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.mqtt.proto.Mqtt.internal_static_proto_RawMessage_descriptor; + } + + @java.lang.Override + public fi.hsl.common.mqtt.proto.Mqtt.RawMessage getDefaultInstanceForType() { + return fi.hsl.common.mqtt.proto.Mqtt.RawMessage.getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.mqtt.proto.Mqtt.RawMessage build() { + fi.hsl.common.mqtt.proto.Mqtt.RawMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.mqtt.proto.Mqtt.RawMessage buildPartial() { + fi.hsl.common.mqtt.proto.Mqtt.RawMessage result = new fi.hsl.common.mqtt.proto.Mqtt.RawMessage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(fi.hsl.common.mqtt.proto.Mqtt.RawMessage result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schemaVersion_ = schemaVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.topic_ = topic_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.payload_ = payload_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.mqtt.proto.Mqtt.RawMessage) { + return mergeFrom((fi.hsl.common.mqtt.proto.Mqtt.RawMessage) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.RawMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.RawMessage) - fi.hsl.common.mqtt.proto.Mqtt.RawMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.mqtt.proto.Mqtt.internal_static_proto_RawMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.mqtt.proto.Mqtt.internal_static_proto_RawMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.mqtt.proto.Mqtt.RawMessage.class, fi.hsl.common.mqtt.proto.Mqtt.RawMessage.Builder.class); - } - - // Construct using fi.hsl.common.mqtt.proto.Mqtt.RawMessage.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - schemaVersion_ = 1; - topic_ = ""; - payload_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.mqtt.proto.Mqtt.internal_static_proto_RawMessage_descriptor; - } - - @java.lang.Override - public fi.hsl.common.mqtt.proto.Mqtt.RawMessage getDefaultInstanceForType() { - return fi.hsl.common.mqtt.proto.Mqtt.RawMessage.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.mqtt.proto.Mqtt.RawMessage build() { - fi.hsl.common.mqtt.proto.Mqtt.RawMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.mqtt.proto.Mqtt.RawMessage buildPartial() { - fi.hsl.common.mqtt.proto.Mqtt.RawMessage result = new fi.hsl.common.mqtt.proto.Mqtt.RawMessage(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.mqtt.proto.Mqtt.RawMessage result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.schemaVersion_ = schemaVersion_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.topic_ = topic_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.payload_ = payload_; - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.mqtt.proto.Mqtt.RawMessage) { - return mergeFrom((fi.hsl.common.mqtt.proto.Mqtt.RawMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.mqtt.proto.Mqtt.RawMessage other) { - if (other == fi.hsl.common.mqtt.proto.Mqtt.RawMessage.getDefaultInstance()) return this; - if (other.hasSchemaVersion()) { - setSchemaVersion(other.getSchemaVersion()); - } - if (other.hasTopic()) { - topic_ = other.topic_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasPayload()) { - setPayload(other.getPayload()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSchemaVersion()) { - 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: { - schemaVersion_ = input.readInt32(); + public Builder mergeFrom(fi.hsl.common.mqtt.proto.Mqtt.RawMessage other) { + if (other == fi.hsl.common.mqtt.proto.Mqtt.RawMessage.getDefaultInstance()) + return this; + if (other.hasSchemaVersion()) { + setSchemaVersion(other.getSchemaVersion()); + } + if (other.hasTopic()) { + topic_ = other.topic_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasPayload()) { + setPayload(other.getPayload()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasSchemaVersion()) { + 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 : { + schemaVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18 : { + topic_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26 : { + payload_ = 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 int schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(int value) { + + schemaVersion_ = value; bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - topic_ = input.readBytes(); + onChanged(); + return this; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + schemaVersion_ = 1; + onChanged(); + return this; + } + + private java.lang.Object topic_ = ""; + /** + * optional string topic = 2; + * @return Whether the topic field is set. + */ + public boolean hasTopic() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string topic = 2; + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + topic_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string topic = 2; + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string topic = 2; + * @param value The topic to set. + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topic_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional string topic = 2; + * @return This builder for chaining. + */ + public Builder clearTopic() { + topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * optional string topic = 2; + * @param value The bytes for topic to set. + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + topic_ = value; bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - payload_ = input.readBytes(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes payload = 3; + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional bytes payload = 3; + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + /** + * optional bytes payload = 3; + * @param value The payload to set. + * @return This builder for chaining. + */ + public Builder setPayload(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag + onChanged(); + return this; + } + /** + * optional bytes payload = 3; + * @return This builder for chaining. + */ + public Builder clearPayload() { + bitField0_ = (bitField0_ & ~0x00000004); + payload_ = getDefaultInstance().getPayload(); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.RawMessage) + } + + // @@protoc_insertion_point(class_scope:proto.RawMessage) + private static final fi.hsl.common.mqtt.proto.Mqtt.RawMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.mqtt.proto.Mqtt.RawMessage(); + } + + public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RawMessage parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); } - 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 schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @param value The schemaVersion to set. - * @return This builder for chaining. - */ - public Builder setSchemaVersion(int value) { - - schemaVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return This builder for chaining. - */ - public Builder clearSchemaVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - schemaVersion_ = 1; - onChanged(); - return this; - } - - private java.lang.Object topic_ = ""; - /** - * optional string topic = 2; - * @return Whether the topic field is set. - */ - public boolean hasTopic() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional string topic = 2; - * @return The topic. - */ - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - topic_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string topic = 2; - * @return The bytes for topic. - */ - public com.google.protobuf.ByteString - getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string topic = 2; - * @param value The topic to set. - * @return This builder for chaining. - */ - public Builder setTopic( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - topic_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional string topic = 2; - * @return This builder for chaining. - */ - public Builder clearTopic() { - topic_ = getDefaultInstance().getTopic(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * optional string topic = 2; - * @param value The bytes for topic to set. - * @return This builder for chaining. - */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - topic_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes payload = 3; - * @return Whether the payload field is set. - */ - @java.lang.Override - public boolean hasPayload() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional bytes payload = 3; - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - /** - * optional bytes payload = 3; - * @param value The payload to set. - * @return This builder for chaining. - */ - public Builder setPayload(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - payload_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * optional bytes payload = 3; - * @return This builder for chaining. - */ - public Builder clearPayload() { - bitField0_ = (bitField0_ & ~0x00000004); - payload_ = getDefaultInstance().getPayload(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.RawMessage) - } + return builder.buildPartial(); + } + }; - // @@protoc_insertion_point(class_scope:proto.RawMessage) - private static final fi.hsl.common.mqtt.proto.Mqtt.RawMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.mqtt.proto.Mqtt.RawMessage(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static fi.hsl.common.mqtt.proto.Mqtt.RawMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RawMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public fi.hsl.common.mqtt.proto.Mqtt.RawMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; } - @java.lang.Override - public fi.hsl.common.mqtt.proto.Mqtt.RawMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_RawMessage_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_RawMessage_fieldAccessorTable; - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_RawMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_RawMessage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\nmqtt.proto\022\005proto\"F\n\nRawMessage\022\030\n\rSch" + - "emaVersion\030\001 \002(\005:\0011\022\r\n\005topic\030\002 \001(\t\022\017\n\007pa" + - "yload\030\003 \001(\014B \n\030fi.hsl.common.mqtt.protoB" + - "\004Mqtt" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_proto_RawMessage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_proto_RawMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_RawMessage_descriptor, - new java.lang.String[] { "SchemaVersion", "Topic", "Payload", }); - } - - // @@protoc_insertion_point(outer_class_scope) + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = {"\n\nmqtt.proto\022\005proto\"F\n\nRawMessage\022\030\n\rSch" + + "emaVersion\030\001 \002(\005:\0011\022\r\n\005topic\030\002 \001(\t\022\017\n\007pa" + + "yload\030\003 \001(\014B \n\030fi.hsl.common.mqtt.protoB" + "\004Mqtt"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[]{}); + internal_static_proto_RawMessage_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_proto_RawMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_RawMessage_descriptor, + new java.lang.String[]{"SchemaVersion", "Topic", "Payload",}); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java b/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java index 0d463508..e4d80045 100644 --- a/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java +++ b/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java @@ -139,7 +139,7 @@ public Optional parsePayload(@NotNull ApcJson json) { log.warn("Field 'doorcounts' is null for vehicle {}/{}", payload.oper, payload.veh); return Optional.empty(); } - + payloadBuilder.setVehicleCounts(vehicleBuilder); return Optional.of(payloadBuilder.build()); } @@ -168,21 +168,21 @@ public static Optional safeParseTopic(@NotNull String topi public static PassengerCount.Topic parseTopic(@NotNull String topic) throws InvalidAPCTopicException { return parseTopic(topic, System.currentTimeMillis()); } - + @NotNull - public static PassengerCount.Topic parseTopic(@NotNull String topic, long receivedMs) throws InvalidAPCTopicException { + public static PassengerCount.Topic parseTopic(@NotNull String topic, long receivedMs) + throws InvalidAPCTopicException { //log.debug("Parsing metadata from topic: " + topic); final String[] parts = topic.split("/", -1); //-1 to include empty substrings - + final PassengerCount.Topic.Builder builder = PassengerCount.Topic.newBuilder(); - + builder.setSchemaVersion(builder.getSchemaVersion()); builder.setReceivedAt(receivedMs); - - + int versionIndex = findVersionIndex(parts); - if (versionIndex < 0 ) { + if (versionIndex < 0) { throw new InvalidAPCTopicException("Failed to find topic version from topic " + topic); } builder.setTopicPrefix(joinFirstNParts(parts, versionIndex, "/")); @@ -190,27 +190,23 @@ public static PassengerCount.Topic parseTopic(@NotNull String topic, long receiv final String versionStr = parts[index++]; builder.setTopicVersion(versionStr); - final PassengerCount.Topic.JourneyType journeyType = - safeValueOf(PassengerCount.Topic.JourneyType.class, parts[index++]) - .orElseThrow(() -> new InvalidAPCTopicException("Unknown journey type: " + topic)); + final PassengerCount.Topic.JourneyType journeyType = safeValueOf(PassengerCount.Topic.JourneyType.class, + parts[index++]).orElseThrow(() -> new InvalidAPCTopicException("Unknown journey type: " + topic)); builder.setJourneyType(journeyType); - final PassengerCount.Topic.TemporalType temporalType = - safeValueOf(PassengerCount.Topic.TemporalType.class, parts[index++]) - .orElseThrow(() -> new InvalidAPCTopicException("Unknown temporal type: " + topic)); + final PassengerCount.Topic.TemporalType temporalType = safeValueOf(PassengerCount.Topic.TemporalType.class, + parts[index++]).orElseThrow(() -> new InvalidAPCTopicException("Unknown temporal type: " + topic)); builder.setTemporalType(temporalType); - final PassengerCount.Topic.EventType eventType = - safeValueOf(PassengerCount.Topic.EventType.class, parts[index++]) - .orElseThrow(() -> new InvalidAPCTopicException("Unknown event type: " + topic)); + final PassengerCount.Topic.EventType eventType = safeValueOf(PassengerCount.Topic.EventType.class, + parts[index++]).orElseThrow(() -> new InvalidAPCTopicException("Unknown event type: " + topic)); builder.setEventType(eventType); - final String strTransportMode = parts[index++]; if (strTransportMode != null && !strTransportMode.isEmpty()) { - final PassengerCount.Topic.TransportMode transportMode = - safeValueOf(PassengerCount.Topic.TransportMode.class, strTransportMode) - .orElseThrow(() -> new InvalidAPCTopicException("Unknown transport mode: " + topic)); + final PassengerCount.Topic.TransportMode transportMode = safeValueOf( + PassengerCount.Topic.TransportMode.class, strTransportMode) + .orElseThrow(() -> new InvalidAPCTopicException("Unknown transport mode: " + topic)); builder.setTransportMode(transportMode); } @@ -219,9 +215,8 @@ public static PassengerCount.Topic parseTopic(@NotNull String topic, long receiv return builder.build(); } - - public ApcJson toJson(PassengerCount.Payload passengerCountPayload){ + public ApcJson toJson(PassengerCount.Payload passengerCountPayload) { ApcJson apcJson = new ApcJson(); apcJson.apc = new Apc(); apcJson.apc.veh = passengerCountPayload.getVeh(); @@ -263,20 +258,19 @@ public ApcJson toJson(PassengerCount.Payload passengerCountPayload){ return apcJson; } - public OutputStream serializeJson(ApcJson apcJson, OutputStream outputStream) throws IOException { dslJson.serialize(apcJson, outputStream); return outputStream; } - @Nullable public ApcJson parseJson(byte @NotNull [] data) throws IOException, InvalidAPCPayloadException { try { return dslJson.deserialize(ApcJson.class, data, data.length); } catch (IOException ioe) { if (ioe instanceof ParsingException) { - throw new PassengerCountParser.InvalidAPCPayloadException("Failed to parse APC JSON", (ParsingException)ioe); + throw new PassengerCountParser.InvalidAPCPayloadException("Failed to parse APC JSON", + (ParsingException) ioe); } else { throw ioe; } diff --git a/src/main/java/fi/hsl/common/passengercount/json/Count.java b/src/main/java/fi/hsl/common/passengercount/json/Count.java index 354e83bf..70dcf943 100644 --- a/src/main/java/fi/hsl/common/passengercount/json/Count.java +++ b/src/main/java/fi/hsl/common/passengercount/json/Count.java @@ -4,7 +4,7 @@ import com.dslplatform.json.JsonAttribute; @CompiledJson(onUnknown = CompiledJson.Behavior.IGNORE) -public class Count{ +public class Count { @JsonAttribute(nullable = false, name = "class") public String clazz; diff --git a/src/main/java/fi/hsl/common/passengercount/json/DoorCount.java b/src/main/java/fi/hsl/common/passengercount/json/DoorCount.java index 39040323..633b8e33 100644 --- a/src/main/java/fi/hsl/common/passengercount/json/DoorCount.java +++ b/src/main/java/fi/hsl/common/passengercount/json/DoorCount.java @@ -5,7 +5,7 @@ import java.util.List; @CompiledJson(onUnknown = CompiledJson.Behavior.IGNORE) -public class DoorCount{ +public class DoorCount { public String door; public List count; } \ No newline at end of file diff --git a/src/main/java/fi/hsl/common/passengercount/proto/PassengerCount.java b/src/main/java/fi/hsl/common/passengercount/proto/PassengerCount.java index e4a85e60..76012038 100644 --- a/src/main/java/fi/hsl/common/passengercount/proto/PassengerCount.java +++ b/src/main/java/fi/hsl/common/passengercount/proto/PassengerCount.java @@ -4,9164 +4,8858 @@ package fi.hsl.common.passengercount.proto; public final class PassengerCount { - private PassengerCount() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DataOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.Data) - com.google.protobuf.MessageOrBuilder { - - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - boolean hasSchemaVersion(); + private PassengerCount() { + } + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.Data) + com.google.protobuf.MessageOrBuilder { + + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + boolean hasSchemaVersion(); + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + int getSchemaVersion(); + + /** + * optional .proto.Topic topic = 2; + * @return Whether the topic field is set. + */ + boolean hasTopic(); + /** + * optional .proto.Topic topic = 2; + * @return The topic. + */ + fi.hsl.common.passengercount.proto.PassengerCount.Topic getTopic(); + /** + * optional .proto.Topic topic = 2; + */ + fi.hsl.common.passengercount.proto.PassengerCount.TopicOrBuilder getTopicOrBuilder(); + + /** + * required .proto.Payload payload = 3; + * @return Whether the payload field is set. + */ + boolean hasPayload(); + /** + * required .proto.Payload payload = 3; + * @return The payload. + */ + fi.hsl.common.passengercount.proto.PassengerCount.Payload getPayload(); + /** + * required .proto.Payload payload = 3; + */ + fi.hsl.common.passengercount.proto.PassengerCount.PayloadOrBuilder getPayloadOrBuilder(); + + /** + * optional int64 received_at = 4; + * @return Whether the receivedAt field is set. + */ + boolean hasReceivedAt(); + /** + * optional int64 received_at = 4; + * @return The receivedAt. + */ + long getReceivedAt(); + } /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. + * Protobuf type {@code proto.Data} */ - int getSchemaVersion(); + public static final class Data extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.Data) + DataOrBuilder { + private static final long serialVersionUID = 0L; + // Use Data.newBuilder() to construct. + private Data(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Data() { + schemaVersion_ = 1; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Data(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Data_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Data_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.passengercount.proto.PassengerCount.Data.class, + fi.hsl.common.passengercount.proto.PassengerCount.Data.Builder.class); + } + + private int bitField0_; + public static final int SCHEMAVERSION_FIELD_NUMBER = 1; + private int schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + + public static final int TOPIC_FIELD_NUMBER = 2; + private fi.hsl.common.passengercount.proto.PassengerCount.Topic topic_; + /** + * optional .proto.Topic topic = 2; + * @return Whether the topic field is set. + */ + @java.lang.Override + public boolean hasTopic() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .proto.Topic topic = 2; + * @return The topic. + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Topic getTopic() { + return topic_ == null + ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDefaultInstance() + : topic_; + } + /** + * optional .proto.Topic topic = 2; + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.TopicOrBuilder getTopicOrBuilder() { + return topic_ == null + ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDefaultInstance() + : topic_; + } + + public static final int PAYLOAD_FIELD_NUMBER = 3; + private fi.hsl.common.passengercount.proto.PassengerCount.Payload payload_; + /** + * required .proto.Payload payload = 3; + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required .proto.Payload payload = 3; + * @return The payload. + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Payload getPayload() { + return payload_ == null + ? fi.hsl.common.passengercount.proto.PassengerCount.Payload.getDefaultInstance() + : payload_; + } + /** + * required .proto.Payload payload = 3; + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.PayloadOrBuilder getPayloadOrBuilder() { + return payload_ == null + ? fi.hsl.common.passengercount.proto.PassengerCount.Payload.getDefaultInstance() + : payload_; + } + + public static final int RECEIVED_AT_FIELD_NUMBER = 4; + private long receivedAt_ = 0L; + /** + * optional int64 received_at = 4; + * @return Whether the receivedAt field is set. + */ + @java.lang.Override + public boolean hasReceivedAt() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int64 received_at = 4; + * @return The receivedAt. + */ + @java.lang.Override + public long getReceivedAt() { + return receivedAt_; + } + + 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 (!hasSchemaVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPayload()) { + memoizedIsInitialized = 0; + return false; + } + if (hasTopic()) { + if (!getTopic().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - /** - * optional .proto.Topic topic = 2; - * @return Whether the topic field is set. - */ - boolean hasTopic(); - /** - * optional .proto.Topic topic = 2; - * @return The topic. - */ - fi.hsl.common.passengercount.proto.PassengerCount.Topic getTopic(); - /** - * optional .proto.Topic topic = 2; - */ - fi.hsl.common.passengercount.proto.PassengerCount.TopicOrBuilder getTopicOrBuilder(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTopic()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getPayload()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(4, receivedAt_); + } + getUnknownFields().writeTo(output); + } - /** - * required .proto.Payload payload = 3; - * @return Whether the payload field is set. - */ - boolean hasPayload(); - /** - * required .proto.Payload payload = 3; - * @return The payload. - */ - fi.hsl.common.passengercount.proto.PassengerCount.Payload getPayload(); - /** - * required .proto.Payload payload = 3; - */ - fi.hsl.common.passengercount.proto.PassengerCount.PayloadOrBuilder getPayloadOrBuilder(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - /** - * optional int64 received_at = 4; - * @return Whether the receivedAt field is set. - */ - boolean hasReceivedAt(); - /** - * optional int64 received_at = 4; - * @return The receivedAt. - */ - long getReceivedAt(); - } - /** - * Protobuf type {@code proto.Data} - */ - public static final class Data extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.Data) - DataOrBuilder { - private static final long serialVersionUID = 0L; - // Use Data.newBuilder() to construct. - private Data(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Data() { - schemaVersion_ = 1; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTopic()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPayload()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, receivedAt_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Data(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof fi.hsl.common.passengercount.proto.PassengerCount.Data)) { + return super.equals(obj); + } + fi.hsl.common.passengercount.proto.PassengerCount.Data other = (fi.hsl.common.passengercount.proto.PassengerCount.Data) obj; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Data_descriptor; - } + if (hasSchemaVersion() != other.hasSchemaVersion()) + return false; + if (hasSchemaVersion()) { + if (getSchemaVersion() != other.getSchemaVersion()) + return false; + } + if (hasTopic() != other.hasTopic()) + return false; + if (hasTopic()) { + if (!getTopic().equals(other.getTopic())) + return false; + } + if (hasPayload() != other.hasPayload()) + return false; + if (hasPayload()) { + if (!getPayload().equals(other.getPayload())) + return false; + } + if (hasReceivedAt() != other.hasReceivedAt()) + return false; + if (hasReceivedAt()) { + if (getReceivedAt() != other.getReceivedAt()) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.passengercount.proto.PassengerCount.Data.class, fi.hsl.common.passengercount.proto.PassengerCount.Data.Builder.class); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSchemaVersion()) { + hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion(); + } + if (hasTopic()) { + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + } + if (hasPayload()) { + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + } + if (hasReceivedAt()) { + hash = (37 * hash) + RECEIVED_AT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReceivedAt()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - private int bitField0_; - public static final int SCHEMAVERSION_FIELD_NUMBER = 1; - private int schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.passengercount.proto.PassengerCount.Data prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int TOPIC_FIELD_NUMBER = 2; - private fi.hsl.common.passengercount.proto.PassengerCount.Topic topic_; - /** - * optional .proto.Topic topic = 2; - * @return Whether the topic field is set. - */ - @java.lang.Override - public boolean hasTopic() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .proto.Topic topic = 2; - * @return The topic. - */ - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Topic getTopic() { - return topic_ == null ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDefaultInstance() : topic_; - } - /** - * optional .proto.Topic topic = 2; - */ - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.TopicOrBuilder getTopicOrBuilder() { - return topic_ == null ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDefaultInstance() : topic_; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.Data} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.Data) + fi.hsl.common.passengercount.proto.PassengerCount.DataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Data_descriptor; + } - public static final int PAYLOAD_FIELD_NUMBER = 3; - private fi.hsl.common.passengercount.proto.PassengerCount.Payload payload_; - /** - * required .proto.Payload payload = 3; - * @return Whether the payload field is set. - */ - @java.lang.Override - public boolean hasPayload() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required .proto.Payload payload = 3; - * @return The payload. - */ - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Payload getPayload() { - return payload_ == null ? fi.hsl.common.passengercount.proto.PassengerCount.Payload.getDefaultInstance() : payload_; - } - /** - * required .proto.Payload payload = 3; - */ - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.PayloadOrBuilder getPayloadOrBuilder() { - return payload_ == null ? fi.hsl.common.passengercount.proto.PassengerCount.Payload.getDefaultInstance() : payload_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Data_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.passengercount.proto.PassengerCount.Data.class, + fi.hsl.common.passengercount.proto.PassengerCount.Data.Builder.class); + } - public static final int RECEIVED_AT_FIELD_NUMBER = 4; - private long receivedAt_ = 0L; - /** - * optional int64 received_at = 4; - * @return Whether the receivedAt field is set. - */ - @java.lang.Override - public boolean hasReceivedAt() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional int64 received_at = 4; - * @return The receivedAt. - */ - @java.lang.Override - public long getReceivedAt() { - return receivedAt_; - } + // Construct using fi.hsl.common.passengercount.proto.PassengerCount.Data.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - 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 (!hasSchemaVersion()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPayload()) { - memoizedIsInitialized = 0; - return false; - } - if (hasTopic()) { - if (!getTopic().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTopicFieldBuilder(); + getPayloadFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schemaVersion_ = 1; + topic_ = null; + if (topicBuilder_ != null) { + topicBuilder_.dispose(); + topicBuilder_ = null; + } + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); + payloadBuilder_ = null; + } + receivedAt_ = 0L; + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getTopic()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getPayload()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeInt64(4, receivedAt_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Data_descriptor; + } - @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, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTopic()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPayload()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, receivedAt_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Data getDefaultInstanceForType() { + return fi.hsl.common.passengercount.proto.PassengerCount.Data.getDefaultInstance(); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof fi.hsl.common.passengercount.proto.PassengerCount.Data)) { - return super.equals(obj); - } - fi.hsl.common.passengercount.proto.PassengerCount.Data other = (fi.hsl.common.passengercount.proto.PassengerCount.Data) obj; - - if (hasSchemaVersion() != other.hasSchemaVersion()) return false; - if (hasSchemaVersion()) { - if (getSchemaVersion() - != other.getSchemaVersion()) return false; - } - if (hasTopic() != other.hasTopic()) return false; - if (hasTopic()) { - if (!getTopic() - .equals(other.getTopic())) return false; - } - if (hasPayload() != other.hasPayload()) return false; - if (hasPayload()) { - if (!getPayload() - .equals(other.getPayload())) return false; - } - if (hasReceivedAt() != other.hasReceivedAt()) return false; - if (hasReceivedAt()) { - if (getReceivedAt() - != other.getReceivedAt()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Data build() { + fi.hsl.common.passengercount.proto.PassengerCount.Data result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSchemaVersion()) { - hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getSchemaVersion(); - } - if (hasTopic()) { - hash = (37 * hash) + TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getTopic().hashCode(); - } - if (hasPayload()) { - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - } - if (hasReceivedAt()) { - hash = (37 * hash) + RECEIVED_AT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getReceivedAt()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Data buildPartial() { + fi.hsl.common.passengercount.proto.PassengerCount.Data result = new fi.hsl.common.passengercount.proto.PassengerCount.Data( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Data parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private void buildPartial0(fi.hsl.common.passengercount.proto.PassengerCount.Data result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schemaVersion_ = schemaVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.topic_ = topicBuilder_ == null ? topic_ : topicBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.receivedAt_ = receivedAt_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.passengercount.proto.PassengerCount.Data prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.passengercount.proto.PassengerCount.Data) { + return mergeFrom((fi.hsl.common.passengercount.proto.PassengerCount.Data) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.Data} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.Data) - fi.hsl.common.passengercount.proto.PassengerCount.DataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Data_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.passengercount.proto.PassengerCount.Data.class, fi.hsl.common.passengercount.proto.PassengerCount.Data.Builder.class); - } - - // Construct using fi.hsl.common.passengercount.proto.PassengerCount.Data.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTopicFieldBuilder(); - getPayloadFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - schemaVersion_ = 1; - topic_ = null; - if (topicBuilder_ != null) { - topicBuilder_.dispose(); - topicBuilder_ = null; - } - payload_ = null; - if (payloadBuilder_ != null) { - payloadBuilder_.dispose(); - payloadBuilder_ = null; - } - receivedAt_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Data_descriptor; - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Data getDefaultInstanceForType() { - return fi.hsl.common.passengercount.proto.PassengerCount.Data.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Data build() { - fi.hsl.common.passengercount.proto.PassengerCount.Data result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Data buildPartial() { - fi.hsl.common.passengercount.proto.PassengerCount.Data result = new fi.hsl.common.passengercount.proto.PassengerCount.Data(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.passengercount.proto.PassengerCount.Data result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.schemaVersion_ = schemaVersion_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.topic_ = topicBuilder_ == null - ? topic_ - : topicBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.payload_ = payloadBuilder_ == null - ? payload_ - : payloadBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.receivedAt_ = receivedAt_; - to_bitField0_ |= 0x00000008; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.passengercount.proto.PassengerCount.Data) { - return mergeFrom((fi.hsl.common.passengercount.proto.PassengerCount.Data)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.passengercount.proto.PassengerCount.Data other) { - if (other == fi.hsl.common.passengercount.proto.PassengerCount.Data.getDefaultInstance()) return this; - if (other.hasSchemaVersion()) { - setSchemaVersion(other.getSchemaVersion()); - } - if (other.hasTopic()) { - mergeTopic(other.getTopic()); - } - if (other.hasPayload()) { - mergePayload(other.getPayload()); - } - if (other.hasReceivedAt()) { - setReceivedAt(other.getReceivedAt()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSchemaVersion()) { - return false; - } - if (!hasPayload()) { - return false; - } - if (hasTopic()) { - if (!getTopic().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: { - schemaVersion_ = input.readInt32(); + public Builder mergeFrom(fi.hsl.common.passengercount.proto.PassengerCount.Data other) { + if (other == fi.hsl.common.passengercount.proto.PassengerCount.Data.getDefaultInstance()) + return this; + if (other.hasSchemaVersion()) { + setSchemaVersion(other.getSchemaVersion()); + } + if (other.hasTopic()) { + mergeTopic(other.getTopic()); + } + if (other.hasPayload()) { + mergePayload(other.getPayload()); + } + if (other.hasReceivedAt()) { + setReceivedAt(other.getReceivedAt()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasSchemaVersion()) { + return false; + } + if (!hasPayload()) { + return false; + } + if (hasTopic()) { + if (!getTopic().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 : { + schemaVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18 : { + input.readMessage(getTopicFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26 : { + input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32 : { + receivedAt_ = input.readInt64(); + 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 schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(int value) { + + schemaVersion_ = value; bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getTopicFieldBuilder().getBuilder(), - extensionRegistry); + onChanged(); + return this; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + schemaVersion_ = 1; + onChanged(); + return this; + } + + private fi.hsl.common.passengercount.proto.PassengerCount.Topic topic_; + private com.google.protobuf.SingleFieldBuilderV3 topicBuilder_; + /** + * optional .proto.Topic topic = 2; + * @return Whether the topic field is set. + */ + public boolean hasTopic() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .proto.Topic topic = 2; + * @return The topic. + */ + public fi.hsl.common.passengercount.proto.PassengerCount.Topic getTopic() { + if (topicBuilder_ == null) { + return topic_ == null + ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDefaultInstance() + : topic_; + } else { + return topicBuilder_.getMessage(); + } + } + /** + * optional .proto.Topic topic = 2; + */ + public Builder setTopic(fi.hsl.common.passengercount.proto.PassengerCount.Topic value) { + if (topicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + topic_ = value; + } else { + topicBuilder_.setMessage(value); + } bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getPayloadFieldBuilder().getBuilder(), - extensionRegistry); + onChanged(); + return this; + } + /** + * optional .proto.Topic topic = 2; + */ + public Builder setTopic(fi.hsl.common.passengercount.proto.PassengerCount.Topic.Builder builderForValue) { + if (topicBuilder_ == null) { + topic_ = builderForValue.build(); + } else { + topicBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional .proto.Topic topic = 2; + */ + public Builder mergeTopic(fi.hsl.common.passengercount.proto.PassengerCount.Topic value) { + if (topicBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && topic_ != null + && topic_ != fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDefaultInstance()) { + getTopicBuilder().mergeFrom(value); + } else { + topic_ = value; + } + } else { + topicBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional .proto.Topic topic = 2; + */ + public Builder clearTopic() { + bitField0_ = (bitField0_ & ~0x00000002); + topic_ = null; + if (topicBuilder_ != null) { + topicBuilder_.dispose(); + topicBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .proto.Topic topic = 2; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.Topic.Builder getTopicBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTopicFieldBuilder().getBuilder(); + } + /** + * optional .proto.Topic topic = 2; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.TopicOrBuilder getTopicOrBuilder() { + if (topicBuilder_ != null) { + return topicBuilder_.getMessageOrBuilder(); + } else { + return topic_ == null + ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDefaultInstance() + : topic_; + } + } + /** + * optional .proto.Topic topic = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTopicFieldBuilder() { + if (topicBuilder_ == null) { + topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTopic(), getParentForChildren(), isClean()); + topic_ = null; + } + return topicBuilder_; + } + + private fi.hsl.common.passengercount.proto.PassengerCount.Payload payload_; + private com.google.protobuf.SingleFieldBuilderV3 payloadBuilder_; + /** + * required .proto.Payload payload = 3; + * @return Whether the payload field is set. + */ + public boolean hasPayload() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required .proto.Payload payload = 3; + * @return The payload. + */ + public fi.hsl.common.passengercount.proto.PassengerCount.Payload getPayload() { + if (payloadBuilder_ == null) { + return payload_ == null + ? fi.hsl.common.passengercount.proto.PassengerCount.Payload.getDefaultInstance() + : payload_; + } else { + return payloadBuilder_.getMessage(); + } + } + /** + * required .proto.Payload payload = 3; + */ + public Builder setPayload(fi.hsl.common.passengercount.proto.PassengerCount.Payload value) { + if (payloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + } else { + payloadBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required .proto.Payload payload = 3; + */ + public Builder setPayload( + fi.hsl.common.passengercount.proto.PassengerCount.Payload.Builder builderForValue) { + if (payloadBuilder_ == null) { + payload_ = builderForValue.build(); + } else { + payloadBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required .proto.Payload payload = 3; + */ + public Builder mergePayload(fi.hsl.common.passengercount.proto.PassengerCount.Payload value) { + if (payloadBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && payload_ != null + && payload_ != fi.hsl.common.passengercount.proto.PassengerCount.Payload + .getDefaultInstance()) { + getPayloadBuilder().mergeFrom(value); + } else { + payload_ = value; + } + } else { + payloadBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required .proto.Payload payload = 3; + */ + public Builder clearPayload() { + bitField0_ = (bitField0_ & ~0x00000004); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); + payloadBuilder_ = null; + } + onChanged(); + return this; + } + /** + * required .proto.Payload payload = 3; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.Payload.Builder getPayloadBuilder() { bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - receivedAt_ = input.readInt64(); + onChanged(); + return getPayloadFieldBuilder().getBuilder(); + } + /** + * required .proto.Payload payload = 3; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.PayloadOrBuilder getPayloadOrBuilder() { + if (payloadBuilder_ != null) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + return payload_ == null + ? fi.hsl.common.passengercount.proto.PassengerCount.Payload.getDefaultInstance() + : payload_; + } + } + /** + * required .proto.Payload payload = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getPayload(), getParentForChildren(), isClean()); + payload_ = null; + } + return payloadBuilder_; + } + + private long receivedAt_; + /** + * optional int64 received_at = 4; + * @return Whether the receivedAt field is set. + */ + @java.lang.Override + public boolean hasReceivedAt() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int64 received_at = 4; + * @return The receivedAt. + */ + @java.lang.Override + public long getReceivedAt() { + return receivedAt_; + } + /** + * optional int64 received_at = 4; + * @param value The receivedAt to set. + * @return This builder for chaining. + */ + public Builder setReceivedAt(long value) { + + receivedAt_ = value; 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 schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @param value The schemaVersion to set. - * @return This builder for chaining. - */ - public Builder setSchemaVersion(int value) { - - schemaVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return This builder for chaining. - */ - public Builder clearSchemaVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - schemaVersion_ = 1; - onChanged(); - return this; - } - - private fi.hsl.common.passengercount.proto.PassengerCount.Topic topic_; - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.passengercount.proto.PassengerCount.Topic, fi.hsl.common.passengercount.proto.PassengerCount.Topic.Builder, fi.hsl.common.passengercount.proto.PassengerCount.TopicOrBuilder> topicBuilder_; - /** - * optional .proto.Topic topic = 2; - * @return Whether the topic field is set. - */ - public boolean hasTopic() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .proto.Topic topic = 2; - * @return The topic. - */ - public fi.hsl.common.passengercount.proto.PassengerCount.Topic getTopic() { - if (topicBuilder_ == null) { - return topic_ == null ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDefaultInstance() : topic_; - } else { - return topicBuilder_.getMessage(); - } - } - /** - * optional .proto.Topic topic = 2; - */ - public Builder setTopic(fi.hsl.common.passengercount.proto.PassengerCount.Topic value) { - if (topicBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - topic_ = value; - } else { - topicBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional .proto.Topic topic = 2; - */ - public Builder setTopic( - fi.hsl.common.passengercount.proto.PassengerCount.Topic.Builder builderForValue) { - if (topicBuilder_ == null) { - topic_ = builderForValue.build(); - } else { - topicBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional .proto.Topic topic = 2; - */ - public Builder mergeTopic(fi.hsl.common.passengercount.proto.PassengerCount.Topic value) { - if (topicBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - topic_ != null && - topic_ != fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDefaultInstance()) { - getTopicBuilder().mergeFrom(value); - } else { - topic_ = value; - } - } else { - topicBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional .proto.Topic topic = 2; - */ - public Builder clearTopic() { - bitField0_ = (bitField0_ & ~0x00000002); - topic_ = null; - if (topicBuilder_ != null) { - topicBuilder_.dispose(); - topicBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .proto.Topic topic = 2; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.Topic.Builder getTopicBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getTopicFieldBuilder().getBuilder(); - } - /** - * optional .proto.Topic topic = 2; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.TopicOrBuilder getTopicOrBuilder() { - if (topicBuilder_ != null) { - return topicBuilder_.getMessageOrBuilder(); - } else { - return topic_ == null ? - fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDefaultInstance() : topic_; - } - } - /** - * optional .proto.Topic topic = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.passengercount.proto.PassengerCount.Topic, fi.hsl.common.passengercount.proto.PassengerCount.Topic.Builder, fi.hsl.common.passengercount.proto.PassengerCount.TopicOrBuilder> - getTopicFieldBuilder() { - if (topicBuilder_ == null) { - topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.passengercount.proto.PassengerCount.Topic, fi.hsl.common.passengercount.proto.PassengerCount.Topic.Builder, fi.hsl.common.passengercount.proto.PassengerCount.TopicOrBuilder>( - getTopic(), - getParentForChildren(), - isClean()); - topic_ = null; - } - return topicBuilder_; - } - - private fi.hsl.common.passengercount.proto.PassengerCount.Payload payload_; - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.passengercount.proto.PassengerCount.Payload, fi.hsl.common.passengercount.proto.PassengerCount.Payload.Builder, fi.hsl.common.passengercount.proto.PassengerCount.PayloadOrBuilder> payloadBuilder_; - /** - * required .proto.Payload payload = 3; - * @return Whether the payload field is set. - */ - public boolean hasPayload() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required .proto.Payload payload = 3; - * @return The payload. - */ - public fi.hsl.common.passengercount.proto.PassengerCount.Payload getPayload() { - if (payloadBuilder_ == null) { - return payload_ == null ? fi.hsl.common.passengercount.proto.PassengerCount.Payload.getDefaultInstance() : payload_; - } else { - return payloadBuilder_.getMessage(); - } - } - /** - * required .proto.Payload payload = 3; - */ - public Builder setPayload(fi.hsl.common.passengercount.proto.PassengerCount.Payload value) { - if (payloadBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - } else { - payloadBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required .proto.Payload payload = 3; - */ - public Builder setPayload( - fi.hsl.common.passengercount.proto.PassengerCount.Payload.Builder builderForValue) { - if (payloadBuilder_ == null) { - payload_ = builderForValue.build(); - } else { - payloadBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required .proto.Payload payload = 3; - */ - public Builder mergePayload(fi.hsl.common.passengercount.proto.PassengerCount.Payload value) { - if (payloadBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - payload_ != null && - payload_ != fi.hsl.common.passengercount.proto.PassengerCount.Payload.getDefaultInstance()) { - getPayloadBuilder().mergeFrom(value); - } else { - payload_ = value; - } - } else { - payloadBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required .proto.Payload payload = 3; - */ - public Builder clearPayload() { - bitField0_ = (bitField0_ & ~0x00000004); - payload_ = null; - if (payloadBuilder_ != null) { - payloadBuilder_.dispose(); - payloadBuilder_ = null; - } - onChanged(); - return this; - } - /** - * required .proto.Payload payload = 3; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.Payload.Builder getPayloadBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getPayloadFieldBuilder().getBuilder(); - } - /** - * required .proto.Payload payload = 3; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.PayloadOrBuilder getPayloadOrBuilder() { - if (payloadBuilder_ != null) { - return payloadBuilder_.getMessageOrBuilder(); - } else { - return payload_ == null ? - fi.hsl.common.passengercount.proto.PassengerCount.Payload.getDefaultInstance() : payload_; - } - } - /** - * required .proto.Payload payload = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.passengercount.proto.PassengerCount.Payload, fi.hsl.common.passengercount.proto.PassengerCount.Payload.Builder, fi.hsl.common.passengercount.proto.PassengerCount.PayloadOrBuilder> - getPayloadFieldBuilder() { - if (payloadBuilder_ == null) { - payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.passengercount.proto.PassengerCount.Payload, fi.hsl.common.passengercount.proto.PassengerCount.Payload.Builder, fi.hsl.common.passengercount.proto.PassengerCount.PayloadOrBuilder>( - getPayload(), - getParentForChildren(), - isClean()); - payload_ = null; - } - return payloadBuilder_; - } - - private long receivedAt_ ; - /** - * optional int64 received_at = 4; - * @return Whether the receivedAt field is set. - */ - @java.lang.Override - public boolean hasReceivedAt() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional int64 received_at = 4; - * @return The receivedAt. - */ - @java.lang.Override - public long getReceivedAt() { - return receivedAt_; - } - /** - * optional int64 received_at = 4; - * @param value The receivedAt to set. - * @return This builder for chaining. - */ - public Builder setReceivedAt(long value) { - - receivedAt_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * optional int64 received_at = 4; - * @return This builder for chaining. - */ - public Builder clearReceivedAt() { - bitField0_ = (bitField0_ & ~0x00000008); - receivedAt_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.Data) - } + onChanged(); + return this; + } + /** + * optional int64 received_at = 4; + * @return This builder for chaining. + */ + public Builder clearReceivedAt() { + bitField0_ = (bitField0_ & ~0x00000008); + receivedAt_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(class_scope:proto.Data) - private static final fi.hsl.common.passengercount.proto.PassengerCount.Data DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.passengercount.proto.PassengerCount.Data(); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static fi.hsl.common.passengercount.proto.PassengerCount.Data getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(builder_scope:proto.Data) + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Data parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:proto.Data) + private static final fi.hsl.common.passengercount.proto.PassengerCount.Data DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.passengercount.proto.PassengerCount.Data(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static fi.hsl.common.passengercount.proto.PassengerCount.Data getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Data getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Data parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Data getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TopicOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.Topic) + com.google.protobuf.MessageOrBuilder { + + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + boolean hasSchemaVersion(); + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + int getSchemaVersion(); + + /** + *
+         * Our server timestamp as Epoch ms
+         * 
+ * + * required int64 received_at = 2; + * @return Whether the receivedAt field is set. + */ + boolean hasReceivedAt(); + /** + *
+         * Our server timestamp as Epoch ms
+         * 
+ * + * required int64 received_at = 2; + * @return The receivedAt. + */ + long getReceivedAt(); + + /** + * required string topic_prefix = 3; + * @return Whether the topicPrefix field is set. + */ + boolean hasTopicPrefix(); + /** + * required string topic_prefix = 3; + * @return The topicPrefix. + */ + java.lang.String getTopicPrefix(); + /** + * required string topic_prefix = 3; + * @return The bytes for topicPrefix. + */ + com.google.protobuf.ByteString getTopicPrefixBytes(); + + /** + * required string topic_version = 4; + * @return Whether the topicVersion field is set. + */ + boolean hasTopicVersion(); + /** + * required string topic_version = 4; + * @return The topicVersion. + */ + java.lang.String getTopicVersion(); + /** + * required string topic_version = 4; + * @return The bytes for topicVersion. + */ + com.google.protobuf.ByteString getTopicVersionBytes(); + + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @return Whether the journeyType field is set. + */ + boolean hasJourneyType(); + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @return The journeyType. + */ + fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType getJourneyType(); + + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @return Whether the temporalType field is set. + */ + boolean hasTemporalType(); + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @return The temporalType. + */ + fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType getTemporalType(); + + /** + * required .proto.Topic.EventType event_type = 7; + * @return Whether the eventType field is set. + */ + boolean hasEventType(); + /** + * required .proto.Topic.EventType event_type = 7; + * @return The eventType. + */ + fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType getEventType(); + + /** + *
+         * Optional because of rare bug in data source systems
+         * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @return Whether the transportMode field is set. + */ + boolean hasTransportMode(); + /** + *
+         * Optional because of rare bug in data source systems
+         * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @return The transportMode. + */ + fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode getTransportMode(); + + /** + * required int32 operator_id = 9; + * @return Whether the operatorId field is set. + */ + boolean hasOperatorId(); + /** + * required int32 operator_id = 9; + * @return The operatorId. + */ + int getOperatorId(); + + /** + * required int32 vehicle_number = 10; + * @return Whether the vehicleNumber field is set. + */ + boolean hasVehicleNumber(); + /** + * required int32 vehicle_number = 10; + * @return The vehicleNumber. + */ + int getVehicleNumber(); } - - } - - public interface TopicOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.Topic) - com.google.protobuf.MessageOrBuilder { - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - boolean hasSchemaVersion(); - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. + * Protobuf type {@code proto.Topic} */ - int getSchemaVersion(); + public static final class Topic extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.Topic) + TopicOrBuilder { + private static final long serialVersionUID = 0L; + // Use Topic.newBuilder() to construct. + private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Topic() { + schemaVersion_ = 1; + topicPrefix_ = ""; + topicVersion_ = ""; + journeyType_ = 0; + temporalType_ = 0; + eventType_ = 0; + transportMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Topic(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Topic_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Topic_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.passengercount.proto.PassengerCount.Topic.class, + fi.hsl.common.passengercount.proto.PassengerCount.Topic.Builder.class); + } + + /** + * Protobuf enum {@code proto.Topic.JourneyType} + */ + public enum JourneyType implements com.google.protobuf.ProtocolMessageEnum { + /** + * journey = 0; + */ + journey(0), + /** + *
+             * Probably never used but included just in case
+             * 
+ * + * deadrun = 1; + */ + deadrun(1), + /** + *
+             * Probably never used but included just in case
+             * 
+ * + * signoff = 2; + */ + signoff(2),; + + /** + * journey = 0; + */ + public static final int journey_VALUE = 0; + /** + *
+             * Probably never used but included just in case
+             * 
+ * + * deadrun = 1; + */ + public static final int deadrun_VALUE = 1; + /** + *
+             * Probably never used but included just in case
+             * 
+ * + * signoff = 2; + */ + public static final int signoff_VALUE = 2; + + public final int getNumber() { + return value; + } - /** - *
-     * Our server timestamp as Epoch ms
-     * 
- * - * required int64 received_at = 2; - * @return Whether the receivedAt field is set. - */ - boolean hasReceivedAt(); - /** - *
-     * Our server timestamp as Epoch ms
-     * 
- * - * required int64 received_at = 2; - * @return The receivedAt. - */ - long getReceivedAt(); + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static JourneyType valueOf(int value) { + return forNumber(value); + } - /** - * required string topic_prefix = 3; - * @return Whether the topicPrefix field is set. - */ - boolean hasTopicPrefix(); - /** - * required string topic_prefix = 3; - * @return The topicPrefix. - */ - java.lang.String getTopicPrefix(); - /** - * required string topic_prefix = 3; - * @return The bytes for topicPrefix. - */ - com.google.protobuf.ByteString - getTopicPrefixBytes(); + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static JourneyType forNumber(int value) { + switch (value) { + case 0 : + return journey; + case 1 : + return deadrun; + case 2 : + return signoff; + default : + return null; + } + } - /** - * required string topic_version = 4; - * @return Whether the topicVersion field is set. - */ - boolean hasTopicVersion(); - /** - * required string topic_version = 4; - * @return The topicVersion. - */ - java.lang.String getTopicVersion(); - /** - * required string topic_version = 4; - * @return The bytes for topicVersion. - */ - com.google.protobuf.ByteString - getTopicVersionBytes(); - - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @return Whether the journeyType field is set. - */ - boolean hasJourneyType(); - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @return The journeyType. - */ - fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType getJourneyType(); + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public JourneyType findValueByNumber(int number) { + return JourneyType.forNumber(number); + } + }; - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @return Whether the temporalType field is set. - */ - boolean hasTemporalType(); - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @return The temporalType. - */ - fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType getTemporalType(); + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDescriptor().getEnumTypes().get(0); + } - /** - * required .proto.Topic.EventType event_type = 7; - * @return Whether the eventType field is set. - */ - boolean hasEventType(); - /** - * required .proto.Topic.EventType event_type = 7; - * @return The eventType. - */ - fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType getEventType(); + private static final JourneyType[] VALUES = values(); - /** - *
-     * Optional because of rare bug in data source systems
-     * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @return Whether the transportMode field is set. - */ - boolean hasTransportMode(); - /** - *
-     * Optional because of rare bug in data source systems
-     * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @return The transportMode. - */ - fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode getTransportMode(); + public static JourneyType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } - /** - * required int32 operator_id = 9; - * @return Whether the operatorId field is set. - */ - boolean hasOperatorId(); - /** - * required int32 operator_id = 9; - * @return The operatorId. - */ - int getOperatorId(); + private final int value; - /** - * required int32 vehicle_number = 10; - * @return Whether the vehicleNumber field is set. - */ - boolean hasVehicleNumber(); - /** - * required int32 vehicle_number = 10; - * @return The vehicleNumber. - */ - int getVehicleNumber(); - } - /** - * Protobuf type {@code proto.Topic} - */ - public static final class Topic extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.Topic) - TopicOrBuilder { - private static final long serialVersionUID = 0L; - // Use Topic.newBuilder() to construct. - private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Topic() { - schemaVersion_ = 1; - topicPrefix_ = ""; - topicVersion_ = ""; - journeyType_ = 0; - temporalType_ = 0; - eventType_ = 0; - transportMode_ = 0; - } + private JourneyType(int value) { + this.value = value; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Topic(); - } + // @@protoc_insertion_point(enum_scope:proto.Topic.JourneyType) + } + + /** + * Protobuf enum {@code proto.Topic.TemporalType} + */ + public enum TemporalType implements com.google.protobuf.ProtocolMessageEnum { + /** + * ongoing = 0; + */ + ongoing(0), + /** + *
+             * Probably never used but included just in case
+             * 
+ * + * upcoming = 1; + */ + upcoming(1),; + + /** + * ongoing = 0; + */ + public static final int ongoing_VALUE = 0; + /** + *
+             * Probably never used but included just in case
+             * 
+ * + * upcoming = 1; + */ + public static final int upcoming_VALUE = 1; + + public final int getNumber() { + return value; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Topic_descriptor; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TemporalType valueOf(int value) { + return forNumber(value); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Topic_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.passengercount.proto.PassengerCount.Topic.class, fi.hsl.common.passengercount.proto.PassengerCount.Topic.Builder.class); - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TemporalType forNumber(int value) { + switch (value) { + case 0 : + return ongoing; + case 1 : + return upcoming; + default : + return null; + } + } - /** - * Protobuf enum {@code proto.Topic.JourneyType} - */ - public enum JourneyType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * journey = 0; - */ - journey(0), - /** - *
-       * Probably never used but included just in case
-       * 
- * - * deadrun = 1; - */ - deadrun(1), - /** - *
-       * Probably never used but included just in case
-       * 
- * - * signoff = 2; - */ - signoff(2), - ; - - /** - * journey = 0; - */ - public static final int journey_VALUE = 0; - /** - *
-       * Probably never used but included just in case
-       * 
- * - * deadrun = 1; - */ - public static final int deadrun_VALUE = 1; - /** - *
-       * Probably never used but included just in case
-       * 
- * - * signoff = 2; - */ - public static final int signoff_VALUE = 2; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static JourneyType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static JourneyType forNumber(int value) { - switch (value) { - case 0: return journey; - case 1: return deadrun; - case 2: return signoff; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - JourneyType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public JourneyType findValueByNumber(int number) { - return JourneyType.forNumber(number); - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public TemporalType findValueByNumber(int number) { + return TemporalType.forNumber(number); + } }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDescriptor().getEnumTypes().get(0); - } - - private static final JourneyType[] VALUES = values(); - - public static JourneyType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private JourneyType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.Topic.JourneyType) - } - - /** - * Protobuf enum {@code proto.Topic.TemporalType} - */ - public enum TemporalType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ongoing = 0; - */ - ongoing(0), - /** - *
-       * Probably never used but included just in case
-       * 
- * - * upcoming = 1; - */ - upcoming(1), - ; - - /** - * ongoing = 0; - */ - public static final int ongoing_VALUE = 0; - /** - *
-       * Probably never used but included just in case
-       * 
- * - * upcoming = 1; - */ - public static final int upcoming_VALUE = 1; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TemporalType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static TemporalType forNumber(int value) { - switch (value) { - case 0: return ongoing; - case 1: return upcoming; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TemporalType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TemporalType findValueByNumber(int number) { - return TemporalType.forNumber(number); - } - }; + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDescriptor().getEnumTypes().get(1); + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDescriptor().getEnumTypes().get(1); - } - - private static final TemporalType[] VALUES = values(); - - public static TemporalType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private TemporalType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.Topic.TemporalType) - } + private static final TemporalType[] VALUES = values(); - /** - * Protobuf enum {@code proto.Topic.TransportMode} - */ - public enum TransportMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - * bus = 0; - */ - bus(0), - /** - * train = 1; - */ - train(1), - /** - * tram = 2; - */ - tram(2), - /** - * metro = 3; - */ - metro(3), - /** - * ferry = 4; - */ - ferry(4), - /** - *
-       *Used by U-line buses and other lines with limited real-time information
-       * 
- * - * ubus = 5; - */ - ubus(5), - /** - *
-       *Used by robot buses
-       * 
- * - * robot = 6; - */ - robot(6), - ; - - /** - * bus = 0; - */ - public static final int bus_VALUE = 0; - /** - * train = 1; - */ - public static final int train_VALUE = 1; - /** - * tram = 2; - */ - public static final int tram_VALUE = 2; - /** - * metro = 3; - */ - public static final int metro_VALUE = 3; - /** - * ferry = 4; - */ - public static final int ferry_VALUE = 4; - /** - *
-       *Used by U-line buses and other lines with limited real-time information
-       * 
- * - * ubus = 5; - */ - public static final int ubus_VALUE = 5; - /** - *
-       *Used by robot buses
-       * 
- * - * robot = 6; - */ - public static final int robot_VALUE = 6; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TransportMode valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static TransportMode forNumber(int value) { - switch (value) { - case 0: return bus; - case 1: return train; - case 2: return tram; - case 3: return metro; - case 4: return ferry; - case 5: return ubus; - case 6: return robot; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TransportMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TransportMode findValueByNumber(int number) { - return TransportMode.forNumber(number); - } - }; + public static TemporalType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDescriptor().getEnumTypes().get(2); - } - - private static final TransportMode[] VALUES = values(); - - public static TransportMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private TransportMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.Topic.TransportMode) - } + private final int value; - /** - * Protobuf enum {@code proto.Topic.EventType} - */ - public enum EventType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * apc = 0; - */ - apc(0), - ; - - /** - * apc = 0; - */ - public static final int apc_VALUE = 0; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EventType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static EventType forNumber(int value) { - switch (value) { - case 0: return apc; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - EventType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EventType findValueByNumber(int number) { - return EventType.forNumber(number); - } - }; + private TemporalType(int value) { + this.value = value; + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDescriptor().getEnumTypes().get(3); - } - - private static final EventType[] VALUES = values(); - - public static EventType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private EventType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.Topic.EventType) - } + // @@protoc_insertion_point(enum_scope:proto.Topic.TemporalType) + } + + /** + * Protobuf enum {@code proto.Topic.TransportMode} + */ + public enum TransportMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * bus = 0; + */ + bus(0), + /** + * train = 1; + */ + train(1), + /** + * tram = 2; + */ + tram(2), + /** + * metro = 3; + */ + metro(3), + /** + * ferry = 4; + */ + ferry(4), + /** + *
+             *Used by U-line buses and other lines with limited real-time information
+             * 
+ * + * ubus = 5; + */ + ubus(5), + /** + *
+             *Used by robot buses
+             * 
+ * + * robot = 6; + */ + robot(6),; + + /** + * bus = 0; + */ + public static final int bus_VALUE = 0; + /** + * train = 1; + */ + public static final int train_VALUE = 1; + /** + * tram = 2; + */ + public static final int tram_VALUE = 2; + /** + * metro = 3; + */ + public static final int metro_VALUE = 3; + /** + * ferry = 4; + */ + public static final int ferry_VALUE = 4; + /** + *
+             *Used by U-line buses and other lines with limited real-time information
+             * 
+ * + * ubus = 5; + */ + public static final int ubus_VALUE = 5; + /** + *
+             *Used by robot buses
+             * 
+ * + * robot = 6; + */ + public static final int robot_VALUE = 6; + + public final int getNumber() { + return value; + } - private int bitField0_; - public static final int SCHEMAVERSION_FIELD_NUMBER = 1; - private int schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TransportMode valueOf(int value) { + return forNumber(value); + } - public static final int RECEIVED_AT_FIELD_NUMBER = 2; - private long receivedAt_ = 0L; - /** - *
-     * Our server timestamp as Epoch ms
-     * 
- * - * required int64 received_at = 2; - * @return Whether the receivedAt field is set. - */ - @java.lang.Override - public boolean hasReceivedAt() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Our server timestamp as Epoch ms
-     * 
- * - * required int64 received_at = 2; - * @return The receivedAt. - */ - @java.lang.Override - public long getReceivedAt() { - return receivedAt_; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TransportMode forNumber(int value) { + switch (value) { + case 0 : + return bus; + case 1 : + return train; + case 2 : + return tram; + case 3 : + return metro; + case 4 : + return ferry; + case 5 : + return ubus; + case 6 : + return robot; + default : + return null; + } + } - public static final int TOPIC_PREFIX_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object topicPrefix_ = ""; - /** - * required string topic_prefix = 3; - * @return Whether the topicPrefix field is set. - */ - @java.lang.Override - public boolean hasTopicPrefix() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required string topic_prefix = 3; - * @return The topicPrefix. - */ - @java.lang.Override - public java.lang.String getTopicPrefix() { - java.lang.Object ref = topicPrefix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - topicPrefix_ = s; - } - return s; - } - } - /** - * required string topic_prefix = 3; - * @return The bytes for topicPrefix. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTopicPrefixBytes() { - java.lang.Object ref = topicPrefix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicPrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public TransportMode findValueByNumber(int number) { + return TransportMode.forNumber(number); + } + }; - public static final int TOPIC_VERSION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object topicVersion_ = ""; - /** - * required string topic_version = 4; - * @return Whether the topicVersion field is set. - */ - @java.lang.Override - public boolean hasTopicVersion() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required string topic_version = 4; - * @return The topicVersion. - */ - @java.lang.Override - public java.lang.String getTopicVersion() { - java.lang.Object ref = topicVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - topicVersion_ = s; - } - return s; - } - } - /** - * required string topic_version = 4; - * @return The bytes for topicVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTopicVersionBytes() { - java.lang.Object ref = topicVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDescriptor().getEnumTypes().get(2); + } - public static final int JOURNEY_TYPE_FIELD_NUMBER = 5; - private int journeyType_ = 0; - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @return Whether the journeyType field is set. - */ - @java.lang.Override public boolean hasJourneyType() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @return The journeyType. - */ - @java.lang.Override public fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType getJourneyType() { - fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType.forNumber(journeyType_); - return result == null ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType.journey : result; - } + private static final TransportMode[] VALUES = values(); - public static final int TEMPORAL_TYPE_FIELD_NUMBER = 6; - private int temporalType_ = 0; - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @return Whether the temporalType field is set. - */ - @java.lang.Override public boolean hasTemporalType() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @return The temporalType. - */ - @java.lang.Override public fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType getTemporalType() { - fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType.forNumber(temporalType_); - return result == null ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType.ongoing : result; - } + public static TransportMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } - public static final int EVENT_TYPE_FIELD_NUMBER = 7; - private int eventType_ = 0; - /** - * required .proto.Topic.EventType event_type = 7; - * @return Whether the eventType field is set. - */ - @java.lang.Override public boolean hasEventType() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * required .proto.Topic.EventType event_type = 7; - * @return The eventType. - */ - @java.lang.Override public fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType getEventType() { - fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType.forNumber(eventType_); - return result == null ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType.apc : result; - } + private final int value; - public static final int TRANSPORT_MODE_FIELD_NUMBER = 8; - private int transportMode_ = 0; - /** - *
-     * Optional because of rare bug in data source systems
-     * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @return Whether the transportMode field is set. - */ - @java.lang.Override public boolean hasTransportMode() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-     * Optional because of rare bug in data source systems
-     * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @return The transportMode. - */ - @java.lang.Override public fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode getTransportMode() { - fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode.forNumber(transportMode_); - return result == null ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode.bus : result; - } + private TransportMode(int value) { + this.value = value; + } - public static final int OPERATOR_ID_FIELD_NUMBER = 9; - private int operatorId_ = 0; - /** - * required int32 operator_id = 9; - * @return Whether the operatorId field is set. - */ - @java.lang.Override - public boolean hasOperatorId() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * required int32 operator_id = 9; - * @return The operatorId. - */ - @java.lang.Override - public int getOperatorId() { - return operatorId_; - } + // @@protoc_insertion_point(enum_scope:proto.Topic.TransportMode) + } - public static final int VEHICLE_NUMBER_FIELD_NUMBER = 10; - private int vehicleNumber_ = 0; - /** - * required int32 vehicle_number = 10; - * @return Whether the vehicleNumber field is set. - */ - @java.lang.Override - public boolean hasVehicleNumber() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * required int32 vehicle_number = 10; - * @return The vehicleNumber. - */ - @java.lang.Override - public int getVehicleNumber() { - return vehicleNumber_; - } + /** + * Protobuf enum {@code proto.Topic.EventType} + */ + public enum EventType implements com.google.protobuf.ProtocolMessageEnum { + /** + * apc = 0; + */ + apc(0),; - 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 (!hasSchemaVersion()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasReceivedAt()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTopicPrefix()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTopicVersion()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasJourneyType()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTemporalType()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasEventType()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasOperatorId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasVehicleNumber()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + /** + * apc = 0; + */ + public static final int apc_VALUE = 0; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt64(2, receivedAt_); - } - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topicPrefix_); - } - if (((bitField0_ & 0x00000008) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, topicVersion_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeEnum(5, journeyType_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeEnum(6, temporalType_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeEnum(7, eventType_); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeEnum(8, transportMode_); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeInt32(9, operatorId_); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeInt32(10, vehicleNumber_); - } - getUnknownFields().writeTo(output); - } + public final int getNumber() { + return value; + } - @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, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, receivedAt_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, topicPrefix_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, topicVersion_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, journeyType_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, temporalType_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, eventType_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, transportMode_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, operatorId_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(10, vehicleNumber_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EventType valueOf(int value) { + return forNumber(value); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof fi.hsl.common.passengercount.proto.PassengerCount.Topic)) { - return super.equals(obj); - } - fi.hsl.common.passengercount.proto.PassengerCount.Topic other = (fi.hsl.common.passengercount.proto.PassengerCount.Topic) obj; - - if (hasSchemaVersion() != other.hasSchemaVersion()) return false; - if (hasSchemaVersion()) { - if (getSchemaVersion() - != other.getSchemaVersion()) return false; - } - if (hasReceivedAt() != other.hasReceivedAt()) return false; - if (hasReceivedAt()) { - if (getReceivedAt() - != other.getReceivedAt()) return false; - } - if (hasTopicPrefix() != other.hasTopicPrefix()) return false; - if (hasTopicPrefix()) { - if (!getTopicPrefix() - .equals(other.getTopicPrefix())) return false; - } - if (hasTopicVersion() != other.hasTopicVersion()) return false; - if (hasTopicVersion()) { - if (!getTopicVersion() - .equals(other.getTopicVersion())) return false; - } - if (hasJourneyType() != other.hasJourneyType()) return false; - if (hasJourneyType()) { - if (journeyType_ != other.journeyType_) return false; - } - if (hasTemporalType() != other.hasTemporalType()) return false; - if (hasTemporalType()) { - if (temporalType_ != other.temporalType_) return false; - } - if (hasEventType() != other.hasEventType()) return false; - if (hasEventType()) { - if (eventType_ != other.eventType_) return false; - } - if (hasTransportMode() != other.hasTransportMode()) return false; - if (hasTransportMode()) { - if (transportMode_ != other.transportMode_) return false; - } - if (hasOperatorId() != other.hasOperatorId()) return false; - if (hasOperatorId()) { - if (getOperatorId() - != other.getOperatorId()) return false; - } - if (hasVehicleNumber() != other.hasVehicleNumber()) return false; - if (hasVehicleNumber()) { - if (getVehicleNumber() - != other.getVehicleNumber()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EventType forNumber(int value) { + switch (value) { + case 0 : + return apc; + default : + return null; + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSchemaVersion()) { - hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getSchemaVersion(); - } - if (hasReceivedAt()) { - hash = (37 * hash) + RECEIVED_AT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getReceivedAt()); - } - if (hasTopicPrefix()) { - hash = (37 * hash) + TOPIC_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getTopicPrefix().hashCode(); - } - if (hasTopicVersion()) { - hash = (37 * hash) + TOPIC_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getTopicVersion().hashCode(); - } - if (hasJourneyType()) { - hash = (37 * hash) + JOURNEY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + journeyType_; - } - if (hasTemporalType()) { - hash = (37 * hash) + TEMPORAL_TYPE_FIELD_NUMBER; - hash = (53 * hash) + temporalType_; - } - if (hasEventType()) { - hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + eventType_; - } - if (hasTransportMode()) { - hash = (37 * hash) + TRANSPORT_MODE_FIELD_NUMBER; - hash = (53 * hash) + transportMode_; - } - if (hasOperatorId()) { - hash = (37 * hash) + OPERATOR_ID_FIELD_NUMBER; - hash = (53 * hash) + getOperatorId(); - } - if (hasVehicleNumber()) { - hash = (37 * hash) + VEHICLE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getVehicleNumber(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public EventType findValueByNumber(int number) { + return EventType.forNumber(number); + } + }; - public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDescriptor().getEnumTypes().get(3); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.passengercount.proto.PassengerCount.Topic prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private static final EventType[] VALUES = values(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.Topic} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.Topic) - fi.hsl.common.passengercount.proto.PassengerCount.TopicOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Topic_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Topic_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.passengercount.proto.PassengerCount.Topic.class, fi.hsl.common.passengercount.proto.PassengerCount.Topic.Builder.class); - } - - // Construct using fi.hsl.common.passengercount.proto.PassengerCount.Topic.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - schemaVersion_ = 1; - receivedAt_ = 0L; - topicPrefix_ = ""; - topicVersion_ = ""; - journeyType_ = 0; - temporalType_ = 0; - eventType_ = 0; - transportMode_ = 0; - operatorId_ = 0; - vehicleNumber_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Topic_descriptor; - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Topic getDefaultInstanceForType() { - return fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Topic build() { - fi.hsl.common.passengercount.proto.PassengerCount.Topic result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Topic buildPartial() { - fi.hsl.common.passengercount.proto.PassengerCount.Topic result = new fi.hsl.common.passengercount.proto.PassengerCount.Topic(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.passengercount.proto.PassengerCount.Topic result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.schemaVersion_ = schemaVersion_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.receivedAt_ = receivedAt_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.topicPrefix_ = topicPrefix_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.topicVersion_ = topicVersion_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.journeyType_ = journeyType_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.temporalType_ = temporalType_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.eventType_ = eventType_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.transportMode_ = transportMode_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.operatorId_ = operatorId_; - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.vehicleNumber_ = vehicleNumber_; - to_bitField0_ |= 0x00000200; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.passengercount.proto.PassengerCount.Topic) { - return mergeFrom((fi.hsl.common.passengercount.proto.PassengerCount.Topic)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.passengercount.proto.PassengerCount.Topic other) { - if (other == fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDefaultInstance()) return this; - if (other.hasSchemaVersion()) { - setSchemaVersion(other.getSchemaVersion()); - } - if (other.hasReceivedAt()) { - setReceivedAt(other.getReceivedAt()); - } - if (other.hasTopicPrefix()) { - topicPrefix_ = other.topicPrefix_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasTopicVersion()) { - topicVersion_ = other.topicVersion_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasJourneyType()) { - setJourneyType(other.getJourneyType()); - } - if (other.hasTemporalType()) { - setTemporalType(other.getTemporalType()); - } - if (other.hasEventType()) { - setEventType(other.getEventType()); - } - if (other.hasTransportMode()) { - setTransportMode(other.getTransportMode()); - } - if (other.hasOperatorId()) { - setOperatorId(other.getOperatorId()); - } - if (other.hasVehicleNumber()) { - setVehicleNumber(other.getVehicleNumber()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSchemaVersion()) { - return false; - } - if (!hasReceivedAt()) { - return false; - } - if (!hasTopicPrefix()) { - return false; - } - if (!hasTopicVersion()) { - return false; - } - if (!hasJourneyType()) { - return false; - } - if (!hasTemporalType()) { - return false; - } - if (!hasEventType()) { - return false; - } - if (!hasOperatorId()) { - return false; - } - if (!hasVehicleNumber()) { - 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: { - schemaVersion_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - receivedAt_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - topicPrefix_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - topicVersion_ = input.readBytes(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - int tmpRaw = input.readEnum(); - fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType tmpValue = - fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(5, tmpRaw); - } else { - journeyType_ = tmpRaw; - bitField0_ |= 0x00000010; - } - break; - } // case 40 - case 48: { - int tmpRaw = input.readEnum(); - fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType tmpValue = - fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(6, tmpRaw); - } else { - temporalType_ = tmpRaw; - bitField0_ |= 0x00000020; - } - break; - } // case 48 - case 56: { - int tmpRaw = input.readEnum(); - fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType tmpValue = - fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(7, tmpRaw); - } else { - eventType_ = tmpRaw; - bitField0_ |= 0x00000040; - } - break; - } // case 56 - case 64: { - int tmpRaw = input.readEnum(); - fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode tmpValue = - fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(8, tmpRaw); - } else { - transportMode_ = tmpRaw; - bitField0_ |= 0x00000080; + public static EventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } - break; - } // case 64 - case 72: { - operatorId_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 80: { - vehicleNumber_ = input.readInt32(); - bitField0_ |= 0x00000200; - break; - } // case 80 - 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 schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @param value The schemaVersion to set. - * @return This builder for chaining. - */ - public Builder setSchemaVersion(int value) { - - schemaVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return This builder for chaining. - */ - public Builder clearSchemaVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - schemaVersion_ = 1; - onChanged(); - return this; - } - - private long receivedAt_ ; - /** - *
-       * Our server timestamp as Epoch ms
-       * 
- * - * required int64 received_at = 2; - * @return Whether the receivedAt field is set. - */ - @java.lang.Override - public boolean hasReceivedAt() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Our server timestamp as Epoch ms
-       * 
- * - * required int64 received_at = 2; - * @return The receivedAt. - */ - @java.lang.Override - public long getReceivedAt() { - return receivedAt_; - } - /** - *
-       * Our server timestamp as Epoch ms
-       * 
- * - * required int64 received_at = 2; - * @param value The receivedAt to set. - * @return This builder for chaining. - */ - public Builder setReceivedAt(long value) { - - receivedAt_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Our server timestamp as Epoch ms
-       * 
- * - * required int64 received_at = 2; - * @return This builder for chaining. - */ - public Builder clearReceivedAt() { - bitField0_ = (bitField0_ & ~0x00000002); - receivedAt_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object topicPrefix_ = ""; - /** - * required string topic_prefix = 3; - * @return Whether the topicPrefix field is set. - */ - public boolean hasTopicPrefix() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required string topic_prefix = 3; - * @return The topicPrefix. - */ - public java.lang.String getTopicPrefix() { - java.lang.Object ref = topicPrefix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - topicPrefix_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string topic_prefix = 3; - * @return The bytes for topicPrefix. - */ - public com.google.protobuf.ByteString - getTopicPrefixBytes() { - java.lang.Object ref = topicPrefix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicPrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string topic_prefix = 3; - * @param value The topicPrefix to set. - * @return This builder for chaining. - */ - public Builder setTopicPrefix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - topicPrefix_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required string topic_prefix = 3; - * @return This builder for chaining. - */ - public Builder clearTopicPrefix() { - topicPrefix_ = getDefaultInstance().getTopicPrefix(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * required string topic_prefix = 3; - * @param value The bytes for topicPrefix to set. - * @return This builder for chaining. - */ - public Builder setTopicPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - topicPrefix_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object topicVersion_ = ""; - /** - * required string topic_version = 4; - * @return Whether the topicVersion field is set. - */ - public boolean hasTopicVersion() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required string topic_version = 4; - * @return The topicVersion. - */ - public java.lang.String getTopicVersion() { - java.lang.Object ref = topicVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - topicVersion_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string topic_version = 4; - * @return The bytes for topicVersion. - */ - public com.google.protobuf.ByteString - getTopicVersionBytes() { - java.lang.Object ref = topicVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string topic_version = 4; - * @param value The topicVersion to set. - * @return This builder for chaining. - */ - public Builder setTopicVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - topicVersion_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * required string topic_version = 4; - * @return This builder for chaining. - */ - public Builder clearTopicVersion() { - topicVersion_ = getDefaultInstance().getTopicVersion(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * required string topic_version = 4; - * @param value The bytes for topicVersion to set. - * @return This builder for chaining. - */ - public Builder setTopicVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - topicVersion_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private int journeyType_ = 0; - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @return Whether the journeyType field is set. - */ - @java.lang.Override public boolean hasJourneyType() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @return The journeyType. - */ - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType getJourneyType() { - fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType.forNumber(journeyType_); - return result == null ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType.journey : result; - } - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @param value The journeyType to set. - * @return This builder for chaining. - */ - public Builder setJourneyType(fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - journeyType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .proto.Topic.JourneyType journey_type = 5; - * @return This builder for chaining. - */ - public Builder clearJourneyType() { - bitField0_ = (bitField0_ & ~0x00000010); - journeyType_ = 0; - onChanged(); - return this; - } - - private int temporalType_ = 0; - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @return Whether the temporalType field is set. - */ - @java.lang.Override public boolean hasTemporalType() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @return The temporalType. - */ - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType getTemporalType() { - fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType.forNumber(temporalType_); - return result == null ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType.ongoing : result; - } - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @param value The temporalType to set. - * @return This builder for chaining. - */ - public Builder setTemporalType(fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - temporalType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .proto.Topic.TemporalType temporal_type = 6; - * @return This builder for chaining. - */ - public Builder clearTemporalType() { - bitField0_ = (bitField0_ & ~0x00000020); - temporalType_ = 0; - onChanged(); - return this; - } - - private int eventType_ = 0; - /** - * required .proto.Topic.EventType event_type = 7; - * @return Whether the eventType field is set. - */ - @java.lang.Override public boolean hasEventType() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * required .proto.Topic.EventType event_type = 7; - * @return The eventType. - */ - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType getEventType() { - fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType.forNumber(eventType_); - return result == null ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType.apc : result; - } - /** - * required .proto.Topic.EventType event_type = 7; - * @param value The eventType to set. - * @return This builder for chaining. - */ - public Builder setEventType(fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - eventType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .proto.Topic.EventType event_type = 7; - * @return This builder for chaining. - */ - public Builder clearEventType() { - bitField0_ = (bitField0_ & ~0x00000040); - eventType_ = 0; - onChanged(); - return this; - } - - private int transportMode_ = 0; - /** - *
-       * Optional because of rare bug in data source systems
-       * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @return Whether the transportMode field is set. - */ - @java.lang.Override public boolean hasTransportMode() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-       * Optional because of rare bug in data source systems
-       * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @return The transportMode. - */ - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode getTransportMode() { - fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode.forNumber(transportMode_); - return result == null ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode.bus : result; - } - /** - *
-       * Optional because of rare bug in data source systems
-       * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @param value The transportMode to set. - * @return This builder for chaining. - */ - public Builder setTransportMode(fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - transportMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Optional because of rare bug in data source systems
-       * 
- * - * optional .proto.Topic.TransportMode transport_mode = 8; - * @return This builder for chaining. - */ - public Builder clearTransportMode() { - bitField0_ = (bitField0_ & ~0x00000080); - transportMode_ = 0; - onChanged(); - return this; - } - - private int operatorId_ ; - /** - * required int32 operator_id = 9; - * @return Whether the operatorId field is set. - */ - @java.lang.Override - public boolean hasOperatorId() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * required int32 operator_id = 9; - * @return The operatorId. - */ - @java.lang.Override - public int getOperatorId() { - return operatorId_; - } - /** - * required int32 operator_id = 9; - * @param value The operatorId to set. - * @return This builder for chaining. - */ - public Builder setOperatorId(int value) { - - operatorId_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * required int32 operator_id = 9; - * @return This builder for chaining. - */ - public Builder clearOperatorId() { - bitField0_ = (bitField0_ & ~0x00000100); - operatorId_ = 0; - onChanged(); - return this; - } - - private int vehicleNumber_ ; - /** - * required int32 vehicle_number = 10; - * @return Whether the vehicleNumber field is set. - */ - @java.lang.Override - public boolean hasVehicleNumber() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * required int32 vehicle_number = 10; - * @return The vehicleNumber. - */ - @java.lang.Override - public int getVehicleNumber() { - return vehicleNumber_; - } - /** - * required int32 vehicle_number = 10; - * @param value The vehicleNumber to set. - * @return This builder for chaining. - */ - public Builder setVehicleNumber(int value) { - - vehicleNumber_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * required int32 vehicle_number = 10; - * @return This builder for chaining. - */ - public Builder clearVehicleNumber() { - bitField0_ = (bitField0_ & ~0x00000200); - vehicleNumber_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.Topic) - } + return VALUES[desc.getIndex()]; + } - // @@protoc_insertion_point(class_scope:proto.Topic) - private static final fi.hsl.common.passengercount.proto.PassengerCount.Topic DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.passengercount.proto.PassengerCount.Topic(); - } + private final int value; - public static fi.hsl.common.passengercount.proto.PassengerCount.Topic getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private EventType(int value) { + this.value = value; + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Topic parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(enum_scope:proto.Topic.EventType) + } + + private int bitField0_; + public static final int SCHEMAVERSION_FIELD_NUMBER = 1; + private int schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + + public static final int RECEIVED_AT_FIELD_NUMBER = 2; + private long receivedAt_ = 0L; + /** + *
+         * Our server timestamp as Epoch ms
+         * 
+ * + * required int64 received_at = 2; + * @return Whether the receivedAt field is set. + */ + @java.lang.Override + public boolean hasReceivedAt() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * Our server timestamp as Epoch ms
+         * 
+ * + * required int64 received_at = 2; + * @return The receivedAt. + */ + @java.lang.Override + public long getReceivedAt() { + return receivedAt_; + } + + public static final int TOPIC_PREFIX_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object topicPrefix_ = ""; + /** + * required string topic_prefix = 3; + * @return Whether the topicPrefix field is set. + */ + @java.lang.Override + public boolean hasTopicPrefix() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required string topic_prefix = 3; + * @return The topicPrefix. + */ + @java.lang.Override + public java.lang.String getTopicPrefix() { + java.lang.Object ref = topicPrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + topicPrefix_ = s; + } + return s; + } + } + /** + * required string topic_prefix = 3; + * @return The bytes for topicPrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicPrefixBytes() { + java.lang.Object ref = topicPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topicPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int TOPIC_VERSION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object topicVersion_ = ""; + /** + * required string topic_version = 4; + * @return Whether the topicVersion field is set. + */ + @java.lang.Override + public boolean hasTopicVersion() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * required string topic_version = 4; + * @return The topicVersion. + */ + @java.lang.Override + public java.lang.String getTopicVersion() { + java.lang.Object ref = topicVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + topicVersion_ = s; + } + return s; + } + } + /** + * required string topic_version = 4; + * @return The bytes for topicVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicVersionBytes() { + java.lang.Object ref = topicVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topicVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Topic getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int JOURNEY_TYPE_FIELD_NUMBER = 5; + private int journeyType_ = 0; + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @return Whether the journeyType field is set. + */ + @java.lang.Override + public boolean hasJourneyType() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @return The journeyType. + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType getJourneyType() { + fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType + .forNumber(journeyType_); + return result == null + ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType.journey + : result; + } + + public static final int TEMPORAL_TYPE_FIELD_NUMBER = 6; + private int temporalType_ = 0; + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @return Whether the temporalType field is set. + */ + @java.lang.Override + public boolean hasTemporalType() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @return The temporalType. + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType getTemporalType() { + fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType + .forNumber(temporalType_); + return result == null + ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType.ongoing + : result; + } + + public static final int EVENT_TYPE_FIELD_NUMBER = 7; + private int eventType_ = 0; + /** + * required .proto.Topic.EventType event_type = 7; + * @return Whether the eventType field is set. + */ + @java.lang.Override + public boolean hasEventType() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * required .proto.Topic.EventType event_type = 7; + * @return The eventType. + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType getEventType() { + fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType + .forNumber(eventType_); + return result == null ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType.apc : result; + } + + public static final int TRANSPORT_MODE_FIELD_NUMBER = 8; + private int transportMode_ = 0; + /** + *
+         * Optional because of rare bug in data source systems
+         * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @return Whether the transportMode field is set. + */ + @java.lang.Override + public boolean hasTransportMode() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+         * Optional because of rare bug in data source systems
+         * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @return The transportMode. + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode getTransportMode() { + fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode + .forNumber(transportMode_); + return result == null ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode.bus : result; + } + + public static final int OPERATOR_ID_FIELD_NUMBER = 9; + private int operatorId_ = 0; + /** + * required int32 operator_id = 9; + * @return Whether the operatorId field is set. + */ + @java.lang.Override + public boolean hasOperatorId() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * required int32 operator_id = 9; + * @return The operatorId. + */ + @java.lang.Override + public int getOperatorId() { + return operatorId_; + } + + public static final int VEHICLE_NUMBER_FIELD_NUMBER = 10; + private int vehicleNumber_ = 0; + /** + * required int32 vehicle_number = 10; + * @return Whether the vehicleNumber field is set. + */ + @java.lang.Override + public boolean hasVehicleNumber() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * required int32 vehicle_number = 10; + * @return The vehicleNumber. + */ + @java.lang.Override + public int getVehicleNumber() { + return vehicleNumber_; + } + + 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 (!hasSchemaVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasReceivedAt()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTopicPrefix()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTopicVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasJourneyType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTemporalType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasEventType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasOperatorId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasVehicleNumber()) { + 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.writeInt32(1, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, receivedAt_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topicPrefix_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, topicVersion_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(5, journeyType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(6, temporalType_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeEnum(7, eventType_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeEnum(8, transportMode_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeInt32(9, operatorId_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeInt32(10, vehicleNumber_); + } + getUnknownFields().writeTo(output); + } - public interface PayloadOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.Payload) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - /** - * optional string desi = 1; - * @return Whether the desi field is set. - */ - boolean hasDesi(); - /** - * optional string desi = 1; - * @return The desi. - */ - java.lang.String getDesi(); - /** - * optional string desi = 1; - * @return The bytes for desi. - */ - com.google.protobuf.ByteString - getDesiBytes(); + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, receivedAt_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, topicPrefix_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, topicVersion_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, journeyType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, temporalType_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, eventType_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, transportMode_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, operatorId_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, vehicleNumber_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * optional string dir = 2; - * @return Whether the dir field is set. - */ - boolean hasDir(); - /** - * optional string dir = 2; - * @return The dir. - */ - java.lang.String getDir(); - /** - * optional string dir = 2; - * @return The bytes for dir. - */ - com.google.protobuf.ByteString - getDirBytes(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof fi.hsl.common.passengercount.proto.PassengerCount.Topic)) { + return super.equals(obj); + } + fi.hsl.common.passengercount.proto.PassengerCount.Topic other = (fi.hsl.common.passengercount.proto.PassengerCount.Topic) obj; - /** - * optional int32 oper = 3; - * @return Whether the oper field is set. - */ - boolean hasOper(); - /** - * optional int32 oper = 3; - * @return The oper. - */ - int getOper(); + if (hasSchemaVersion() != other.hasSchemaVersion()) + return false; + if (hasSchemaVersion()) { + if (getSchemaVersion() != other.getSchemaVersion()) + return false; + } + if (hasReceivedAt() != other.hasReceivedAt()) + return false; + if (hasReceivedAt()) { + if (getReceivedAt() != other.getReceivedAt()) + return false; + } + if (hasTopicPrefix() != other.hasTopicPrefix()) + return false; + if (hasTopicPrefix()) { + if (!getTopicPrefix().equals(other.getTopicPrefix())) + return false; + } + if (hasTopicVersion() != other.hasTopicVersion()) + return false; + if (hasTopicVersion()) { + if (!getTopicVersion().equals(other.getTopicVersion())) + return false; + } + if (hasJourneyType() != other.hasJourneyType()) + return false; + if (hasJourneyType()) { + if (journeyType_ != other.journeyType_) + return false; + } + if (hasTemporalType() != other.hasTemporalType()) + return false; + if (hasTemporalType()) { + if (temporalType_ != other.temporalType_) + return false; + } + if (hasEventType() != other.hasEventType()) + return false; + if (hasEventType()) { + if (eventType_ != other.eventType_) + return false; + } + if (hasTransportMode() != other.hasTransportMode()) + return false; + if (hasTransportMode()) { + if (transportMode_ != other.transportMode_) + return false; + } + if (hasOperatorId() != other.hasOperatorId()) + return false; + if (hasOperatorId()) { + if (getOperatorId() != other.getOperatorId()) + return false; + } + if (hasVehicleNumber() != other.hasVehicleNumber()) + return false; + if (hasVehicleNumber()) { + if (getVehicleNumber() != other.getVehicleNumber()) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } - /** - * optional int32 veh = 4; - * @return Whether the veh field is set. - */ - boolean hasVeh(); - /** - * optional int32 veh = 4; - * @return The veh. - */ - int getVeh(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSchemaVersion()) { + hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion(); + } + if (hasReceivedAt()) { + hash = (37 * hash) + RECEIVED_AT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReceivedAt()); + } + if (hasTopicPrefix()) { + hash = (37 * hash) + TOPIC_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getTopicPrefix().hashCode(); + } + if (hasTopicVersion()) { + hash = (37 * hash) + TOPIC_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getTopicVersion().hashCode(); + } + if (hasJourneyType()) { + hash = (37 * hash) + JOURNEY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + journeyType_; + } + if (hasTemporalType()) { + hash = (37 * hash) + TEMPORAL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + temporalType_; + } + if (hasEventType()) { + hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + eventType_; + } + if (hasTransportMode()) { + hash = (37 * hash) + TRANSPORT_MODE_FIELD_NUMBER; + hash = (53 * hash) + transportMode_; + } + if (hasOperatorId()) { + hash = (37 * hash) + OPERATOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getOperatorId(); + } + if (hasVehicleNumber()) { + hash = (37 * hash) + VEHICLE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getVehicleNumber(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Topic parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * optional int64 tst = 5; - * @return Whether the tst field is set. - */ - boolean hasTst(); - /** - * optional int64 tst = 5; - * @return The tst. - */ - long getTst(); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.passengercount.proto.PassengerCount.Topic prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * optional int64 tsi = 6; - * @return Whether the tsi field is set. - */ - boolean hasTsi(); - /** - * optional int64 tsi = 6; - * @return The tsi. - */ - long getTsi(); + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.Topic} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.Topic) + fi.hsl.common.passengercount.proto.PassengerCount.TopicOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Topic_descriptor; + } - /** - * optional double lat = 7; - * @return Whether the lat field is set. - */ - boolean hasLat(); - /** - * optional double lat = 7; - * @return The lat. - */ - double getLat(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Topic_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.passengercount.proto.PassengerCount.Topic.class, + fi.hsl.common.passengercount.proto.PassengerCount.Topic.Builder.class); + } - /** - * optional double long = 8; - * @return Whether the long field is set. - */ - boolean hasLong(); - /** - * optional double long = 8; - * @return The long. - */ - double getLong(); + // Construct using fi.hsl.common.passengercount.proto.PassengerCount.Topic.newBuilder() + private Builder() { - /** - * optional double odo = 9; - * @return Whether the odo field is set. - */ - boolean hasOdo(); - /** - * optional double odo = 9; - * @return The odo. - */ - double getOdo(); + } - /** - * optional string oday = 10; - * @return Whether the oday field is set. - */ - boolean hasOday(); - /** - * optional string oday = 10; - * @return The oday. - */ - java.lang.String getOday(); - /** - * optional string oday = 10; - * @return The bytes for oday. - */ - com.google.protobuf.ByteString - getOdayBytes(); + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - /** - * optional int32 jrn = 11; - * @return Whether the jrn field is set. - */ - boolean hasJrn(); - /** - * optional int32 jrn = 11; - * @return The jrn. - */ - int getJrn(); + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schemaVersion_ = 1; + receivedAt_ = 0L; + topicPrefix_ = ""; + topicVersion_ = ""; + journeyType_ = 0; + temporalType_ = 0; + eventType_ = 0; + transportMode_ = 0; + operatorId_ = 0; + vehicleNumber_ = 0; + return this; + } - /** - * optional int32 line = 12; - * @return Whether the line field is set. - */ - boolean hasLine(); - /** - * optional int32 line = 12; - * @return The line. - */ - int getLine(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Topic_descriptor; + } - /** - * optional string start = 13; - * @return Whether the start field is set. - */ - boolean hasStart(); - /** - * optional string start = 13; - * @return The start. - */ - java.lang.String getStart(); - /** - * optional string start = 13; - * @return The bytes for start. - */ - com.google.protobuf.ByteString - getStartBytes(); + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Topic getDefaultInstanceForType() { + return fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDefaultInstance(); + } - /** - * optional string loc = 14; - * @return Whether the loc field is set. - */ - boolean hasLoc(); - /** - * optional string loc = 14; - * @return The loc. - */ - java.lang.String getLoc(); - /** - * optional string loc = 14; - * @return The bytes for loc. - */ - com.google.protobuf.ByteString - getLocBytes(); + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Topic build() { + fi.hsl.common.passengercount.proto.PassengerCount.Topic result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * optional int32 stop = 15; - * @return Whether the stop field is set. - */ - boolean hasStop(); - /** - * optional int32 stop = 15; - * @return The stop. - */ - int getStop(); + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Topic buildPartial() { + fi.hsl.common.passengercount.proto.PassengerCount.Topic result = new fi.hsl.common.passengercount.proto.PassengerCount.Topic( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - * optional string route = 16; - * @return Whether the route field is set. - */ - boolean hasRoute(); - /** - * optional string route = 16; - * @return The route. - */ - java.lang.String getRoute(); - /** - * optional string route = 16; - * @return The bytes for route. - */ - com.google.protobuf.ByteString - getRouteBytes(); + private void buildPartial0(fi.hsl.common.passengercount.proto.PassengerCount.Topic result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schemaVersion_ = schemaVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.receivedAt_ = receivedAt_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.topicPrefix_ = topicPrefix_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.topicVersion_ = topicVersion_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.journeyType_ = journeyType_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.temporalType_ = temporalType_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.eventType_ = eventType_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.transportMode_ = transportMode_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.operatorId_ = operatorId_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.vehicleNumber_ = vehicleNumber_; + to_bitField0_ |= 0x00000200; + } + result.bitField0_ |= to_bitField0_; + } - /** - * optional .proto.VehicleCounts vehicleCounts = 17; - * @return Whether the vehicleCounts field is set. - */ - boolean hasVehicleCounts(); - /** - * optional .proto.VehicleCounts vehicleCounts = 17; - * @return The vehicleCounts. - */ - fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts getVehicleCounts(); - /** - * optional .proto.VehicleCounts vehicleCounts = 17; - */ - fi.hsl.common.passengercount.proto.PassengerCount.VehicleCountsOrBuilder getVehicleCountsOrBuilder(); - } - /** - * Protobuf type {@code proto.Payload} - */ - public static final class Payload extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.Payload) - PayloadOrBuilder { - private static final long serialVersionUID = 0L; - // Use Payload.newBuilder() to construct. - private Payload(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Payload() { - desi_ = ""; - dir_ = ""; - oday_ = ""; - start_ = ""; - loc_ = ""; - route_ = ""; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.passengercount.proto.PassengerCount.Topic) { + return mergeFrom((fi.hsl.common.passengercount.proto.PassengerCount.Topic) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Payload(); - } + public Builder mergeFrom(fi.hsl.common.passengercount.proto.PassengerCount.Topic other) { + if (other == fi.hsl.common.passengercount.proto.PassengerCount.Topic.getDefaultInstance()) + return this; + if (other.hasSchemaVersion()) { + setSchemaVersion(other.getSchemaVersion()); + } + if (other.hasReceivedAt()) { + setReceivedAt(other.getReceivedAt()); + } + if (other.hasTopicPrefix()) { + topicPrefix_ = other.topicPrefix_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTopicVersion()) { + topicVersion_ = other.topicVersion_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasJourneyType()) { + setJourneyType(other.getJourneyType()); + } + if (other.hasTemporalType()) { + setTemporalType(other.getTemporalType()); + } + if (other.hasEventType()) { + setEventType(other.getEventType()); + } + if (other.hasTransportMode()) { + setTransportMode(other.getTransportMode()); + } + if (other.hasOperatorId()) { + setOperatorId(other.getOperatorId()); + } + if (other.hasVehicleNumber()) { + setVehicleNumber(other.getVehicleNumber()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Payload_descriptor; - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasSchemaVersion()) { + return false; + } + if (!hasReceivedAt()) { + return false; + } + if (!hasTopicPrefix()) { + return false; + } + if (!hasTopicVersion()) { + return false; + } + if (!hasJourneyType()) { + return false; + } + if (!hasTemporalType()) { + return false; + } + if (!hasEventType()) { + return false; + } + if (!hasOperatorId()) { + return false; + } + if (!hasVehicleNumber()) { + return false; + } + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Payload_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.passengercount.proto.PassengerCount.Payload.class, fi.hsl.common.passengercount.proto.PassengerCount.Payload.Builder.class); - } + @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 : { + schemaVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16 : { + receivedAt_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26 : { + topicPrefix_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34 : { + topicVersion_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType tmpValue = fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(5, tmpRaw); + } else { + journeyType_ = tmpRaw; + bitField0_ |= 0x00000010; + } + break; + } // case 40 + case 48 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType tmpValue = fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(6, tmpRaw); + } else { + temporalType_ = tmpRaw; + bitField0_ |= 0x00000020; + } + break; + } // case 48 + case 56 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType tmpValue = fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(7, tmpRaw); + } else { + eventType_ = tmpRaw; + bitField0_ |= 0x00000040; + } + break; + } // case 56 + case 64 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode tmpValue = fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(8, tmpRaw); + } else { + transportMode_ = tmpRaw; + bitField0_ |= 0x00000080; + } + break; + } // case 64 + case 72 : { + operatorId_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80 : { + vehicleNumber_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + 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 schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(int value) { + + schemaVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + schemaVersion_ = 1; + onChanged(); + return this; + } - private int bitField0_; - public static final int DESI_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object desi_ = ""; - /** - * optional string desi = 1; - * @return Whether the desi field is set. - */ - @java.lang.Override - public boolean hasDesi() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string desi = 1; - * @return The desi. - */ - @java.lang.Override - public java.lang.String getDesi() { - java.lang.Object ref = desi_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - desi_ = s; - } - return s; - } - } - /** - * optional string desi = 1; - * @return The bytes for desi. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDesiBytes() { - java.lang.Object ref = desi_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private long receivedAt_; + /** + *
+             * Our server timestamp as Epoch ms
+             * 
+ * + * required int64 received_at = 2; + * @return Whether the receivedAt field is set. + */ + @java.lang.Override + public boolean hasReceivedAt() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * Our server timestamp as Epoch ms
+             * 
+ * + * required int64 received_at = 2; + * @return The receivedAt. + */ + @java.lang.Override + public long getReceivedAt() { + return receivedAt_; + } + /** + *
+             * Our server timestamp as Epoch ms
+             * 
+ * + * required int64 received_at = 2; + * @param value The receivedAt to set. + * @return This builder for chaining. + */ + public Builder setReceivedAt(long value) { + + receivedAt_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * Our server timestamp as Epoch ms
+             * 
+ * + * required int64 received_at = 2; + * @return This builder for chaining. + */ + public Builder clearReceivedAt() { + bitField0_ = (bitField0_ & ~0x00000002); + receivedAt_ = 0L; + onChanged(); + return this; + } - public static final int DIR_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object dir_ = ""; - /** - * optional string dir = 2; - * @return Whether the dir field is set. - */ - @java.lang.Override - public boolean hasDir() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional string dir = 2; - * @return The dir. - */ - @java.lang.Override - public java.lang.String getDir() { - java.lang.Object ref = dir_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - dir_ = s; - } - return s; - } - } - /** - * optional string dir = 2; - * @return The bytes for dir. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDirBytes() { - java.lang.Object ref = dir_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dir_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private java.lang.Object topicPrefix_ = ""; + /** + * required string topic_prefix = 3; + * @return Whether the topicPrefix field is set. + */ + public boolean hasTopicPrefix() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required string topic_prefix = 3; + * @return The topicPrefix. + */ + public java.lang.String getTopicPrefix() { + java.lang.Object ref = topicPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + topicPrefix_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string topic_prefix = 3; + * @return The bytes for topicPrefix. + */ + public com.google.protobuf.ByteString getTopicPrefixBytes() { + java.lang.Object ref = topicPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + topicPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string topic_prefix = 3; + * @param value The topicPrefix to set. + * @return This builder for chaining. + */ + public Builder setTopicPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topicPrefix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required string topic_prefix = 3; + * @return This builder for chaining. + */ + public Builder clearTopicPrefix() { + topicPrefix_ = getDefaultInstance().getTopicPrefix(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * required string topic_prefix = 3; + * @param value The bytes for topicPrefix to set. + * @return This builder for chaining. + */ + public Builder setTopicPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + topicPrefix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - public static final int OPER_FIELD_NUMBER = 3; - private int oper_ = 0; - /** - * optional int32 oper = 3; - * @return Whether the oper field is set. - */ - @java.lang.Override - public boolean hasOper() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional int32 oper = 3; - * @return The oper. - */ - @java.lang.Override - public int getOper() { - return oper_; - } + private java.lang.Object topicVersion_ = ""; + /** + * required string topic_version = 4; + * @return Whether the topicVersion field is set. + */ + public boolean hasTopicVersion() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * required string topic_version = 4; + * @return The topicVersion. + */ + public java.lang.String getTopicVersion() { + java.lang.Object ref = topicVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + topicVersion_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string topic_version = 4; + * @return The bytes for topicVersion. + */ + public com.google.protobuf.ByteString getTopicVersionBytes() { + java.lang.Object ref = topicVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + topicVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string topic_version = 4; + * @param value The topicVersion to set. + * @return This builder for chaining. + */ + public Builder setTopicVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topicVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * required string topic_version = 4; + * @return This builder for chaining. + */ + public Builder clearTopicVersion() { + topicVersion_ = getDefaultInstance().getTopicVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * required string topic_version = 4; + * @param value The bytes for topicVersion to set. + * @return This builder for chaining. + */ + public Builder setTopicVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + topicVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - public static final int VEH_FIELD_NUMBER = 4; - private int veh_ = 0; - /** - * optional int32 veh = 4; - * @return Whether the veh field is set. - */ - @java.lang.Override - public boolean hasVeh() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional int32 veh = 4; - * @return The veh. - */ - @java.lang.Override - public int getVeh() { - return veh_; - } + private int journeyType_ = 0; + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @return Whether the journeyType field is set. + */ + @java.lang.Override + public boolean hasJourneyType() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @return The journeyType. + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType getJourneyType() { + fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType + .forNumber(journeyType_); + return result == null + ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType.journey + : result; + } + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @param value The journeyType to set. + * @return This builder for chaining. + */ + public Builder setJourneyType(fi.hsl.common.passengercount.proto.PassengerCount.Topic.JourneyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + journeyType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * required .proto.Topic.JourneyType journey_type = 5; + * @return This builder for chaining. + */ + public Builder clearJourneyType() { + bitField0_ = (bitField0_ & ~0x00000010); + journeyType_ = 0; + onChanged(); + return this; + } - public static final int TST_FIELD_NUMBER = 5; - private long tst_ = 0L; - /** - * optional int64 tst = 5; - * @return Whether the tst field is set. - */ - @java.lang.Override - public boolean hasTst() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional int64 tst = 5; - * @return The tst. - */ - @java.lang.Override - public long getTst() { - return tst_; - } + private int temporalType_ = 0; + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @return Whether the temporalType field is set. + */ + @java.lang.Override + public boolean hasTemporalType() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @return The temporalType. + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType getTemporalType() { + fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType + .forNumber(temporalType_); + return result == null + ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType.ongoing + : result; + } + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @param value The temporalType to set. + * @return This builder for chaining. + */ + public Builder setTemporalType(fi.hsl.common.passengercount.proto.PassengerCount.Topic.TemporalType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + temporalType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * required .proto.Topic.TemporalType temporal_type = 6; + * @return This builder for chaining. + */ + public Builder clearTemporalType() { + bitField0_ = (bitField0_ & ~0x00000020); + temporalType_ = 0; + onChanged(); + return this; + } - public static final int TSI_FIELD_NUMBER = 6; - private long tsi_ = 0L; - /** - * optional int64 tsi = 6; - * @return Whether the tsi field is set. - */ - @java.lang.Override - public boolean hasTsi() { - return ((bitField0_ & 0x00000020) != 0); + private int eventType_ = 0; + /** + * required .proto.Topic.EventType event_type = 7; + * @return Whether the eventType field is set. + */ + @java.lang.Override + public boolean hasEventType() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * required .proto.Topic.EventType event_type = 7; + * @return The eventType. + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType getEventType() { + fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType + .forNumber(eventType_); + return result == null ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType.apc : result; + } + /** + * required .proto.Topic.EventType event_type = 7; + * @param value The eventType to set. + * @return This builder for chaining. + */ + public Builder setEventType(fi.hsl.common.passengercount.proto.PassengerCount.Topic.EventType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + eventType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * required .proto.Topic.EventType event_type = 7; + * @return This builder for chaining. + */ + public Builder clearEventType() { + bitField0_ = (bitField0_ & ~0x00000040); + eventType_ = 0; + onChanged(); + return this; + } + + private int transportMode_ = 0; + /** + *
+             * Optional because of rare bug in data source systems
+             * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @return Whether the transportMode field is set. + */ + @java.lang.Override + public boolean hasTransportMode() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+             * Optional because of rare bug in data source systems
+             * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @return The transportMode. + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode getTransportMode() { + fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode result = fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode + .forNumber(transportMode_); + return result == null + ? fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode.bus + : result; + } + /** + *
+             * Optional because of rare bug in data source systems
+             * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @param value The transportMode to set. + * @return This builder for chaining. + */ + public Builder setTransportMode( + fi.hsl.common.passengercount.proto.PassengerCount.Topic.TransportMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + transportMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * Optional because of rare bug in data source systems
+             * 
+ * + * optional .proto.Topic.TransportMode transport_mode = 8; + * @return This builder for chaining. + */ + public Builder clearTransportMode() { + bitField0_ = (bitField0_ & ~0x00000080); + transportMode_ = 0; + onChanged(); + return this; + } + + private int operatorId_; + /** + * required int32 operator_id = 9; + * @return Whether the operatorId field is set. + */ + @java.lang.Override + public boolean hasOperatorId() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * required int32 operator_id = 9; + * @return The operatorId. + */ + @java.lang.Override + public int getOperatorId() { + return operatorId_; + } + /** + * required int32 operator_id = 9; + * @param value The operatorId to set. + * @return This builder for chaining. + */ + public Builder setOperatorId(int value) { + + operatorId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * required int32 operator_id = 9; + * @return This builder for chaining. + */ + public Builder clearOperatorId() { + bitField0_ = (bitField0_ & ~0x00000100); + operatorId_ = 0; + onChanged(); + return this; + } + + private int vehicleNumber_; + /** + * required int32 vehicle_number = 10; + * @return Whether the vehicleNumber field is set. + */ + @java.lang.Override + public boolean hasVehicleNumber() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * required int32 vehicle_number = 10; + * @return The vehicleNumber. + */ + @java.lang.Override + public int getVehicleNumber() { + return vehicleNumber_; + } + /** + * required int32 vehicle_number = 10; + * @param value The vehicleNumber to set. + * @return This builder for chaining. + */ + public Builder setVehicleNumber(int value) { + + vehicleNumber_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * required int32 vehicle_number = 10; + * @return This builder for chaining. + */ + public Builder clearVehicleNumber() { + bitField0_ = (bitField0_ & ~0x00000200); + vehicleNumber_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.Topic) + } + + // @@protoc_insertion_point(class_scope:proto.Topic) + private static final fi.hsl.common.passengercount.proto.PassengerCount.Topic DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.passengercount.proto.PassengerCount.Topic(); + } + + public static fi.hsl.common.passengercount.proto.PassengerCount.Topic getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Topic parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Topic getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PayloadOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.Payload) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string desi = 1; + * @return Whether the desi field is set. + */ + boolean hasDesi(); + /** + * optional string desi = 1; + * @return The desi. + */ + java.lang.String getDesi(); + /** + * optional string desi = 1; + * @return The bytes for desi. + */ + com.google.protobuf.ByteString getDesiBytes(); + + /** + * optional string dir = 2; + * @return Whether the dir field is set. + */ + boolean hasDir(); + /** + * optional string dir = 2; + * @return The dir. + */ + java.lang.String getDir(); + /** + * optional string dir = 2; + * @return The bytes for dir. + */ + com.google.protobuf.ByteString getDirBytes(); + + /** + * optional int32 oper = 3; + * @return Whether the oper field is set. + */ + boolean hasOper(); + /** + * optional int32 oper = 3; + * @return The oper. + */ + int getOper(); + + /** + * optional int32 veh = 4; + * @return Whether the veh field is set. + */ + boolean hasVeh(); + /** + * optional int32 veh = 4; + * @return The veh. + */ + int getVeh(); + + /** + * optional int64 tst = 5; + * @return Whether the tst field is set. + */ + boolean hasTst(); + /** + * optional int64 tst = 5; + * @return The tst. + */ + long getTst(); + + /** + * optional int64 tsi = 6; + * @return Whether the tsi field is set. + */ + boolean hasTsi(); + /** + * optional int64 tsi = 6; + * @return The tsi. + */ + long getTsi(); + + /** + * optional double lat = 7; + * @return Whether the lat field is set. + */ + boolean hasLat(); + /** + * optional double lat = 7; + * @return The lat. + */ + double getLat(); + + /** + * optional double long = 8; + * @return Whether the long field is set. + */ + boolean hasLong(); + /** + * optional double long = 8; + * @return The long. + */ + double getLong(); + + /** + * optional double odo = 9; + * @return Whether the odo field is set. + */ + boolean hasOdo(); + /** + * optional double odo = 9; + * @return The odo. + */ + double getOdo(); + + /** + * optional string oday = 10; + * @return Whether the oday field is set. + */ + boolean hasOday(); + /** + * optional string oday = 10; + * @return The oday. + */ + java.lang.String getOday(); + /** + * optional string oday = 10; + * @return The bytes for oday. + */ + com.google.protobuf.ByteString getOdayBytes(); + + /** + * optional int32 jrn = 11; + * @return Whether the jrn field is set. + */ + boolean hasJrn(); + /** + * optional int32 jrn = 11; + * @return The jrn. + */ + int getJrn(); + + /** + * optional int32 line = 12; + * @return Whether the line field is set. + */ + boolean hasLine(); + /** + * optional int32 line = 12; + * @return The line. + */ + int getLine(); + + /** + * optional string start = 13; + * @return Whether the start field is set. + */ + boolean hasStart(); + /** + * optional string start = 13; + * @return The start. + */ + java.lang.String getStart(); + /** + * optional string start = 13; + * @return The bytes for start. + */ + com.google.protobuf.ByteString getStartBytes(); + + /** + * optional string loc = 14; + * @return Whether the loc field is set. + */ + boolean hasLoc(); + /** + * optional string loc = 14; + * @return The loc. + */ + java.lang.String getLoc(); + /** + * optional string loc = 14; + * @return The bytes for loc. + */ + com.google.protobuf.ByteString getLocBytes(); + + /** + * optional int32 stop = 15; + * @return Whether the stop field is set. + */ + boolean hasStop(); + /** + * optional int32 stop = 15; + * @return The stop. + */ + int getStop(); + + /** + * optional string route = 16; + * @return Whether the route field is set. + */ + boolean hasRoute(); + /** + * optional string route = 16; + * @return The route. + */ + java.lang.String getRoute(); + /** + * optional string route = 16; + * @return The bytes for route. + */ + com.google.protobuf.ByteString getRouteBytes(); + + /** + * optional .proto.VehicleCounts vehicleCounts = 17; + * @return Whether the vehicleCounts field is set. + */ + boolean hasVehicleCounts(); + /** + * optional .proto.VehicleCounts vehicleCounts = 17; + * @return The vehicleCounts. + */ + fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts getVehicleCounts(); + /** + * optional .proto.VehicleCounts vehicleCounts = 17; + */ + fi.hsl.common.passengercount.proto.PassengerCount.VehicleCountsOrBuilder getVehicleCountsOrBuilder(); } /** - * optional int64 tsi = 6; - * @return The tsi. + * Protobuf type {@code proto.Payload} */ - @java.lang.Override - public long getTsi() { - return tsi_; - } + public static final class Payload extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.Payload) + PayloadOrBuilder { + private static final long serialVersionUID = 0L; + // Use Payload.newBuilder() to construct. + private Payload(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Payload() { + desi_ = ""; + dir_ = ""; + oday_ = ""; + start_ = ""; + loc_ = ""; + route_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Payload(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Payload_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Payload_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.passengercount.proto.PassengerCount.Payload.class, + fi.hsl.common.passengercount.proto.PassengerCount.Payload.Builder.class); + } + + private int bitField0_; + public static final int DESI_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object desi_ = ""; + /** + * optional string desi = 1; + * @return Whether the desi field is set. + */ + @java.lang.Override + public boolean hasDesi() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string desi = 1; + * @return The desi. + */ + @java.lang.Override + public java.lang.String getDesi() { + java.lang.Object ref = desi_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + desi_ = s; + } + return s; + } + } + /** + * optional string desi = 1; + * @return The bytes for desi. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDesiBytes() { + java.lang.Object ref = desi_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + desi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIR_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object dir_ = ""; + /** + * optional string dir = 2; + * @return Whether the dir field is set. + */ + @java.lang.Override + public boolean hasDir() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string dir = 2; + * @return The dir. + */ + @java.lang.Override + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + dir_ = s; + } + return s; + } + } + /** + * optional string dir = 2; + * @return The bytes for dir. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPER_FIELD_NUMBER = 3; + private int oper_ = 0; + /** + * optional int32 oper = 3; + * @return Whether the oper field is set. + */ + @java.lang.Override + public boolean hasOper() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int32 oper = 3; + * @return The oper. + */ + @java.lang.Override + public int getOper() { + return oper_; + } + + public static final int VEH_FIELD_NUMBER = 4; + private int veh_ = 0; + /** + * optional int32 veh = 4; + * @return Whether the veh field is set. + */ + @java.lang.Override + public boolean hasVeh() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int32 veh = 4; + * @return The veh. + */ + @java.lang.Override + public int getVeh() { + return veh_; + } + + public static final int TST_FIELD_NUMBER = 5; + private long tst_ = 0L; + /** + * optional int64 tst = 5; + * @return Whether the tst field is set. + */ + @java.lang.Override + public boolean hasTst() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional int64 tst = 5; + * @return The tst. + */ + @java.lang.Override + public long getTst() { + return tst_; + } + + public static final int TSI_FIELD_NUMBER = 6; + private long tsi_ = 0L; + /** + * optional int64 tsi = 6; + * @return Whether the tsi field is set. + */ + @java.lang.Override + public boolean hasTsi() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional int64 tsi = 6; + * @return The tsi. + */ + @java.lang.Override + public long getTsi() { + return tsi_; + } + + public static final int LAT_FIELD_NUMBER = 7; + private double lat_ = 0D; + /** + * optional double lat = 7; + * @return Whether the lat field is set. + */ + @java.lang.Override + public boolean hasLat() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional double lat = 7; + * @return The lat. + */ + @java.lang.Override + public double getLat() { + return lat_; + } + + public static final int LONG_FIELD_NUMBER = 8; + private double long_ = 0D; + /** + * optional double long = 8; + * @return Whether the long field is set. + */ + @java.lang.Override + public boolean hasLong() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional double long = 8; + * @return The long. + */ + @java.lang.Override + public double getLong() { + return long_; + } + + public static final int ODO_FIELD_NUMBER = 9; + private double odo_ = 0D; + /** + * optional double odo = 9; + * @return Whether the odo field is set. + */ + @java.lang.Override + public boolean hasOdo() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional double odo = 9; + * @return The odo. + */ + @java.lang.Override + public double getOdo() { + return odo_; + } + + public static final int ODAY_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object oday_ = ""; + /** + * optional string oday = 10; + * @return Whether the oday field is set. + */ + @java.lang.Override + public boolean hasOday() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional string oday = 10; + * @return The oday. + */ + @java.lang.Override + public java.lang.String getOday() { + java.lang.Object ref = oday_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + oday_ = s; + } + return s; + } + } + /** + * optional string oday = 10; + * @return The bytes for oday. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOdayBytes() { + java.lang.Object ref = oday_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oday_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JRN_FIELD_NUMBER = 11; + private int jrn_ = 0; + /** + * optional int32 jrn = 11; + * @return Whether the jrn field is set. + */ + @java.lang.Override + public boolean hasJrn() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional int32 jrn = 11; + * @return The jrn. + */ + @java.lang.Override + public int getJrn() { + return jrn_; + } + + public static final int LINE_FIELD_NUMBER = 12; + private int line_ = 0; + /** + * optional int32 line = 12; + * @return Whether the line field is set. + */ + @java.lang.Override + public boolean hasLine() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional int32 line = 12; + * @return The line. + */ + @java.lang.Override + public int getLine() { + return line_; + } + + public static final int START_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private volatile java.lang.Object start_ = ""; + /** + * optional string start = 13; + * @return Whether the start field is set. + */ + @java.lang.Override + public boolean hasStart() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional string start = 13; + * @return The start. + */ + @java.lang.Override + public java.lang.String getStart() { + java.lang.Object ref = start_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + start_ = s; + } + return s; + } + } + /** + * optional string start = 13; + * @return The bytes for start. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartBytes() { + java.lang.Object ref = start_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + start_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOC_FIELD_NUMBER = 14; + @SuppressWarnings("serial") + private volatile java.lang.Object loc_ = ""; + /** + * optional string loc = 14; + * @return Whether the loc field is set. + */ + @java.lang.Override + public boolean hasLoc() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * optional string loc = 14; + * @return The loc. + */ + @java.lang.Override + public java.lang.String getLoc() { + java.lang.Object ref = loc_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + loc_ = s; + } + return s; + } + } + /** + * optional string loc = 14; + * @return The bytes for loc. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocBytes() { + java.lang.Object ref = loc_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + loc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STOP_FIELD_NUMBER = 15; + private int stop_ = 0; + /** + * optional int32 stop = 15; + * @return Whether the stop field is set. + */ + @java.lang.Override + public boolean hasStop() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * optional int32 stop = 15; + * @return The stop. + */ + @java.lang.Override + public int getStop() { + return stop_; + } + + public static final int ROUTE_FIELD_NUMBER = 16; + @SuppressWarnings("serial") + private volatile java.lang.Object route_ = ""; + /** + * optional string route = 16; + * @return Whether the route field is set. + */ + @java.lang.Override + public boolean hasRoute() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * optional string route = 16; + * @return The route. + */ + @java.lang.Override + public java.lang.String getRoute() { + java.lang.Object ref = route_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + route_ = s; + } + return s; + } + } + /** + * optional string route = 16; + * @return The bytes for route. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRouteBytes() { + java.lang.Object ref = route_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + route_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VEHICLECOUNTS_FIELD_NUMBER = 17; + private fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts vehicleCounts_; + /** + * optional .proto.VehicleCounts vehicleCounts = 17; + * @return Whether the vehicleCounts field is set. + */ + @java.lang.Override + public boolean hasVehicleCounts() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * optional .proto.VehicleCounts vehicleCounts = 17; + * @return The vehicleCounts. + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts getVehicleCounts() { + return vehicleCounts_ == null + ? fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.getDefaultInstance() + : vehicleCounts_; + } + /** + * optional .proto.VehicleCounts vehicleCounts = 17; + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCountsOrBuilder getVehicleCountsOrBuilder() { + return vehicleCounts_ == null + ? fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.getDefaultInstance() + : vehicleCounts_; + } + + 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, desi_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dir_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(3, oper_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt32(4, veh_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt64(5, tst_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeInt64(6, tsi_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeDouble(7, lat_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeDouble(8, long_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeDouble(9, odo_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, oday_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeInt32(11, jrn_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeInt32(12, line_); + } + if (((bitField0_ & 0x00001000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, start_); + } + if (((bitField0_ & 0x00002000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, loc_); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeInt32(15, stop_); + } + if (((bitField0_ & 0x00008000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, route_); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(17, getVehicleCounts()); + } + 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, desi_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dir_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, oper_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, veh_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, tst_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, tsi_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(7, lat_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(8, long_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(9, odo_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, oday_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, jrn_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, line_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, start_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, loc_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(15, stop_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, route_); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getVehicleCounts()); + } + 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 fi.hsl.common.passengercount.proto.PassengerCount.Payload)) { + return super.equals(obj); + } + fi.hsl.common.passengercount.proto.PassengerCount.Payload other = (fi.hsl.common.passengercount.proto.PassengerCount.Payload) obj; + + if (hasDesi() != other.hasDesi()) + return false; + if (hasDesi()) { + if (!getDesi().equals(other.getDesi())) + return false; + } + if (hasDir() != other.hasDir()) + return false; + if (hasDir()) { + if (!getDir().equals(other.getDir())) + return false; + } + if (hasOper() != other.hasOper()) + return false; + if (hasOper()) { + if (getOper() != other.getOper()) + return false; + } + if (hasVeh() != other.hasVeh()) + return false; + if (hasVeh()) { + if (getVeh() != other.getVeh()) + return false; + } + if (hasTst() != other.hasTst()) + return false; + if (hasTst()) { + if (getTst() != other.getTst()) + return false; + } + if (hasTsi() != other.hasTsi()) + return false; + if (hasTsi()) { + if (getTsi() != other.getTsi()) + return false; + } + if (hasLat() != other.hasLat()) + return false; + if (hasLat()) { + if (java.lang.Double.doubleToLongBits(getLat()) != java.lang.Double.doubleToLongBits(other.getLat())) + return false; + } + if (hasLong() != other.hasLong()) + return false; + if (hasLong()) { + if (java.lang.Double.doubleToLongBits(getLong()) != java.lang.Double.doubleToLongBits(other.getLong())) + return false; + } + if (hasOdo() != other.hasOdo()) + return false; + if (hasOdo()) { + if (java.lang.Double.doubleToLongBits(getOdo()) != java.lang.Double.doubleToLongBits(other.getOdo())) + return false; + } + if (hasOday() != other.hasOday()) + return false; + if (hasOday()) { + if (!getOday().equals(other.getOday())) + return false; + } + if (hasJrn() != other.hasJrn()) + return false; + if (hasJrn()) { + if (getJrn() != other.getJrn()) + return false; + } + if (hasLine() != other.hasLine()) + return false; + if (hasLine()) { + if (getLine() != other.getLine()) + return false; + } + if (hasStart() != other.hasStart()) + return false; + if (hasStart()) { + if (!getStart().equals(other.getStart())) + return false; + } + if (hasLoc() != other.hasLoc()) + return false; + if (hasLoc()) { + if (!getLoc().equals(other.getLoc())) + return false; + } + if (hasStop() != other.hasStop()) + return false; + if (hasStop()) { + if (getStop() != other.getStop()) + return false; + } + if (hasRoute() != other.hasRoute()) + return false; + if (hasRoute()) { + if (!getRoute().equals(other.getRoute())) + return false; + } + if (hasVehicleCounts() != other.hasVehicleCounts()) + return false; + if (hasVehicleCounts()) { + if (!getVehicleCounts().equals(other.getVehicleCounts())) + 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 (hasDesi()) { + hash = (37 * hash) + DESI_FIELD_NUMBER; + hash = (53 * hash) + getDesi().hashCode(); + } + if (hasDir()) { + hash = (37 * hash) + DIR_FIELD_NUMBER; + hash = (53 * hash) + getDir().hashCode(); + } + if (hasOper()) { + hash = (37 * hash) + OPER_FIELD_NUMBER; + hash = (53 * hash) + getOper(); + } + if (hasVeh()) { + hash = (37 * hash) + VEH_FIELD_NUMBER; + hash = (53 * hash) + getVeh(); + } + if (hasTst()) { + hash = (37 * hash) + TST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTst()); + } + if (hasTsi()) { + hash = (37 * hash) + TSI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTsi()); + } + if (hasLat()) { + hash = (37 * hash) + LAT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getLat())); + } + if (hasLong()) { + hash = (37 * hash) + LONG_FIELD_NUMBER; + hash = (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getLong())); + } + if (hasOdo()) { + hash = (37 * hash) + ODO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getOdo())); + } + if (hasOday()) { + hash = (37 * hash) + ODAY_FIELD_NUMBER; + hash = (53 * hash) + getOday().hashCode(); + } + if (hasJrn()) { + hash = (37 * hash) + JRN_FIELD_NUMBER; + hash = (53 * hash) + getJrn(); + } + if (hasLine()) { + hash = (37 * hash) + LINE_FIELD_NUMBER; + hash = (53 * hash) + getLine(); + } + if (hasStart()) { + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + getStart().hashCode(); + } + if (hasLoc()) { + hash = (37 * hash) + LOC_FIELD_NUMBER; + hash = (53 * hash) + getLoc().hashCode(); + } + if (hasStop()) { + hash = (37 * hash) + STOP_FIELD_NUMBER; + hash = (53 * hash) + getStop(); + } + if (hasRoute()) { + hash = (37 * hash) + ROUTE_FIELD_NUMBER; + hash = (53 * hash) + getRoute().hashCode(); + } + if (hasVehicleCounts()) { + hash = (37 * hash) + VEHICLECOUNTS_FIELD_NUMBER; + hash = (53 * hash) + getVehicleCounts().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.passengercount.proto.PassengerCount.Payload prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.Payload} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.Payload) + fi.hsl.common.passengercount.proto.PassengerCount.PayloadOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Payload_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Payload_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.passengercount.proto.PassengerCount.Payload.class, + fi.hsl.common.passengercount.proto.PassengerCount.Payload.Builder.class); + } + + // Construct using fi.hsl.common.passengercount.proto.PassengerCount.Payload.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVehicleCountsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + desi_ = ""; + dir_ = ""; + oper_ = 0; + veh_ = 0; + tst_ = 0L; + tsi_ = 0L; + lat_ = 0D; + long_ = 0D; + odo_ = 0D; + oday_ = ""; + jrn_ = 0; + line_ = 0; + start_ = ""; + loc_ = ""; + stop_ = 0; + route_ = ""; + vehicleCounts_ = null; + if (vehicleCountsBuilder_ != null) { + vehicleCountsBuilder_.dispose(); + vehicleCountsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Payload_descriptor; + } + + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Payload getDefaultInstanceForType() { + return fi.hsl.common.passengercount.proto.PassengerCount.Payload.getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Payload build() { + fi.hsl.common.passengercount.proto.PassengerCount.Payload result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Payload buildPartial() { + fi.hsl.common.passengercount.proto.PassengerCount.Payload result = new fi.hsl.common.passengercount.proto.PassengerCount.Payload( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(fi.hsl.common.passengercount.proto.PassengerCount.Payload result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.desi_ = desi_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dir_ = dir_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.oper_ = oper_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.veh_ = veh_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tst_ = tst_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.tsi_ = tsi_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.lat_ = lat_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.long_ = long_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.odo_ = odo_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.oday_ = oday_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.jrn_ = jrn_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.line_ = line_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.start_ = start_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.loc_ = loc_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.stop_ = stop_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.route_ = route_; + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.vehicleCounts_ = vehicleCountsBuilder_ == null + ? vehicleCounts_ + : vehicleCountsBuilder_.build(); + to_bitField0_ |= 0x00010000; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.passengercount.proto.PassengerCount.Payload) { + return mergeFrom((fi.hsl.common.passengercount.proto.PassengerCount.Payload) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(fi.hsl.common.passengercount.proto.PassengerCount.Payload other) { + if (other == fi.hsl.common.passengercount.proto.PassengerCount.Payload.getDefaultInstance()) + return this; + if (other.hasDesi()) { + desi_ = other.desi_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDir()) { + dir_ = other.dir_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOper()) { + setOper(other.getOper()); + } + if (other.hasVeh()) { + setVeh(other.getVeh()); + } + if (other.hasTst()) { + setTst(other.getTst()); + } + if (other.hasTsi()) { + setTsi(other.getTsi()); + } + if (other.hasLat()) { + setLat(other.getLat()); + } + if (other.hasLong()) { + setLong(other.getLong()); + } + if (other.hasOdo()) { + setOdo(other.getOdo()); + } + if (other.hasOday()) { + oday_ = other.oday_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasJrn()) { + setJrn(other.getJrn()); + } + if (other.hasLine()) { + setLine(other.getLine()); + } + if (other.hasStart()) { + start_ = other.start_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.hasLoc()) { + loc_ = other.loc_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (other.hasStop()) { + setStop(other.getStop()); + } + if (other.hasRoute()) { + route_ = other.route_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (other.hasVehicleCounts()) { + mergeVehicleCounts(other.getVehicleCounts()); + } + 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 : { + desi_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18 : { + dir_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24 : { + oper_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32 : { + veh_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40 : { + tst_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48 : { + tsi_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 57 : { + lat_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 57 + case 65 : { + long_ = input.readDouble(); + bitField0_ |= 0x00000080; + break; + } // case 65 + case 73 : { + odo_ = input.readDouble(); + bitField0_ |= 0x00000100; + break; + } // case 73 + case 82 : { + oday_ = input.readBytes(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88 : { + jrn_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96 : { + line_ = input.readInt32(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 106 : { + start_ = input.readBytes(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114 : { + loc_ = input.readBytes(); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 120 : { + stop_ = input.readInt32(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 130 : { + route_ = input.readBytes(); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138 : { + input.readMessage(getVehicleCountsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 138 + 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 desi_ = ""; + /** + * optional string desi = 1; + * @return Whether the desi field is set. + */ + public boolean hasDesi() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string desi = 1; + * @return The desi. + */ + public java.lang.String getDesi() { + java.lang.Object ref = desi_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + desi_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string desi = 1; + * @return The bytes for desi. + */ + public com.google.protobuf.ByteString getDesiBytes() { + java.lang.Object ref = desi_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + desi_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string desi = 1; + * @param value The desi to set. + * @return This builder for chaining. + */ + public Builder setDesi(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + desi_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional string desi = 1; + * @return This builder for chaining. + */ + public Builder clearDesi() { + desi_ = getDefaultInstance().getDesi(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * optional string desi = 1; + * @param value The bytes for desi to set. + * @return This builder for chaining. + */ + public Builder setDesiBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + desi_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dir_ = ""; + /** + * optional string dir = 2; + * @return Whether the dir field is set. + */ + public boolean hasDir() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string dir = 2; + * @return The dir. + */ + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + dir_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string dir = 2; + * @return The bytes for dir. + */ + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string dir = 2; + * @param value The dir to set. + * @return This builder for chaining. + */ + public Builder setDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional string dir = 2; + * @return This builder for chaining. + */ + public Builder clearDir() { + dir_ = getDefaultInstance().getDir(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * optional string dir = 2; + * @param value The bytes for dir to set. + * @return This builder for chaining. + */ + public Builder setDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + dir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - public static final int LAT_FIELD_NUMBER = 7; - private double lat_ = 0D; - /** - * optional double lat = 7; - * @return Whether the lat field is set. - */ - @java.lang.Override - public boolean hasLat() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * optional double lat = 7; - * @return The lat. - */ - @java.lang.Override - public double getLat() { - return lat_; - } + private int oper_; + /** + * optional int32 oper = 3; + * @return Whether the oper field is set. + */ + @java.lang.Override + public boolean hasOper() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int32 oper = 3; + * @return The oper. + */ + @java.lang.Override + public int getOper() { + return oper_; + } + /** + * optional int32 oper = 3; + * @param value The oper to set. + * @return This builder for chaining. + */ + public Builder setOper(int value) { + + oper_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional int32 oper = 3; + * @return This builder for chaining. + */ + public Builder clearOper() { + bitField0_ = (bitField0_ & ~0x00000004); + oper_ = 0; + onChanged(); + return this; + } - public static final int LONG_FIELD_NUMBER = 8; - private double long_ = 0D; - /** - * optional double long = 8; - * @return Whether the long field is set. - */ - @java.lang.Override - public boolean hasLong() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional double long = 8; - * @return The long. - */ - @java.lang.Override - public double getLong() { - return long_; - } + private int veh_; + /** + * optional int32 veh = 4; + * @return Whether the veh field is set. + */ + @java.lang.Override + public boolean hasVeh() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int32 veh = 4; + * @return The veh. + */ + @java.lang.Override + public int getVeh() { + return veh_; + } + /** + * optional int32 veh = 4; + * @param value The veh to set. + * @return This builder for chaining. + */ + public Builder setVeh(int value) { + + veh_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional int32 veh = 4; + * @return This builder for chaining. + */ + public Builder clearVeh() { + bitField0_ = (bitField0_ & ~0x00000008); + veh_ = 0; + onChanged(); + return this; + } - public static final int ODO_FIELD_NUMBER = 9; - private double odo_ = 0D; - /** - * optional double odo = 9; - * @return Whether the odo field is set. - */ - @java.lang.Override - public boolean hasOdo() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * optional double odo = 9; - * @return The odo. - */ - @java.lang.Override - public double getOdo() { - return odo_; - } + private long tst_; + /** + * optional int64 tst = 5; + * @return Whether the tst field is set. + */ + @java.lang.Override + public boolean hasTst() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional int64 tst = 5; + * @return The tst. + */ + @java.lang.Override + public long getTst() { + return tst_; + } + /** + * optional int64 tst = 5; + * @param value The tst to set. + * @return This builder for chaining. + */ + public Builder setTst(long value) { + + tst_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional int64 tst = 5; + * @return This builder for chaining. + */ + public Builder clearTst() { + bitField0_ = (bitField0_ & ~0x00000010); + tst_ = 0L; + onChanged(); + return this; + } - public static final int ODAY_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private volatile java.lang.Object oday_ = ""; - /** - * optional string oday = 10; - * @return Whether the oday field is set. - */ - @java.lang.Override - public boolean hasOday() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * optional string oday = 10; - * @return The oday. - */ - @java.lang.Override - public java.lang.String getOday() { - java.lang.Object ref = oday_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - oday_ = s; - } - return s; - } - } - /** - * optional string oday = 10; - * @return The bytes for oday. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOdayBytes() { - java.lang.Object ref = oday_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oday_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private long tsi_; + /** + * optional int64 tsi = 6; + * @return Whether the tsi field is set. + */ + @java.lang.Override + public boolean hasTsi() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional int64 tsi = 6; + * @return The tsi. + */ + @java.lang.Override + public long getTsi() { + return tsi_; + } + /** + * optional int64 tsi = 6; + * @param value The tsi to set. + * @return This builder for chaining. + */ + public Builder setTsi(long value) { + + tsi_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional int64 tsi = 6; + * @return This builder for chaining. + */ + public Builder clearTsi() { + bitField0_ = (bitField0_ & ~0x00000020); + tsi_ = 0L; + onChanged(); + return this; + } - public static final int JRN_FIELD_NUMBER = 11; - private int jrn_ = 0; - /** - * optional int32 jrn = 11; - * @return Whether the jrn field is set. - */ - @java.lang.Override - public boolean hasJrn() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * optional int32 jrn = 11; - * @return The jrn. - */ - @java.lang.Override - public int getJrn() { - return jrn_; - } + private double lat_; + /** + * optional double lat = 7; + * @return Whether the lat field is set. + */ + @java.lang.Override + public boolean hasLat() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional double lat = 7; + * @return The lat. + */ + @java.lang.Override + public double getLat() { + return lat_; + } + /** + * optional double lat = 7; + * @param value The lat to set. + * @return This builder for chaining. + */ + public Builder setLat(double value) { + + lat_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional double lat = 7; + * @return This builder for chaining. + */ + public Builder clearLat() { + bitField0_ = (bitField0_ & ~0x00000040); + lat_ = 0D; + onChanged(); + return this; + } - public static final int LINE_FIELD_NUMBER = 12; - private int line_ = 0; - /** - * optional int32 line = 12; - * @return Whether the line field is set. - */ - @java.lang.Override - public boolean hasLine() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * optional int32 line = 12; - * @return The line. - */ - @java.lang.Override - public int getLine() { - return line_; - } + private double long_; + /** + * optional double long = 8; + * @return Whether the long field is set. + */ + @java.lang.Override + public boolean hasLong() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional double long = 8; + * @return The long. + */ + @java.lang.Override + public double getLong() { + return long_; + } + /** + * optional double long = 8; + * @param value The long to set. + * @return This builder for chaining. + */ + public Builder setLong(double value) { + + long_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional double long = 8; + * @return This builder for chaining. + */ + public Builder clearLong() { + bitField0_ = (bitField0_ & ~0x00000080); + long_ = 0D; + onChanged(); + return this; + } - public static final int START_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private volatile java.lang.Object start_ = ""; - /** - * optional string start = 13; - * @return Whether the start field is set. - */ - @java.lang.Override - public boolean hasStart() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * optional string start = 13; - * @return The start. - */ - @java.lang.Override - public java.lang.String getStart() { - java.lang.Object ref = start_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - start_ = s; - } - return s; - } - } - /** - * optional string start = 13; - * @return The bytes for start. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartBytes() { - java.lang.Object ref = start_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - start_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private double odo_; + /** + * optional double odo = 9; + * @return Whether the odo field is set. + */ + @java.lang.Override + public boolean hasOdo() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional double odo = 9; + * @return The odo. + */ + @java.lang.Override + public double getOdo() { + return odo_; + } + /** + * optional double odo = 9; + * @param value The odo to set. + * @return This builder for chaining. + */ + public Builder setOdo(double value) { + + odo_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * optional double odo = 9; + * @return This builder for chaining. + */ + public Builder clearOdo() { + bitField0_ = (bitField0_ & ~0x00000100); + odo_ = 0D; + onChanged(); + return this; + } - public static final int LOC_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private volatile java.lang.Object loc_ = ""; - /** - * optional string loc = 14; - * @return Whether the loc field is set. - */ - @java.lang.Override - public boolean hasLoc() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * optional string loc = 14; - * @return The loc. - */ - @java.lang.Override - public java.lang.String getLoc() { - java.lang.Object ref = loc_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - loc_ = s; - } - return s; - } + private java.lang.Object oday_ = ""; + /** + * optional string oday = 10; + * @return Whether the oday field is set. + */ + public boolean hasOday() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional string oday = 10; + * @return The oday. + */ + public java.lang.String getOday() { + java.lang.Object ref = oday_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + oday_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string oday = 10; + * @return The bytes for oday. + */ + public com.google.protobuf.ByteString getOdayBytes() { + java.lang.Object ref = oday_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + oday_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string oday = 10; + * @param value The oday to set. + * @return This builder for chaining. + */ + public Builder setOday(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oday_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * optional string oday = 10; + * @return This builder for chaining. + */ + public Builder clearOday() { + oday_ = getDefaultInstance().getOday(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * optional string oday = 10; + * @param value The bytes for oday to set. + * @return This builder for chaining. + */ + public Builder setOdayBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + oday_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private int jrn_; + /** + * optional int32 jrn = 11; + * @return Whether the jrn field is set. + */ + @java.lang.Override + public boolean hasJrn() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional int32 jrn = 11; + * @return The jrn. + */ + @java.lang.Override + public int getJrn() { + return jrn_; + } + /** + * optional int32 jrn = 11; + * @param value The jrn to set. + * @return This builder for chaining. + */ + public Builder setJrn(int value) { + + jrn_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * optional int32 jrn = 11; + * @return This builder for chaining. + */ + public Builder clearJrn() { + bitField0_ = (bitField0_ & ~0x00000400); + jrn_ = 0; + onChanged(); + return this; + } + + private int line_; + /** + * optional int32 line = 12; + * @return Whether the line field is set. + */ + @java.lang.Override + public boolean hasLine() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional int32 line = 12; + * @return The line. + */ + @java.lang.Override + public int getLine() { + return line_; + } + /** + * optional int32 line = 12; + * @param value The line to set. + * @return This builder for chaining. + */ + public Builder setLine(int value) { + + line_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * optional int32 line = 12; + * @return This builder for chaining. + */ + public Builder clearLine() { + bitField0_ = (bitField0_ & ~0x00000800); + line_ = 0; + onChanged(); + return this; + } + + private java.lang.Object start_ = ""; + /** + * optional string start = 13; + * @return Whether the start field is set. + */ + public boolean hasStart() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional string start = 13; + * @return The start. + */ + public java.lang.String getStart() { + java.lang.Object ref = start_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + start_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string start = 13; + * @return The bytes for start. + */ + public com.google.protobuf.ByteString getStartBytes() { + java.lang.Object ref = start_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + start_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string start = 13; + * @param value The start to set. + * @return This builder for chaining. + */ + public Builder setStart(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + start_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * optional string start = 13; + * @return This builder for chaining. + */ + public Builder clearStart() { + start_ = getDefaultInstance().getStart(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * optional string start = 13; + * @param value The bytes for start to set. + * @return This builder for chaining. + */ + public Builder setStartBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + start_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object loc_ = ""; + /** + * optional string loc = 14; + * @return Whether the loc field is set. + */ + public boolean hasLoc() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * optional string loc = 14; + * @return The loc. + */ + public java.lang.String getLoc() { + java.lang.Object ref = loc_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + loc_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string loc = 14; + * @return The bytes for loc. + */ + public com.google.protobuf.ByteString getLocBytes() { + java.lang.Object ref = loc_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + loc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string loc = 14; + * @param value The loc to set. + * @return This builder for chaining. + */ + public Builder setLoc(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + loc_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * optional string loc = 14; + * @return This builder for chaining. + */ + public Builder clearLoc() { + loc_ = getDefaultInstance().getLoc(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + /** + * optional string loc = 14; + * @param value The bytes for loc to set. + * @return This builder for chaining. + */ + public Builder setLocBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + loc_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private int stop_; + /** + * optional int32 stop = 15; + * @return Whether the stop field is set. + */ + @java.lang.Override + public boolean hasStop() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * optional int32 stop = 15; + * @return The stop. + */ + @java.lang.Override + public int getStop() { + return stop_; + } + /** + * optional int32 stop = 15; + * @param value The stop to set. + * @return This builder for chaining. + */ + public Builder setStop(int value) { + + stop_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * optional int32 stop = 15; + * @return This builder for chaining. + */ + public Builder clearStop() { + bitField0_ = (bitField0_ & ~0x00004000); + stop_ = 0; + onChanged(); + return this; + } + + private java.lang.Object route_ = ""; + /** + * optional string route = 16; + * @return Whether the route field is set. + */ + public boolean hasRoute() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * optional string route = 16; + * @return The route. + */ + public java.lang.String getRoute() { + java.lang.Object ref = route_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + route_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string route = 16; + * @return The bytes for route. + */ + public com.google.protobuf.ByteString getRouteBytes() { + java.lang.Object ref = route_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + route_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string route = 16; + * @param value The route to set. + * @return This builder for chaining. + */ + public Builder setRoute(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + route_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * optional string route = 16; + * @return This builder for chaining. + */ + public Builder clearRoute() { + route_ = getDefaultInstance().getRoute(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + /** + * optional string route = 16; + * @param value The bytes for route to set. + * @return This builder for chaining. + */ + public Builder setRouteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + route_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts vehicleCounts_; + private com.google.protobuf.SingleFieldBuilderV3 vehicleCountsBuilder_; + /** + * optional .proto.VehicleCounts vehicleCounts = 17; + * @return Whether the vehicleCounts field is set. + */ + public boolean hasVehicleCounts() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * optional .proto.VehicleCounts vehicleCounts = 17; + * @return The vehicleCounts. + */ + public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts getVehicleCounts() { + if (vehicleCountsBuilder_ == null) { + return vehicleCounts_ == null + ? fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.getDefaultInstance() + : vehicleCounts_; + } else { + return vehicleCountsBuilder_.getMessage(); + } + } + /** + * optional .proto.VehicleCounts vehicleCounts = 17; + */ + public Builder setVehicleCounts(fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts value) { + if (vehicleCountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vehicleCounts_ = value; + } else { + vehicleCountsBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * optional .proto.VehicleCounts vehicleCounts = 17; + */ + public Builder setVehicleCounts( + fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.Builder builderForValue) { + if (vehicleCountsBuilder_ == null) { + vehicleCounts_ = builderForValue.build(); + } else { + vehicleCountsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * optional .proto.VehicleCounts vehicleCounts = 17; + */ + public Builder mergeVehicleCounts(fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts value) { + if (vehicleCountsBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) && vehicleCounts_ != null + && vehicleCounts_ != fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts + .getDefaultInstance()) { + getVehicleCountsBuilder().mergeFrom(value); + } else { + vehicleCounts_ = value; + } + } else { + vehicleCountsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * optional .proto.VehicleCounts vehicleCounts = 17; + */ + public Builder clearVehicleCounts() { + bitField0_ = (bitField0_ & ~0x00010000); + vehicleCounts_ = null; + if (vehicleCountsBuilder_ != null) { + vehicleCountsBuilder_.dispose(); + vehicleCountsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .proto.VehicleCounts vehicleCounts = 17; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.Builder getVehicleCountsBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getVehicleCountsFieldBuilder().getBuilder(); + } + /** + * optional .proto.VehicleCounts vehicleCounts = 17; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCountsOrBuilder getVehicleCountsOrBuilder() { + if (vehicleCountsBuilder_ != null) { + return vehicleCountsBuilder_.getMessageOrBuilder(); + } else { + return vehicleCounts_ == null + ? fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.getDefaultInstance() + : vehicleCounts_; + } + } + /** + * optional .proto.VehicleCounts vehicleCounts = 17; + */ + private com.google.protobuf.SingleFieldBuilderV3 getVehicleCountsFieldBuilder() { + if (vehicleCountsBuilder_ == null) { + vehicleCountsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getVehicleCounts(), getParentForChildren(), isClean()); + vehicleCounts_ = null; + } + return vehicleCountsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.Payload) + } + + // @@protoc_insertion_point(class_scope:proto.Payload) + private static final fi.hsl.common.passengercount.proto.PassengerCount.Payload DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.passengercount.proto.PassengerCount.Payload(); + } + + public static fi.hsl.common.passengercount.proto.PassengerCount.Payload getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Payload parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Payload getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VehicleCountsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.VehicleCounts) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string countQuality = 1; + * @return Whether the countQuality field is set. + */ + boolean hasCountQuality(); + /** + * optional string countQuality = 1; + * @return The countQuality. + */ + java.lang.String getCountQuality(); + /** + * optional string countQuality = 1; + * @return The bytes for countQuality. + */ + com.google.protobuf.ByteString getCountQualityBytes(); + + /** + * optional int32 vehicleLoad = 2; + * @return Whether the vehicleLoad field is set. + */ + boolean hasVehicleLoad(); + /** + * optional int32 vehicleLoad = 2; + * @return The vehicleLoad. + */ + int getVehicleLoad(); + + /** + * optional double vehicleLoadRatio = 3; + * @return Whether the vehicleLoadRatio field is set. + */ + boolean hasVehicleLoadRatio(); + /** + * optional double vehicleLoadRatio = 3; + * @return The vehicleLoadRatio. + */ + double getVehicleLoadRatio(); + + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + java.util.List getDoorCountsList(); + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + fi.hsl.common.passengercount.proto.PassengerCount.DoorCount getDoorCounts(int index); + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + int getDoorCountsCount(); + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + java.util.List getDoorCountsOrBuilderList(); + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + fi.hsl.common.passengercount.proto.PassengerCount.DoorCountOrBuilder getDoorCountsOrBuilder(int index); + + /** + * optional string extensions = 5; + * @return Whether the extensions field is set. + */ + boolean hasExtensions(); + /** + * optional string extensions = 5; + * @return The extensions. + */ + java.lang.String getExtensions(); + /** + * optional string extensions = 5; + * @return The bytes for extensions. + */ + com.google.protobuf.ByteString getExtensionsBytes(); } /** - * optional string loc = 14; - * @return The bytes for loc. + * Protobuf type {@code proto.VehicleCounts} */ - @java.lang.Override - public com.google.protobuf.ByteString - getLocBytes() { - java.lang.Object ref = loc_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - loc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final class VehicleCounts extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.VehicleCounts) + VehicleCountsOrBuilder { + private static final long serialVersionUID = 0L; + // Use VehicleCounts.newBuilder() to construct. + private VehicleCounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VehicleCounts() { + countQuality_ = ""; + doorCounts_ = java.util.Collections.emptyList(); + extensions_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VehicleCounts(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_VehicleCounts_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_VehicleCounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.class, + fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.Builder.class); + } + + private int bitField0_; + public static final int COUNTQUALITY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object countQuality_ = ""; + /** + * optional string countQuality = 1; + * @return Whether the countQuality field is set. + */ + @java.lang.Override + public boolean hasCountQuality() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string countQuality = 1; + * @return The countQuality. + */ + @java.lang.Override + public java.lang.String getCountQuality() { + java.lang.Object ref = countQuality_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + countQuality_ = s; + } + return s; + } + } + /** + * optional string countQuality = 1; + * @return The bytes for countQuality. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCountQualityBytes() { + java.lang.Object ref = countQuality_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + countQuality_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VEHICLELOAD_FIELD_NUMBER = 2; + private int vehicleLoad_ = 0; + /** + * optional int32 vehicleLoad = 2; + * @return Whether the vehicleLoad field is set. + */ + @java.lang.Override + public boolean hasVehicleLoad() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int32 vehicleLoad = 2; + * @return The vehicleLoad. + */ + @java.lang.Override + public int getVehicleLoad() { + return vehicleLoad_; + } + + public static final int VEHICLELOADRATIO_FIELD_NUMBER = 3; + private double vehicleLoadRatio_ = 0D; + /** + * optional double vehicleLoadRatio = 3; + * @return Whether the vehicleLoadRatio field is set. + */ + @java.lang.Override + public boolean hasVehicleLoadRatio() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double vehicleLoadRatio = 3; + * @return The vehicleLoadRatio. + */ + @java.lang.Override + public double getVehicleLoadRatio() { + return vehicleLoadRatio_; + } + + public static final int DOORCOUNTS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List doorCounts_; + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + @java.lang.Override + public java.util.List getDoorCountsList() { + return doorCounts_; + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + @java.lang.Override + public java.util.List getDoorCountsOrBuilderList() { + return doorCounts_; + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + @java.lang.Override + public int getDoorCountsCount() { + return doorCounts_.size(); + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount getDoorCounts(int index) { + return doorCounts_.get(index); + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.DoorCountOrBuilder getDoorCountsOrBuilder(int index) { + return doorCounts_.get(index); + } + + public static final int EXTENSIONS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object extensions_ = ""; + /** + * optional string extensions = 5; + * @return Whether the extensions field is set. + */ + @java.lang.Override + public boolean hasExtensions() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string extensions = 5; + * @return The extensions. + */ + @java.lang.Override + public java.lang.String getExtensions() { + java.lang.Object ref = extensions_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + extensions_ = s; + } + return s; + } + } + /** + * optional string extensions = 5; + * @return The bytes for extensions. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExtensionsBytes() { + java.lang.Object ref = extensions_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + extensions_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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, countQuality_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(2, vehicleLoad_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(3, vehicleLoadRatio_); + } + for (int i = 0; i < doorCounts_.size(); i++) { + output.writeMessage(4, doorCounts_.get(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, extensions_); + } + 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, countQuality_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, vehicleLoad_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, vehicleLoadRatio_); + } + for (int i = 0; i < doorCounts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, doorCounts_.get(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, extensions_); + } + 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 fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts)) { + return super.equals(obj); + } + fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts other = (fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts) obj; + + if (hasCountQuality() != other.hasCountQuality()) + return false; + if (hasCountQuality()) { + if (!getCountQuality().equals(other.getCountQuality())) + return false; + } + if (hasVehicleLoad() != other.hasVehicleLoad()) + return false; + if (hasVehicleLoad()) { + if (getVehicleLoad() != other.getVehicleLoad()) + return false; + } + if (hasVehicleLoadRatio() != other.hasVehicleLoadRatio()) + return false; + if (hasVehicleLoadRatio()) { + if (java.lang.Double.doubleToLongBits(getVehicleLoadRatio()) != java.lang.Double + .doubleToLongBits(other.getVehicleLoadRatio())) + return false; + } + if (!getDoorCountsList().equals(other.getDoorCountsList())) + return false; + if (hasExtensions() != other.hasExtensions()) + return false; + if (hasExtensions()) { + if (!getExtensions().equals(other.getExtensions())) + 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 (hasCountQuality()) { + hash = (37 * hash) + COUNTQUALITY_FIELD_NUMBER; + hash = (53 * hash) + getCountQuality().hashCode(); + } + if (hasVehicleLoad()) { + hash = (37 * hash) + VEHICLELOAD_FIELD_NUMBER; + hash = (53 * hash) + getVehicleLoad(); + } + if (hasVehicleLoadRatio()) { + hash = (37 * hash) + VEHICLELOADRATIO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal + .hashLong(java.lang.Double.doubleToLongBits(getVehicleLoadRatio())); + } + if (getDoorCountsCount() > 0) { + hash = (37 * hash) + DOORCOUNTS_FIELD_NUMBER; + hash = (53 * hash) + getDoorCountsList().hashCode(); + } + if (hasExtensions()) { + hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getExtensions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int STOP_FIELD_NUMBER = 15; - private int stop_ = 0; - /** - * optional int32 stop = 15; - * @return Whether the stop field is set. - */ - @java.lang.Override - public boolean hasStop() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * optional int32 stop = 15; - * @return The stop. - */ - @java.lang.Override - public int getStop() { - return stop_; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int ROUTE_FIELD_NUMBER = 16; - @SuppressWarnings("serial") - private volatile java.lang.Object route_ = ""; - /** - * optional string route = 16; - * @return Whether the route field is set. - */ - @java.lang.Override - public boolean hasRoute() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * optional string route = 16; - * @return The route. - */ - @java.lang.Override - public java.lang.String getRoute() { - java.lang.Object ref = route_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - route_ = s; - } - return s; - } - } - /** - * optional string route = 16; - * @return The bytes for route. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRouteBytes() { - java.lang.Object ref = route_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - route_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.VehicleCounts} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.VehicleCounts) + fi.hsl.common.passengercount.proto.PassengerCount.VehicleCountsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_VehicleCounts_descriptor; + } - public static final int VEHICLECOUNTS_FIELD_NUMBER = 17; - private fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts vehicleCounts_; - /** - * optional .proto.VehicleCounts vehicleCounts = 17; - * @return Whether the vehicleCounts field is set. - */ - @java.lang.Override - public boolean hasVehicleCounts() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * optional .proto.VehicleCounts vehicleCounts = 17; - * @return The vehicleCounts. - */ - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts getVehicleCounts() { - return vehicleCounts_ == null ? fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.getDefaultInstance() : vehicleCounts_; - } - /** - * optional .proto.VehicleCounts vehicleCounts = 17; - */ - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCountsOrBuilder getVehicleCountsOrBuilder() { - return vehicleCounts_ == null ? fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.getDefaultInstance() : vehicleCounts_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_VehicleCounts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.class, + fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.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; + // Construct using fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.newBuilder() + private Builder() { - 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, desi_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dir_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeInt32(3, oper_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeInt32(4, veh_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeInt64(5, tst_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeInt64(6, tsi_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeDouble(7, lat_); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeDouble(8, long_); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeDouble(9, odo_); - } - if (((bitField0_ & 0x00000200) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, oday_); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeInt32(11, jrn_); - } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeInt32(12, line_); - } - if (((bitField0_ & 0x00001000) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, start_); - } - if (((bitField0_ & 0x00002000) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, loc_); - } - if (((bitField0_ & 0x00004000) != 0)) { - output.writeInt32(15, stop_); - } - if (((bitField0_ & 0x00008000) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, route_); - } - if (((bitField0_ & 0x00010000) != 0)) { - output.writeMessage(17, getVehicleCounts()); - } - getUnknownFields().writeTo(output); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - @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, desi_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dir_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, oper_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, veh_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, tst_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, tsi_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(7, lat_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(8, long_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(9, odo_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, oday_); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(11, jrn_); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(12, line_); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, start_); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, loc_); - } - if (((bitField0_ & 0x00004000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(15, stop_); - } - if (((bitField0_ & 0x00008000) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, route_); - } - if (((bitField0_ & 0x00010000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getVehicleCounts()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + countQuality_ = ""; + vehicleLoad_ = 0; + vehicleLoadRatio_ = 0D; + if (doorCountsBuilder_ == null) { + doorCounts_ = java.util.Collections.emptyList(); + } else { + doorCounts_ = null; + doorCountsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + extensions_ = ""; + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof fi.hsl.common.passengercount.proto.PassengerCount.Payload)) { - return super.equals(obj); - } - fi.hsl.common.passengercount.proto.PassengerCount.Payload other = (fi.hsl.common.passengercount.proto.PassengerCount.Payload) obj; - - if (hasDesi() != other.hasDesi()) return false; - if (hasDesi()) { - if (!getDesi() - .equals(other.getDesi())) return false; - } - if (hasDir() != other.hasDir()) return false; - if (hasDir()) { - if (!getDir() - .equals(other.getDir())) return false; - } - if (hasOper() != other.hasOper()) return false; - if (hasOper()) { - if (getOper() - != other.getOper()) return false; - } - if (hasVeh() != other.hasVeh()) return false; - if (hasVeh()) { - if (getVeh() - != other.getVeh()) return false; - } - if (hasTst() != other.hasTst()) return false; - if (hasTst()) { - if (getTst() - != other.getTst()) return false; - } - if (hasTsi() != other.hasTsi()) return false; - if (hasTsi()) { - if (getTsi() - != other.getTsi()) return false; - } - if (hasLat() != other.hasLat()) return false; - if (hasLat()) { - if (java.lang.Double.doubleToLongBits(getLat()) - != java.lang.Double.doubleToLongBits( - other.getLat())) return false; - } - if (hasLong() != other.hasLong()) return false; - if (hasLong()) { - if (java.lang.Double.doubleToLongBits(getLong()) - != java.lang.Double.doubleToLongBits( - other.getLong())) return false; - } - if (hasOdo() != other.hasOdo()) return false; - if (hasOdo()) { - if (java.lang.Double.doubleToLongBits(getOdo()) - != java.lang.Double.doubleToLongBits( - other.getOdo())) return false; - } - if (hasOday() != other.hasOday()) return false; - if (hasOday()) { - if (!getOday() - .equals(other.getOday())) return false; - } - if (hasJrn() != other.hasJrn()) return false; - if (hasJrn()) { - if (getJrn() - != other.getJrn()) return false; - } - if (hasLine() != other.hasLine()) return false; - if (hasLine()) { - if (getLine() - != other.getLine()) return false; - } - if (hasStart() != other.hasStart()) return false; - if (hasStart()) { - if (!getStart() - .equals(other.getStart())) return false; - } - if (hasLoc() != other.hasLoc()) return false; - if (hasLoc()) { - if (!getLoc() - .equals(other.getLoc())) return false; - } - if (hasStop() != other.hasStop()) return false; - if (hasStop()) { - if (getStop() - != other.getStop()) return false; - } - if (hasRoute() != other.hasRoute()) return false; - if (hasRoute()) { - if (!getRoute() - .equals(other.getRoute())) return false; - } - if (hasVehicleCounts() != other.hasVehicleCounts()) return false; - if (hasVehicleCounts()) { - if (!getVehicleCounts() - .equals(other.getVehicleCounts())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_VehicleCounts_descriptor; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDesi()) { - hash = (37 * hash) + DESI_FIELD_NUMBER; - hash = (53 * hash) + getDesi().hashCode(); - } - if (hasDir()) { - hash = (37 * hash) + DIR_FIELD_NUMBER; - hash = (53 * hash) + getDir().hashCode(); - } - if (hasOper()) { - hash = (37 * hash) + OPER_FIELD_NUMBER; - hash = (53 * hash) + getOper(); - } - if (hasVeh()) { - hash = (37 * hash) + VEH_FIELD_NUMBER; - hash = (53 * hash) + getVeh(); - } - if (hasTst()) { - hash = (37 * hash) + TST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTst()); - } - if (hasTsi()) { - hash = (37 * hash) + TSI_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTsi()); - } - if (hasLat()) { - hash = (37 * hash) + LAT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getLat())); - } - if (hasLong()) { - hash = (37 * hash) + LONG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getLong())); - } - if (hasOdo()) { - hash = (37 * hash) + ODO_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getOdo())); - } - if (hasOday()) { - hash = (37 * hash) + ODAY_FIELD_NUMBER; - hash = (53 * hash) + getOday().hashCode(); - } - if (hasJrn()) { - hash = (37 * hash) + JRN_FIELD_NUMBER; - hash = (53 * hash) + getJrn(); - } - if (hasLine()) { - hash = (37 * hash) + LINE_FIELD_NUMBER; - hash = (53 * hash) + getLine(); - } - if (hasStart()) { - hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + getStart().hashCode(); - } - if (hasLoc()) { - hash = (37 * hash) + LOC_FIELD_NUMBER; - hash = (53 * hash) + getLoc().hashCode(); - } - if (hasStop()) { - hash = (37 * hash) + STOP_FIELD_NUMBER; - hash = (53 * hash) + getStop(); - } - if (hasRoute()) { - hash = (37 * hash) + ROUTE_FIELD_NUMBER; - hash = (53 * hash) + getRoute().hashCode(); - } - if (hasVehicleCounts()) { - hash = (37 * hash) + VEHICLECOUNTS_FIELD_NUMBER; - hash = (53 * hash) + getVehicleCounts().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts getDefaultInstanceForType() { + return fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.getDefaultInstance(); + } - public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Payload parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts build() { + fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.passengercount.proto.PassengerCount.Payload prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts buildPartial() { + fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts result = new fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.Payload} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.Payload) - fi.hsl.common.passengercount.proto.PassengerCount.PayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Payload_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Payload_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.passengercount.proto.PassengerCount.Payload.class, fi.hsl.common.passengercount.proto.PassengerCount.Payload.Builder.class); - } - - // Construct using fi.hsl.common.passengercount.proto.PassengerCount.Payload.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getVehicleCountsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - desi_ = ""; - dir_ = ""; - oper_ = 0; - veh_ = 0; - tst_ = 0L; - tsi_ = 0L; - lat_ = 0D; - long_ = 0D; - odo_ = 0D; - oday_ = ""; - jrn_ = 0; - line_ = 0; - start_ = ""; - loc_ = ""; - stop_ = 0; - route_ = ""; - vehicleCounts_ = null; - if (vehicleCountsBuilder_ != null) { - vehicleCountsBuilder_.dispose(); - vehicleCountsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Payload_descriptor; - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Payload getDefaultInstanceForType() { - return fi.hsl.common.passengercount.proto.PassengerCount.Payload.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Payload build() { - fi.hsl.common.passengercount.proto.PassengerCount.Payload result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Payload buildPartial() { - fi.hsl.common.passengercount.proto.PassengerCount.Payload result = new fi.hsl.common.passengercount.proto.PassengerCount.Payload(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.passengercount.proto.PassengerCount.Payload result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.desi_ = desi_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dir_ = dir_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.oper_ = oper_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.veh_ = veh_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.tst_ = tst_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.tsi_ = tsi_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.lat_ = lat_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.long_ = long_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.odo_ = odo_; - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.oday_ = oday_; - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.jrn_ = jrn_; - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.line_ = line_; - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.start_ = start_; - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.loc_ = loc_; - to_bitField0_ |= 0x00002000; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.stop_ = stop_; - to_bitField0_ |= 0x00004000; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.route_ = route_; - to_bitField0_ |= 0x00008000; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.vehicleCounts_ = vehicleCountsBuilder_ == null - ? vehicleCounts_ - : vehicleCountsBuilder_.build(); - to_bitField0_ |= 0x00010000; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.passengercount.proto.PassengerCount.Payload) { - return mergeFrom((fi.hsl.common.passengercount.proto.PassengerCount.Payload)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.passengercount.proto.PassengerCount.Payload other) { - if (other == fi.hsl.common.passengercount.proto.PassengerCount.Payload.getDefaultInstance()) return this; - if (other.hasDesi()) { - desi_ = other.desi_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasDir()) { - dir_ = other.dir_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasOper()) { - setOper(other.getOper()); - } - if (other.hasVeh()) { - setVeh(other.getVeh()); - } - if (other.hasTst()) { - setTst(other.getTst()); - } - if (other.hasTsi()) { - setTsi(other.getTsi()); - } - if (other.hasLat()) { - setLat(other.getLat()); - } - if (other.hasLong()) { - setLong(other.getLong()); - } - if (other.hasOdo()) { - setOdo(other.getOdo()); - } - if (other.hasOday()) { - oday_ = other.oday_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (other.hasJrn()) { - setJrn(other.getJrn()); - } - if (other.hasLine()) { - setLine(other.getLine()); - } - if (other.hasStart()) { - start_ = other.start_; - bitField0_ |= 0x00001000; - onChanged(); - } - if (other.hasLoc()) { - loc_ = other.loc_; - bitField0_ |= 0x00002000; - onChanged(); - } - if (other.hasStop()) { - setStop(other.getStop()); - } - if (other.hasRoute()) { - route_ = other.route_; - bitField0_ |= 0x00008000; - onChanged(); - } - if (other.hasVehicleCounts()) { - mergeVehicleCounts(other.getVehicleCounts()); - } - 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: { - desi_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - dir_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - oper_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - veh_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - tst_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - tsi_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 57: { - lat_ = input.readDouble(); - bitField0_ |= 0x00000040; - break; - } // case 57 - case 65: { - long_ = input.readDouble(); - bitField0_ |= 0x00000080; - break; - } // case 65 - case 73: { - odo_ = input.readDouble(); - bitField0_ |= 0x00000100; - break; - } // case 73 - case 82: { - oday_ = input.readBytes(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 88: { - jrn_ = input.readInt32(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 96: { - line_ = input.readInt32(); - bitField0_ |= 0x00000800; - break; - } // case 96 - case 106: { - start_ = input.readBytes(); - bitField0_ |= 0x00001000; - break; - } // case 106 - case 114: { - loc_ = input.readBytes(); - bitField0_ |= 0x00002000; - break; - } // case 114 - case 120: { - stop_ = input.readInt32(); - bitField0_ |= 0x00004000; - break; - } // case 120 - case 130: { - route_ = input.readBytes(); - bitField0_ |= 0x00008000; - break; - } // case 130 - case 138: { - input.readMessage( - getVehicleCountsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 138 - 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 desi_ = ""; - /** - * optional string desi = 1; - * @return Whether the desi field is set. - */ - public boolean hasDesi() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string desi = 1; - * @return The desi. - */ - public java.lang.String getDesi() { - java.lang.Object ref = desi_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - desi_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string desi = 1; - * @return The bytes for desi. - */ - public com.google.protobuf.ByteString - getDesiBytes() { - java.lang.Object ref = desi_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desi_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string desi = 1; - * @param value The desi to set. - * @return This builder for chaining. - */ - public Builder setDesi( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - desi_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string desi = 1; - * @return This builder for chaining. - */ - public Builder clearDesi() { - desi_ = getDefaultInstance().getDesi(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string desi = 1; - * @param value The bytes for desi to set. - * @return This builder for chaining. - */ - public Builder setDesiBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - desi_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object dir_ = ""; - /** - * optional string dir = 2; - * @return Whether the dir field is set. - */ - public boolean hasDir() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional string dir = 2; - * @return The dir. - */ - public java.lang.String getDir() { - java.lang.Object ref = dir_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - dir_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string dir = 2; - * @return The bytes for dir. - */ - public com.google.protobuf.ByteString - getDirBytes() { - java.lang.Object ref = dir_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dir_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string dir = 2; - * @param value The dir to set. - * @return This builder for chaining. - */ - public Builder setDir( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - dir_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional string dir = 2; - * @return This builder for chaining. - */ - public Builder clearDir() { - dir_ = getDefaultInstance().getDir(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * optional string dir = 2; - * @param value The bytes for dir to set. - * @return This builder for chaining. - */ - public Builder setDirBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - dir_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int oper_ ; - /** - * optional int32 oper = 3; - * @return Whether the oper field is set. - */ - @java.lang.Override - public boolean hasOper() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional int32 oper = 3; - * @return The oper. - */ - @java.lang.Override - public int getOper() { - return oper_; - } - /** - * optional int32 oper = 3; - * @param value The oper to set. - * @return This builder for chaining. - */ - public Builder setOper(int value) { - - oper_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * optional int32 oper = 3; - * @return This builder for chaining. - */ - public Builder clearOper() { - bitField0_ = (bitField0_ & ~0x00000004); - oper_ = 0; - onChanged(); - return this; - } - - private int veh_ ; - /** - * optional int32 veh = 4; - * @return Whether the veh field is set. - */ - @java.lang.Override - public boolean hasVeh() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional int32 veh = 4; - * @return The veh. - */ - @java.lang.Override - public int getVeh() { - return veh_; - } - /** - * optional int32 veh = 4; - * @param value The veh to set. - * @return This builder for chaining. - */ - public Builder setVeh(int value) { - - veh_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * optional int32 veh = 4; - * @return This builder for chaining. - */ - public Builder clearVeh() { - bitField0_ = (bitField0_ & ~0x00000008); - veh_ = 0; - onChanged(); - return this; - } - - private long tst_ ; - /** - * optional int64 tst = 5; - * @return Whether the tst field is set. - */ - @java.lang.Override - public boolean hasTst() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional int64 tst = 5; - * @return The tst. - */ - @java.lang.Override - public long getTst() { - return tst_; - } - /** - * optional int64 tst = 5; - * @param value The tst to set. - * @return This builder for chaining. - */ - public Builder setTst(long value) { - - tst_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * optional int64 tst = 5; - * @return This builder for chaining. - */ - public Builder clearTst() { - bitField0_ = (bitField0_ & ~0x00000010); - tst_ = 0L; - onChanged(); - return this; - } - - private long tsi_ ; - /** - * optional int64 tsi = 6; - * @return Whether the tsi field is set. - */ - @java.lang.Override - public boolean hasTsi() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * optional int64 tsi = 6; - * @return The tsi. - */ - @java.lang.Override - public long getTsi() { - return tsi_; - } - /** - * optional int64 tsi = 6; - * @param value The tsi to set. - * @return This builder for chaining. - */ - public Builder setTsi(long value) { - - tsi_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * optional int64 tsi = 6; - * @return This builder for chaining. - */ - public Builder clearTsi() { - bitField0_ = (bitField0_ & ~0x00000020); - tsi_ = 0L; - onChanged(); - return this; - } - - private double lat_ ; - /** - * optional double lat = 7; - * @return Whether the lat field is set. - */ - @java.lang.Override - public boolean hasLat() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * optional double lat = 7; - * @return The lat. - */ - @java.lang.Override - public double getLat() { - return lat_; - } - /** - * optional double lat = 7; - * @param value The lat to set. - * @return This builder for chaining. - */ - public Builder setLat(double value) { - - lat_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * optional double lat = 7; - * @return This builder for chaining. - */ - public Builder clearLat() { - bitField0_ = (bitField0_ & ~0x00000040); - lat_ = 0D; - onChanged(); - return this; - } - - private double long_ ; - /** - * optional double long = 8; - * @return Whether the long field is set. - */ - @java.lang.Override - public boolean hasLong() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional double long = 8; - * @return The long. - */ - @java.lang.Override - public double getLong() { - return long_; - } - /** - * optional double long = 8; - * @param value The long to set. - * @return This builder for chaining. - */ - public Builder setLong(double value) { - - long_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * optional double long = 8; - * @return This builder for chaining. - */ - public Builder clearLong() { - bitField0_ = (bitField0_ & ~0x00000080); - long_ = 0D; - onChanged(); - return this; - } - - private double odo_ ; - /** - * optional double odo = 9; - * @return Whether the odo field is set. - */ - @java.lang.Override - public boolean hasOdo() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * optional double odo = 9; - * @return The odo. - */ - @java.lang.Override - public double getOdo() { - return odo_; - } - /** - * optional double odo = 9; - * @param value The odo to set. - * @return This builder for chaining. - */ - public Builder setOdo(double value) { - - odo_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * optional double odo = 9; - * @return This builder for chaining. - */ - public Builder clearOdo() { - bitField0_ = (bitField0_ & ~0x00000100); - odo_ = 0D; - onChanged(); - return this; - } - - private java.lang.Object oday_ = ""; - /** - * optional string oday = 10; - * @return Whether the oday field is set. - */ - public boolean hasOday() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * optional string oday = 10; - * @return The oday. - */ - public java.lang.String getOday() { - java.lang.Object ref = oday_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - oday_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string oday = 10; - * @return The bytes for oday. - */ - public com.google.protobuf.ByteString - getOdayBytes() { - java.lang.Object ref = oday_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oday_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string oday = 10; - * @param value The oday to set. - * @return This builder for chaining. - */ - public Builder setOday( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - oday_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * optional string oday = 10; - * @return This builder for chaining. - */ - public Builder clearOday() { - oday_ = getDefaultInstance().getOday(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } - /** - * optional string oday = 10; - * @param value The bytes for oday to set. - * @return This builder for chaining. - */ - public Builder setOdayBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - oday_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - - private int jrn_ ; - /** - * optional int32 jrn = 11; - * @return Whether the jrn field is set. - */ - @java.lang.Override - public boolean hasJrn() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * optional int32 jrn = 11; - * @return The jrn. - */ - @java.lang.Override - public int getJrn() { - return jrn_; - } - /** - * optional int32 jrn = 11; - * @param value The jrn to set. - * @return This builder for chaining. - */ - public Builder setJrn(int value) { - - jrn_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * optional int32 jrn = 11; - * @return This builder for chaining. - */ - public Builder clearJrn() { - bitField0_ = (bitField0_ & ~0x00000400); - jrn_ = 0; - onChanged(); - return this; - } - - private int line_ ; - /** - * optional int32 line = 12; - * @return Whether the line field is set. - */ - @java.lang.Override - public boolean hasLine() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * optional int32 line = 12; - * @return The line. - */ - @java.lang.Override - public int getLine() { - return line_; - } - /** - * optional int32 line = 12; - * @param value The line to set. - * @return This builder for chaining. - */ - public Builder setLine(int value) { - - line_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * optional int32 line = 12; - * @return This builder for chaining. - */ - public Builder clearLine() { - bitField0_ = (bitField0_ & ~0x00000800); - line_ = 0; - onChanged(); - return this; - } - - private java.lang.Object start_ = ""; - /** - * optional string start = 13; - * @return Whether the start field is set. - */ - public boolean hasStart() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * optional string start = 13; - * @return The start. - */ - public java.lang.String getStart() { - java.lang.Object ref = start_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - start_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string start = 13; - * @return The bytes for start. - */ - public com.google.protobuf.ByteString - getStartBytes() { - java.lang.Object ref = start_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - start_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string start = 13; - * @param value The start to set. - * @return This builder for chaining. - */ - public Builder setStart( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - start_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * optional string start = 13; - * @return This builder for chaining. - */ - public Builder clearStart() { - start_ = getDefaultInstance().getStart(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - return this; - } - /** - * optional string start = 13; - * @param value The bytes for start to set. - * @return This builder for chaining. - */ - public Builder setStartBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - start_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - private java.lang.Object loc_ = ""; - /** - * optional string loc = 14; - * @return Whether the loc field is set. - */ - public boolean hasLoc() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * optional string loc = 14; - * @return The loc. - */ - public java.lang.String getLoc() { - java.lang.Object ref = loc_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - loc_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string loc = 14; - * @return The bytes for loc. - */ - public com.google.protobuf.ByteString - getLocBytes() { - java.lang.Object ref = loc_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - loc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string loc = 14; - * @param value The loc to set. - * @return This builder for chaining. - */ - public Builder setLoc( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - loc_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * optional string loc = 14; - * @return This builder for chaining. - */ - public Builder clearLoc() { - loc_ = getDefaultInstance().getLoc(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - return this; - } - /** - * optional string loc = 14; - * @param value The bytes for loc to set. - * @return This builder for chaining. - */ - public Builder setLocBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - loc_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - - private int stop_ ; - /** - * optional int32 stop = 15; - * @return Whether the stop field is set. - */ - @java.lang.Override - public boolean hasStop() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * optional int32 stop = 15; - * @return The stop. - */ - @java.lang.Override - public int getStop() { - return stop_; - } - /** - * optional int32 stop = 15; - * @param value The stop to set. - * @return This builder for chaining. - */ - public Builder setStop(int value) { - - stop_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * optional int32 stop = 15; - * @return This builder for chaining. - */ - public Builder clearStop() { - bitField0_ = (bitField0_ & ~0x00004000); - stop_ = 0; - onChanged(); - return this; - } - - private java.lang.Object route_ = ""; - /** - * optional string route = 16; - * @return Whether the route field is set. - */ - public boolean hasRoute() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * optional string route = 16; - * @return The route. - */ - public java.lang.String getRoute() { - java.lang.Object ref = route_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - route_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string route = 16; - * @return The bytes for route. - */ - public com.google.protobuf.ByteString - getRouteBytes() { - java.lang.Object ref = route_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - route_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string route = 16; - * @param value The route to set. - * @return This builder for chaining. - */ - public Builder setRoute( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - route_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * optional string route = 16; - * @return This builder for chaining. - */ - public Builder clearRoute() { - route_ = getDefaultInstance().getRoute(); - bitField0_ = (bitField0_ & ~0x00008000); - onChanged(); - return this; - } - /** - * optional string route = 16; - * @param value The bytes for route to set. - * @return This builder for chaining. - */ - public Builder setRouteBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - route_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - - private fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts vehicleCounts_; - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts, fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.Builder, fi.hsl.common.passengercount.proto.PassengerCount.VehicleCountsOrBuilder> vehicleCountsBuilder_; - /** - * optional .proto.VehicleCounts vehicleCounts = 17; - * @return Whether the vehicleCounts field is set. - */ - public boolean hasVehicleCounts() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * optional .proto.VehicleCounts vehicleCounts = 17; - * @return The vehicleCounts. - */ - public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts getVehicleCounts() { - if (vehicleCountsBuilder_ == null) { - return vehicleCounts_ == null ? fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.getDefaultInstance() : vehicleCounts_; - } else { - return vehicleCountsBuilder_.getMessage(); - } - } - /** - * optional .proto.VehicleCounts vehicleCounts = 17; - */ - public Builder setVehicleCounts(fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts value) { - if (vehicleCountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vehicleCounts_ = value; - } else { - vehicleCountsBuilder_.setMessage(value); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * optional .proto.VehicleCounts vehicleCounts = 17; - */ - public Builder setVehicleCounts( - fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.Builder builderForValue) { - if (vehicleCountsBuilder_ == null) { - vehicleCounts_ = builderForValue.build(); - } else { - vehicleCountsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * optional .proto.VehicleCounts vehicleCounts = 17; - */ - public Builder mergeVehicleCounts(fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts value) { - if (vehicleCountsBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) && - vehicleCounts_ != null && - vehicleCounts_ != fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.getDefaultInstance()) { - getVehicleCountsBuilder().mergeFrom(value); - } else { - vehicleCounts_ = value; - } - } else { - vehicleCountsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * optional .proto.VehicleCounts vehicleCounts = 17; - */ - public Builder clearVehicleCounts() { - bitField0_ = (bitField0_ & ~0x00010000); - vehicleCounts_ = null; - if (vehicleCountsBuilder_ != null) { - vehicleCountsBuilder_.dispose(); - vehicleCountsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * optional .proto.VehicleCounts vehicleCounts = 17; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.Builder getVehicleCountsBuilder() { - bitField0_ |= 0x00010000; - onChanged(); - return getVehicleCountsFieldBuilder().getBuilder(); - } - /** - * optional .proto.VehicleCounts vehicleCounts = 17; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCountsOrBuilder getVehicleCountsOrBuilder() { - if (vehicleCountsBuilder_ != null) { - return vehicleCountsBuilder_.getMessageOrBuilder(); - } else { - return vehicleCounts_ == null ? - fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.getDefaultInstance() : vehicleCounts_; - } - } - /** - * optional .proto.VehicleCounts vehicleCounts = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts, fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.Builder, fi.hsl.common.passengercount.proto.PassengerCount.VehicleCountsOrBuilder> - getVehicleCountsFieldBuilder() { - if (vehicleCountsBuilder_ == null) { - vehicleCountsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts, fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.Builder, fi.hsl.common.passengercount.proto.PassengerCount.VehicleCountsOrBuilder>( - getVehicleCounts(), - getParentForChildren(), - isClean()); - vehicleCounts_ = null; - } - return vehicleCountsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.Payload) - } + private void buildPartialRepeatedFields( + fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts result) { + if (doorCountsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + doorCounts_ = java.util.Collections.unmodifiableList(doorCounts_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.doorCounts_ = doorCounts_; + } else { + result.doorCounts_ = doorCountsBuilder_.build(); + } + } - // @@protoc_insertion_point(class_scope:proto.Payload) - private static final fi.hsl.common.passengercount.proto.PassengerCount.Payload DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.passengercount.proto.PassengerCount.Payload(); - } + private void buildPartial0(fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.countQuality_ = countQuality_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vehicleLoad_ = vehicleLoad_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vehicleLoadRatio_ = vehicleLoadRatio_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.extensions_ = extensions_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } - public static fi.hsl.common.passengercount.proto.PassengerCount.Payload getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts) { + return mergeFrom((fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Payload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public Builder mergeFrom(fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts other) { + if (other == fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.getDefaultInstance()) + return this; + if (other.hasCountQuality()) { + countQuality_ = other.countQuality_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasVehicleLoad()) { + setVehicleLoad(other.getVehicleLoad()); + } + if (other.hasVehicleLoadRatio()) { + setVehicleLoadRatio(other.getVehicleLoadRatio()); + } + if (doorCountsBuilder_ == null) { + if (!other.doorCounts_.isEmpty()) { + if (doorCounts_.isEmpty()) { + doorCounts_ = other.doorCounts_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureDoorCountsIsMutable(); + doorCounts_.addAll(other.doorCounts_); + } + onChanged(); + } + } else { + if (!other.doorCounts_.isEmpty()) { + if (doorCountsBuilder_.isEmpty()) { + doorCountsBuilder_.dispose(); + doorCountsBuilder_ = null; + doorCounts_ = other.doorCounts_; + bitField0_ = (bitField0_ & ~0x00000008); + doorCountsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDoorCountsFieldBuilder() + : null; + } else { + doorCountsBuilder_.addAllMessages(other.doorCounts_); + } + } + } + if (other.hasExtensions()) { + extensions_ = other.extensions_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Payload getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @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 : { + countQuality_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16 : { + vehicleLoad_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 25 : { + vehicleLoadRatio_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34 : { + fi.hsl.common.passengercount.proto.PassengerCount.DoorCount m = input.readMessage( + fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.PARSER, + extensionRegistry); + if (doorCountsBuilder_ == null) { + ensureDoorCountsIsMutable(); + doorCounts_.add(m); + } else { + doorCountsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42 : { + extensions_ = input.readBytes(); + 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 countQuality_ = ""; + /** + * optional string countQuality = 1; + * @return Whether the countQuality field is set. + */ + public boolean hasCountQuality() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string countQuality = 1; + * @return The countQuality. + */ + public java.lang.String getCountQuality() { + java.lang.Object ref = countQuality_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + countQuality_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string countQuality = 1; + * @return The bytes for countQuality. + */ + public com.google.protobuf.ByteString getCountQualityBytes() { + java.lang.Object ref = countQuality_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + countQuality_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string countQuality = 1; + * @param value The countQuality to set. + * @return This builder for chaining. + */ + public Builder setCountQuality(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + countQuality_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional string countQuality = 1; + * @return This builder for chaining. + */ + public Builder clearCountQuality() { + countQuality_ = getDefaultInstance().getCountQuality(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * optional string countQuality = 1; + * @param value The bytes for countQuality to set. + * @return This builder for chaining. + */ + public Builder setCountQualityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + countQuality_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - } + private int vehicleLoad_; + /** + * optional int32 vehicleLoad = 2; + * @return Whether the vehicleLoad field is set. + */ + @java.lang.Override + public boolean hasVehicleLoad() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int32 vehicleLoad = 2; + * @return The vehicleLoad. + */ + @java.lang.Override + public int getVehicleLoad() { + return vehicleLoad_; + } + /** + * optional int32 vehicleLoad = 2; + * @param value The vehicleLoad to set. + * @return This builder for chaining. + */ + public Builder setVehicleLoad(int value) { + + vehicleLoad_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional int32 vehicleLoad = 2; + * @return This builder for chaining. + */ + public Builder clearVehicleLoad() { + bitField0_ = (bitField0_ & ~0x00000002); + vehicleLoad_ = 0; + onChanged(); + return this; + } - public interface VehicleCountsOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.VehicleCounts) - com.google.protobuf.MessageOrBuilder { + private double vehicleLoadRatio_; + /** + * optional double vehicleLoadRatio = 3; + * @return Whether the vehicleLoadRatio field is set. + */ + @java.lang.Override + public boolean hasVehicleLoadRatio() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional double vehicleLoadRatio = 3; + * @return The vehicleLoadRatio. + */ + @java.lang.Override + public double getVehicleLoadRatio() { + return vehicleLoadRatio_; + } + /** + * optional double vehicleLoadRatio = 3; + * @param value The vehicleLoadRatio to set. + * @return This builder for chaining. + */ + public Builder setVehicleLoadRatio(double value) { + + vehicleLoadRatio_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional double vehicleLoadRatio = 3; + * @return This builder for chaining. + */ + public Builder clearVehicleLoadRatio() { + bitField0_ = (bitField0_ & ~0x00000004); + vehicleLoadRatio_ = 0D; + onChanged(); + return this; + } - /** - * optional string countQuality = 1; - * @return Whether the countQuality field is set. - */ - boolean hasCountQuality(); - /** - * optional string countQuality = 1; - * @return The countQuality. - */ - java.lang.String getCountQuality(); - /** - * optional string countQuality = 1; - * @return The bytes for countQuality. - */ - com.google.protobuf.ByteString - getCountQualityBytes(); + private java.util.List doorCounts_ = java.util.Collections + .emptyList(); + private void ensureDoorCountsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + doorCounts_ = new java.util.ArrayList( + doorCounts_); + bitField0_ |= 0x00000008; + } + } - /** - * optional int32 vehicleLoad = 2; - * @return Whether the vehicleLoad field is set. - */ - boolean hasVehicleLoad(); - /** - * optional int32 vehicleLoad = 2; - * @return The vehicleLoad. - */ - int getVehicleLoad(); + private com.google.protobuf.RepeatedFieldBuilderV3 doorCountsBuilder_; - /** - * optional double vehicleLoadRatio = 3; - * @return Whether the vehicleLoadRatio field is set. - */ - boolean hasVehicleLoadRatio(); - /** - * optional double vehicleLoadRatio = 3; - * @return The vehicleLoadRatio. - */ - double getVehicleLoadRatio(); + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public java.util.List getDoorCountsList() { + if (doorCountsBuilder_ == null) { + return java.util.Collections.unmodifiableList(doorCounts_); + } else { + return doorCountsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public int getDoorCountsCount() { + if (doorCountsBuilder_ == null) { + return doorCounts_.size(); + } else { + return doorCountsBuilder_.getCount(); + } + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount getDoorCounts(int index) { + if (doorCountsBuilder_ == null) { + return doorCounts_.get(index); + } else { + return doorCountsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public Builder setDoorCounts(int index, fi.hsl.common.passengercount.proto.PassengerCount.DoorCount value) { + if (doorCountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDoorCountsIsMutable(); + doorCounts_.set(index, value); + onChanged(); + } else { + doorCountsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public Builder setDoorCounts(int index, + fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder builderForValue) { + if (doorCountsBuilder_ == null) { + ensureDoorCountsIsMutable(); + doorCounts_.set(index, builderForValue.build()); + onChanged(); + } else { + doorCountsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public Builder addDoorCounts(fi.hsl.common.passengercount.proto.PassengerCount.DoorCount value) { + if (doorCountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDoorCountsIsMutable(); + doorCounts_.add(value); + onChanged(); + } else { + doorCountsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public Builder addDoorCounts(int index, fi.hsl.common.passengercount.proto.PassengerCount.DoorCount value) { + if (doorCountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDoorCountsIsMutable(); + doorCounts_.add(index, value); + onChanged(); + } else { + doorCountsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public Builder addDoorCounts( + fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder builderForValue) { + if (doorCountsBuilder_ == null) { + ensureDoorCountsIsMutable(); + doorCounts_.add(builderForValue.build()); + onChanged(); + } else { + doorCountsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public Builder addDoorCounts(int index, + fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder builderForValue) { + if (doorCountsBuilder_ == null) { + ensureDoorCountsIsMutable(); + doorCounts_.add(index, builderForValue.build()); + onChanged(); + } else { + doorCountsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public Builder addAllDoorCounts( + java.lang.Iterable values) { + if (doorCountsBuilder_ == null) { + ensureDoorCountsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, doorCounts_); + onChanged(); + } else { + doorCountsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public Builder clearDoorCounts() { + if (doorCountsBuilder_ == null) { + doorCounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + doorCountsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public Builder removeDoorCounts(int index) { + if (doorCountsBuilder_ == null) { + ensureDoorCountsIsMutable(); + doorCounts_.remove(index); + onChanged(); + } else { + doorCountsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder getDoorCountsBuilder(int index) { + return getDoorCountsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.DoorCountOrBuilder getDoorCountsOrBuilder( + int index) { + if (doorCountsBuilder_ == null) { + return doorCounts_.get(index); + } else { + return doorCountsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public java.util.List getDoorCountsOrBuilderList() { + if (doorCountsBuilder_ != null) { + return doorCountsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(doorCounts_); + } + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder addDoorCountsBuilder() { + return getDoorCountsFieldBuilder() + .addBuilder(fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.getDefaultInstance()); + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder addDoorCountsBuilder(int index) { + return getDoorCountsFieldBuilder().addBuilder(index, + fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.getDefaultInstance()); + } + /** + * repeated .proto.DoorCount doorCounts = 4; + */ + public java.util.List getDoorCountsBuilderList() { + return getDoorCountsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getDoorCountsFieldBuilder() { + if (doorCountsBuilder_ == null) { + doorCountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + doorCounts_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + doorCounts_ = null; + } + return doorCountsBuilder_; + } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - java.util.List - getDoorCountsList(); - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - fi.hsl.common.passengercount.proto.PassengerCount.DoorCount getDoorCounts(int index); - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - int getDoorCountsCount(); - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - java.util.List - getDoorCountsOrBuilderList(); - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - fi.hsl.common.passengercount.proto.PassengerCount.DoorCountOrBuilder getDoorCountsOrBuilder( - int index); + private java.lang.Object extensions_ = ""; + /** + * optional string extensions = 5; + * @return Whether the extensions field is set. + */ + public boolean hasExtensions() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string extensions = 5; + * @return The extensions. + */ + public java.lang.String getExtensions() { + java.lang.Object ref = extensions_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + extensions_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string extensions = 5; + * @return The bytes for extensions. + */ + public com.google.protobuf.ByteString getExtensionsBytes() { + java.lang.Object ref = extensions_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + extensions_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string extensions = 5; + * @param value The extensions to set. + * @return This builder for chaining. + */ + public Builder setExtensions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + extensions_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional string extensions = 5; + * @return This builder for chaining. + */ + public Builder clearExtensions() { + extensions_ = getDefaultInstance().getExtensions(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * optional string extensions = 5; + * @param value The bytes for extensions to set. + * @return This builder for chaining. + */ + public Builder setExtensionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + extensions_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - /** - * optional string extensions = 5; - * @return Whether the extensions field is set. - */ - boolean hasExtensions(); - /** - * optional string extensions = 5; - * @return The extensions. - */ - java.lang.String getExtensions(); - /** - * optional string extensions = 5; - * @return The bytes for extensions. - */ - com.google.protobuf.ByteString - getExtensionsBytes(); - } - /** - * Protobuf type {@code proto.VehicleCounts} - */ - public static final class VehicleCounts extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.VehicleCounts) - VehicleCountsOrBuilder { - private static final long serialVersionUID = 0L; - // Use VehicleCounts.newBuilder() to construct. - private VehicleCounts(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VehicleCounts() { - countQuality_ = ""; - doorCounts_ = java.util.Collections.emptyList(); - extensions_ = ""; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VehicleCounts(); - } + // @@protoc_insertion_point(builder_scope:proto.VehicleCounts) + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_VehicleCounts_descriptor; - } + // @@protoc_insertion_point(class_scope:proto.VehicleCounts) + private static final fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_VehicleCounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.class, fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.Builder.class); - } + public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private int bitField0_; - public static final int COUNTQUALITY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object countQuality_ = ""; - /** - * optional string countQuality = 1; - * @return Whether the countQuality field is set. - */ - @java.lang.Override - public boolean hasCountQuality() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string countQuality = 1; - * @return The countQuality. - */ - @java.lang.Override - public java.lang.String getCountQuality() { - java.lang.Object ref = countQuality_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - countQuality_ = s; - } - return s; - } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VehicleCounts parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DoorCountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.DoorCount) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string door = 1; + * @return Whether the door field is set. + */ + boolean hasDoor(); + /** + * optional string door = 1; + * @return The door. + */ + java.lang.String getDoor(); + /** + * optional string door = 1; + * @return The bytes for door. + */ + com.google.protobuf.ByteString getDoorBytes(); + + /** + * repeated .proto.Count count = 2; + */ + java.util.List getCountList(); + /** + * repeated .proto.Count count = 2; + */ + fi.hsl.common.passengercount.proto.PassengerCount.Count getCount(int index); + /** + * repeated .proto.Count count = 2; + */ + int getCountCount(); + /** + * repeated .proto.Count count = 2; + */ + java.util.List getCountOrBuilderList(); + /** + * repeated .proto.Count count = 2; + */ + fi.hsl.common.passengercount.proto.PassengerCount.CountOrBuilder getCountOrBuilder(int index); } /** - * optional string countQuality = 1; - * @return The bytes for countQuality. + * Protobuf type {@code proto.DoorCount} */ - @java.lang.Override - public com.google.protobuf.ByteString - getCountQualityBytes() { - java.lang.Object ref = countQuality_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - countQuality_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final class DoorCount extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.DoorCount) + DoorCountOrBuilder { + private static final long serialVersionUID = 0L; + // Use DoorCount.newBuilder() to construct. + private DoorCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DoorCount() { + door_ = ""; + count_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DoorCount(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_DoorCount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_DoorCount_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.class, + fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder.class); + } + + private int bitField0_; + public static final int DOOR_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object door_ = ""; + /** + * optional string door = 1; + * @return Whether the door field is set. + */ + @java.lang.Override + public boolean hasDoor() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string door = 1; + * @return The door. + */ + @java.lang.Override + public java.lang.String getDoor() { + java.lang.Object ref = door_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + door_ = s; + } + return s; + } + } + /** + * optional string door = 1; + * @return The bytes for door. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDoorBytes() { + java.lang.Object ref = door_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + door_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int VEHICLELOAD_FIELD_NUMBER = 2; - private int vehicleLoad_ = 0; - /** - * optional int32 vehicleLoad = 2; - * @return Whether the vehicleLoad field is set. - */ - @java.lang.Override - public boolean hasVehicleLoad() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional int32 vehicleLoad = 2; - * @return The vehicleLoad. - */ - @java.lang.Override - public int getVehicleLoad() { - return vehicleLoad_; - } + public static final int COUNT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List count_; + /** + * repeated .proto.Count count = 2; + */ + @java.lang.Override + public java.util.List getCountList() { + return count_; + } + /** + * repeated .proto.Count count = 2; + */ + @java.lang.Override + public java.util.List getCountOrBuilderList() { + return count_; + } + /** + * repeated .proto.Count count = 2; + */ + @java.lang.Override + public int getCountCount() { + return count_.size(); + } + /** + * repeated .proto.Count count = 2; + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Count getCount(int index) { + return count_.get(index); + } + /** + * repeated .proto.Count count = 2; + */ + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.CountOrBuilder getCountOrBuilder(int index) { + return count_.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; + + 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, door_); + } + for (int i = 0; i < count_.size(); i++) { + output.writeMessage(2, count_.get(i)); + } + getUnknownFields().writeTo(output); + } - public static final int VEHICLELOADRATIO_FIELD_NUMBER = 3; - private double vehicleLoadRatio_ = 0D; - /** - * optional double vehicleLoadRatio = 3; - * @return Whether the vehicleLoadRatio field is set. - */ - @java.lang.Override - public boolean hasVehicleLoadRatio() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional double vehicleLoadRatio = 3; - * @return The vehicleLoadRatio. - */ - @java.lang.Override - public double getVehicleLoadRatio() { - return vehicleLoadRatio_; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static final int DOORCOUNTS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private java.util.List doorCounts_; - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - @java.lang.Override - public java.util.List getDoorCountsList() { - return doorCounts_; - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - @java.lang.Override - public java.util.List - getDoorCountsOrBuilderList() { - return doorCounts_; - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - @java.lang.Override - public int getDoorCountsCount() { - return doorCounts_.size(); - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount getDoorCounts(int index) { - return doorCounts_.get(index); - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.DoorCountOrBuilder getDoorCountsOrBuilder( - int index) { - return doorCounts_.get(index); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, door_); + } + for (int i = 0; i < count_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, count_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int EXTENSIONS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object extensions_ = ""; - /** - * optional string extensions = 5; - * @return Whether the extensions field is set. - */ - @java.lang.Override - public boolean hasExtensions() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional string extensions = 5; - * @return The extensions. - */ - @java.lang.Override - public java.lang.String getExtensions() { - java.lang.Object ref = extensions_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - extensions_ = s; - } - return s; - } - } - /** - * optional string extensions = 5; - * @return The bytes for extensions. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getExtensionsBytes() { - java.lang.Object ref = extensions_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - extensions_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof fi.hsl.common.passengercount.proto.PassengerCount.DoorCount)) { + return super.equals(obj); + } + fi.hsl.common.passengercount.proto.PassengerCount.DoorCount other = (fi.hsl.common.passengercount.proto.PassengerCount.DoorCount) obj; - 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 (hasDoor() != other.hasDoor()) + return false; + if (hasDoor()) { + if (!getDoor().equals(other.getDoor())) + return false; + } + if (!getCountList().equals(other.getCountList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDoor()) { + hash = (37 * hash) + DOOR_FIELD_NUMBER; + hash = (53 * hash) + getDoor().hashCode(); + } + if (getCountCount() > 0) { + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCountList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - @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, countQuality_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt32(2, vehicleLoad_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeDouble(3, vehicleLoadRatio_); - } - for (int i = 0; i < doorCounts_.size(); i++) { - output.writeMessage(4, doorCounts_.get(i)); - } - if (((bitField0_ & 0x00000008) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, extensions_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.passengercount.proto.PassengerCount.DoorCount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @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, countQuality_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, vehicleLoad_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, vehicleLoadRatio_); - } - for (int i = 0; i < doorCounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, doorCounts_.get(i)); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, extensions_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.DoorCount} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.DoorCount) + fi.hsl.common.passengercount.proto.PassengerCount.DoorCountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_DoorCount_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts)) { - return super.equals(obj); - } - fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts other = (fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts) obj; - - if (hasCountQuality() != other.hasCountQuality()) return false; - if (hasCountQuality()) { - if (!getCountQuality() - .equals(other.getCountQuality())) return false; - } - if (hasVehicleLoad() != other.hasVehicleLoad()) return false; - if (hasVehicleLoad()) { - if (getVehicleLoad() - != other.getVehicleLoad()) return false; - } - if (hasVehicleLoadRatio() != other.hasVehicleLoadRatio()) return false; - if (hasVehicleLoadRatio()) { - if (java.lang.Double.doubleToLongBits(getVehicleLoadRatio()) - != java.lang.Double.doubleToLongBits( - other.getVehicleLoadRatio())) return false; - } - if (!getDoorCountsList() - .equals(other.getDoorCountsList())) return false; - if (hasExtensions() != other.hasExtensions()) return false; - if (hasExtensions()) { - if (!getExtensions() - .equals(other.getExtensions())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_DoorCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.class, + fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder.class); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCountQuality()) { - hash = (37 * hash) + COUNTQUALITY_FIELD_NUMBER; - hash = (53 * hash) + getCountQuality().hashCode(); - } - if (hasVehicleLoad()) { - hash = (37 * hash) + VEHICLELOAD_FIELD_NUMBER; - hash = (53 * hash) + getVehicleLoad(); - } - if (hasVehicleLoadRatio()) { - hash = (37 * hash) + VEHICLELOADRATIO_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getVehicleLoadRatio())); - } - if (getDoorCountsCount() > 0) { - hash = (37 * hash) + DOORCOUNTS_FIELD_NUMBER; - hash = (53 * hash) + getDoorCountsList().hashCode(); - } - if (hasExtensions()) { - hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; - hash = (53 * hash) + getExtensions().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + // Construct using fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.newBuilder() + private Builder() { - public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.VehicleCounts} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.VehicleCounts) - fi.hsl.common.passengercount.proto.PassengerCount.VehicleCountsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_VehicleCounts_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_VehicleCounts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.class, fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.Builder.class); - } - - // Construct using fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - countQuality_ = ""; - vehicleLoad_ = 0; - vehicleLoadRatio_ = 0D; - if (doorCountsBuilder_ == null) { - doorCounts_ = java.util.Collections.emptyList(); - } else { - doorCounts_ = null; - doorCountsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - extensions_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_VehicleCounts_descriptor; - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts getDefaultInstanceForType() { - return fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts build() { - fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts buildPartial() { - fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts result = new fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts result) { - if (doorCountsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - doorCounts_ = java.util.Collections.unmodifiableList(doorCounts_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.doorCounts_ = doorCounts_; - } else { - result.doorCounts_ = doorCountsBuilder_.build(); - } - } - - private void buildPartial0(fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.countQuality_ = countQuality_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.vehicleLoad_ = vehicleLoad_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.vehicleLoadRatio_ = vehicleLoadRatio_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.extensions_ = extensions_; - to_bitField0_ |= 0x00000008; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts) { - return mergeFrom((fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts other) { - if (other == fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts.getDefaultInstance()) return this; - if (other.hasCountQuality()) { - countQuality_ = other.countQuality_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasVehicleLoad()) { - setVehicleLoad(other.getVehicleLoad()); - } - if (other.hasVehicleLoadRatio()) { - setVehicleLoadRatio(other.getVehicleLoadRatio()); - } - if (doorCountsBuilder_ == null) { - if (!other.doorCounts_.isEmpty()) { - if (doorCounts_.isEmpty()) { - doorCounts_ = other.doorCounts_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureDoorCountsIsMutable(); - doorCounts_.addAll(other.doorCounts_); - } - onChanged(); - } - } else { - if (!other.doorCounts_.isEmpty()) { - if (doorCountsBuilder_.isEmpty()) { - doorCountsBuilder_.dispose(); - doorCountsBuilder_ = null; - doorCounts_ = other.doorCounts_; - bitField0_ = (bitField0_ & ~0x00000008); - doorCountsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDoorCountsFieldBuilder() : null; - } else { - doorCountsBuilder_.addAllMessages(other.doorCounts_); - } - } - } - if (other.hasExtensions()) { - extensions_ = other.extensions_; - bitField0_ |= 0x00000010; - 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: { - countQuality_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - vehicleLoad_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 25: { - vehicleLoadRatio_ = input.readDouble(); - bitField0_ |= 0x00000004; - break; - } // case 25 - case 34: { - fi.hsl.common.passengercount.proto.PassengerCount.DoorCount m = - input.readMessage( - fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.PARSER, - extensionRegistry); - if (doorCountsBuilder_ == null) { - ensureDoorCountsIsMutable(); - doorCounts_.add(m); + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + door_ = ""; + if (countBuilder_ == null) { + count_ = java.util.Collections.emptyList(); } else { - doorCountsBuilder_.addMessage(m); + count_ = null; + countBuilder_.clear(); } - break; - } // case 34 - case 42: { - extensions_ = input.readBytes(); - 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 countQuality_ = ""; - /** - * optional string countQuality = 1; - * @return Whether the countQuality field is set. - */ - public boolean hasCountQuality() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string countQuality = 1; - * @return The countQuality. - */ - public java.lang.String getCountQuality() { - java.lang.Object ref = countQuality_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - countQuality_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string countQuality = 1; - * @return The bytes for countQuality. - */ - public com.google.protobuf.ByteString - getCountQualityBytes() { - java.lang.Object ref = countQuality_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - countQuality_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string countQuality = 1; - * @param value The countQuality to set. - * @return This builder for chaining. - */ - public Builder setCountQuality( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - countQuality_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string countQuality = 1; - * @return This builder for chaining. - */ - public Builder clearCountQuality() { - countQuality_ = getDefaultInstance().getCountQuality(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string countQuality = 1; - * @param value The bytes for countQuality to set. - * @return This builder for chaining. - */ - public Builder setCountQualityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - countQuality_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int vehicleLoad_ ; - /** - * optional int32 vehicleLoad = 2; - * @return Whether the vehicleLoad field is set. - */ - @java.lang.Override - public boolean hasVehicleLoad() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional int32 vehicleLoad = 2; - * @return The vehicleLoad. - */ - @java.lang.Override - public int getVehicleLoad() { - return vehicleLoad_; - } - /** - * optional int32 vehicleLoad = 2; - * @param value The vehicleLoad to set. - * @return This builder for chaining. - */ - public Builder setVehicleLoad(int value) { - - vehicleLoad_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional int32 vehicleLoad = 2; - * @return This builder for chaining. - */ - public Builder clearVehicleLoad() { - bitField0_ = (bitField0_ & ~0x00000002); - vehicleLoad_ = 0; - onChanged(); - return this; - } - - private double vehicleLoadRatio_ ; - /** - * optional double vehicleLoadRatio = 3; - * @return Whether the vehicleLoadRatio field is set. - */ - @java.lang.Override - public boolean hasVehicleLoadRatio() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional double vehicleLoadRatio = 3; - * @return The vehicleLoadRatio. - */ - @java.lang.Override - public double getVehicleLoadRatio() { - return vehicleLoadRatio_; - } - /** - * optional double vehicleLoadRatio = 3; - * @param value The vehicleLoadRatio to set. - * @return This builder for chaining. - */ - public Builder setVehicleLoadRatio(double value) { - - vehicleLoadRatio_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * optional double vehicleLoadRatio = 3; - * @return This builder for chaining. - */ - public Builder clearVehicleLoadRatio() { - bitField0_ = (bitField0_ & ~0x00000004); - vehicleLoadRatio_ = 0D; - onChanged(); - return this; - } - - private java.util.List doorCounts_ = - java.util.Collections.emptyList(); - private void ensureDoorCountsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - doorCounts_ = new java.util.ArrayList(doorCounts_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.passengercount.proto.PassengerCount.DoorCount, fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder, fi.hsl.common.passengercount.proto.PassengerCount.DoorCountOrBuilder> doorCountsBuilder_; - - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public java.util.List getDoorCountsList() { - if (doorCountsBuilder_ == null) { - return java.util.Collections.unmodifiableList(doorCounts_); - } else { - return doorCountsBuilder_.getMessageList(); - } - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public int getDoorCountsCount() { - if (doorCountsBuilder_ == null) { - return doorCounts_.size(); - } else { - return doorCountsBuilder_.getCount(); - } - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount getDoorCounts(int index) { - if (doorCountsBuilder_ == null) { - return doorCounts_.get(index); - } else { - return doorCountsBuilder_.getMessage(index); - } - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public Builder setDoorCounts( - int index, fi.hsl.common.passengercount.proto.PassengerCount.DoorCount value) { - if (doorCountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDoorCountsIsMutable(); - doorCounts_.set(index, value); - onChanged(); - } else { - doorCountsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public Builder setDoorCounts( - int index, fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder builderForValue) { - if (doorCountsBuilder_ == null) { - ensureDoorCountsIsMutable(); - doorCounts_.set(index, builderForValue.build()); - onChanged(); - } else { - doorCountsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public Builder addDoorCounts(fi.hsl.common.passengercount.proto.PassengerCount.DoorCount value) { - if (doorCountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDoorCountsIsMutable(); - doorCounts_.add(value); - onChanged(); - } else { - doorCountsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public Builder addDoorCounts( - int index, fi.hsl.common.passengercount.proto.PassengerCount.DoorCount value) { - if (doorCountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDoorCountsIsMutable(); - doorCounts_.add(index, value); - onChanged(); - } else { - doorCountsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public Builder addDoorCounts( - fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder builderForValue) { - if (doorCountsBuilder_ == null) { - ensureDoorCountsIsMutable(); - doorCounts_.add(builderForValue.build()); - onChanged(); - } else { - doorCountsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public Builder addDoorCounts( - int index, fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder builderForValue) { - if (doorCountsBuilder_ == null) { - ensureDoorCountsIsMutable(); - doorCounts_.add(index, builderForValue.build()); - onChanged(); - } else { - doorCountsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public Builder addAllDoorCounts( - java.lang.Iterable values) { - if (doorCountsBuilder_ == null) { - ensureDoorCountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, doorCounts_); - onChanged(); - } else { - doorCountsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public Builder clearDoorCounts() { - if (doorCountsBuilder_ == null) { - doorCounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - doorCountsBuilder_.clear(); - } - return this; - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public Builder removeDoorCounts(int index) { - if (doorCountsBuilder_ == null) { - ensureDoorCountsIsMutable(); - doorCounts_.remove(index); - onChanged(); - } else { - doorCountsBuilder_.remove(index); - } - return this; - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder getDoorCountsBuilder( - int index) { - return getDoorCountsFieldBuilder().getBuilder(index); - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.DoorCountOrBuilder getDoorCountsOrBuilder( - int index) { - if (doorCountsBuilder_ == null) { - return doorCounts_.get(index); } else { - return doorCountsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public java.util.List - getDoorCountsOrBuilderList() { - if (doorCountsBuilder_ != null) { - return doorCountsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(doorCounts_); - } - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder addDoorCountsBuilder() { - return getDoorCountsFieldBuilder().addBuilder( - fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.getDefaultInstance()); - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder addDoorCountsBuilder( - int index) { - return getDoorCountsFieldBuilder().addBuilder( - index, fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.getDefaultInstance()); - } - /** - * repeated .proto.DoorCount doorCounts = 4; - */ - public java.util.List - getDoorCountsBuilderList() { - return getDoorCountsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.passengercount.proto.PassengerCount.DoorCount, fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder, fi.hsl.common.passengercount.proto.PassengerCount.DoorCountOrBuilder> - getDoorCountsFieldBuilder() { - if (doorCountsBuilder_ == null) { - doorCountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.passengercount.proto.PassengerCount.DoorCount, fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder, fi.hsl.common.passengercount.proto.PassengerCount.DoorCountOrBuilder>( - doorCounts_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - doorCounts_ = null; - } - return doorCountsBuilder_; - } - - private java.lang.Object extensions_ = ""; - /** - * optional string extensions = 5; - * @return Whether the extensions field is set. - */ - public boolean hasExtensions() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional string extensions = 5; - * @return The extensions. - */ - public java.lang.String getExtensions() { - java.lang.Object ref = extensions_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - extensions_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string extensions = 5; - * @return The bytes for extensions. - */ - public com.google.protobuf.ByteString - getExtensionsBytes() { - java.lang.Object ref = extensions_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - extensions_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string extensions = 5; - * @param value The extensions to set. - * @return This builder for chaining. - */ - public Builder setExtensions( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - extensions_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * optional string extensions = 5; - * @return This builder for chaining. - */ - public Builder clearExtensions() { - extensions_ = getDefaultInstance().getExtensions(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * optional string extensions = 5; - * @param value The bytes for extensions to set. - * @return This builder for chaining. - */ - public Builder setExtensionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - extensions_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.VehicleCounts) - } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } - // @@protoc_insertion_point(class_scope:proto.VehicleCounts) - private static final fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_DoorCount_descriptor; + } - public static fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount getDefaultInstanceForType() { + return fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.getDefaultInstance(); + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VehicleCounts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount build() { + fi.hsl.common.passengercount.proto.PassengerCount.DoorCount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount buildPartial() { + fi.hsl.common.passengercount.proto.PassengerCount.DoorCount result = new fi.hsl.common.passengercount.proto.PassengerCount.DoorCount( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.VehicleCounts getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private void buildPartialRepeatedFields( + fi.hsl.common.passengercount.proto.PassengerCount.DoorCount result) { + if (countBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + count_ = java.util.Collections.unmodifiableList(count_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.count_ = count_; + } else { + result.count_ = countBuilder_.build(); + } + } - } + private void buildPartial0(fi.hsl.common.passengercount.proto.PassengerCount.DoorCount result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.door_ = door_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - public interface DoorCountOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.DoorCount) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.passengercount.proto.PassengerCount.DoorCount) { + return mergeFrom((fi.hsl.common.passengercount.proto.PassengerCount.DoorCount) other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * optional string door = 1; - * @return Whether the door field is set. - */ - boolean hasDoor(); - /** - * optional string door = 1; - * @return The door. - */ - java.lang.String getDoor(); - /** - * optional string door = 1; - * @return The bytes for door. - */ - com.google.protobuf.ByteString - getDoorBytes(); + public Builder mergeFrom(fi.hsl.common.passengercount.proto.PassengerCount.DoorCount other) { + if (other == fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.getDefaultInstance()) + return this; + if (other.hasDoor()) { + door_ = other.door_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (countBuilder_ == null) { + if (!other.count_.isEmpty()) { + if (count_.isEmpty()) { + count_ = other.count_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCountIsMutable(); + count_.addAll(other.count_); + } + onChanged(); + } + } else { + if (!other.count_.isEmpty()) { + if (countBuilder_.isEmpty()) { + countBuilder_.dispose(); + countBuilder_ = null; + count_ = other.count_; + bitField0_ = (bitField0_ & ~0x00000002); + countBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCountFieldBuilder() + : null; + } else { + countBuilder_.addAllMessages(other.count_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * repeated .proto.Count count = 2; - */ - java.util.List - getCountList(); - /** - * repeated .proto.Count count = 2; - */ - fi.hsl.common.passengercount.proto.PassengerCount.Count getCount(int index); - /** - * repeated .proto.Count count = 2; - */ - int getCountCount(); - /** - * repeated .proto.Count count = 2; - */ - java.util.List - getCountOrBuilderList(); - /** - * repeated .proto.Count count = 2; - */ - fi.hsl.common.passengercount.proto.PassengerCount.CountOrBuilder getCountOrBuilder( - int index); - } - /** - * Protobuf type {@code proto.DoorCount} - */ - public static final class DoorCount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.DoorCount) - DoorCountOrBuilder { - private static final long serialVersionUID = 0L; - // Use DoorCount.newBuilder() to construct. - private DoorCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DoorCount() { - door_ = ""; - count_ = java.util.Collections.emptyList(); - } + @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 : { + door_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18 : { + fi.hsl.common.passengercount.proto.PassengerCount.Count m = input.readMessage( + fi.hsl.common.passengercount.proto.PassengerCount.Count.PARSER, + extensionRegistry); + if (countBuilder_ == null) { + ensureCountIsMutable(); + count_.add(m); + } else { + countBuilder_.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 door_ = ""; + /** + * optional string door = 1; + * @return Whether the door field is set. + */ + public boolean hasDoor() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string door = 1; + * @return The door. + */ + public java.lang.String getDoor() { + java.lang.Object ref = door_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + door_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string door = 1; + * @return The bytes for door. + */ + public com.google.protobuf.ByteString getDoorBytes() { + java.lang.Object ref = door_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + door_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string door = 1; + * @param value The door to set. + * @return This builder for chaining. + */ + public Builder setDoor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + door_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional string door = 1; + * @return This builder for chaining. + */ + public Builder clearDoor() { + door_ = getDefaultInstance().getDoor(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * optional string door = 1; + * @param value The bytes for door to set. + * @return This builder for chaining. + */ + public Builder setDoorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + door_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List count_ = java.util.Collections + .emptyList(); + private void ensureCountIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + count_ = new java.util.ArrayList(count_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 countBuilder_; + + /** + * repeated .proto.Count count = 2; + */ + public java.util.List getCountList() { + if (countBuilder_ == null) { + return java.util.Collections.unmodifiableList(count_); + } else { + return countBuilder_.getMessageList(); + } + } + /** + * repeated .proto.Count count = 2; + */ + public int getCountCount() { + if (countBuilder_ == null) { + return count_.size(); + } else { + return countBuilder_.getCount(); + } + } + /** + * repeated .proto.Count count = 2; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.Count getCount(int index) { + if (countBuilder_ == null) { + return count_.get(index); + } else { + return countBuilder_.getMessage(index); + } + } + /** + * repeated .proto.Count count = 2; + */ + public Builder setCount(int index, fi.hsl.common.passengercount.proto.PassengerCount.Count value) { + if (countBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCountIsMutable(); + count_.set(index, value); + onChanged(); + } else { + countBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.Count count = 2; + */ + public Builder setCount(int index, + fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder builderForValue) { + if (countBuilder_ == null) { + ensureCountIsMutable(); + count_.set(index, builderForValue.build()); + onChanged(); + } else { + countBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Count count = 2; + */ + public Builder addCount(fi.hsl.common.passengercount.proto.PassengerCount.Count value) { + if (countBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCountIsMutable(); + count_.add(value); + onChanged(); + } else { + countBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.Count count = 2; + */ + public Builder addCount(int index, fi.hsl.common.passengercount.proto.PassengerCount.Count value) { + if (countBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCountIsMutable(); + count_.add(index, value); + onChanged(); + } else { + countBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.Count count = 2; + */ + public Builder addCount(fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder builderForValue) { + if (countBuilder_ == null) { + ensureCountIsMutable(); + count_.add(builderForValue.build()); + onChanged(); + } else { + countBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Count count = 2; + */ + public Builder addCount(int index, + fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder builderForValue) { + if (countBuilder_ == null) { + ensureCountIsMutable(); + count_.add(index, builderForValue.build()); + onChanged(); + } else { + countBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Count count = 2; + */ + public Builder addAllCount( + java.lang.Iterable values) { + if (countBuilder_ == null) { + ensureCountIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, count_); + onChanged(); + } else { + countBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.Count count = 2; + */ + public Builder clearCount() { + if (countBuilder_ == null) { + count_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + countBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.Count count = 2; + */ + public Builder removeCount(int index) { + if (countBuilder_ == null) { + ensureCountIsMutable(); + count_.remove(index); + onChanged(); + } else { + countBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.Count count = 2; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder getCountBuilder(int index) { + return getCountFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Count count = 2; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.CountOrBuilder getCountOrBuilder(int index) { + if (countBuilder_ == null) { + return count_.get(index); + } else { + return countBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.Count count = 2; + */ + public java.util.List getCountOrBuilderList() { + if (countBuilder_ != null) { + return countBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(count_); + } + } + /** + * repeated .proto.Count count = 2; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder addCountBuilder() { + return getCountFieldBuilder() + .addBuilder(fi.hsl.common.passengercount.proto.PassengerCount.Count.getDefaultInstance()); + } + /** + * repeated .proto.Count count = 2; + */ + public fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder addCountBuilder(int index) { + return getCountFieldBuilder().addBuilder(index, + fi.hsl.common.passengercount.proto.PassengerCount.Count.getDefaultInstance()); + } + /** + * repeated .proto.Count count = 2; + */ + public java.util.List getCountBuilderList() { + return getCountFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getCountFieldBuilder() { + if (countBuilder_ == null) { + countBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + count_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + count_ = null; + } + return countBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DoorCount(); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_DoorCount_descriptor; - } + // @@protoc_insertion_point(builder_scope:proto.DoorCount) + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_DoorCount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.class, fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder.class); - } + // @@protoc_insertion_point(class_scope:proto.DoorCount) + private static final fi.hsl.common.passengercount.proto.PassengerCount.DoorCount DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.passengercount.proto.PassengerCount.DoorCount(); + } - private int bitField0_; - public static final int DOOR_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object door_ = ""; - /** - * optional string door = 1; - * @return Whether the door field is set. - */ - @java.lang.Override - public boolean hasDoor() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string door = 1; - * @return The door. - */ - @java.lang.Override - public java.lang.String getDoor() { - java.lang.Object ref = door_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - door_ = s; - } - return s; - } - } - /** - * optional string door = 1; - * @return The bytes for door. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDoorBytes() { - java.lang.Object ref = door_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - door_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static final int COUNT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List count_; - /** - * repeated .proto.Count count = 2; - */ - @java.lang.Override - public java.util.List getCountList() { - return count_; - } - /** - * repeated .proto.Count count = 2; - */ - @java.lang.Override - public java.util.List - getCountOrBuilderList() { - return count_; - } - /** - * repeated .proto.Count count = 2; - */ - @java.lang.Override - public int getCountCount() { - return count_.size(); - } - /** - * repeated .proto.Count count = 2; - */ - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Count getCount(int index) { - return count_.get(index); + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DoorCount parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.Count) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         *Field 'class' in JSON, represents passenger class.
+         * 
+ * + * optional string clazz = 1; + * @return Whether the clazz field is set. + */ + boolean hasClazz(); + /** + *
+         *Field 'class' in JSON, represents passenger class.
+         * 
+ * + * optional string clazz = 1; + * @return The clazz. + */ + java.lang.String getClazz(); + /** + *
+         *Field 'class' in JSON, represents passenger class.
+         * 
+ * + * optional string clazz = 1; + * @return The bytes for clazz. + */ + com.google.protobuf.ByteString getClazzBytes(); + + /** + * optional int32 in = 2; + * @return Whether the in field is set. + */ + boolean hasIn(); + /** + * optional int32 in = 2; + * @return The in. + */ + int getIn(); + + /** + * optional int32 out = 3; + * @return Whether the out field is set. + */ + boolean hasOut(); + /** + * optional int32 out = 3; + * @return The out. + */ + int getOut(); } /** - * repeated .proto.Count count = 2; + * Protobuf type {@code proto.Count} */ - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.CountOrBuilder getCountOrBuilder( - int index) { - return count_.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; - - 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, door_); - } - for (int i = 0; i < count_.size(); i++) { - output.writeMessage(2, count_.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, door_); - } - for (int i = 0; i < count_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, count_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static final class Count extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.Count) + CountOrBuilder { + private static final long serialVersionUID = 0L; + // Use Count.newBuilder() to construct. + private Count(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Count() { + clazz_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Count(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Count_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Count_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.passengercount.proto.PassengerCount.Count.class, + fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder.class); + } + + private int bitField0_; + public static final int CLAZZ_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object clazz_ = ""; + /** + *
+         *Field 'class' in JSON, represents passenger class.
+         * 
+ * + * optional string clazz = 1; + * @return Whether the clazz field is set. + */ + @java.lang.Override + public boolean hasClazz() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         *Field 'class' in JSON, represents passenger class.
+         * 
+ * + * optional string clazz = 1; + * @return The clazz. + */ + @java.lang.Override + public java.lang.String getClazz() { + java.lang.Object ref = clazz_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + clazz_ = s; + } + return s; + } + } + /** + *
+         *Field 'class' in JSON, represents passenger class.
+         * 
+ * + * optional string clazz = 1; + * @return The bytes for clazz. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClazzBytes() { + java.lang.Object ref = clazz_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clazz_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof fi.hsl.common.passengercount.proto.PassengerCount.DoorCount)) { - return super.equals(obj); - } - fi.hsl.common.passengercount.proto.PassengerCount.DoorCount other = (fi.hsl.common.passengercount.proto.PassengerCount.DoorCount) obj; - - if (hasDoor() != other.hasDoor()) return false; - if (hasDoor()) { - if (!getDoor() - .equals(other.getDoor())) return false; - } - if (!getCountList() - .equals(other.getCountList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static final int IN_FIELD_NUMBER = 2; + private int in_ = 0; + /** + * optional int32 in = 2; + * @return Whether the in field is set. + */ + @java.lang.Override + public boolean hasIn() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int32 in = 2; + * @return The in. + */ + @java.lang.Override + public int getIn() { + return in_; + } + + public static final int OUT_FIELD_NUMBER = 3; + private int out_ = 0; + /** + * optional int32 out = 3; + * @return Whether the out field is set. + */ + @java.lang.Override + public boolean hasOut() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int32 out = 3; + * @return The out. + */ + @java.lang.Override + public int getOut() { + return out_; + } + + 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, clazz_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(2, in_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(3, out_); + } + getUnknownFields().writeTo(output); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDoor()) { - hash = (37 * hash) + DOOR_FIELD_NUMBER; - hash = (53 * hash) + getDoor().hashCode(); - } - if (getCountCount() > 0) { - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCountList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clazz_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, in_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, out_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.passengercount.proto.PassengerCount.DoorCount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof fi.hsl.common.passengercount.proto.PassengerCount.Count)) { + return super.equals(obj); + } + fi.hsl.common.passengercount.proto.PassengerCount.Count other = (fi.hsl.common.passengercount.proto.PassengerCount.Count) obj; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.DoorCount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.DoorCount) - fi.hsl.common.passengercount.proto.PassengerCount.DoorCountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_DoorCount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_DoorCount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.class, fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.Builder.class); - } - - // Construct using fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - door_ = ""; - if (countBuilder_ == null) { - count_ = java.util.Collections.emptyList(); - } else { - count_ = null; - countBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_DoorCount_descriptor; - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount getDefaultInstanceForType() { - return fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount build() { - fi.hsl.common.passengercount.proto.PassengerCount.DoorCount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount buildPartial() { - fi.hsl.common.passengercount.proto.PassengerCount.DoorCount result = new fi.hsl.common.passengercount.proto.PassengerCount.DoorCount(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(fi.hsl.common.passengercount.proto.PassengerCount.DoorCount result) { - if (countBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - count_ = java.util.Collections.unmodifiableList(count_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.count_ = count_; - } else { - result.count_ = countBuilder_.build(); - } - } - - private void buildPartial0(fi.hsl.common.passengercount.proto.PassengerCount.DoorCount result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.door_ = door_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.passengercount.proto.PassengerCount.DoorCount) { - return mergeFrom((fi.hsl.common.passengercount.proto.PassengerCount.DoorCount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.passengercount.proto.PassengerCount.DoorCount other) { - if (other == fi.hsl.common.passengercount.proto.PassengerCount.DoorCount.getDefaultInstance()) return this; - if (other.hasDoor()) { - door_ = other.door_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (countBuilder_ == null) { - if (!other.count_.isEmpty()) { - if (count_.isEmpty()) { - count_ = other.count_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCountIsMutable(); - count_.addAll(other.count_); - } - onChanged(); - } - } else { - if (!other.count_.isEmpty()) { - if (countBuilder_.isEmpty()) { - countBuilder_.dispose(); - countBuilder_ = null; - count_ = other.count_; - bitField0_ = (bitField0_ & ~0x00000002); - countBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCountFieldBuilder() : null; - } else { - countBuilder_.addAllMessages(other.count_); - } - } - } - 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: { - door_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - fi.hsl.common.passengercount.proto.PassengerCount.Count m = - input.readMessage( - fi.hsl.common.passengercount.proto.PassengerCount.Count.PARSER, - extensionRegistry); - if (countBuilder_ == null) { - ensureCountIsMutable(); - count_.add(m); - } else { - countBuilder_.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 door_ = ""; - /** - * optional string door = 1; - * @return Whether the door field is set. - */ - public boolean hasDoor() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string door = 1; - * @return The door. - */ - public java.lang.String getDoor() { - java.lang.Object ref = door_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - door_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string door = 1; - * @return The bytes for door. - */ - public com.google.protobuf.ByteString - getDoorBytes() { - java.lang.Object ref = door_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - door_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string door = 1; - * @param value The door to set. - * @return This builder for chaining. - */ - public Builder setDoor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - door_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string door = 1; - * @return This builder for chaining. - */ - public Builder clearDoor() { - door_ = getDefaultInstance().getDoor(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string door = 1; - * @param value The bytes for door to set. - * @return This builder for chaining. - */ - public Builder setDoorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - door_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List count_ = - java.util.Collections.emptyList(); - private void ensureCountIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - count_ = new java.util.ArrayList(count_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.passengercount.proto.PassengerCount.Count, fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder, fi.hsl.common.passengercount.proto.PassengerCount.CountOrBuilder> countBuilder_; - - /** - * repeated .proto.Count count = 2; - */ - public java.util.List getCountList() { - if (countBuilder_ == null) { - return java.util.Collections.unmodifiableList(count_); - } else { - return countBuilder_.getMessageList(); - } - } - /** - * repeated .proto.Count count = 2; - */ - public int getCountCount() { - if (countBuilder_ == null) { - return count_.size(); - } else { - return countBuilder_.getCount(); - } - } - /** - * repeated .proto.Count count = 2; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.Count getCount(int index) { - if (countBuilder_ == null) { - return count_.get(index); - } else { - return countBuilder_.getMessage(index); - } - } - /** - * repeated .proto.Count count = 2; - */ - public Builder setCount( - int index, fi.hsl.common.passengercount.proto.PassengerCount.Count value) { - if (countBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCountIsMutable(); - count_.set(index, value); - onChanged(); - } else { - countBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .proto.Count count = 2; - */ - public Builder setCount( - int index, fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder builderForValue) { - if (countBuilder_ == null) { - ensureCountIsMutable(); - count_.set(index, builderForValue.build()); - onChanged(); - } else { - countBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Count count = 2; - */ - public Builder addCount(fi.hsl.common.passengercount.proto.PassengerCount.Count value) { - if (countBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCountIsMutable(); - count_.add(value); - onChanged(); - } else { - countBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .proto.Count count = 2; - */ - public Builder addCount( - int index, fi.hsl.common.passengercount.proto.PassengerCount.Count value) { - if (countBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCountIsMutable(); - count_.add(index, value); - onChanged(); - } else { - countBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .proto.Count count = 2; - */ - public Builder addCount( - fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder builderForValue) { - if (countBuilder_ == null) { - ensureCountIsMutable(); - count_.add(builderForValue.build()); - onChanged(); - } else { - countBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Count count = 2; - */ - public Builder addCount( - int index, fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder builderForValue) { - if (countBuilder_ == null) { - ensureCountIsMutable(); - count_.add(index, builderForValue.build()); - onChanged(); - } else { - countBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Count count = 2; - */ - public Builder addAllCount( - java.lang.Iterable values) { - if (countBuilder_ == null) { - ensureCountIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, count_); - onChanged(); - } else { - countBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .proto.Count count = 2; - */ - public Builder clearCount() { - if (countBuilder_ == null) { - count_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - countBuilder_.clear(); - } - return this; - } - /** - * repeated .proto.Count count = 2; - */ - public Builder removeCount(int index) { - if (countBuilder_ == null) { - ensureCountIsMutable(); - count_.remove(index); - onChanged(); - } else { - countBuilder_.remove(index); - } - return this; - } - /** - * repeated .proto.Count count = 2; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder getCountBuilder( - int index) { - return getCountFieldBuilder().getBuilder(index); - } - /** - * repeated .proto.Count count = 2; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.CountOrBuilder getCountOrBuilder( - int index) { - if (countBuilder_ == null) { - return count_.get(index); } else { - return countBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .proto.Count count = 2; - */ - public java.util.List - getCountOrBuilderList() { - if (countBuilder_ != null) { - return countBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(count_); - } - } - /** - * repeated .proto.Count count = 2; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder addCountBuilder() { - return getCountFieldBuilder().addBuilder( - fi.hsl.common.passengercount.proto.PassengerCount.Count.getDefaultInstance()); - } - /** - * repeated .proto.Count count = 2; - */ - public fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder addCountBuilder( - int index) { - return getCountFieldBuilder().addBuilder( - index, fi.hsl.common.passengercount.proto.PassengerCount.Count.getDefaultInstance()); - } - /** - * repeated .proto.Count count = 2; - */ - public java.util.List - getCountBuilderList() { - return getCountFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.passengercount.proto.PassengerCount.Count, fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder, fi.hsl.common.passengercount.proto.PassengerCount.CountOrBuilder> - getCountFieldBuilder() { - if (countBuilder_ == null) { - countBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.passengercount.proto.PassengerCount.Count, fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder, fi.hsl.common.passengercount.proto.PassengerCount.CountOrBuilder>( - count_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - count_ = null; - } - return countBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.DoorCount) - } + if (hasClazz() != other.hasClazz()) + return false; + if (hasClazz()) { + if (!getClazz().equals(other.getClazz())) + return false; + } + if (hasIn() != other.hasIn()) + return false; + if (hasIn()) { + if (getIn() != other.getIn()) + return false; + } + if (hasOut() != other.hasOut()) + return false; + if (hasOut()) { + if (getOut() != other.getOut()) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } - // @@protoc_insertion_point(class_scope:proto.DoorCount) - private static final fi.hsl.common.passengercount.proto.PassengerCount.DoorCount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.passengercount.proto.PassengerCount.DoorCount(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasClazz()) { + hash = (37 * hash) + CLAZZ_FIELD_NUMBER; + hash = (53 * hash) + getClazz().hashCode(); + } + if (hasIn()) { + hash = (37 * hash) + IN_FIELD_NUMBER; + hash = (53 * hash) + getIn(); + } + if (hasOut()) { + hash = (37 * hash) + OUT_FIELD_NUMBER; + hash = (53 * hash) + getOut(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static fi.hsl.common.passengercount.proto.PassengerCount.DoorCount getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.passengercount.proto.PassengerCount.Count prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoorCount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.Count} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.Count) + fi.hsl.common.passengercount.proto.PassengerCount.CountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Count_descriptor; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Count_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.passengercount.proto.PassengerCount.Count.class, + fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder.class); + } - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.DoorCount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + // Construct using fi.hsl.common.passengercount.proto.PassengerCount.Count.newBuilder() + private Builder() { - } + } - public interface CountOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.Count) - com.google.protobuf.MessageOrBuilder { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - /** - *
-     *Field 'class' in JSON, represents passenger class.
-     * 
- * - * optional string clazz = 1; - * @return Whether the clazz field is set. - */ - boolean hasClazz(); - /** - *
-     *Field 'class' in JSON, represents passenger class.
-     * 
- * - * optional string clazz = 1; - * @return The clazz. - */ - java.lang.String getClazz(); - /** - *
-     *Field 'class' in JSON, represents passenger class.
-     * 
- * - * optional string clazz = 1; - * @return The bytes for clazz. - */ - com.google.protobuf.ByteString - getClazzBytes(); + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clazz_ = ""; + in_ = 0; + out_ = 0; + return this; + } - /** - * optional int32 in = 2; - * @return Whether the in field is set. - */ - boolean hasIn(); - /** - * optional int32 in = 2; - * @return The in. - */ - int getIn(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Count_descriptor; + } - /** - * optional int32 out = 3; - * @return Whether the out field is set. - */ - boolean hasOut(); - /** - * optional int32 out = 3; - * @return The out. - */ - int getOut(); - } - /** - * Protobuf type {@code proto.Count} - */ - public static final class Count extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.Count) - CountOrBuilder { - private static final long serialVersionUID = 0L; - // Use Count.newBuilder() to construct. - private Count(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Count() { - clazz_ = ""; - } + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Count getDefaultInstanceForType() { + return fi.hsl.common.passengercount.proto.PassengerCount.Count.getDefaultInstance(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Count(); - } + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Count build() { + fi.hsl.common.passengercount.proto.PassengerCount.Count result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Count_descriptor; - } + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Count buildPartial() { + fi.hsl.common.passengercount.proto.PassengerCount.Count result = new fi.hsl.common.passengercount.proto.PassengerCount.Count( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Count_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.passengercount.proto.PassengerCount.Count.class, fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder.class); - } + private void buildPartial0(fi.hsl.common.passengercount.proto.PassengerCount.Count result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clazz_ = clazz_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.in_ = in_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.out_ = out_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } - private int bitField0_; - public static final int CLAZZ_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object clazz_ = ""; - /** - *
-     *Field 'class' in JSON, represents passenger class.
-     * 
- * - * optional string clazz = 1; - * @return Whether the clazz field is set. - */ - @java.lang.Override - public boolean hasClazz() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     *Field 'class' in JSON, represents passenger class.
-     * 
- * - * optional string clazz = 1; - * @return The clazz. - */ - @java.lang.Override - public java.lang.String getClazz() { - java.lang.Object ref = clazz_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - clazz_ = s; - } - return s; - } - } - /** - *
-     *Field 'class' in JSON, represents passenger class.
-     * 
- * - * optional string clazz = 1; - * @return The bytes for clazz. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClazzBytes() { - java.lang.Object ref = clazz_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clazz_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.passengercount.proto.PassengerCount.Count) { + return mergeFrom((fi.hsl.common.passengercount.proto.PassengerCount.Count) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int IN_FIELD_NUMBER = 2; - private int in_ = 0; - /** - * optional int32 in = 2; - * @return Whether the in field is set. - */ - @java.lang.Override - public boolean hasIn() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional int32 in = 2; - * @return The in. - */ - @java.lang.Override - public int getIn() { - return in_; - } + public Builder mergeFrom(fi.hsl.common.passengercount.proto.PassengerCount.Count other) { + if (other == fi.hsl.common.passengercount.proto.PassengerCount.Count.getDefaultInstance()) + return this; + if (other.hasClazz()) { + clazz_ = other.clazz_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIn()) { + setIn(other.getIn()); + } + if (other.hasOut()) { + setOut(other.getOut()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static final int OUT_FIELD_NUMBER = 3; - private int out_ = 0; - /** - * optional int32 out = 3; - * @return Whether the out field is set. - */ - @java.lang.Override - public boolean hasOut() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional int32 out = 3; - * @return The out. - */ - @java.lang.Override - public int getOut() { - return out_; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @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 : { + clazz_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16 : { + in_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24 : { + out_ = 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 java.lang.Object clazz_ = ""; + /** + *
+             *Field 'class' in JSON, represents passenger class.
+             * 
+ * + * optional string clazz = 1; + * @return Whether the clazz field is set. + */ + public boolean hasClazz() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             *Field 'class' in JSON, represents passenger class.
+             * 
+ * + * optional string clazz = 1; + * @return The clazz. + */ + public java.lang.String getClazz() { + java.lang.Object ref = clazz_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + clazz_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             *Field 'class' in JSON, represents passenger class.
+             * 
+ * + * optional string clazz = 1; + * @return The bytes for clazz. + */ + public com.google.protobuf.ByteString getClazzBytes() { + java.lang.Object ref = clazz_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + clazz_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             *Field 'class' in JSON, represents passenger class.
+             * 
+ * + * optional string clazz = 1; + * @param value The clazz to set. + * @return This builder for chaining. + */ + public Builder setClazz(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clazz_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             *Field 'class' in JSON, represents passenger class.
+             * 
+ * + * optional string clazz = 1; + * @return This builder for chaining. + */ + public Builder clearClazz() { + clazz_ = getDefaultInstance().getClazz(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+             *Field 'class' in JSON, represents passenger class.
+             * 
+ * + * optional string clazz = 1; + * @param value The bytes for clazz to set. + * @return This builder for chaining. + */ + public Builder setClazzBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + clazz_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + private int in_; + /** + * optional int32 in = 2; + * @return Whether the in field is set. + */ + @java.lang.Override + public boolean hasIn() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional int32 in = 2; + * @return The in. + */ + @java.lang.Override + public int getIn() { + return in_; + } + /** + * optional int32 in = 2; + * @param value The in to set. + * @return This builder for chaining. + */ + public Builder setIn(int value) { + + in_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional int32 in = 2; + * @return This builder for chaining. + */ + public Builder clearIn() { + bitField0_ = (bitField0_ & ~0x00000002); + in_ = 0; + onChanged(); + return this; + } - @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, clazz_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt32(2, in_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeInt32(3, out_); - } - getUnknownFields().writeTo(output); - } + private int out_; + /** + * optional int32 out = 3; + * @return Whether the out field is set. + */ + @java.lang.Override + public boolean hasOut() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int32 out = 3; + * @return The out. + */ + @java.lang.Override + public int getOut() { + return out_; + } + /** + * optional int32 out = 3; + * @param value The out to set. + * @return This builder for chaining. + */ + public Builder setOut(int value) { + + out_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional int32 out = 3; + * @return This builder for chaining. + */ + public Builder clearOut() { + bitField0_ = (bitField0_ & ~0x00000004); + out_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - @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, clazz_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, in_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, out_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof fi.hsl.common.passengercount.proto.PassengerCount.Count)) { - return super.equals(obj); - } - fi.hsl.common.passengercount.proto.PassengerCount.Count other = (fi.hsl.common.passengercount.proto.PassengerCount.Count) obj; - - if (hasClazz() != other.hasClazz()) return false; - if (hasClazz()) { - if (!getClazz() - .equals(other.getClazz())) return false; - } - if (hasIn() != other.hasIn()) return false; - if (hasIn()) { - if (getIn() - != other.getIn()) return false; - } - if (hasOut() != other.hasOut()) return false; - if (hasOut()) { - if (getOut() - != other.getOut()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + // @@protoc_insertion_point(builder_scope:proto.Count) + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasClazz()) { - hash = (37 * hash) + CLAZZ_FIELD_NUMBER; - hash = (53 * hash) + getClazz().hashCode(); - } - if (hasIn()) { - hash = (37 * hash) + IN_FIELD_NUMBER; - hash = (53 * hash) + getIn(); - } - if (hasOut()) { - hash = (37 * hash) + OUT_FIELD_NUMBER; - hash = (53 * hash) + getOut(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + // @@protoc_insertion_point(class_scope:proto.Count) + private static final fi.hsl.common.passengercount.proto.PassengerCount.Count DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.passengercount.proto.PassengerCount.Count(); + } - public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.passengercount.proto.PassengerCount.Count parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static fi.hsl.common.passengercount.proto.PassengerCount.Count getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.passengercount.proto.PassengerCount.Count prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Count parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.Count} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.Count) - fi.hsl.common.passengercount.proto.PassengerCount.CountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Count_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Count_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.passengercount.proto.PassengerCount.Count.class, fi.hsl.common.passengercount.proto.PassengerCount.Count.Builder.class); - } - - // Construct using fi.hsl.common.passengercount.proto.PassengerCount.Count.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - clazz_ = ""; - in_ = 0; - out_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.passengercount.proto.PassengerCount.internal_static_proto_Count_descriptor; - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Count getDefaultInstanceForType() { - return fi.hsl.common.passengercount.proto.PassengerCount.Count.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Count build() { - fi.hsl.common.passengercount.proto.PassengerCount.Count result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Count buildPartial() { - fi.hsl.common.passengercount.proto.PassengerCount.Count result = new fi.hsl.common.passengercount.proto.PassengerCount.Count(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.passengercount.proto.PassengerCount.Count result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.clazz_ = clazz_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.in_ = in_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.out_ = out_; - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.passengercount.proto.PassengerCount.Count) { - return mergeFrom((fi.hsl.common.passengercount.proto.PassengerCount.Count)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.passengercount.proto.PassengerCount.Count other) { - if (other == fi.hsl.common.passengercount.proto.PassengerCount.Count.getDefaultInstance()) return this; - if (other.hasClazz()) { - clazz_ = other.clazz_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasIn()) { - setIn(other.getIn()); - } - if (other.hasOut()) { - setOut(other.getOut()); - } - 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: { - clazz_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - in_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - out_ = 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 java.lang.Object clazz_ = ""; - /** - *
-       *Field 'class' in JSON, represents passenger class.
-       * 
- * - * optional string clazz = 1; - * @return Whether the clazz field is set. - */ - public boolean hasClazz() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       *Field 'class' in JSON, represents passenger class.
-       * 
- * - * optional string clazz = 1; - * @return The clazz. - */ - public java.lang.String getClazz() { - java.lang.Object ref = clazz_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - clazz_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *Field 'class' in JSON, represents passenger class.
-       * 
- * - * optional string clazz = 1; - * @return The bytes for clazz. - */ - public com.google.protobuf.ByteString - getClazzBytes() { - java.lang.Object ref = clazz_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clazz_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *Field 'class' in JSON, represents passenger class.
-       * 
- * - * optional string clazz = 1; - * @param value The clazz to set. - * @return This builder for chaining. - */ - public Builder setClazz( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - clazz_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       *Field 'class' in JSON, represents passenger class.
-       * 
- * - * optional string clazz = 1; - * @return This builder for chaining. - */ - public Builder clearClazz() { - clazz_ = getDefaultInstance().getClazz(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       *Field 'class' in JSON, represents passenger class.
-       * 
- * - * optional string clazz = 1; - * @param value The bytes for clazz to set. - * @return This builder for chaining. - */ - public Builder setClazzBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - clazz_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int in_ ; - /** - * optional int32 in = 2; - * @return Whether the in field is set. - */ - @java.lang.Override - public boolean hasIn() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional int32 in = 2; - * @return The in. - */ - @java.lang.Override - public int getIn() { - return in_; - } - /** - * optional int32 in = 2; - * @param value The in to set. - * @return This builder for chaining. - */ - public Builder setIn(int value) { - - in_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional int32 in = 2; - * @return This builder for chaining. - */ - public Builder clearIn() { - bitField0_ = (bitField0_ & ~0x00000002); - in_ = 0; - onChanged(); - return this; - } - - private int out_ ; - /** - * optional int32 out = 3; - * @return Whether the out field is set. - */ - @java.lang.Override - public boolean hasOut() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional int32 out = 3; - * @return The out. - */ - @java.lang.Override - public int getOut() { - return out_; - } - /** - * optional int32 out = 3; - * @param value The out to set. - * @return This builder for chaining. - */ - public Builder setOut(int value) { - - out_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * optional int32 out = 3; - * @return This builder for chaining. - */ - public Builder clearOut() { - bitField0_ = (bitField0_ & ~0x00000004); - out_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.Count) - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // @@protoc_insertion_point(class_scope:proto.Count) - private static final fi.hsl.common.passengercount.proto.PassengerCount.Count DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.passengercount.proto.PassengerCount.Count(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static fi.hsl.common.passengercount.proto.PassengerCount.Count getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public fi.hsl.common.passengercount.proto.PassengerCount.Count getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Count parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_Data_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_Data_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_Topic_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_Topic_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_Payload_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_Payload_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_VehicleCounts_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_VehicleCounts_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_DoorCount_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_DoorCount_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_Count_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_Count_fieldAccessorTable; - @java.lang.Override - public fi.hsl.common.passengercount.proto.PassengerCount.Count getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_Data_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_Data_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_Topic_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_Topic_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_Payload_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_Payload_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_VehicleCounts_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_VehicleCounts_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_DoorCount_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_DoorCount_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_Count_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_Count_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025passenger-count.proto\022\005proto\"s\n\004Data\022\030" + - "\n\rSchemaVersion\030\001 \002(\005:\0011\022\033\n\005topic\030\002 \001(\0132" + - "\014.proto.Topic\022\037\n\007payload\030\003 \002(\0132\016.proto.P" + - "ayload\022\023\n\013received_at\030\004 \001(\003\"\243\004\n\005Topic\022\030\n" + - "\rSchemaVersion\030\001 \002(\005:\0011\022\023\n\013received_at\030\002" + - " \002(\003\022\024\n\014topic_prefix\030\003 \002(\t\022\025\n\rtopic_vers" + - "ion\030\004 \002(\t\022.\n\014journey_type\030\005 \002(\0162\030.proto." + - "Topic.JourneyType\0220\n\rtemporal_type\030\006 \002(\016" + - "2\031.proto.Topic.TemporalType\022*\n\nevent_typ" + - "e\030\007 \002(\0162\026.proto.Topic.EventType\0222\n\016trans" + - "port_mode\030\010 \001(\0162\032.proto.Topic.TransportM" + - "ode\022\023\n\013operator_id\030\t \002(\005\022\026\n\016vehicle_numb" + - "er\030\n \002(\005\"4\n\013JourneyType\022\013\n\007journey\020\000\022\013\n\007" + - "deadrun\020\001\022\013\n\007signoff\020\002\")\n\014TemporalType\022\013" + - "\n\007ongoing\020\000\022\014\n\010upcoming\020\001\"X\n\rTransportMo" + - "de\022\007\n\003bus\020\000\022\t\n\005train\020\001\022\010\n\004tram\020\002\022\t\n\005metr" + - "o\020\003\022\t\n\005ferry\020\004\022\010\n\004ubus\020\005\022\t\n\005robot\020\006\"\024\n\tE" + - "ventType\022\007\n\003apc\020\000\"\220\002\n\007Payload\022\014\n\004desi\030\001 " + - "\001(\t\022\013\n\003dir\030\002 \001(\t\022\014\n\004oper\030\003 \001(\005\022\013\n\003veh\030\004 " + - "\001(\005\022\013\n\003tst\030\005 \001(\003\022\013\n\003tsi\030\006 \001(\003\022\013\n\003lat\030\007 \001" + - "(\001\022\014\n\004long\030\010 \001(\001\022\013\n\003odo\030\t \001(\001\022\014\n\004oday\030\n " + - "\001(\t\022\013\n\003jrn\030\013 \001(\005\022\014\n\004line\030\014 \001(\005\022\r\n\005start\030" + - "\r \001(\t\022\013\n\003loc\030\016 \001(\t\022\014\n\004stop\030\017 \001(\005\022\r\n\005rout" + - "e\030\020 \001(\t\022+\n\rvehicleCounts\030\021 \001(\0132\024.proto.V" + - "ehicleCounts\"\216\001\n\rVehicleCounts\022\024\n\014countQ" + - "uality\030\001 \001(\t\022\023\n\013vehicleLoad\030\002 \001(\005\022\030\n\020veh" + - "icleLoadRatio\030\003 \001(\001\022$\n\ndoorCounts\030\004 \003(\0132" + - "\020.proto.DoorCount\022\022\n\nextensions\030\005 \001(\t\"6\n" + - "\tDoorCount\022\014\n\004door\030\001 \001(\t\022\033\n\005count\030\002 \003(\0132" + - "\014.proto.Count\"/\n\005Count\022\r\n\005clazz\030\001 \001(\t\022\n\n" + - "\002in\030\002 \001(\005\022\013\n\003out\030\003 \001(\005B4\n\"fi.hsl.common." + - "passengercount.protoB\016PassengerCount" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_proto_Data_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_proto_Data_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_Data_descriptor, - new java.lang.String[] { "SchemaVersion", "Topic", "Payload", "ReceivedAt", }); - internal_static_proto_Topic_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_proto_Topic_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_Topic_descriptor, - new java.lang.String[] { "SchemaVersion", "ReceivedAt", "TopicPrefix", "TopicVersion", "JourneyType", "TemporalType", "EventType", "TransportMode", "OperatorId", "VehicleNumber", }); - internal_static_proto_Payload_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_proto_Payload_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_Payload_descriptor, - new java.lang.String[] { "Desi", "Dir", "Oper", "Veh", "Tst", "Tsi", "Lat", "Long", "Odo", "Oday", "Jrn", "Line", "Start", "Loc", "Stop", "Route", "VehicleCounts", }); - internal_static_proto_VehicleCounts_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_proto_VehicleCounts_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_VehicleCounts_descriptor, - new java.lang.String[] { "CountQuality", "VehicleLoad", "VehicleLoadRatio", "DoorCounts", "Extensions", }); - internal_static_proto_DoorCount_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_proto_DoorCount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_DoorCount_descriptor, - new java.lang.String[] { "Door", "Count", }); - internal_static_proto_Count_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_proto_Count_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_Count_descriptor, - new java.lang.String[] { "Clazz", "In", "Out", }); - } - - // @@protoc_insertion_point(outer_class_scope) + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = {"\n\025passenger-count.proto\022\005proto\"s\n\004Data\022\030" + + "\n\rSchemaVersion\030\001 \002(\005:\0011\022\033\n\005topic\030\002 \001(\0132" + + "\014.proto.Topic\022\037\n\007payload\030\003 \002(\0132\016.proto.P" + + "ayload\022\023\n\013received_at\030\004 \001(\003\"\243\004\n\005Topic\022\030\n" + + "\rSchemaVersion\030\001 \002(\005:\0011\022\023\n\013received_at\030\002" + + " \002(\003\022\024\n\014topic_prefix\030\003 \002(\t\022\025\n\rtopic_vers" + + "ion\030\004 \002(\t\022.\n\014journey_type\030\005 \002(\0162\030.proto." + + "Topic.JourneyType\0220\n\rtemporal_type\030\006 \002(\016" + + "2\031.proto.Topic.TemporalType\022*\n\nevent_typ" + + "e\030\007 \002(\0162\026.proto.Topic.EventType\0222\n\016trans" + + "port_mode\030\010 \001(\0162\032.proto.Topic.TransportM" + + "ode\022\023\n\013operator_id\030\t \002(\005\022\026\n\016vehicle_numb" + + "er\030\n \002(\005\"4\n\013JourneyType\022\013\n\007journey\020\000\022\013\n\007" + + "deadrun\020\001\022\013\n\007signoff\020\002\")\n\014TemporalType\022\013" + + "\n\007ongoing\020\000\022\014\n\010upcoming\020\001\"X\n\rTransportMo" + + "de\022\007\n\003bus\020\000\022\t\n\005train\020\001\022\010\n\004tram\020\002\022\t\n\005metr" + + "o\020\003\022\t\n\005ferry\020\004\022\010\n\004ubus\020\005\022\t\n\005robot\020\006\"\024\n\tE" + + "ventType\022\007\n\003apc\020\000\"\220\002\n\007Payload\022\014\n\004desi\030\001 " + + "\001(\t\022\013\n\003dir\030\002 \001(\t\022\014\n\004oper\030\003 \001(\005\022\013\n\003veh\030\004 " + + "\001(\005\022\013\n\003tst\030\005 \001(\003\022\013\n\003tsi\030\006 \001(\003\022\013\n\003lat\030\007 \001" + + "(\001\022\014\n\004long\030\010 \001(\001\022\013\n\003odo\030\t \001(\001\022\014\n\004oday\030\n " + + "\001(\t\022\013\n\003jrn\030\013 \001(\005\022\014\n\004line\030\014 \001(\005\022\r\n\005start\030" + + "\r \001(\t\022\013\n\003loc\030\016 \001(\t\022\014\n\004stop\030\017 \001(\005\022\r\n\005rout" + + "e\030\020 \001(\t\022+\n\rvehicleCounts\030\021 \001(\0132\024.proto.V" + + "ehicleCounts\"\216\001\n\rVehicleCounts\022\024\n\014countQ" + + "uality\030\001 \001(\t\022\023\n\013vehicleLoad\030\002 \001(\005\022\030\n\020veh" + + "icleLoadRatio\030\003 \001(\001\022$\n\ndoorCounts\030\004 \003(\0132" + + "\020.proto.DoorCount\022\022\n\nextensions\030\005 \001(\t\"6\n" + + "\tDoorCount\022\014\n\004door\030\001 \001(\t\022\033\n\005count\030\002 \003(\0132" + + "\014.proto.Count\"/\n\005Count\022\r\n\005clazz\030\001 \001(\t\022\n\n" + + "\002in\030\002 \001(\005\022\013\n\003out\030\003 \001(\005B4\n\"fi.hsl.common." + + "passengercount.protoB\016PassengerCount"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[]{}); + internal_static_proto_Data_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_proto_Data_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Data_descriptor, + new java.lang.String[]{"SchemaVersion", "Topic", "Payload", "ReceivedAt",}); + internal_static_proto_Topic_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_proto_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Topic_descriptor, + new java.lang.String[]{"SchemaVersion", "ReceivedAt", "TopicPrefix", "TopicVersion", "JourneyType", + "TemporalType", "EventType", "TransportMode", "OperatorId", "VehicleNumber",}); + internal_static_proto_Payload_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_proto_Payload_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Payload_descriptor, + new java.lang.String[]{"Desi", "Dir", "Oper", "Veh", "Tst", "Tsi", "Lat", "Long", "Odo", "Oday", "Jrn", + "Line", "Start", "Loc", "Stop", "Route", "VehicleCounts",}); + internal_static_proto_VehicleCounts_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_proto_VehicleCounts_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_VehicleCounts_descriptor, + new java.lang.String[]{"CountQuality", "VehicleLoad", "VehicleLoadRatio", "DoorCounts", "Extensions",}); + internal_static_proto_DoorCount_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_proto_DoorCount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_DoorCount_descriptor, new java.lang.String[]{"Door", "Count",}); + internal_static_proto_Count_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_proto_Count_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Count_descriptor, new java.lang.String[]{"Clazz", "In", "Out",}); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/fi/hsl/common/pulsar/PulsarApplication.java b/src/main/java/fi/hsl/common/pulsar/PulsarApplication.java index b904bb21..ae8035b9 100644 --- a/src/main/java/fi/hsl/common/pulsar/PulsarApplication.java +++ b/src/main/java/fi/hsl/common/pulsar/PulsarApplication.java @@ -43,8 +43,7 @@ public static PulsarApplication newInstance(@NotNull Config config) throws Excep app = new PulsarApplication(); app.context = app.initialize(config); return app; - } - catch (Exception e) { + } catch (Exception e) { log.error("Failed to create new PulsarApplication instance", e); //Let's clear all related resources in case we fail if (app != null) { @@ -63,10 +62,7 @@ public PulsarApplicationContext getContext() { public PulsarApplicationContext initialize(@NotNull Config config) throws Exception { this.config = config; - client = createPulsarClient( - config.getString("pulsar.host"), - config.getInt("pulsar.port") - ); + client = createPulsarClient(config.getString("pulsar.host"), config.getInt("pulsar.port")); if (config.getBoolean("pulsar.producer.enabled")) { producers = createProducers(client, config); @@ -77,10 +73,7 @@ public PulsarApplicationContext initialize(@NotNull Config config) throws Except } if (config.getBoolean("pulsar.admin.enabled")) { - admin = createAdmin( - config.getString("pulsar.admin.host"), - config.getInt("pulsar.admin.port") - ); + admin = createAdmin(config.getString("pulsar.admin.host"), config.getInt("pulsar.admin.port")); } if (config.getBoolean("redis.enabled")) { @@ -88,10 +81,7 @@ public PulsarApplicationContext initialize(@NotNull Config config) throws Except if (config.hasPath("redis.connTimeOutSecs")) { connTimeOutSecs = config.getInt("redis.connTimeOutSecs"); } - jedis = createRedisClient( - config.getString("redis.host"), - config.getInt("redis.port"), - connTimeOutSecs); + jedis = createRedisClient(config.getString("redis.host"), config.getInt("redis.port"), connTimeOutSecs); } if (config.getBoolean("health.enabled")) { @@ -100,7 +90,7 @@ public PulsarApplicationContext initialize(@NotNull Config config) throws Except final BooleanSupplier pulsarHealthCheck = () -> { boolean status = true; - if (producers != null && producers.values().stream().anyMatch(producer -> !producer.isConnected()) ){ + if (producers != null && producers.values().stream().anyMatch(producer -> !producer.isConnected())) { status = false; log.error("HealthCheck: Pulsar producer is not connected"); } @@ -151,7 +141,8 @@ public PulsarApplicationContext initialize(@NotNull Config config) throws Except @NotNull protected Jedis createRedisClient(@NotNull String redisHost, int port, int connTimeOutSecs) { - log.info("Connecting to Redis at " + redisHost + ":" + port + " with connection timeout of (s): "+ connTimeOutSecs); + log.info("Connecting to Redis at " + redisHost + ":" + port + " with connection timeout of (s): " + + connTimeOutSecs); int timeOutMs = connTimeOutSecs * 1000; Jedis jedis = new Jedis(redisHost, port, timeOutMs); jedis.connect(); @@ -164,15 +155,13 @@ protected PulsarClient createPulsarClient(@NotNull String pulsarHost, int pulsar final String pulsarUrl = String.format("pulsar://%s:%d", pulsarHost, pulsarPort); log.info("Connecting to Pulsar at " + pulsarUrl); - return PulsarClient.builder() - .serviceUrl(pulsarUrl) - .build(); + return PulsarClient.builder().serviceUrl(pulsarUrl).build(); } @NotNull protected PulsarApplicationContext createContext(@NotNull Config config, @NotNull PulsarClient client, - @Nullable Consumer consumer, @Nullable Map<@NotNull String, @NotNull Producer> producers, - @Nullable Jedis jedis, @Nullable PulsarAdmin admin, @Nullable HealthServer healthServer) { + @Nullable Consumer consumer, @Nullable Map<@NotNull String, @NotNull Producer> producers, + @Nullable Jedis jedis, @Nullable PulsarAdmin admin, @Nullable HealthServer healthServer) { PulsarApplicationContext context = new PulsarApplicationContext(); context.setConfig(config); context.setClient(client); @@ -185,17 +174,16 @@ protected PulsarApplicationContext createContext(@NotNull Config config, @NotNul } @NotNull - protected Consumer createConsumer(@NotNull PulsarClient client, @NotNull Config config) throws PulsarClientException { + protected Consumer createConsumer(@NotNull PulsarClient client, @NotNull Config config) + throws PulsarClientException { String subscription = config.getString("pulsar.consumer.subscription"); - SubscriptionType subscriptionType = SubscriptionType.valueOf(config.getString("pulsar.consumer.subscriptionType")); + SubscriptionType subscriptionType = SubscriptionType + .valueOf(config.getString("pulsar.consumer.subscriptionType")); boolean readCompacted = subscriptionType != SubscriptionType.Shared; // Shared mode doesn't allow compacted reads int queueSize = config.getInt("pulsar.consumer.queueSize"); - ConsumerBuilder builder = client.newConsumer() - .subscriptionName(subscription) - .readCompacted(readCompacted) - .receiverQueueSize(queueSize) - .subscriptionType(subscriptionType); + ConsumerBuilder builder = client.newConsumer().subscriptionName(subscription) + .readCompacted(readCompacted).receiverQueueSize(queueSize).subscriptionType(subscriptionType); if (config.getBoolean("pulsar.consumer.multipleTopics")) { if (config.hasPath("pulsar.consumer.topics")) { @@ -217,7 +205,8 @@ protected Consumer createConsumer(@NotNull PulsarClient client, @NotNull if (config.hasPath("pulsar.consumer.ackTimeoutSecs")) { long ackTimeOutSecs = config.getLong("pulsar.consumer.ackTimeoutSecs"); - log.info("Setting message redelivery (ackTimeout) time to {} s in pulsar consumer subscription", ackTimeOutSecs); + log.info("Setting message redelivery (ackTimeout) time to {} s in pulsar consumer subscription", + ackTimeOutSecs); builder = builder.ackTimeout(ackTimeOutSecs, TimeUnit.SECONDS); } @@ -232,12 +221,14 @@ protected Consumer createConsumer(@NotNull PulsarClient client, @NotNull } @NotNull - protected Map<@NotNull String, @NotNull Producer> createProducers(@NotNull PulsarClient client, @NotNull Config config) throws PulsarClientException { + protected Map<@NotNull String, @NotNull Producer> createProducers(@NotNull PulsarClient client, + @NotNull Config config) throws PulsarClientException { int queueSize = config.getInt("pulsar.producer.queueSize"); boolean blockIfFull = config.getBoolean("pulsar.producer.blockIfFull"); Map> producers = new HashMap<>(); - if (config.hasPath("pulsar.producer.multipleProducers") && config.getBoolean("pulsar.producer.multipleProducers")) { + if (config.hasPath("pulsar.producer.multipleProducers") + && config.getBoolean("pulsar.producer.multipleProducers")) { //topic key format: topic1=key1,topic2=key2... Map topicKeys = Arrays.stream(config.getString("pulsar.producer.topicKeys").split(",")) .collect(Collectors.toMap((String s) -> s.split("=")[0], (String s) -> s.split("=")[1])); @@ -260,23 +251,17 @@ protected Consumer createConsumer(@NotNull PulsarClient client, @NotNull return producers; } - private Producer createProducer(final String topic, final int queueSize, final boolean blockIfFull) throws PulsarClientException { - return client.newProducer() - .compressionType(CompressionType.LZ4) - .maxPendingMessages(queueSize) - .topic(topic) - .enableBatching(false) - .blockIfQueueFull(blockIfFull) - .create(); + private Producer createProducer(final String topic, final int queueSize, final boolean blockIfFull) + throws PulsarClientException { + return client.newProducer().compressionType(CompressionType.LZ4).maxPendingMessages(queueSize).topic(topic) + .enableBatching(false).blockIfQueueFull(blockIfFull).create(); } @NotNull protected PulsarAdmin createAdmin(@NotNull String adminHost, int adminPort) throws PulsarClientException { final String adminHttpUrl = String.format("http://%s:%d", adminHost, adminPort); log.info("Connecting to Pulsar Admin at " + adminHttpUrl); - return PulsarAdmin.builder() - .serviceHttpUrl(adminHttpUrl) - .build(); + return PulsarAdmin.builder().serviceHttpUrl(adminHttpUrl).build(); } public void launchWithHandler(@NotNull IMessageHandler handler) throws Exception { @@ -291,8 +276,7 @@ public void launchWithHandler(@NotNull IMessageHandler handler) throws Exception } //TODO move Ack and possibly message sending to here } - } - catch (Exception ex) { + } catch (Exception ex) { log.error("Exception in main handler loop", ex); throw ex; } @@ -301,7 +285,7 @@ public void launchWithHandler(@NotNull IMessageHandler handler) throws Exception public void close() { log.info("Closing PulsarApplication resources"); - if (producers != null){ + if (producers != null) { for (Producer producer : producers.values()) { try { producer.close(); diff --git a/src/main/java/fi/hsl/common/pulsar/PulsarApplicationContext.java b/src/main/java/fi/hsl/common/pulsar/PulsarApplicationContext.java index 516bf137..e8ceb5da 100644 --- a/src/main/java/fi/hsl/common/pulsar/PulsarApplicationContext.java +++ b/src/main/java/fi/hsl/common/pulsar/PulsarApplicationContext.java @@ -53,7 +53,8 @@ public Producer getProducer() { @Nullable public Producer getSingleProducer() { if (getProducers().size() != 1) { - throw new IllegalStateException("Cannot get single producer when there are multiple producers (" + String.join(", ", getProducers().keySet()) + ")"); + throw new IllegalStateException("Cannot get single producer when there are multiple producers (" + + String.join(", ", getProducers().keySet()) + ")"); } return getProducers().values().stream().findFirst().get(); } diff --git a/src/main/java/fi/hsl/common/redis/RedisUtils.java b/src/main/java/fi/hsl/common/redis/RedisUtils.java index 2a9571af..8695b997 100644 --- a/src/main/java/fi/hsl/common/redis/RedisUtils.java +++ b/src/main/java/fi/hsl/common/redis/RedisUtils.java @@ -74,12 +74,14 @@ public String setValues(@NotNull final String key, @NotNull final Map<@NotNull S } @NotNull - public String setExpiringValues(@NotNull final String key, @NotNull final Map<@NotNull String, @NotNull String> values) { + public String setExpiringValues(@NotNull final String key, + @NotNull final Map<@NotNull String, @NotNull String> values) { return setExpiringValues(key, values, ttlSeconds); } @NotNull - public String setExpiringValues(@NotNull final String key, @NotNull final Map<@NotNull String, @NotNull String> values, final int ttlInSeconds) { + public String setExpiringValues(@NotNull final String key, + @NotNull final Map<@NotNull String, @NotNull String> values, final int ttlInSeconds) { String response = setValues(key, values); // TODO: what if HMSET succeeds but EXPIRE does not? setExpire(key, ttlInSeconds); @@ -137,7 +139,8 @@ public Optional getValue(@NotNull final String key) { * @return ArrayList of matching keys */ @NotNull - public List getKeys(@NotNull final String prefix, @NotNull final String pattern, @NotNull final Integer count) { + public List getKeys(@NotNull final String prefix, @NotNull final String pattern, + @NotNull final Integer count) { ScanParams scanParams = new ScanParams(); scanParams.match(prefix + pattern); scanParams.count(count); @@ -150,7 +153,7 @@ public List getKeys(@NotNull final String prefix, @NotNull final String List result = scanResult.getResult(); keys.addAll(result); cursor = scanResult.getCursor(); - } while(!"0".equals(cursor)); + } while (!"0".equals(cursor)); return new ArrayList<>(keys); } @@ -162,7 +165,8 @@ public List getKeys(@NotNull final String prefix, @NotNull final String * @return HashMap of keys and their hash values if they exist */ @NotNull - public Map<@NotNull String, Optional>> getValuesByKeys(@NotNull final List<@NotNull String> keys) { + public Map<@NotNull String, Optional>> getValuesByKeys( + @NotNull final List<@NotNull String> keys) { synchronized (jedis) { final Transaction transaction = jedis.multi(); final Map>> responses = new HashMap<>(); diff --git a/src/main/java/fi/hsl/common/transitdata/JoreDateTime.java b/src/main/java/fi/hsl/common/transitdata/JoreDateTime.java index f079f1ef..f2f22fc9 100644 --- a/src/main/java/fi/hsl/common/transitdata/JoreDateTime.java +++ b/src/main/java/fi/hsl/common/transitdata/JoreDateTime.java @@ -21,7 +21,8 @@ public class JoreDateTime { private int joreSeconds; private LocalDateTime dateTime; - public JoreDateTime(@NotNull final String serviceDayStartTimeString, @NotNull final String date24h, @NotNull final String time24h) { + public JoreDateTime(@NotNull final String serviceDayStartTimeString, @NotNull final String date24h, + @NotNull final String time24h) { int serviceDayStartTimeSeconds = LocalTime.parse(serviceDayStartTimeString).toSecondOfDay(); LocalDate date = LocalDate.parse(date24h, DateTimeFormatter.ofPattern("yyyyMMdd")); LocalTime time = LocalTime.parse(time24h); @@ -77,14 +78,13 @@ public static int timeStringToSeconds(@NotNull String timeString) throws ParseEx throw new ParseException("Failed to parse provided time string", 0); } return Integer.parseInt(matcher.group(1)) * HOUR_IN_SECONDS - + Integer.parseInt(matcher.group(2)) * MINUTE_IN_SECONDS - + Integer.parseInt(matcher.group(3)); + + Integer.parseInt(matcher.group(2)) * MINUTE_IN_SECONDS + Integer.parseInt(matcher.group(3)); } @NotNull public static String secondsToTimeString(int seconds) { int h = seconds / HOUR_IN_SECONDS; - int m = (seconds % HOUR_IN_SECONDS) / MINUTE_IN_SECONDS; + int m = (seconds % HOUR_IN_SECONDS) / MINUTE_IN_SECONDS; int s = seconds % MINUTE_IN_SECONDS; return String.format("%02d:%02d:%02d", h, m, s); } diff --git a/src/main/java/fi/hsl/common/transitdata/PubtransFactory.java b/src/main/java/fi/hsl/common/transitdata/PubtransFactory.java index 29f0c268..16285643 100644 --- a/src/main/java/fi/hsl/common/transitdata/PubtransFactory.java +++ b/src/main/java/fi/hsl/common/transitdata/PubtransFactory.java @@ -15,13 +15,15 @@ public class PubtransFactory { public static final int JORE_DIRECTION_ID_OUTBOUND = 1; public static final int JORE_DIRECTION_ID_INBOUND = 2; - private PubtransFactory() {} + private PubtransFactory() { + } /** * Protobuf build()-functions can throw RuntimeException so let's make them visible and flag the possible Exception on function signature also */ @NotNull - public static InternalMessages.TripInfo createTripInfo(@NotNull PubtransTableProtos.DOITripInfo doiInfo) throws Exception { + public static InternalMessages.TripInfo createTripInfo(@NotNull PubtransTableProtos.DOITripInfo doiInfo) + throws Exception { InternalMessages.TripInfo.Builder tripBuilder = InternalMessages.TripInfo.newBuilder(); tripBuilder.setTripId(Long.toString(doiInfo.getDvjId())); tripBuilder.setOperatingDay(doiInfo.getOperatingDay()); @@ -33,8 +35,8 @@ public static InternalMessages.TripInfo createTripInfo(@NotNull PubtransTablePro @NotNull public static InternalMessages.StopEstimate createStopEstimate(@NotNull PubtransTableProtos.Common common, - @NotNull PubtransTableProtos.DOITripInfo doiTripInfo, - @NotNull InternalMessages.StopEstimate.Type arrivalOrDeparture) throws Exception { + @NotNull PubtransTableProtos.DOITripInfo doiTripInfo, + @NotNull InternalMessages.StopEstimate.Type arrivalOrDeparture) throws Exception { InternalMessages.StopEstimate.Builder builder = InternalMessages.StopEstimate.newBuilder(); builder.setSchemaVersion(builder.getSchemaVersion()); @@ -45,9 +47,9 @@ public static InternalMessages.StopEstimate createStopEstimate(@NotNull Pubtrans builder.setTargetedStopId(doiTripInfo.getTargetedStopId()); builder.setStopSequence(common.getJourneyPatternSequenceNumber()); - InternalMessages.StopEstimate.Status scheduledStatus = (common.getState() == PUBTRANS_SKIPPED_STATE) ? - InternalMessages.StopEstimate.Status.SKIPPED : - InternalMessages.StopEstimate.Status.SCHEDULED; + InternalMessages.StopEstimate.Status scheduledStatus = (common.getState() == PUBTRANS_SKIPPED_STATE) + ? InternalMessages.StopEstimate.Status.SKIPPED + : InternalMessages.StopEstimate.Status.SCHEDULED; builder.setStatus(scheduledStatus); diff --git a/src/main/java/fi/hsl/common/transitdata/RouteIdUtils.java b/src/main/java/fi/hsl/common/transitdata/RouteIdUtils.java index 7d970ad1..d753e53c 100644 --- a/src/main/java/fi/hsl/common/transitdata/RouteIdUtils.java +++ b/src/main/java/fi/hsl/common/transitdata/RouteIdUtils.java @@ -18,7 +18,8 @@ public class RouteIdUtils { private static final String FERRY_ROUTE_NAME_REGEX = "^1019E?"; private static final Pattern FERRY_ROUTE_PATTERN = Pattern.compile(FERRY_ROUTE_NAME_REGEX); - private RouteIdUtils() {} + private RouteIdUtils() { + } /** * Checks if route ID is for train route diff --git a/src/main/java/fi/hsl/common/transitdata/TransitdataProperties.java b/src/main/java/fi/hsl/common/transitdata/TransitdataProperties.java index 627bf9fd..af0c13b2 100644 --- a/src/main/java/fi/hsl/common/transitdata/TransitdataProperties.java +++ b/src/main/java/fi/hsl/common/transitdata/TransitdataProperties.java @@ -14,7 +14,8 @@ * Keys and corresponding values that are shared in the Transitdata pipeline. */ public class TransitdataProperties { - private TransitdataProperties() {} + private TransitdataProperties() { + } private static final Pattern matchTimestampSecondsAndMillisecondsPattern = Pattern.compile("\\d{2}\\.\\d{3}Z$"); public static final String REDIS_PREFIX_JPP = "jpp:"; @@ -49,21 +50,17 @@ private TransitdataProperties() {} * Actual protobuf files can be found in package transitdata.proto */ public enum ProtobufSchema { - PubtransRoiArrival("pubtrans-roi-arrival"), - PubtransRoiDeparture("pubtrans-roi-departure"), - GTFS_TripUpdate("gtfs-trip-update"), - GTFS_ServiceAlert("gtfs-service-alert"), - GTFS_VehiclePosition("gtfs-vehicle-position"), - InternalMessagesTripCancellation("internal-messages-trip-cancellation"), - InternalMessagesStopEstimate("internal-messages-stop-estimate"), - MetroAtsEstimate( "metro-ats-estimate"), - MqttRawMessage("mqtt-raw"), - HfpData("hfp-data"), - TransitdataServiceAlert("transitdata-service-alert"), - StopCancellations("stop-cancellations"), - Eke("eke"), - EkeSummary("ekeSummary"), - PassengerCount("passenger-count"); + PubtransRoiArrival("pubtrans-roi-arrival"), PubtransRoiDeparture("pubtrans-roi-departure"), GTFS_TripUpdate( + "gtfs-trip-update"), GTFS_ServiceAlert("gtfs-service-alert"), GTFS_VehiclePosition( + "gtfs-vehicle-position"), InternalMessagesTripCancellation( + "internal-messages-trip-cancellation"), InternalMessagesStopEstimate( + "internal-messages-stop-estimate"), MetroAtsEstimate( + "metro-ats-estimate"), MqttRawMessage("mqtt-raw"), HfpData( + "hfp-data"), TransitdataServiceAlert( + "transitdata-service-alert"), StopCancellations( + "stop-cancellations"), Eke("eke"), EkeSummary( + "ekeSummary"), PassengerCount( + "passenger-count"); public final String key; ProtobufSchema(String key) { @@ -82,7 +79,7 @@ public static ProtobufSchema fromString(@NotNull String str) { } } - throw new IllegalArgumentException("No protobuf schema found for string "+str); + throw new IllegalArgumentException("No protobuf schema found for string " + str); } } @@ -98,12 +95,14 @@ public static long currentTimestamp() { } @NotNull - public static String formatJoreId(@NotNull String route, @NotNull String direction, @NotNull String startDate, @NotNull String startTime) { + public static String formatJoreId(@NotNull String route, @NotNull String direction, @NotNull String startDate, + @NotNull String startTime) { return REDIS_PREFIX_JORE_ID + route + "-" + direction + "-" + startDate + "-" + startTime; } @NotNull - public static String formatJoreId(@NotNull String route, @NotNull String direction, @NotNull JoreDateTime startDateTime) { + public static String formatJoreId(@NotNull String route, @NotNull String direction, + @NotNull JoreDateTime startDateTime) { return formatJoreId(route, direction, startDateTime.getJoreDateString(), startDateTime.getJoreTimeString()); } @@ -113,7 +112,8 @@ public static String formatJoreId(@NotNull String route, @NotNull String directi * @return */ @NotNull - public static String formatMetroId(@NotNull final String stopShortName, @NotNull final String originalStartDatetime) { + public static String formatMetroId(@NotNull final String stopShortName, + @NotNull final String originalStartDatetime) { // Transform dateTime string: remove milliseconds, change seconds // e.g 2019-12-20T15:12:56.123Z --> 2019-12-20T15:12:00Z Matcher m = matchTimestampSecondsAndMillisecondsPattern.matcher(originalStartDatetime); diff --git a/src/main/java/fi/hsl/common/transitdata/TransitdataSchema.java b/src/main/java/fi/hsl/common/transitdata/TransitdataSchema.java index ed176a0e..830d1b94 100644 --- a/src/main/java/fi/hsl/common/transitdata/TransitdataSchema.java +++ b/src/main/java/fi/hsl/common/transitdata/TransitdataSchema.java @@ -29,17 +29,15 @@ public static Optional parseFromPulsarMessage(@NotNull Messag String version = received.getProperty(TransitdataProperties.KEY_SCHEMA_VERSION); Optional maybeVersion = Optional.ofNullable(version).map(Integer::parseInt); return Optional.of(new TransitdataSchema(schema, maybeVersion)); - } - catch (Exception e) { + } catch (Exception e) { log.error("Failed to parse protobuf schema", e); return Optional.empty(); } } - public static boolean hasProtobufSchema(@NotNull Message received, @NotNull TransitdataProperties.ProtobufSchema expected) { - return parseFromPulsarMessage(received) - .map(schema -> schema.schema == expected) - .orElse(false); + public static boolean hasProtobufSchema(@NotNull Message received, + @NotNull TransitdataProperties.ProtobufSchema expected) { + return parseFromPulsarMessage(received).map(schema -> schema.schema == expected).orElse(false); } } diff --git a/src/main/java/fi/hsl/common/transitdata/proto/Eke.java b/src/main/java/fi/hsl/common/transitdata/proto/Eke.java index 83b29934..a6741990 100644 --- a/src/main/java/fi/hsl/common/transitdata/proto/Eke.java +++ b/src/main/java/fi/hsl/common/transitdata/proto/Eke.java @@ -4,853 +4,805 @@ package fi.hsl.common.transitdata.proto; public final class Eke { - private Eke() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EkeSummaryOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.EkeSummary) - com.google.protobuf.MessageOrBuilder { - - /** - * required int64 ekeDate = 1; - * @return Whether the ekeDate field is set. - */ - boolean hasEkeDate(); - /** - * required int64 ekeDate = 1; - * @return The ekeDate. - */ - long getEkeDate(); - - /** - * required int32 trainNumber = 2; - * @return Whether the trainNumber field is set. - */ - boolean hasTrainNumber(); + private Eke() { + } + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface EkeSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.EkeSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * required int64 ekeDate = 1; + * @return Whether the ekeDate field is set. + */ + boolean hasEkeDate(); + /** + * required int64 ekeDate = 1; + * @return The ekeDate. + */ + long getEkeDate(); + + /** + * required int32 trainNumber = 2; + * @return Whether the trainNumber field is set. + */ + boolean hasTrainNumber(); + /** + * required int32 trainNumber = 2; + * @return The trainNumber. + */ + int getTrainNumber(); + + /** + * required string topicPart = 3; + * @return Whether the topicPart field is set. + */ + boolean hasTopicPart(); + /** + * required string topicPart = 3; + * @return The topicPart. + */ + java.lang.String getTopicPart(); + /** + * required string topicPart = 3; + * @return The bytes for topicPart. + */ + com.google.protobuf.ByteString getTopicPartBytes(); + } /** - * required int32 trainNumber = 2; - * @return The trainNumber. + * Protobuf type {@code proto.EkeSummary} */ - int getTrainNumber(); + public static final class EkeSummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.EkeSummary) + EkeSummaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use EkeSummary.newBuilder() to construct. + private EkeSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EkeSummary() { + topicPart_ = ""; + } - /** - * required string topicPart = 3; - * @return Whether the topicPart field is set. - */ - boolean hasTopicPart(); - /** - * required string topicPart = 3; - * @return The topicPart. - */ - java.lang.String getTopicPart(); - /** - * required string topicPart = 3; - * @return The bytes for topicPart. - */ - com.google.protobuf.ByteString - getTopicPartBytes(); - } - /** - * Protobuf type {@code proto.EkeSummary} - */ - public static final class EkeSummary extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.EkeSummary) - EkeSummaryOrBuilder { - private static final long serialVersionUID = 0L; - // Use EkeSummary.newBuilder() to construct. - private EkeSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EkeSummary() { - topicPart_ = ""; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EkeSummary(); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EkeSummary(); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.Eke.internal_static_proto_EkeSummary_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.Eke.internal_static_proto_EkeSummary_descriptor; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.Eke.internal_static_proto_EkeSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.transitdata.proto.Eke.EkeSummary.class, + fi.hsl.common.transitdata.proto.Eke.EkeSummary.Builder.class); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.Eke.internal_static_proto_EkeSummary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.Eke.EkeSummary.class, fi.hsl.common.transitdata.proto.Eke.EkeSummary.Builder.class); - } + private int bitField0_; + public static final int EKEDATE_FIELD_NUMBER = 1; + private long ekeDate_ = 0L; + /** + * required int64 ekeDate = 1; + * @return Whether the ekeDate field is set. + */ + @java.lang.Override + public boolean hasEkeDate() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int64 ekeDate = 1; + * @return The ekeDate. + */ + @java.lang.Override + public long getEkeDate() { + return ekeDate_; + } - private int bitField0_; - public static final int EKEDATE_FIELD_NUMBER = 1; - private long ekeDate_ = 0L; - /** - * required int64 ekeDate = 1; - * @return Whether the ekeDate field is set. - */ - @java.lang.Override - public boolean hasEkeDate() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int64 ekeDate = 1; - * @return The ekeDate. - */ - @java.lang.Override - public long getEkeDate() { - return ekeDate_; - } + public static final int TRAINNUMBER_FIELD_NUMBER = 2; + private int trainNumber_ = 0; + /** + * required int32 trainNumber = 2; + * @return Whether the trainNumber field is set. + */ + @java.lang.Override + public boolean hasTrainNumber() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required int32 trainNumber = 2; + * @return The trainNumber. + */ + @java.lang.Override + public int getTrainNumber() { + return trainNumber_; + } - public static final int TRAINNUMBER_FIELD_NUMBER = 2; - private int trainNumber_ = 0; - /** - * required int32 trainNumber = 2; - * @return Whether the trainNumber field is set. - */ - @java.lang.Override - public boolean hasTrainNumber() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required int32 trainNumber = 2; - * @return The trainNumber. - */ - @java.lang.Override - public int getTrainNumber() { - return trainNumber_; - } + public static final int TOPICPART_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object topicPart_ = ""; + /** + * required string topicPart = 3; + * @return Whether the topicPart field is set. + */ + @java.lang.Override + public boolean hasTopicPart() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required string topicPart = 3; + * @return The topicPart. + */ + @java.lang.Override + public java.lang.String getTopicPart() { + java.lang.Object ref = topicPart_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + topicPart_ = s; + } + return s; + } + } + /** + * required string topicPart = 3; + * @return The bytes for topicPart. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicPartBytes() { + java.lang.Object ref = topicPart_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topicPart_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int TOPICPART_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object topicPart_ = ""; - /** - * required string topicPart = 3; - * @return Whether the topicPart field is set. - */ - @java.lang.Override - public boolean hasTopicPart() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required string topicPart = 3; - * @return The topicPart. - */ - @java.lang.Override - public java.lang.String getTopicPart() { - java.lang.Object ref = topicPart_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - topicPart_ = s; - } - return s; - } - } - /** - * required string topicPart = 3; - * @return The bytes for topicPart. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTopicPartBytes() { - java.lang.Object ref = topicPart_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicPart_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + 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 (!hasEkeDate()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTrainNumber()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTopicPart()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - 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 (!hasEkeDate()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTrainNumber()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTopicPart()) { - 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.writeInt64(1, ekeDate_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(2, trainNumber_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topicPart_); + } + getUnknownFields().writeTo(output); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt64(1, ekeDate_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt32(2, trainNumber_); - } - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topicPart_); - } - 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.computeInt64Size(1, ekeDate_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, trainNumber_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, topicPart_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @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 - .computeInt64Size(1, ekeDate_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, trainNumber_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, topicPart_); - } - 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 fi.hsl.common.transitdata.proto.Eke.EkeSummary)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.Eke.EkeSummary other = (fi.hsl.common.transitdata.proto.Eke.EkeSummary) obj; + + if (hasEkeDate() != other.hasEkeDate()) + return false; + if (hasEkeDate()) { + if (getEkeDate() != other.getEkeDate()) + return false; + } + if (hasTrainNumber() != other.hasTrainNumber()) + return false; + if (hasTrainNumber()) { + if (getTrainNumber() != other.getTrainNumber()) + return false; + } + if (hasTopicPart() != other.hasTopicPart()) + return false; + if (hasTopicPart()) { + if (!getTopicPart().equals(other.getTopicPart())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof fi.hsl.common.transitdata.proto.Eke.EkeSummary)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.Eke.EkeSummary other = (fi.hsl.common.transitdata.proto.Eke.EkeSummary) obj; - - if (hasEkeDate() != other.hasEkeDate()) return false; - if (hasEkeDate()) { - if (getEkeDate() - != other.getEkeDate()) return false; - } - if (hasTrainNumber() != other.hasTrainNumber()) return false; - if (hasTrainNumber()) { - if (getTrainNumber() - != other.getTrainNumber()) return false; - } - if (hasTopicPart() != other.hasTopicPart()) return false; - if (hasTopicPart()) { - if (!getTopicPart() - .equals(other.getTopicPart())) 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 (hasEkeDate()) { + hash = (37 * hash) + EKEDATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEkeDate()); + } + if (hasTrainNumber()) { + hash = (37 * hash) + TRAINNUMBER_FIELD_NUMBER; + hash = (53 * hash) + getTrainNumber(); + } + if (hasTopicPart()) { + hash = (37 * hash) + TOPICPART_FIELD_NUMBER; + hash = (53 * hash) + getTopicPart().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEkeDate()) { - hash = (37 * hash) + EKEDATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEkeDate()); - } - if (hasTrainNumber()) { - hash = (37 * hash) + TRAINNUMBER_FIELD_NUMBER; - hash = (53 * hash) + getTrainNumber(); - } - if (hasTopicPart()) { - hash = (37 * hash) + TOPICPART_FIELD_NUMBER; - hash = (53 * hash) + getTopicPart().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.Eke.EkeSummary parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.transitdata.proto.Eke.EkeSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.Eke.EkeSummary prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.EkeSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.EkeSummary) + fi.hsl.common.transitdata.proto.Eke.EkeSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.Eke.internal_static_proto_EkeSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.Eke.internal_static_proto_EkeSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.transitdata.proto.Eke.EkeSummary.class, + fi.hsl.common.transitdata.proto.Eke.EkeSummary.Builder.class); + } + + // Construct using fi.hsl.common.transitdata.proto.Eke.EkeSummary.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ekeDate_ = 0L; + trainNumber_ = 0; + topicPart_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.Eke.internal_static_proto_EkeSummary_descriptor; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.Eke.EkeSummary getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.Eke.EkeSummary.getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.Eke.EkeSummary build() { + fi.hsl.common.transitdata.proto.Eke.EkeSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.Eke.EkeSummary buildPartial() { + fi.hsl.common.transitdata.proto.Eke.EkeSummary result = new fi.hsl.common.transitdata.proto.Eke.EkeSummary( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(fi.hsl.common.transitdata.proto.Eke.EkeSummary result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ekeDate_ = ekeDate_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.trainNumber_ = trainNumber_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.topicPart_ = topicPart_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.Eke.EkeSummary) { + return mergeFrom((fi.hsl.common.transitdata.proto.Eke.EkeSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.EkeSummary} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.EkeSummary) - fi.hsl.common.transitdata.proto.Eke.EkeSummaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.Eke.internal_static_proto_EkeSummary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.Eke.internal_static_proto_EkeSummary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.Eke.EkeSummary.class, fi.hsl.common.transitdata.proto.Eke.EkeSummary.Builder.class); - } - - // Construct using fi.hsl.common.transitdata.proto.Eke.EkeSummary.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - ekeDate_ = 0L; - trainNumber_ = 0; - topicPart_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.Eke.internal_static_proto_EkeSummary_descriptor; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.Eke.EkeSummary getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.Eke.EkeSummary.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.Eke.EkeSummary build() { - fi.hsl.common.transitdata.proto.Eke.EkeSummary result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.Eke.EkeSummary buildPartial() { - fi.hsl.common.transitdata.proto.Eke.EkeSummary result = new fi.hsl.common.transitdata.proto.Eke.EkeSummary(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.Eke.EkeSummary result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.ekeDate_ = ekeDate_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.trainNumber_ = trainNumber_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.topicPart_ = topicPart_; - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.Eke.EkeSummary) { - return mergeFrom((fi.hsl.common.transitdata.proto.Eke.EkeSummary)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.Eke.EkeSummary other) { - if (other == fi.hsl.common.transitdata.proto.Eke.EkeSummary.getDefaultInstance()) return this; - if (other.hasEkeDate()) { - setEkeDate(other.getEkeDate()); - } - if (other.hasTrainNumber()) { - setTrainNumber(other.getTrainNumber()); - } - if (other.hasTopicPart()) { - topicPart_ = other.topicPart_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasEkeDate()) { - return false; - } - if (!hasTrainNumber()) { - return false; - } - if (!hasTopicPart()) { - 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: { - ekeDate_ = input.readInt64(); + public Builder mergeFrom(fi.hsl.common.transitdata.proto.Eke.EkeSummary other) { + if (other == fi.hsl.common.transitdata.proto.Eke.EkeSummary.getDefaultInstance()) + return this; + if (other.hasEkeDate()) { + setEkeDate(other.getEkeDate()); + } + if (other.hasTrainNumber()) { + setTrainNumber(other.getTrainNumber()); + } + if (other.hasTopicPart()) { + topicPart_ = other.topicPart_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasEkeDate()) { + return false; + } + if (!hasTrainNumber()) { + return false; + } + if (!hasTopicPart()) { + 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 : { + ekeDate_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16 : { + trainNumber_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26 : { + topicPart_ = 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 long ekeDate_; + /** + * required int64 ekeDate = 1; + * @return Whether the ekeDate field is set. + */ + @java.lang.Override + public boolean hasEkeDate() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int64 ekeDate = 1; + * @return The ekeDate. + */ + @java.lang.Override + public long getEkeDate() { + return ekeDate_; + } + /** + * required int64 ekeDate = 1; + * @param value The ekeDate to set. + * @return This builder for chaining. + */ + public Builder setEkeDate(long value) { + + ekeDate_ = value; bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - trainNumber_ = input.readInt32(); + onChanged(); + return this; + } + /** + * required int64 ekeDate = 1; + * @return This builder for chaining. + */ + public Builder clearEkeDate() { + bitField0_ = (bitField0_ & ~0x00000001); + ekeDate_ = 0L; + onChanged(); + return this; + } + + private int trainNumber_; + /** + * required int32 trainNumber = 2; + * @return Whether the trainNumber field is set. + */ + @java.lang.Override + public boolean hasTrainNumber() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required int32 trainNumber = 2; + * @return The trainNumber. + */ + @java.lang.Override + public int getTrainNumber() { + return trainNumber_; + } + /** + * required int32 trainNumber = 2; + * @param value The trainNumber to set. + * @return This builder for chaining. + */ + public Builder setTrainNumber(int value) { + + trainNumber_ = value; bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - topicPart_ = input.readBytes(); + onChanged(); + return this; + } + /** + * required int32 trainNumber = 2; + * @return This builder for chaining. + */ + public Builder clearTrainNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + trainNumber_ = 0; + onChanged(); + return this; + } + + private java.lang.Object topicPart_ = ""; + /** + * required string topicPart = 3; + * @return Whether the topicPart field is set. + */ + public boolean hasTopicPart() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required string topicPart = 3; + * @return The topicPart. + */ + public java.lang.String getTopicPart() { + java.lang.Object ref = topicPart_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + topicPart_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string topicPart = 3; + * @return The bytes for topicPart. + */ + public com.google.protobuf.ByteString getTopicPartBytes() { + java.lang.Object ref = topicPart_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + topicPart_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string topicPart = 3; + * @param value The topicPart to set. + * @return This builder for chaining. + */ + public Builder setTopicPart(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topicPart_ = value; bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag + onChanged(); + return this; + } + /** + * required string topicPart = 3; + * @return This builder for chaining. + */ + public Builder clearTopicPart() { + topicPart_ = getDefaultInstance().getTopicPart(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * required string topicPart = 3; + * @param value The bytes for topicPart to set. + * @return This builder for chaining. + */ + public Builder setTopicPartBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - 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 ekeDate_ ; - /** - * required int64 ekeDate = 1; - * @return Whether the ekeDate field is set. - */ - @java.lang.Override - public boolean hasEkeDate() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int64 ekeDate = 1; - * @return The ekeDate. - */ - @java.lang.Override - public long getEkeDate() { - return ekeDate_; - } - /** - * required int64 ekeDate = 1; - * @param value The ekeDate to set. - * @return This builder for chaining. - */ - public Builder setEkeDate(long value) { - - ekeDate_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int64 ekeDate = 1; - * @return This builder for chaining. - */ - public Builder clearEkeDate() { - bitField0_ = (bitField0_ & ~0x00000001); - ekeDate_ = 0L; - onChanged(); - return this; - } - - private int trainNumber_ ; - /** - * required int32 trainNumber = 2; - * @return Whether the trainNumber field is set. - */ - @java.lang.Override - public boolean hasTrainNumber() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required int32 trainNumber = 2; - * @return The trainNumber. - */ - @java.lang.Override - public int getTrainNumber() { - return trainNumber_; - } - /** - * required int32 trainNumber = 2; - * @param value The trainNumber to set. - * @return This builder for chaining. - */ - public Builder setTrainNumber(int value) { - - trainNumber_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * required int32 trainNumber = 2; - * @return This builder for chaining. - */ - public Builder clearTrainNumber() { - bitField0_ = (bitField0_ & ~0x00000002); - trainNumber_ = 0; - onChanged(); - return this; - } - - private java.lang.Object topicPart_ = ""; - /** - * required string topicPart = 3; - * @return Whether the topicPart field is set. - */ - public boolean hasTopicPart() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required string topicPart = 3; - * @return The topicPart. - */ - public java.lang.String getTopicPart() { - java.lang.Object ref = topicPart_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - topicPart_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string topicPart = 3; - * @return The bytes for topicPart. - */ - public com.google.protobuf.ByteString - getTopicPartBytes() { - java.lang.Object ref = topicPart_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topicPart_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string topicPart = 3; - * @param value The topicPart to set. - * @return This builder for chaining. - */ - public Builder setTopicPart( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - topicPart_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required string topicPart = 3; - * @return This builder for chaining. - */ - public Builder clearTopicPart() { - topicPart_ = getDefaultInstance().getTopicPart(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * required string topicPart = 3; - * @param value The bytes for topicPart to set. - * @return This builder for chaining. - */ - public Builder setTopicPartBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - topicPart_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.EkeSummary) - } + topicPart_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.EkeSummary) + } - // @@protoc_insertion_point(class_scope:proto.EkeSummary) - private static final fi.hsl.common.transitdata.proto.Eke.EkeSummary DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.Eke.EkeSummary(); - } + // @@protoc_insertion_point(class_scope:proto.EkeSummary) + private static final fi.hsl.common.transitdata.proto.Eke.EkeSummary DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.Eke.EkeSummary(); + } - public static fi.hsl.common.transitdata.proto.Eke.EkeSummary getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static fi.hsl.common.transitdata.proto.Eke.EkeSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EkeSummary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EkeSummary parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.Eke.EkeSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public fi.hsl.common.transitdata.proto.Eke.EkeSummary getDefaultInstanceForType() { - return DEFAULT_INSTANCE; } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_EkeSummary_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_EkeSummary_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\teke.proto\022\005proto\"E\n\nEkeSummary\022\017\n\007ekeD" + - "ate\030\001 \002(\003\022\023\n\013trainNumber\030\002 \002(\005\022\021\n\ttopicP" + - "art\030\003 \002(\tB&\n\037fi.hsl.common.transitdata.p" + - "rotoB\003Eke" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_proto_EkeSummary_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_proto_EkeSummary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_EkeSummary_descriptor, - new java.lang.String[] { "EkeDate", "TrainNumber", "TopicPart", }); - } - - // @@protoc_insertion_point(outer_class_scope) + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_EkeSummary_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_EkeSummary_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = {"\n\teke.proto\022\005proto\"E\n\nEkeSummary\022\017\n\007ekeD" + + "ate\030\001 \002(\003\022\023\n\013trainNumber\030\002 \002(\005\022\021\n\ttopicP" + + "art\030\003 \002(\tB&\n\037fi.hsl.common.transitdata.p" + "rotoB\003Eke"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[]{}); + internal_static_proto_EkeSummary_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_proto_EkeSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_EkeSummary_descriptor, + new java.lang.String[]{"EkeDate", "TrainNumber", "TopicPart",}); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/fi/hsl/common/transitdata/proto/InternalMessages.java b/src/main/java/fi/hsl/common/transitdata/proto/InternalMessages.java index 9b480551..dec5e67e 100644 --- a/src/main/java/fi/hsl/common/transitdata/proto/InternalMessages.java +++ b/src/main/java/fi/hsl/common/transitdata/proto/InternalMessages.java @@ -4,18811 +4,18405 @@ package fi.hsl.common.transitdata.proto; public final class InternalMessages { - private InternalMessages() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code proto.Category} - */ - public enum Category - implements com.google.protobuf.ProtocolMessageEnum { - /** - * VEHICLE_BREAKDOWN = 0; - */ - VEHICLE_BREAKDOWN(0), - /** - * ACCIDENT = 1; - */ - ACCIDENT(1), - /** - * NO_DRIVER = 2; - */ - NO_DRIVER(2), - /** - * ASSAULT = 3; - */ - ASSAULT(3), - /** - * WEATHER = 4; - */ - WEATHER(4), - /** - * VEHICLE_OFF_THE_ROAD = 5; - */ - VEHICLE_OFF_THE_ROAD(5), - /** - * SEIZURE = 6; - */ - SEIZURE(6), - /** - * ITS_SYSTEM_ERROR = 7; - */ - ITS_SYSTEM_ERROR(7), - /** - * OTHER_DRIVER_ERROR = 8; - */ - OTHER_DRIVER_ERROR(8), - /** - * TOO_MANY_PASSENGERS = 9; - */ - TOO_MANY_PASSENGERS(9), - /** - * STRIKE = 10; - */ - STRIKE(10), + private InternalMessages() { + } + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } /** - * OTHER = 11; + * Protobuf enum {@code proto.Category} */ - OTHER(11), + public enum Category implements com.google.protobuf.ProtocolMessageEnum { + /** + * VEHICLE_BREAKDOWN = 0; + */ + VEHICLE_BREAKDOWN(0), + /** + * ACCIDENT = 1; + */ + ACCIDENT(1), + /** + * NO_DRIVER = 2; + */ + NO_DRIVER(2), + /** + * ASSAULT = 3; + */ + ASSAULT(3), + /** + * WEATHER = 4; + */ + WEATHER(4), + /** + * VEHICLE_OFF_THE_ROAD = 5; + */ + VEHICLE_OFF_THE_ROAD(5), + /** + * SEIZURE = 6; + */ + SEIZURE(6), + /** + * ITS_SYSTEM_ERROR = 7; + */ + ITS_SYSTEM_ERROR(7), + /** + * OTHER_DRIVER_ERROR = 8; + */ + OTHER_DRIVER_ERROR(8), + /** + * TOO_MANY_PASSENGERS = 9; + */ + TOO_MANY_PASSENGERS(9), + /** + * STRIKE = 10; + */ + STRIKE(10), + /** + * OTHER = 11; + */ + OTHER(11), + /** + * EARLIER_DISRUPTION = 12; + */ + EARLIER_DISRUPTION(12), + /** + * NO_TRAFFIC_DISRUPTION = 13; + */ + NO_TRAFFIC_DISRUPTION(13), + /** + * TRACK_BLOCKED = 14; + */ + TRACK_BLOCKED(14), + /** + * STAFF_DEFICIT = 15; + */ + STAFF_DEFICIT(15), + /** + * DISTURBANCE = 16; + */ + DISTURBANCE(16), + /** + * VEHICLE_DEFICIT = 17; + */ + VEHICLE_DEFICIT(17), + /** + * ROAD_CLOSED = 18; + */ + ROAD_CLOSED(18), + /** + * ROAD_TRENCH = 19; + */ + ROAD_TRENCH(19), + /** + * TRACK_MAINTENANCE = 20; + */ + TRACK_MAINTENANCE(20), + /** + * TRAFFIC_ACCIDENT = 21; + */ + TRAFFIC_ACCIDENT(21), + /** + * TRAFFIC_JAM = 22; + */ + TRAFFIC_JAM(22), + /** + * MEDICAL_INCIDENT = 23; + */ + MEDICAL_INCIDENT(23), + /** + * WEATHER_CONDITIONS = 24; + */ + WEATHER_CONDITIONS(24), + /** + * TECHNICAL_FAILURE = 25; + */ + TECHNICAL_FAILURE(25), + /** + * TEST = 26; + */ + TEST(26), + /** + * ROAD_MAINTENANCE = 27; + */ + ROAD_MAINTENANCE(27), + /** + * SWITCH_FAILURE = 28; + */ + SWITCH_FAILURE(28), + /** + * STATE_VISIT = 29; + */ + STATE_VISIT(29), + /** + * POWER_FAILURE = 30; + */ + POWER_FAILURE(30), + /** + * MISPARKED_VEHICLE = 31; + */ + MISPARKED_VEHICLE(31), + /** + * PUBLIC_EVENT = 32; + */ + PUBLIC_EVENT(32), + /** + * CHARGING_SERVICE = 33; + */ + CHARGING_SERVICE(33),; + + /** + * VEHICLE_BREAKDOWN = 0; + */ + public static final int VEHICLE_BREAKDOWN_VALUE = 0; + /** + * ACCIDENT = 1; + */ + public static final int ACCIDENT_VALUE = 1; + /** + * NO_DRIVER = 2; + */ + public static final int NO_DRIVER_VALUE = 2; + /** + * ASSAULT = 3; + */ + public static final int ASSAULT_VALUE = 3; + /** + * WEATHER = 4; + */ + public static final int WEATHER_VALUE = 4; + /** + * VEHICLE_OFF_THE_ROAD = 5; + */ + public static final int VEHICLE_OFF_THE_ROAD_VALUE = 5; + /** + * SEIZURE = 6; + */ + public static final int SEIZURE_VALUE = 6; + /** + * ITS_SYSTEM_ERROR = 7; + */ + public static final int ITS_SYSTEM_ERROR_VALUE = 7; + /** + * OTHER_DRIVER_ERROR = 8; + */ + public static final int OTHER_DRIVER_ERROR_VALUE = 8; + /** + * TOO_MANY_PASSENGERS = 9; + */ + public static final int TOO_MANY_PASSENGERS_VALUE = 9; + /** + * STRIKE = 10; + */ + public static final int STRIKE_VALUE = 10; + /** + * OTHER = 11; + */ + public static final int OTHER_VALUE = 11; + /** + * EARLIER_DISRUPTION = 12; + */ + public static final int EARLIER_DISRUPTION_VALUE = 12; + /** + * NO_TRAFFIC_DISRUPTION = 13; + */ + public static final int NO_TRAFFIC_DISRUPTION_VALUE = 13; + /** + * TRACK_BLOCKED = 14; + */ + public static final int TRACK_BLOCKED_VALUE = 14; + /** + * STAFF_DEFICIT = 15; + */ + public static final int STAFF_DEFICIT_VALUE = 15; + /** + * DISTURBANCE = 16; + */ + public static final int DISTURBANCE_VALUE = 16; + /** + * VEHICLE_DEFICIT = 17; + */ + public static final int VEHICLE_DEFICIT_VALUE = 17; + /** + * ROAD_CLOSED = 18; + */ + public static final int ROAD_CLOSED_VALUE = 18; + /** + * ROAD_TRENCH = 19; + */ + public static final int ROAD_TRENCH_VALUE = 19; + /** + * TRACK_MAINTENANCE = 20; + */ + public static final int TRACK_MAINTENANCE_VALUE = 20; + /** + * TRAFFIC_ACCIDENT = 21; + */ + public static final int TRAFFIC_ACCIDENT_VALUE = 21; + /** + * TRAFFIC_JAM = 22; + */ + public static final int TRAFFIC_JAM_VALUE = 22; + /** + * MEDICAL_INCIDENT = 23; + */ + public static final int MEDICAL_INCIDENT_VALUE = 23; + /** + * WEATHER_CONDITIONS = 24; + */ + public static final int WEATHER_CONDITIONS_VALUE = 24; + /** + * TECHNICAL_FAILURE = 25; + */ + public static final int TECHNICAL_FAILURE_VALUE = 25; + /** + * TEST = 26; + */ + public static final int TEST_VALUE = 26; + /** + * ROAD_MAINTENANCE = 27; + */ + public static final int ROAD_MAINTENANCE_VALUE = 27; + /** + * SWITCH_FAILURE = 28; + */ + public static final int SWITCH_FAILURE_VALUE = 28; + /** + * STATE_VISIT = 29; + */ + public static final int STATE_VISIT_VALUE = 29; + /** + * POWER_FAILURE = 30; + */ + public static final int POWER_FAILURE_VALUE = 30; + /** + * MISPARKED_VEHICLE = 31; + */ + public static final int MISPARKED_VEHICLE_VALUE = 31; + /** + * PUBLIC_EVENT = 32; + */ + public static final int PUBLIC_EVENT_VALUE = 32; + /** + * CHARGING_SERVICE = 33; + */ + public static final int CHARGING_SERVICE_VALUE = 33; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Category valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Category forNumber(int value) { + switch (value) { + case 0 : + return VEHICLE_BREAKDOWN; + case 1 : + return ACCIDENT; + case 2 : + return NO_DRIVER; + case 3 : + return ASSAULT; + case 4 : + return WEATHER; + case 5 : + return VEHICLE_OFF_THE_ROAD; + case 6 : + return SEIZURE; + case 7 : + return ITS_SYSTEM_ERROR; + case 8 : + return OTHER_DRIVER_ERROR; + case 9 : + return TOO_MANY_PASSENGERS; + case 10 : + return STRIKE; + case 11 : + return OTHER; + case 12 : + return EARLIER_DISRUPTION; + case 13 : + return NO_TRAFFIC_DISRUPTION; + case 14 : + return TRACK_BLOCKED; + case 15 : + return STAFF_DEFICIT; + case 16 : + return DISTURBANCE; + case 17 : + return VEHICLE_DEFICIT; + case 18 : + return ROAD_CLOSED; + case 19 : + return ROAD_TRENCH; + case 20 : + return TRACK_MAINTENANCE; + case 21 : + return TRAFFIC_ACCIDENT; + case 22 : + return TRAFFIC_JAM; + case 23 : + return MEDICAL_INCIDENT; + case 24 : + return WEATHER_CONDITIONS; + case 25 : + return TECHNICAL_FAILURE; + case 26 : + return TEST; + case 27 : + return ROAD_MAINTENANCE; + case 28 : + return SWITCH_FAILURE; + case 29 : + return STATE_VISIT; + case 30 : + return POWER_FAILURE; + case 31 : + return MISPARKED_VEHICLE; + case 32 : + return PUBLIC_EVENT; + case 33 : + return CHARGING_SERVICE; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public Category findValueByNumber(int number) { + return Category.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.getDescriptor().getEnumTypes().get(0); + } + + private static final Category[] VALUES = values(); + + public static Category valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Category(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.Category) + } + + public interface TripInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.TripInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Unique key for the trip
+         * For example: Dated Vehicle Journey ID or Journey Section ID
+         * 
+ * + * required string trip_id = 1; + * @return Whether the tripId field is set. + */ + boolean hasTripId(); + /** + *
+         * Unique key for the trip
+         * For example: Dated Vehicle Journey ID or Journey Section ID
+         * 
+ * + * required string trip_id = 1; + * @return The tripId. + */ + java.lang.String getTripId(); + /** + *
+         * Unique key for the trip
+         * For example: Dated Vehicle Journey ID or Journey Section ID
+         * 
+ * + * required string trip_id = 1; + * @return The bytes for tripId. + */ + com.google.protobuf.ByteString getTripIdBytes(); + + /** + *
+         * All fields in JORE-format
+         * 
+ * + * required string operating_day = 2; + * @return Whether the operatingDay field is set. + */ + boolean hasOperatingDay(); + /** + *
+         * All fields in JORE-format
+         * 
+ * + * required string operating_day = 2; + * @return The operatingDay. + */ + java.lang.String getOperatingDay(); + /** + *
+         * All fields in JORE-format
+         * 
+ * + * required string operating_day = 2; + * @return The bytes for operatingDay. + */ + com.google.protobuf.ByteString getOperatingDayBytes(); + + /** + * required string route_id = 3; + * @return Whether the routeId field is set. + */ + boolean hasRouteId(); + /** + * required string route_id = 3; + * @return The routeId. + */ + java.lang.String getRouteId(); + /** + * required string route_id = 3; + * @return The bytes for routeId. + */ + com.google.protobuf.ByteString getRouteIdBytes(); + + /** + * required uint32 direction_id = 4; + * @return Whether the directionId field is set. + */ + boolean hasDirectionId(); + /** + * required uint32 direction_id = 4; + * @return The directionId. + */ + int getDirectionId(); + + /** + * required string start_time = 5; + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * required string start_time = 5; + * @return The startTime. + */ + java.lang.String getStartTime(); + /** + * required string start_time = 5; + * @return The bytes for startTime. + */ + com.google.protobuf.ByteString getStartTimeBytes(); + + /** + *
+         * Whether trip is included in static schedule or not
+         * 
+ * + * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; + * @return Whether the scheduleType field is set. + */ + boolean hasScheduleType(); + /** + *
+         * Whether trip is included in static schedule or not
+         * 
+ * + * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; + * @return The scheduleType. + */ + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType getScheduleType(); + } /** - * EARLIER_DISRUPTION = 12; + * Protobuf type {@code proto.TripInfo} */ - EARLIER_DISRUPTION(12), - /** - * NO_TRAFFIC_DISRUPTION = 13; - */ - NO_TRAFFIC_DISRUPTION(13), - /** - * TRACK_BLOCKED = 14; - */ - TRACK_BLOCKED(14), - /** - * STAFF_DEFICIT = 15; - */ - STAFF_DEFICIT(15), - /** - * DISTURBANCE = 16; - */ - DISTURBANCE(16), - /** - * VEHICLE_DEFICIT = 17; - */ - VEHICLE_DEFICIT(17), - /** - * ROAD_CLOSED = 18; - */ - ROAD_CLOSED(18), - /** - * ROAD_TRENCH = 19; - */ - ROAD_TRENCH(19), - /** - * TRACK_MAINTENANCE = 20; - */ - TRACK_MAINTENANCE(20), - /** - * TRAFFIC_ACCIDENT = 21; - */ - TRAFFIC_ACCIDENT(21), - /** - * TRAFFIC_JAM = 22; - */ - TRAFFIC_JAM(22), - /** - * MEDICAL_INCIDENT = 23; - */ - MEDICAL_INCIDENT(23), - /** - * WEATHER_CONDITIONS = 24; - */ - WEATHER_CONDITIONS(24), - /** - * TECHNICAL_FAILURE = 25; - */ - TECHNICAL_FAILURE(25), - /** - * TEST = 26; - */ - TEST(26), - /** - * ROAD_MAINTENANCE = 27; - */ - ROAD_MAINTENANCE(27), - /** - * SWITCH_FAILURE = 28; - */ - SWITCH_FAILURE(28), - /** - * STATE_VISIT = 29; - */ - STATE_VISIT(29), - /** - * POWER_FAILURE = 30; - */ - POWER_FAILURE(30), + public static final class TripInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.TripInfo) + TripInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use TripInfo.newBuilder() to construct. + private TripInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TripInfo() { + tripId_ = ""; + operatingDay_ = ""; + routeId_ = ""; + startTime_ = ""; + scheduleType_ = 1; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TripInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.class, + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder.class); + } + + /** + * Protobuf enum {@code proto.TripInfo.ScheduleType} + */ + public enum ScheduleType implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+             *Trip is present in the static schedule
+             * 
+ * + * SCHEDULED = 1; + */ + SCHEDULED(1), + /** + *
+             *Trip is not present in the static schedule, but follows some schedule (e.g. replacement service for broken vehicle)
+             * 
+ * + * ADDED = 2; + */ + ADDED(2), + /** + *
+             *Trip does not have any schedule (e.g. shuttle bus that runs when full)
+             * 
+ * + * UNSCHEDULED = 3; + */ + UNSCHEDULED(3),; + + /** + *
+             *Trip is present in the static schedule
+             * 
+ * + * SCHEDULED = 1; + */ + public static final int SCHEDULED_VALUE = 1; + /** + *
+             *Trip is not present in the static schedule, but follows some schedule (e.g. replacement service for broken vehicle)
+             * 
+ * + * ADDED = 2; + */ + public static final int ADDED_VALUE = 2; + /** + *
+             *Trip does not have any schedule (e.g. shuttle bus that runs when full)
+             * 
+ * + * UNSCHEDULED = 3; + */ + public static final int UNSCHEDULED_VALUE = 3; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ScheduleType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ScheduleType forNumber(int value) { + switch (value) { + case 1 : + return SCHEDULED; + case 2 : + return ADDED; + case 3 : + return UNSCHEDULED; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public ScheduleType findValueByNumber(int number) { + return ScheduleType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final ScheduleType[] VALUES = values(); + + public static ScheduleType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ScheduleType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.TripInfo.ScheduleType) + } + + private int bitField0_; + public static final int TRIP_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object tripId_ = ""; + /** + *
+         * Unique key for the trip
+         * For example: Dated Vehicle Journey ID or Journey Section ID
+         * 
+ * + * required string trip_id = 1; + * @return Whether the tripId field is set. + */ + @java.lang.Override + public boolean hasTripId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Unique key for the trip
+         * For example: Dated Vehicle Journey ID or Journey Section ID
+         * 
+ * + * required string trip_id = 1; + * @return The tripId. + */ + @java.lang.Override + public java.lang.String getTripId() { + java.lang.Object ref = tripId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + tripId_ = s; + } + return s; + } + } + /** + *
+         * Unique key for the trip
+         * For example: Dated Vehicle Journey ID or Journey Section ID
+         * 
+ * + * required string trip_id = 1; + * @return The bytes for tripId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTripIdBytes() { + java.lang.Object ref = tripId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tripId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATING_DAY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object operatingDay_ = ""; + /** + *
+         * All fields in JORE-format
+         * 
+ * + * required string operating_day = 2; + * @return Whether the operatingDay field is set. + */ + @java.lang.Override + public boolean hasOperatingDay() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * All fields in JORE-format
+         * 
+ * + * required string operating_day = 2; + * @return The operatingDay. + */ + @java.lang.Override + public java.lang.String getOperatingDay() { + java.lang.Object ref = operatingDay_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + operatingDay_ = s; + } + return s; + } + } + /** + *
+         * All fields in JORE-format
+         * 
+ * + * required string operating_day = 2; + * @return The bytes for operatingDay. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperatingDayBytes() { + java.lang.Object ref = operatingDay_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operatingDay_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROUTE_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object routeId_ = ""; + /** + * required string route_id = 3; + * @return Whether the routeId field is set. + */ + @java.lang.Override + public boolean hasRouteId() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required string route_id = 3; + * @return The routeId. + */ + @java.lang.Override + public java.lang.String getRouteId() { + java.lang.Object ref = routeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + routeId_ = s; + } + return s; + } + } + /** + * required string route_id = 3; + * @return The bytes for routeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRouteIdBytes() { + java.lang.Object ref = routeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIRECTION_ID_FIELD_NUMBER = 4; + private int directionId_ = 0; + /** + * required uint32 direction_id = 4; + * @return Whether the directionId field is set. + */ + @java.lang.Override + public boolean hasDirectionId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * required uint32 direction_id = 4; + * @return The directionId. + */ + @java.lang.Override + public int getDirectionId() { + return directionId_; + } + + public static final int START_TIME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object startTime_ = ""; + /** + * required string start_time = 5; + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * required string start_time = 5; + * @return The startTime. + */ + @java.lang.Override + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startTime_ = s; + } + return s; + } + } + /** + * required string start_time = 5; + * @return The bytes for startTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEDULE_TYPE_FIELD_NUMBER = 6; + private int scheduleType_ = 1; + /** + *
+         * Whether trip is included in static schedule or not
+         * 
+ * + * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; + * @return Whether the scheduleType field is set. + */ + @java.lang.Override + public boolean hasScheduleType() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+         * Whether trip is included in static schedule or not
+         * 
+ * + * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; + * @return The scheduleType. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType getScheduleType() { + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType result = fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType + .forNumber(scheduleType_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType.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 (!hasTripId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasOperatingDay()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRouteId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasDirectionId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStartTime()) { + 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, tripId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operatingDay_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, routeId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeUInt32(4, directionId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, startTime_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(6, scheduleType_); + } + 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, operatingDay_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, routeId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, directionId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, startTime_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, scheduleType_); + } + 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 fi.hsl.common.transitdata.proto.InternalMessages.TripInfo)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo other = (fi.hsl.common.transitdata.proto.InternalMessages.TripInfo) obj; + + if (hasTripId() != other.hasTripId()) + return false; + if (hasTripId()) { + if (!getTripId().equals(other.getTripId())) + return false; + } + if (hasOperatingDay() != other.hasOperatingDay()) + return false; + if (hasOperatingDay()) { + if (!getOperatingDay().equals(other.getOperatingDay())) + 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 (hasScheduleType() != other.hasScheduleType()) + return false; + if (hasScheduleType()) { + if (scheduleType_ != other.scheduleType_) + 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 (hasTripId()) { + hash = (37 * hash) + TRIP_ID_FIELD_NUMBER; + hash = (53 * hash) + getTripId().hashCode(); + } + if (hasOperatingDay()) { + hash = (37 * hash) + OPERATING_DAY_FIELD_NUMBER; + hash = (53 * hash) + getOperatingDay().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 (hasScheduleType()) { + hash = (37 * hash) + SCHEDULE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + scheduleType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.TripInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.TripInfo) + fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.class, + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder.class); + } + + // Construct using fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tripId_ = ""; + operatingDay_ = ""; + routeId_ = ""; + directionId_ = 0; + startTime_ = ""; + scheduleType_ = 1; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripInfo_descriptor; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo build() { + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo buildPartial() { + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo result = new fi.hsl.common.transitdata.proto.InternalMessages.TripInfo( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tripId_ = tripId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.operatingDay_ = operatingDay_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.routeId_ = routeId_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.directionId_ = directionId_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.startTime_ = startTime_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.scheduleType_ = scheduleType_; + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.TripInfo) { + return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.TripInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo other) { + if (other == fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance()) + return this; + if (other.hasTripId()) { + tripId_ = other.tripId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasOperatingDay()) { + operatingDay_ = other.operatingDay_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRouteId()) { + routeId_ = other.routeId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasDirectionId()) { + setDirectionId(other.getDirectionId()); + } + if (other.hasStartTime()) { + startTime_ = other.startTime_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasScheduleType()) { + setScheduleType(other.getScheduleType()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasTripId()) { + return false; + } + if (!hasOperatingDay()) { + return false; + } + if (!hasRouteId()) { + return false; + } + if (!hasDirectionId()) { + return false; + } + if (!hasStartTime()) { + 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 : { + operatingDay_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26 : { + routeId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32 : { + directionId_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42 : { + startTime_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType tmpValue = fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(6, tmpRaw); + } else { + scheduleType_ = tmpRaw; + 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 tripId_ = ""; + /** + *
+             * Unique key for the trip
+             * For example: Dated Vehicle Journey ID or Journey Section ID
+             * 
+ * + * required string trip_id = 1; + * @return Whether the tripId field is set. + */ + public boolean hasTripId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Unique key for the trip
+             * For example: Dated Vehicle Journey ID or Journey Section ID
+             * 
+ * + * required string trip_id = 1; + * @return The tripId. + */ + public java.lang.String getTripId() { + java.lang.Object ref = tripId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + tripId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * Unique key for the trip
+             * For example: Dated Vehicle Journey ID or Journey Section ID
+             * 
+ * + * required string trip_id = 1; + * @return The bytes for tripId. + */ + public com.google.protobuf.ByteString getTripIdBytes() { + java.lang.Object ref = tripId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + tripId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * Unique key for the trip
+             * For example: Dated Vehicle Journey ID or Journey Section ID
+             * 
+ * + * required string trip_id = 1; + * @param value The tripId to set. + * @return This builder for chaining. + */ + public Builder setTripId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tripId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Unique key for the trip
+             * For example: Dated Vehicle Journey ID or Journey Section ID
+             * 
+ * + * required string trip_id = 1; + * @return This builder for chaining. + */ + public Builder clearTripId() { + tripId_ = getDefaultInstance().getTripId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+             * Unique key for the trip
+             * For example: Dated Vehicle Journey ID or Journey Section ID
+             * 
+ * + * required string trip_id = 1; + * @param value The bytes for tripId to set. + * @return This builder for chaining. + */ + public Builder setTripIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + tripId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object operatingDay_ = ""; + /** + *
+             * All fields in JORE-format
+             * 
+ * + * required string operating_day = 2; + * @return Whether the operatingDay field is set. + */ + public boolean hasOperatingDay() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+             * All fields in JORE-format
+             * 
+ * + * required string operating_day = 2; + * @return The operatingDay. + */ + public java.lang.String getOperatingDay() { + java.lang.Object ref = operatingDay_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + operatingDay_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * All fields in JORE-format
+             * 
+ * + * required string operating_day = 2; + * @return The bytes for operatingDay. + */ + public com.google.protobuf.ByteString getOperatingDayBytes() { + java.lang.Object ref = operatingDay_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + operatingDay_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * All fields in JORE-format
+             * 
+ * + * required string operating_day = 2; + * @param value The operatingDay to set. + * @return This builder for chaining. + */ + public Builder setOperatingDay(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + operatingDay_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+             * All fields in JORE-format
+             * 
+ * + * required string operating_day = 2; + * @return This builder for chaining. + */ + public Builder clearOperatingDay() { + operatingDay_ = getDefaultInstance().getOperatingDay(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+             * All fields in JORE-format
+             * 
+ * + * required string operating_day = 2; + * @param value The bytes for operatingDay to set. + * @return This builder for chaining. + */ + public Builder setOperatingDayBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + operatingDay_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object routeId_ = ""; + /** + * required string route_id = 3; + * @return Whether the routeId field is set. + */ + public boolean hasRouteId() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required string route_id = 3; + * @return The routeId. + */ + public java.lang.String getRouteId() { + java.lang.Object ref = routeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + routeId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string route_id = 3; + * @return The bytes for routeId. + */ + public com.google.protobuf.ByteString getRouteIdBytes() { + java.lang.Object ref = routeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + routeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string route_id = 3; + * @param value The routeId to set. + * @return This builder for chaining. + */ + public Builder setRouteId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + routeId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required string route_id = 3; + * @return This builder for chaining. + */ + public Builder clearRouteId() { + routeId_ = getDefaultInstance().getRouteId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * required string route_id = 3; + * @param value The bytes for routeId to set. + * @return This builder for chaining. + */ + public Builder setRouteIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + routeId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int directionId_; + /** + * required uint32 direction_id = 4; + * @return Whether the directionId field is set. + */ + @java.lang.Override + public boolean hasDirectionId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * required uint32 direction_id = 4; + * @return The directionId. + */ + @java.lang.Override + public int getDirectionId() { + return directionId_; + } + /** + * required uint32 direction_id = 4; + * @param value The directionId to set. + * @return This builder for chaining. + */ + public Builder setDirectionId(int value) { + + directionId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * required uint32 direction_id = 4; + * @return This builder for chaining. + */ + public Builder clearDirectionId() { + bitField0_ = (bitField0_ & ~0x00000008); + directionId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object startTime_ = ""; + /** + * required string start_time = 5; + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * required string start_time = 5; + * @return The startTime. + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startTime_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string start_time = 5; + * @return The bytes for startTime. + */ + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string start_time = 5; + * @param value The startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * required string start_time = 5; + * @return This builder for chaining. + */ + public Builder clearStartTime() { + startTime_ = getDefaultInstance().getStartTime(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * required string start_time = 5; + * @param value The bytes for startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int scheduleType_ = 1; + /** + *
+             * Whether trip is included in static schedule or not
+             * 
+ * + * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; + * @return Whether the scheduleType field is set. + */ + @java.lang.Override + public boolean hasScheduleType() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+             * Whether trip is included in static schedule or not
+             * 
+ * + * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; + * @return The scheduleType. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType getScheduleType() { + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType result = fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType + .forNumber(scheduleType_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType.SCHEDULED + : result; + } + /** + *
+             * Whether trip is included in static schedule or not
+             * 
+ * + * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; + * @param value The scheduleType to set. + * @return This builder for chaining. + */ + public Builder setScheduleType( + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + scheduleType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+             * Whether trip is included in static schedule or not
+             * 
+ * + * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; + * @return This builder for chaining. + */ + public Builder clearScheduleType() { + bitField0_ = (bitField0_ & ~0x00000020); + scheduleType_ = 1; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.TripInfo) + } + + // @@protoc_insertion_point(class_scope:proto.TripInfo) + private static final fi.hsl.common.transitdata.proto.InternalMessages.TripInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.TripInfo(); + } + + public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TripInfo parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface JourneyPatternOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.JourneyPattern) + com.google.protobuf.MessageOrBuilder { + + /** + * required string journey_pattern_id = 1; + * @return Whether the journeyPatternId field is set. + */ + boolean hasJourneyPatternId(); + /** + * required string journey_pattern_id = 1; + * @return The journeyPatternId. + */ + java.lang.String getJourneyPatternId(); + /** + * required string journey_pattern_id = 1; + * @return The bytes for journeyPatternId. + */ + com.google.protobuf.ByteString getJourneyPatternIdBytes(); + + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + java.util.List getStopsList(); + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop getStops(int index); + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + int getStopsCount(); + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + java.util.List getStopsOrBuilderList(); + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.StopOrBuilder getStopsOrBuilder(int index); + + /** + *
+         *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+         * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + java.util.List getTripsList(); + /** + *
+         *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+         * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getTrips(int index); + /** + *
+         *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+         * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + int getTripsCount(); + /** + *
+         *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+         * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + java.util.List getTripsOrBuilderList(); + /** + *
+         *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+         * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getTripsOrBuilder(int index); + } /** - * MISPARKED_VEHICLE = 31; + * Protobuf type {@code proto.JourneyPattern} */ - MISPARKED_VEHICLE(31), + public static final class JourneyPattern extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.JourneyPattern) + JourneyPatternOrBuilder { + private static final long serialVersionUID = 0L; + // Use JourneyPattern.newBuilder() to construct. + private JourneyPattern(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private JourneyPattern() { + journeyPatternId_ = ""; + stops_ = java.util.Collections.emptyList(); + trips_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new JourneyPattern(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.class, + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder.class); + } + + public interface StopOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.JourneyPattern.Stop) + com.google.protobuf.MessageOrBuilder { + + /** + * required string stop_id = 1; + * @return Whether the stopId field is set. + */ + boolean hasStopId(); + /** + * required string stop_id = 1; + * @return The stopId. + */ + java.lang.String getStopId(); + /** + * required string stop_id = 1; + * @return The bytes for stopId. + */ + com.google.protobuf.ByteString getStopIdBytes(); + + /** + * required uint32 stop_sequence = 2; + * @return Whether the stopSequence field is set. + */ + boolean hasStopSequence(); + /** + * required uint32 stop_sequence = 2; + * @return The stopSequence. + */ + int getStopSequence(); + } + /** + * Protobuf type {@code proto.JourneyPattern.Stop} + */ + public static final class Stop extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.JourneyPattern.Stop) + StopOrBuilder { + private static final long serialVersionUID = 0L; + // Use Stop.newBuilder() to construct. + private Stop(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Stop() { + stopId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Stop(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_Stop_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_Stop_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.class, + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder.class); + } + + private int bitField0_; + public static final int STOP_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object stopId_ = ""; + /** + * required string stop_id = 1; + * @return Whether the stopId field is set. + */ + @java.lang.Override + public boolean hasStopId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required string stop_id = 1; + * @return The stopId. + */ + @java.lang.Override + public java.lang.String getStopId() { + java.lang.Object ref = stopId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopId_ = s; + } + return s; + } + } + /** + * required string stop_id = 1; + * @return The bytes for stopId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStopIdBytes() { + java.lang.Object ref = stopId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + stopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STOP_SEQUENCE_FIELD_NUMBER = 2; + private int stopSequence_ = 0; + /** + * required uint32 stop_sequence = 2; + * @return Whether the stopSequence field is set. + */ + @java.lang.Override + public boolean hasStopSequence() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required uint32 stop_sequence = 2; + * @return The stopSequence. + */ + @java.lang.Override + public int getStopSequence() { + return stopSequence_; + } + + 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 (!hasStopId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStopSequence()) { + 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, stopId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(2, stopSequence_); + } + 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, stopId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, stopSequence_); + } + 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 fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop other = (fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop) obj; + + if (hasStopId() != other.hasStopId()) + return false; + if (hasStopId()) { + if (!getStopId().equals(other.getStopId())) + return false; + } + if (hasStopSequence() != other.hasStopSequence()) + return false; + if (hasStopSequence()) { + if (getStopSequence() != other.getStopSequence()) + 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 (hasStopId()) { + hash = (37 * hash) + STOP_ID_FIELD_NUMBER; + hash = (53 * hash) + getStopId().hashCode(); + } + if (hasStopSequence()) { + hash = (37 * hash) + STOP_SEQUENCE_FIELD_NUMBER; + hash = (53 * hash) + getStopSequence(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder( + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.JourneyPattern.Stop} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.JourneyPattern.Stop) + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.StopOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_Stop_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_Stop_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.class, + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder.class); + } + + // Construct using fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + stopId_ = ""; + stopSequence_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_Stop_descriptor; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop build() { + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop buildPartial() { + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop result = new fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.stopId_ = stopId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.stopSequence_ = stopSequence_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop) { + return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop other) { + if (other == fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop + .getDefaultInstance()) + return this; + if (other.hasStopId()) { + stopId_ = other.stopId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasStopSequence()) { + setStopSequence(other.getStopSequence()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasStopId()) { + return false; + } + if (!hasStopSequence()) { + 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 : { + stopId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16 : { + stopSequence_ = 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 java.lang.Object stopId_ = ""; + /** + * required string stop_id = 1; + * @return Whether the stopId field is set. + */ + public boolean hasStopId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required string stop_id = 1; + * @return The stopId. + */ + public java.lang.String getStopId() { + java.lang.Object ref = stopId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string stop_id = 1; + * @return The bytes for stopId. + */ + public com.google.protobuf.ByteString getStopIdBytes() { + java.lang.Object ref = stopId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + stopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string stop_id = 1; + * @param value The stopId to set. + * @return This builder for chaining. + */ + public Builder setStopId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + stopId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * required string stop_id = 1; + * @return This builder for chaining. + */ + public Builder clearStopId() { + stopId_ = getDefaultInstance().getStopId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * required string stop_id = 1; + * @param value The bytes for stopId to set. + * @return This builder for chaining. + */ + public Builder setStopIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + stopId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int stopSequence_; + /** + * required uint32 stop_sequence = 2; + * @return Whether the stopSequence field is set. + */ + @java.lang.Override + public boolean hasStopSequence() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required uint32 stop_sequence = 2; + * @return The stopSequence. + */ + @java.lang.Override + public int getStopSequence() { + return stopSequence_; + } + /** + * required uint32 stop_sequence = 2; + * @param value The stopSequence to set. + * @return This builder for chaining. + */ + public Builder setStopSequence(int value) { + + stopSequence_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required uint32 stop_sequence = 2; + * @return This builder for chaining. + */ + public Builder clearStopSequence() { + bitField0_ = (bitField0_ & ~0x00000002); + stopSequence_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.JourneyPattern.Stop) + } + + // @@protoc_insertion_point(class_scope:proto.JourneyPattern.Stop) + private static final fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop(); + } + + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stop parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int JOURNEY_PATTERN_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object journeyPatternId_ = ""; + /** + * required string journey_pattern_id = 1; + * @return Whether the journeyPatternId field is set. + */ + @java.lang.Override + public boolean hasJourneyPatternId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required string journey_pattern_id = 1; + * @return The journeyPatternId. + */ + @java.lang.Override + public java.lang.String getJourneyPatternId() { + java.lang.Object ref = journeyPatternId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + journeyPatternId_ = s; + } + return s; + } + } + /** + * required string journey_pattern_id = 1; + * @return The bytes for journeyPatternId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJourneyPatternIdBytes() { + java.lang.Object ref = journeyPatternId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + journeyPatternId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STOPS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List stops_; + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + @java.lang.Override + public java.util.List getStopsList() { + return stops_; + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + @java.lang.Override + public java.util.List getStopsOrBuilderList() { + return stops_; + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + @java.lang.Override + public int getStopsCount() { + return stops_.size(); + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop getStops(int index) { + return stops_.get(index); + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.StopOrBuilder getStopsOrBuilder( + int index) { + return stops_.get(index); + } + + public static final int TRIPS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List trips_; + /** + *
+         *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+         * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + @java.lang.Override + public java.util.List getTripsList() { + return trips_; + } + /** + *
+         *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+         * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + @java.lang.Override + public java.util.List getTripsOrBuilderList() { + return trips_; + } + /** + *
+         *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+         * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + @java.lang.Override + public int getTripsCount() { + return trips_.size(); + } + /** + *
+         *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+         * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getTrips(int index) { + return trips_.get(index); + } + /** + *
+         *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+         * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getTripsOrBuilder(int index) { + return trips_.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 (!hasJourneyPatternId()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getStopsCount(); i++) { + if (!getStops(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getTripsCount(); i++) { + if (!getTrips(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, journeyPatternId_); + } + for (int i = 0; i < stops_.size(); i++) { + output.writeMessage(2, stops_.get(i)); + } + for (int i = 0; i < trips_.size(); i++) { + output.writeMessage(3, trips_.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, journeyPatternId_); + } + for (int i = 0; i < stops_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, stops_.get(i)); + } + for (int i = 0; i < trips_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, trips_.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 fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern other = (fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern) obj; + + if (hasJourneyPatternId() != other.hasJourneyPatternId()) + return false; + if (hasJourneyPatternId()) { + if (!getJourneyPatternId().equals(other.getJourneyPatternId())) + return false; + } + if (!getStopsList().equals(other.getStopsList())) + return false; + if (!getTripsList().equals(other.getTripsList())) + 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 (hasJourneyPatternId()) { + hash = (37 * hash) + JOURNEY_PATTERN_ID_FIELD_NUMBER; + hash = (53 * hash) + getJourneyPatternId().hashCode(); + } + if (getStopsCount() > 0) { + hash = (37 * hash) + STOPS_FIELD_NUMBER; + hash = (53 * hash) + getStopsList().hashCode(); + } + if (getTripsCount() > 0) { + hash = (37 * hash) + TRIPS_FIELD_NUMBER; + hash = (53 * hash) + getTripsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.JourneyPattern} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.JourneyPattern) + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPatternOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.class, + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder.class); + } + + // Construct using fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + journeyPatternId_ = ""; + if (stopsBuilder_ == null) { + stops_ = java.util.Collections.emptyList(); + } else { + stops_ = null; + stopsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (tripsBuilder_ == null) { + trips_ = java.util.Collections.emptyList(); + } else { + trips_ = null; + tripsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_descriptor; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern build() { + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern buildPartial() { + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern result = new fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern result) { + if (stopsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + stops_ = java.util.Collections.unmodifiableList(stops_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.stops_ = stops_; + } else { + result.stops_ = stopsBuilder_.build(); + } + if (tripsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + trips_ = java.util.Collections.unmodifiableList(trips_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.trips_ = trips_; + } else { + result.trips_ = tripsBuilder_.build(); + } + } + + private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.journeyPatternId_ = journeyPatternId_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern) { + return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern other) { + if (other == fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.getDefaultInstance()) + return this; + if (other.hasJourneyPatternId()) { + journeyPatternId_ = other.journeyPatternId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (stopsBuilder_ == null) { + if (!other.stops_.isEmpty()) { + if (stops_.isEmpty()) { + stops_ = other.stops_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureStopsIsMutable(); + stops_.addAll(other.stops_); + } + onChanged(); + } + } else { + if (!other.stops_.isEmpty()) { + if (stopsBuilder_.isEmpty()) { + stopsBuilder_.dispose(); + stopsBuilder_ = null; + stops_ = other.stops_; + bitField0_ = (bitField0_ & ~0x00000002); + stopsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStopsFieldBuilder() + : null; + } else { + stopsBuilder_.addAllMessages(other.stops_); + } + } + } + if (tripsBuilder_ == null) { + if (!other.trips_.isEmpty()) { + if (trips_.isEmpty()) { + trips_ = other.trips_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTripsIsMutable(); + trips_.addAll(other.trips_); + } + onChanged(); + } + } else { + if (!other.trips_.isEmpty()) { + if (tripsBuilder_.isEmpty()) { + tripsBuilder_.dispose(); + tripsBuilder_ = null; + trips_ = other.trips_; + bitField0_ = (bitField0_ & ~0x00000004); + tripsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTripsFieldBuilder() + : null; + } else { + tripsBuilder_.addAllMessages(other.trips_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasJourneyPatternId()) { + return false; + } + for (int i = 0; i < getStopsCount(); i++) { + if (!getStops(i).isInitialized()) { + return false; + } + } + for (int i = 0; i < getTripsCount(); i++) { + if (!getTrips(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 : { + journeyPatternId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18 : { + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop m = input + .readMessage( + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.PARSER, + extensionRegistry); + if (stopsBuilder_ == null) { + ensureStopsIsMutable(); + stops_.add(m); + } else { + stopsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26 : { + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo m = input.readMessage( + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.PARSER, + extensionRegistry); + if (tripsBuilder_ == null) { + ensureTripsIsMutable(); + trips_.add(m); + } else { + tripsBuilder_.addMessage(m); + } + 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 journeyPatternId_ = ""; + /** + * required string journey_pattern_id = 1; + * @return Whether the journeyPatternId field is set. + */ + public boolean hasJourneyPatternId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required string journey_pattern_id = 1; + * @return The journeyPatternId. + */ + public java.lang.String getJourneyPatternId() { + java.lang.Object ref = journeyPatternId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + journeyPatternId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string journey_pattern_id = 1; + * @return The bytes for journeyPatternId. + */ + public com.google.protobuf.ByteString getJourneyPatternIdBytes() { + java.lang.Object ref = journeyPatternId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + journeyPatternId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string journey_pattern_id = 1; + * @param value The journeyPatternId to set. + * @return This builder for chaining. + */ + public Builder setJourneyPatternId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + journeyPatternId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * required string journey_pattern_id = 1; + * @return This builder for chaining. + */ + public Builder clearJourneyPatternId() { + journeyPatternId_ = getDefaultInstance().getJourneyPatternId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * required string journey_pattern_id = 1; + * @param value The bytes for journeyPatternId to set. + * @return This builder for chaining. + */ + public Builder setJourneyPatternIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + journeyPatternId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List stops_ = java.util.Collections + .emptyList(); + private void ensureStopsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + stops_ = new java.util.ArrayList( + stops_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 stopsBuilder_; + + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public java.util.List getStopsList() { + if (stopsBuilder_ == null) { + return java.util.Collections.unmodifiableList(stops_); + } else { + return stopsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public int getStopsCount() { + if (stopsBuilder_ == null) { + return stops_.size(); + } else { + return stopsBuilder_.getCount(); + } + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop getStops(int index) { + if (stopsBuilder_ == null) { + return stops_.get(index); + } else { + return stopsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public Builder setStops(int index, + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop value) { + if (stopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStopsIsMutable(); + stops_.set(index, value); + onChanged(); + } else { + stopsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public Builder setStops(int index, + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder builderForValue) { + if (stopsBuilder_ == null) { + ensureStopsIsMutable(); + stops_.set(index, builderForValue.build()); + onChanged(); + } else { + stopsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public Builder addStops(fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop value) { + if (stopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStopsIsMutable(); + stops_.add(value); + onChanged(); + } else { + stopsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public Builder addStops(int index, + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop value) { + if (stopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStopsIsMutable(); + stops_.add(index, value); + onChanged(); + } else { + stopsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public Builder addStops( + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder builderForValue) { + if (stopsBuilder_ == null) { + ensureStopsIsMutable(); + stops_.add(builderForValue.build()); + onChanged(); + } else { + stopsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public Builder addStops(int index, + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder builderForValue) { + if (stopsBuilder_ == null) { + ensureStopsIsMutable(); + stops_.add(index, builderForValue.build()); + onChanged(); + } else { + stopsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public Builder addAllStops( + java.lang.Iterable values) { + if (stopsBuilder_ == null) { + ensureStopsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stops_); + onChanged(); + } else { + stopsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public Builder clearStops() { + if (stopsBuilder_ == null) { + stops_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + stopsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public Builder removeStops(int index) { + if (stopsBuilder_ == null) { + ensureStopsIsMutable(); + stops_.remove(index); + onChanged(); + } else { + stopsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder getStopsBuilder( + int index) { + return getStopsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.StopOrBuilder getStopsOrBuilder( + int index) { + if (stopsBuilder_ == null) { + return stops_.get(index); + } else { + return stopsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public java.util.List getStopsOrBuilderList() { + if (stopsBuilder_ != null) { + return stopsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stops_); + } + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder addStopsBuilder() { + return getStopsFieldBuilder().addBuilder( + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.getDefaultInstance()); + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder addStopsBuilder( + int index) { + return getStopsFieldBuilder().addBuilder(index, + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.getDefaultInstance()); + } + /** + * repeated .proto.JourneyPattern.Stop stops = 2; + */ + public java.util.List getStopsBuilderList() { + return getStopsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getStopsFieldBuilder() { + if (stopsBuilder_ == null) { + stopsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + stops_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + stops_ = null; + } + return stopsBuilder_; + } + + private java.util.List trips_ = java.util.Collections + .emptyList(); + private void ensureTripsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + trips_ = new java.util.ArrayList(trips_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 tripsBuilder_; + + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public java.util.List getTripsList() { + if (tripsBuilder_ == null) { + return java.util.Collections.unmodifiableList(trips_); + } else { + return tripsBuilder_.getMessageList(); + } + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public int getTripsCount() { + if (tripsBuilder_ == null) { + return trips_.size(); + } else { + return tripsBuilder_.getCount(); + } + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getTrips(int index) { + if (tripsBuilder_ == null) { + return trips_.get(index); + } else { + return tripsBuilder_.getMessage(index); + } + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public Builder setTrips(int index, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo value) { + if (tripsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTripsIsMutable(); + trips_.set(index, value); + onChanged(); + } else { + tripsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public Builder setTrips(int index, + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder builderForValue) { + if (tripsBuilder_ == null) { + ensureTripsIsMutable(); + trips_.set(index, builderForValue.build()); + onChanged(); + } else { + tripsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public Builder addTrips(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo value) { + if (tripsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTripsIsMutable(); + trips_.add(value); + onChanged(); + } else { + tripsBuilder_.addMessage(value); + } + return this; + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public Builder addTrips(int index, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo value) { + if (tripsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTripsIsMutable(); + trips_.add(index, value); + onChanged(); + } else { + tripsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public Builder addTrips(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder builderForValue) { + if (tripsBuilder_ == null) { + ensureTripsIsMutable(); + trips_.add(builderForValue.build()); + onChanged(); + } else { + tripsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public Builder addTrips(int index, + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder builderForValue) { + if (tripsBuilder_ == null) { + ensureTripsIsMutable(); + trips_.add(index, builderForValue.build()); + onChanged(); + } else { + tripsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public Builder addAllTrips( + java.lang.Iterable values) { + if (tripsBuilder_ == null) { + ensureTripsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, trips_); + onChanged(); + } else { + tripsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public Builder clearTrips() { + if (tripsBuilder_ == null) { + trips_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + tripsBuilder_.clear(); + } + return this; + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public Builder removeTrips(int index) { + if (tripsBuilder_ == null) { + ensureTripsIsMutable(); + trips_.remove(index); + onChanged(); + } else { + tripsBuilder_.remove(index); + } + return this; + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder getTripsBuilder(int index) { + return getTripsFieldBuilder().getBuilder(index); + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getTripsOrBuilder(int index) { + if (tripsBuilder_ == null) { + return trips_.get(index); + } else { + return tripsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public java.util.List getTripsOrBuilderList() { + if (tripsBuilder_ != null) { + return tripsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trips_); + } + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder addTripsBuilder() { + return getTripsFieldBuilder() + .addBuilder(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance()); + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder addTripsBuilder(int index) { + return getTripsFieldBuilder().addBuilder(index, + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance()); + } + /** + *
+             *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
+             * 
+ * + * repeated .proto.TripInfo trips = 3; + */ + public java.util.List getTripsBuilderList() { + return getTripsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getTripsFieldBuilder() { + if (tripsBuilder_ == null) { + tripsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + trips_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + trips_ = null; + } + return tripsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.JourneyPattern) + } + + // @@protoc_insertion_point(class_scope:proto.JourneyPattern) + private static final fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern(); + } + + public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JourneyPattern parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StopCancellationsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.StopCancellations) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + java.util.List getStopCancellationsList(); + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation getStopCancellations( + int index); + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + int getStopCancellationsCount(); + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + java.util.List getStopCancellationsOrBuilderList(); + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellationOrBuilder getStopCancellationsOrBuilder( + int index); + + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + java.util.List getAffectedJourneyPatternsList(); + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern getAffectedJourneyPatterns(int index); + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + int getAffectedJourneyPatternsCount(); + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + java.util.List getAffectedJourneyPatternsOrBuilderList(); + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPatternOrBuilder getAffectedJourneyPatternsOrBuilder( + int index); + } /** - * PUBLIC_EVENT = 32; + * Protobuf type {@code proto.StopCancellations} */ - PUBLIC_EVENT(32), + public static final class StopCancellations extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.StopCancellations) + StopCancellationsOrBuilder { + private static final long serialVersionUID = 0L; + // Use StopCancellations.newBuilder() to construct. + private StopCancellations(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StopCancellations() { + stopCancellations_ = java.util.Collections.emptyList(); + affectedJourneyPatterns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StopCancellations(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.class, + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Builder.class); + } + + /** + * Protobuf enum {@code proto.StopCancellations.Cause} + */ + public enum Cause implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+             *Stop cancellation is caused by a closed stop and thus affects all journey patterns that use the stop
+             * 
+ * + * CLOSED_STOP = 0; + */ + CLOSED_STOP(0), + /** + *
+             *Stop cancellation is caused by a detour and affects only some journey patterns
+             * 
+ * + * JOURNEY_PATTERN_DETOUR = 1; + */ + JOURNEY_PATTERN_DETOUR(1), + /** + *
+             *Stop cancellation affects only one journey (i.e. trip) specified (above) in StopCancellation.affected_trip (TripInfo)
+             * 
+ * + * JOURNEY_DETOUR = 2; + */ + JOURNEY_DETOUR(2),; + + /** + *
+             *Stop cancellation is caused by a closed stop and thus affects all journey patterns that use the stop
+             * 
+ * + * CLOSED_STOP = 0; + */ + public static final int CLOSED_STOP_VALUE = 0; + /** + *
+             *Stop cancellation is caused by a detour and affects only some journey patterns
+             * 
+ * + * JOURNEY_PATTERN_DETOUR = 1; + */ + public static final int JOURNEY_PATTERN_DETOUR_VALUE = 1; + /** + *
+             *Stop cancellation affects only one journey (i.e. trip) specified (above) in StopCancellation.affected_trip (TripInfo)
+             * 
+ * + * JOURNEY_DETOUR = 2; + */ + public static final int JOURNEY_DETOUR_VALUE = 2; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Cause valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Cause forNumber(int value) { + switch (value) { + case 0 : + return CLOSED_STOP; + case 1 : + return JOURNEY_PATTERN_DETOUR; + case 2 : + return JOURNEY_DETOUR; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public Cause findValueByNumber(int number) { + return Cause.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.getDescriptor().getEnumTypes() + .get(0); + } + + private static final Cause[] VALUES = values(); + + public static Cause valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Cause(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.StopCancellations.Cause) + } + + public interface StopCancellationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.StopCancellations.StopCancellation) + com.google.protobuf.MessageOrBuilder { + + /** + * required .proto.StopCancellations.Cause cause = 1; + * @return Whether the cause field is set. + */ + boolean hasCause(); + /** + * required .proto.StopCancellations.Cause cause = 1; + * @return The cause. + */ + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause getCause(); + + /** + * required string stop_id = 2; + * @return Whether the stopId field is set. + */ + boolean hasStopId(); + /** + * required string stop_id = 2; + * @return The stopId. + */ + java.lang.String getStopId(); + /** + * required string stop_id = 2; + * @return The bytes for stopId. + */ + com.google.protobuf.ByteString getStopIdBytes(); + + /** + * optional int64 valid_from_unix_s = 3; + * @return Whether the validFromUnixS field is set. + */ + boolean hasValidFromUnixS(); + /** + * optional int64 valid_from_unix_s = 3; + * @return The validFromUnixS. + */ + long getValidFromUnixS(); + + /** + * optional int64 valid_to_unix_s = 4; + * @return Whether the validToUnixS field is set. + */ + boolean hasValidToUnixS(); + /** + * optional int64 valid_to_unix_s = 4; + * @return The validToUnixS. + */ + long getValidToUnixS(); + + /** + *
+             *List of journey patterns (IDs) that are affected by the stop cancellation
+             * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @return A list containing the affectedJourneyPatternIds. + */ + java.util.List getAffectedJourneyPatternIdsList(); + /** + *
+             *List of journey patterns (IDs) that are affected by the stop cancellation
+             * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @return The count of affectedJourneyPatternIds. + */ + int getAffectedJourneyPatternIdsCount(); + /** + *
+             *List of journey patterns (IDs) that are affected by the stop cancellation
+             * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @param index The index of the element to return. + * @return The affectedJourneyPatternIds at the given index. + */ + java.lang.String getAffectedJourneyPatternIds(int index); + /** + *
+             *List of journey patterns (IDs) that are affected by the stop cancellation
+             * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @param index The index of the value to return. + * @return The bytes of the affectedJourneyPatternIds at the given index. + */ + com.google.protobuf.ByteString getAffectedJourneyPatternIdsBytes(int index); + + /** + *
+             *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+             * 
+ * + * optional .proto.TripInfo affected_trip = 6; + * @return Whether the affectedTrip field is set. + */ + boolean hasAffectedTrip(); + /** + *
+             *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+             * 
+ * + * optional .proto.TripInfo affected_trip = 6; + * @return The affectedTrip. + */ + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getAffectedTrip(); + /** + *
+             *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+             * 
+ * + * optional .proto.TripInfo affected_trip = 6; + */ + fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getAffectedTripOrBuilder(); + } + /** + * Protobuf type {@code proto.StopCancellations.StopCancellation} + */ + public static final class StopCancellation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.StopCancellations.StopCancellation) + StopCancellationOrBuilder { + private static final long serialVersionUID = 0L; + // Use StopCancellation.newBuilder() to construct. + private StopCancellation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StopCancellation() { + cause_ = 0; + stopId_ = ""; + affectedJourneyPatternIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StopCancellation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_StopCancellation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_StopCancellation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.class, + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder.class); + } + + private int bitField0_; + public static final int CAUSE_FIELD_NUMBER = 1; + private int cause_ = 0; + /** + * required .proto.StopCancellations.Cause cause = 1; + * @return Whether the cause field is set. + */ + @java.lang.Override + public boolean hasCause() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required .proto.StopCancellations.Cause cause = 1; + * @return The cause. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause getCause() { + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause result = fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause + .forNumber(cause_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause.CLOSED_STOP + : result; + } + + public static final int STOP_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object stopId_ = ""; + /** + * required string stop_id = 2; + * @return Whether the stopId field is set. + */ + @java.lang.Override + public boolean hasStopId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required string stop_id = 2; + * @return The stopId. + */ + @java.lang.Override + public java.lang.String getStopId() { + java.lang.Object ref = stopId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopId_ = s; + } + return s; + } + } + /** + * required string stop_id = 2; + * @return The bytes for stopId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStopIdBytes() { + java.lang.Object ref = stopId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + stopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALID_FROM_UNIX_S_FIELD_NUMBER = 3; + private long validFromUnixS_ = 0L; + /** + * optional int64 valid_from_unix_s = 3; + * @return Whether the validFromUnixS field is set. + */ + @java.lang.Override + public boolean hasValidFromUnixS() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 valid_from_unix_s = 3; + * @return The validFromUnixS. + */ + @java.lang.Override + public long getValidFromUnixS() { + return validFromUnixS_; + } + + public static final int VALID_TO_UNIX_S_FIELD_NUMBER = 4; + private long validToUnixS_ = 0L; + /** + * optional int64 valid_to_unix_s = 4; + * @return Whether the validToUnixS field is set. + */ + @java.lang.Override + public boolean hasValidToUnixS() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int64 valid_to_unix_s = 4; + * @return The validToUnixS. + */ + @java.lang.Override + public long getValidToUnixS() { + return validToUnixS_; + } + + public static final int AFFECTED_JOURNEY_PATTERN_IDS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList affectedJourneyPatternIds_; + /** + *
+             *List of journey patterns (IDs) that are affected by the stop cancellation
+             * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @return A list containing the affectedJourneyPatternIds. + */ + public com.google.protobuf.ProtocolStringList getAffectedJourneyPatternIdsList() { + return affectedJourneyPatternIds_; + } + /** + *
+             *List of journey patterns (IDs) that are affected by the stop cancellation
+             * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @return The count of affectedJourneyPatternIds. + */ + public int getAffectedJourneyPatternIdsCount() { + return affectedJourneyPatternIds_.size(); + } + /** + *
+             *List of journey patterns (IDs) that are affected by the stop cancellation
+             * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @param index The index of the element to return. + * @return The affectedJourneyPatternIds at the given index. + */ + public java.lang.String getAffectedJourneyPatternIds(int index) { + return affectedJourneyPatternIds_.get(index); + } + /** + *
+             *List of journey patterns (IDs) that are affected by the stop cancellation
+             * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @param index The index of the value to return. + * @return The bytes of the affectedJourneyPatternIds at the given index. + */ + public com.google.protobuf.ByteString getAffectedJourneyPatternIdsBytes(int index) { + return affectedJourneyPatternIds_.getByteString(index); + } + + public static final int AFFECTED_TRIP_FIELD_NUMBER = 6; + private fi.hsl.common.transitdata.proto.InternalMessages.TripInfo affectedTrip_; + /** + *
+             *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+             * 
+ * + * optional .proto.TripInfo affected_trip = 6; + * @return Whether the affectedTrip field is set. + */ + @java.lang.Override + public boolean hasAffectedTrip() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+             *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+             * 
+ * + * optional .proto.TripInfo affected_trip = 6; + * @return The affectedTrip. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getAffectedTrip() { + return affectedTrip_ == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() + : affectedTrip_; + } + /** + *
+             *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+             * 
+ * + * optional .proto.TripInfo affected_trip = 6; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getAffectedTripOrBuilder() { + return affectedTrip_ == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() + : affectedTrip_; + } + + 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 (!hasCause()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStopId()) { + memoizedIsInitialized = 0; + return false; + } + if (hasAffectedTrip()) { + if (!getAffectedTrip().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.writeEnum(1, cause_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stopId_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, validFromUnixS_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(4, validToUnixS_); + } + for (int i = 0; i < affectedJourneyPatternIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, affectedJourneyPatternIds_.getRaw(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(6, getAffectedTrip()); + } + 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.computeEnumSize(1, cause_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stopId_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, validFromUnixS_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, validToUnixS_); + } + { + int dataSize = 0; + for (int i = 0; i < affectedJourneyPatternIds_.size(); i++) { + dataSize += computeStringSizeNoTag(affectedJourneyPatternIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getAffectedJourneyPatternIdsList().size(); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getAffectedTrip()); + } + 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 fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation other = (fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation) obj; + + if (hasCause() != other.hasCause()) + return false; + if (hasCause()) { + if (cause_ != other.cause_) + return false; + } + if (hasStopId() != other.hasStopId()) + return false; + if (hasStopId()) { + if (!getStopId().equals(other.getStopId())) + return false; + } + if (hasValidFromUnixS() != other.hasValidFromUnixS()) + return false; + if (hasValidFromUnixS()) { + if (getValidFromUnixS() != other.getValidFromUnixS()) + return false; + } + if (hasValidToUnixS() != other.hasValidToUnixS()) + return false; + if (hasValidToUnixS()) { + if (getValidToUnixS() != other.getValidToUnixS()) + return false; + } + if (!getAffectedJourneyPatternIdsList().equals(other.getAffectedJourneyPatternIdsList())) + return false; + if (hasAffectedTrip() != other.hasAffectedTrip()) + return false; + if (hasAffectedTrip()) { + if (!getAffectedTrip().equals(other.getAffectedTrip())) + 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 (hasCause()) { + hash = (37 * hash) + CAUSE_FIELD_NUMBER; + hash = (53 * hash) + cause_; + } + if (hasStopId()) { + hash = (37 * hash) + STOP_ID_FIELD_NUMBER; + hash = (53 * hash) + getStopId().hashCode(); + } + if (hasValidFromUnixS()) { + hash = (37 * hash) + VALID_FROM_UNIX_S_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValidFromUnixS()); + } + if (hasValidToUnixS()) { + hash = (37 * hash) + VALID_TO_UNIX_S_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValidToUnixS()); + } + if (getAffectedJourneyPatternIdsCount() > 0) { + hash = (37 * hash) + AFFECTED_JOURNEY_PATTERN_IDS_FIELD_NUMBER; + hash = (53 * hash) + getAffectedJourneyPatternIdsList().hashCode(); + } + if (hasAffectedTrip()) { + hash = (37 * hash) + AFFECTED_TRIP_FIELD_NUMBER; + hash = (53 * hash) + getAffectedTrip().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder( + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.StopCancellations.StopCancellation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.StopCancellations.StopCancellation) + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_StopCancellation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_StopCancellation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.class, + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder.class); + } + + // Construct using fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAffectedTripFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cause_ = 0; + stopId_ = ""; + validFromUnixS_ = 0L; + validToUnixS_ = 0L; + affectedJourneyPatternIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + affectedTrip_ = null; + if (affectedTripBuilder_ != null) { + affectedTripBuilder_.dispose(); + affectedTripBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_StopCancellation_descriptor; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation + .getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation build() { + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation buildPartial() { + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation result = new fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation result) { + if (((bitField0_ & 0x00000010) != 0)) { + affectedJourneyPatternIds_ = affectedJourneyPatternIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.affectedJourneyPatternIds_ = affectedJourneyPatternIds_; + } + + private void buildPartial0( + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cause_ = cause_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.stopId_ = stopId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validFromUnixS_ = validFromUnixS_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validToUnixS_ = validToUnixS_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.affectedTrip_ = affectedTripBuilder_ == null + ? affectedTrip_ + : affectedTripBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation) { + return mergeFrom( + (fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation other) { + if (other == fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation + .getDefaultInstance()) + return this; + if (other.hasCause()) { + setCause(other.getCause()); + } + if (other.hasStopId()) { + stopId_ = other.stopId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasValidFromUnixS()) { + setValidFromUnixS(other.getValidFromUnixS()); + } + if (other.hasValidToUnixS()) { + setValidToUnixS(other.getValidToUnixS()); + } + if (!other.affectedJourneyPatternIds_.isEmpty()) { + if (affectedJourneyPatternIds_.isEmpty()) { + affectedJourneyPatternIds_ = other.affectedJourneyPatternIds_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureAffectedJourneyPatternIdsIsMutable(); + affectedJourneyPatternIds_.addAll(other.affectedJourneyPatternIds_); + } + onChanged(); + } + if (other.hasAffectedTrip()) { + mergeAffectedTrip(other.getAffectedTrip()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasCause()) { + return false; + } + if (!hasStopId()) { + return false; + } + if (hasAffectedTrip()) { + if (!getAffectedTrip().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 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause tmpValue = fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(1, tmpRaw); + } else { + cause_ = tmpRaw; + bitField0_ |= 0x00000001; + } + break; + } // case 8 + case 18 : { + stopId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24 : { + validFromUnixS_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32 : { + validToUnixS_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42 : { + com.google.protobuf.ByteString bs = input.readBytes(); + ensureAffectedJourneyPatternIdsIsMutable(); + affectedJourneyPatternIds_.add(bs); + break; + } // case 42 + case 50 : { + input.readMessage(getAffectedTripFieldBuilder().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 int cause_ = 0; + /** + * required .proto.StopCancellations.Cause cause = 1; + * @return Whether the cause field is set. + */ + @java.lang.Override + public boolean hasCause() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required .proto.StopCancellations.Cause cause = 1; + * @return The cause. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause getCause() { + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause result = fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause + .forNumber(cause_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause.CLOSED_STOP + : result; + } + /** + * required .proto.StopCancellations.Cause cause = 1; + * @param value The cause to set. + * @return This builder for chaining. + */ + public Builder setCause( + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + cause_ = value.getNumber(); + onChanged(); + return this; + } + /** + * required .proto.StopCancellations.Cause cause = 1; + * @return This builder for chaining. + */ + public Builder clearCause() { + bitField0_ = (bitField0_ & ~0x00000001); + cause_ = 0; + onChanged(); + return this; + } + + private java.lang.Object stopId_ = ""; + /** + * required string stop_id = 2; + * @return Whether the stopId field is set. + */ + public boolean hasStopId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required string stop_id = 2; + * @return The stopId. + */ + public java.lang.String getStopId() { + java.lang.Object ref = stopId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string stop_id = 2; + * @return The bytes for stopId. + */ + public com.google.protobuf.ByteString getStopIdBytes() { + java.lang.Object ref = stopId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + stopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string stop_id = 2; + * @param value The stopId to set. + * @return This builder for chaining. + */ + public Builder setStopId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + stopId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required string stop_id = 2; + * @return This builder for chaining. + */ + public Builder clearStopId() { + stopId_ = getDefaultInstance().getStopId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * required string stop_id = 2; + * @param value The bytes for stopId to set. + * @return This builder for chaining. + */ + public Builder setStopIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + stopId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long validFromUnixS_; + /** + * optional int64 valid_from_unix_s = 3; + * @return Whether the validFromUnixS field is set. + */ + @java.lang.Override + public boolean hasValidFromUnixS() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int64 valid_from_unix_s = 3; + * @return The validFromUnixS. + */ + @java.lang.Override + public long getValidFromUnixS() { + return validFromUnixS_; + } + /** + * optional int64 valid_from_unix_s = 3; + * @param value The validFromUnixS to set. + * @return This builder for chaining. + */ + public Builder setValidFromUnixS(long value) { + + validFromUnixS_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional int64 valid_from_unix_s = 3; + * @return This builder for chaining. + */ + public Builder clearValidFromUnixS() { + bitField0_ = (bitField0_ & ~0x00000004); + validFromUnixS_ = 0L; + onChanged(); + return this; + } + + private long validToUnixS_; + /** + * optional int64 valid_to_unix_s = 4; + * @return Whether the validToUnixS field is set. + */ + @java.lang.Override + public boolean hasValidToUnixS() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int64 valid_to_unix_s = 4; + * @return The validToUnixS. + */ + @java.lang.Override + public long getValidToUnixS() { + return validToUnixS_; + } + /** + * optional int64 valid_to_unix_s = 4; + * @param value The validToUnixS to set. + * @return This builder for chaining. + */ + public Builder setValidToUnixS(long value) { + + validToUnixS_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional int64 valid_to_unix_s = 4; + * @return This builder for chaining. + */ + public Builder clearValidToUnixS() { + bitField0_ = (bitField0_ & ~0x00000008); + validToUnixS_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList affectedJourneyPatternIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAffectedJourneyPatternIdsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + affectedJourneyPatternIds_ = new com.google.protobuf.LazyStringArrayList( + affectedJourneyPatternIds_); + bitField0_ |= 0x00000010; + } + } + /** + *
+                 *List of journey patterns (IDs) that are affected by the stop cancellation
+                 * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @return A list containing the affectedJourneyPatternIds. + */ + public com.google.protobuf.ProtocolStringList getAffectedJourneyPatternIdsList() { + return affectedJourneyPatternIds_.getUnmodifiableView(); + } + /** + *
+                 *List of journey patterns (IDs) that are affected by the stop cancellation
+                 * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @return The count of affectedJourneyPatternIds. + */ + public int getAffectedJourneyPatternIdsCount() { + return affectedJourneyPatternIds_.size(); + } + /** + *
+                 *List of journey patterns (IDs) that are affected by the stop cancellation
+                 * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @param index The index of the element to return. + * @return The affectedJourneyPatternIds at the given index. + */ + public java.lang.String getAffectedJourneyPatternIds(int index) { + return affectedJourneyPatternIds_.get(index); + } + /** + *
+                 *List of journey patterns (IDs) that are affected by the stop cancellation
+                 * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @param index The index of the value to return. + * @return The bytes of the affectedJourneyPatternIds at the given index. + */ + public com.google.protobuf.ByteString getAffectedJourneyPatternIdsBytes(int index) { + return affectedJourneyPatternIds_.getByteString(index); + } + /** + *
+                 *List of journey patterns (IDs) that are affected by the stop cancellation
+                 * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @param index The index to set the value at. + * @param value The affectedJourneyPatternIds to set. + * @return This builder for chaining. + */ + public Builder setAffectedJourneyPatternIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedJourneyPatternIdsIsMutable(); + affectedJourneyPatternIds_.set(index, value); + onChanged(); + return this; + } + /** + *
+                 *List of journey patterns (IDs) that are affected by the stop cancellation
+                 * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @param value The affectedJourneyPatternIds to add. + * @return This builder for chaining. + */ + public Builder addAffectedJourneyPatternIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedJourneyPatternIdsIsMutable(); + affectedJourneyPatternIds_.add(value); + onChanged(); + return this; + } + /** + *
+                 *List of journey patterns (IDs) that are affected by the stop cancellation
+                 * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @param values The affectedJourneyPatternIds to add. + * @return This builder for chaining. + */ + public Builder addAllAffectedJourneyPatternIds(java.lang.Iterable values) { + ensureAffectedJourneyPatternIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, affectedJourneyPatternIds_); + onChanged(); + return this; + } + /** + *
+                 *List of journey patterns (IDs) that are affected by the stop cancellation
+                 * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @return This builder for chaining. + */ + public Builder clearAffectedJourneyPatternIds() { + affectedJourneyPatternIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+                 *List of journey patterns (IDs) that are affected by the stop cancellation
+                 * 
+ * + * repeated string affected_journey_pattern_ids = 5; + * @param value The bytes of the affectedJourneyPatternIds to add. + * @return This builder for chaining. + */ + public Builder addAffectedJourneyPatternIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedJourneyPatternIdsIsMutable(); + affectedJourneyPatternIds_.add(value); + onChanged(); + return this; + } + + private fi.hsl.common.transitdata.proto.InternalMessages.TripInfo affectedTrip_; + private com.google.protobuf.SingleFieldBuilderV3 affectedTripBuilder_; + /** + *
+                 *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+                 * 
+ * + * optional .proto.TripInfo affected_trip = 6; + * @return Whether the affectedTrip field is set. + */ + public boolean hasAffectedTrip() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+                 *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+                 * 
+ * + * optional .proto.TripInfo affected_trip = 6; + * @return The affectedTrip. + */ + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getAffectedTrip() { + if (affectedTripBuilder_ == null) { + return affectedTrip_ == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() + : affectedTrip_; + } else { + return affectedTripBuilder_.getMessage(); + } + } + /** + *
+                 *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+                 * 
+ * + * optional .proto.TripInfo affected_trip = 6; + */ + public Builder setAffectedTrip(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo value) { + if (affectedTripBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + affectedTrip_ = value; + } else { + affectedTripBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+                 *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+                 * 
+ * + * optional .proto.TripInfo affected_trip = 6; + */ + public Builder setAffectedTrip( + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder builderForValue) { + if (affectedTripBuilder_ == null) { + affectedTrip_ = builderForValue.build(); + } else { + affectedTripBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+                 *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+                 * 
+ * + * optional .proto.TripInfo affected_trip = 6; + */ + public Builder mergeAffectedTrip(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo value) { + if (affectedTripBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && affectedTrip_ != null + && affectedTrip_ != fi.hsl.common.transitdata.proto.InternalMessages.TripInfo + .getDefaultInstance()) { + getAffectedTripBuilder().mergeFrom(value); + } else { + affectedTrip_ = value; + } + } else { + affectedTripBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+                 *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+                 * 
+ * + * optional .proto.TripInfo affected_trip = 6; + */ + public Builder clearAffectedTrip() { + bitField0_ = (bitField0_ & ~0x00000020); + affectedTrip_ = null; + if (affectedTripBuilder_ != null) { + affectedTripBuilder_.dispose(); + affectedTripBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+                 *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+                 * 
+ * + * optional .proto.TripInfo affected_trip = 6; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder getAffectedTripBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getAffectedTripFieldBuilder().getBuilder(); + } + /** + *
+                 *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+                 * 
+ * + * optional .proto.TripInfo affected_trip = 6; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getAffectedTripOrBuilder() { + if (affectedTripBuilder_ != null) { + return affectedTripBuilder_.getMessageOrBuilder(); + } else { + return affectedTrip_ == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() + : affectedTrip_; + } + } + /** + *
+                 *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+                 * 
+ * + * optional .proto.TripInfo affected_trip = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3 getAffectedTripFieldBuilder() { + if (affectedTripBuilder_ == null) { + affectedTripBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getAffectedTrip(), getParentForChildren(), isClean()); + affectedTrip_ = null; + } + return affectedTripBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.StopCancellations.StopCancellation) + } + + // @@protoc_insertion_point(class_scope:proto.StopCancellations.StopCancellation) + private static final fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation(); + } + + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopCancellation parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int STOP_CANCELLATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List stopCancellations_; + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + @java.lang.Override + public java.util.List getStopCancellationsList() { + return stopCancellations_; + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + @java.lang.Override + public java.util.List getStopCancellationsOrBuilderList() { + return stopCancellations_; + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + @java.lang.Override + public int getStopCancellationsCount() { + return stopCancellations_.size(); + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation getStopCancellations( + int index) { + return stopCancellations_.get(index); + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellationOrBuilder getStopCancellationsOrBuilder( + int index) { + return stopCancellations_.get(index); + } + + public static final int AFFECTED_JOURNEY_PATTERNS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List affectedJourneyPatterns_; + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + @java.lang.Override + public java.util.List getAffectedJourneyPatternsList() { + return affectedJourneyPatterns_; + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + @java.lang.Override + public java.util.List getAffectedJourneyPatternsOrBuilderList() { + return affectedJourneyPatterns_; + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + @java.lang.Override + public int getAffectedJourneyPatternsCount() { + return affectedJourneyPatterns_.size(); + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern getAffectedJourneyPatterns(int index) { + return affectedJourneyPatterns_.get(index); + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPatternOrBuilder getAffectedJourneyPatternsOrBuilder( + int index) { + return affectedJourneyPatterns_.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 < getStopCancellationsCount(); i++) { + if (!getStopCancellations(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getAffectedJourneyPatternsCount(); i++) { + if (!getAffectedJourneyPatterns(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 { + for (int i = 0; i < stopCancellations_.size(); i++) { + output.writeMessage(1, stopCancellations_.get(i)); + } + for (int i = 0; i < affectedJourneyPatterns_.size(); i++) { + output.writeMessage(2, affectedJourneyPatterns_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < stopCancellations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, stopCancellations_.get(i)); + } + for (int i = 0; i < affectedJourneyPatterns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, affectedJourneyPatterns_.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 fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations other = (fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations) obj; + + if (!getStopCancellationsList().equals(other.getStopCancellationsList())) + return false; + if (!getAffectedJourneyPatternsList().equals(other.getAffectedJourneyPatternsList())) + 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 (getStopCancellationsCount() > 0) { + hash = (37 * hash) + STOP_CANCELLATIONS_FIELD_NUMBER; + hash = (53 * hash) + getStopCancellationsList().hashCode(); + } + if (getAffectedJourneyPatternsCount() > 0) { + hash = (37 * hash) + AFFECTED_JOURNEY_PATTERNS_FIELD_NUMBER; + hash = (53 * hash) + getAffectedJourneyPatternsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.StopCancellations} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.StopCancellations) + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellationsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.class, + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Builder.class); + } + + // Construct using fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (stopCancellationsBuilder_ == null) { + stopCancellations_ = java.util.Collections.emptyList(); + } else { + stopCancellations_ = null; + stopCancellationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (affectedJourneyPatternsBuilder_ == null) { + affectedJourneyPatterns_ = java.util.Collections.emptyList(); + } else { + affectedJourneyPatterns_ = null; + affectedJourneyPatternsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_descriptor; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations build() { + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations buildPartial() { + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations result = new fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations result) { + if (stopCancellationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + stopCancellations_ = java.util.Collections.unmodifiableList(stopCancellations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.stopCancellations_ = stopCancellations_; + } else { + result.stopCancellations_ = stopCancellationsBuilder_.build(); + } + if (affectedJourneyPatternsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + affectedJourneyPatterns_ = java.util.Collections.unmodifiableList(affectedJourneyPatterns_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.affectedJourneyPatterns_ = affectedJourneyPatterns_; + } else { + result.affectedJourneyPatterns_ = affectedJourneyPatternsBuilder_.build(); + } + } + + private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations) { + return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations other) { + if (other == fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.getDefaultInstance()) + return this; + if (stopCancellationsBuilder_ == null) { + if (!other.stopCancellations_.isEmpty()) { + if (stopCancellations_.isEmpty()) { + stopCancellations_ = other.stopCancellations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStopCancellationsIsMutable(); + stopCancellations_.addAll(other.stopCancellations_); + } + onChanged(); + } + } else { + if (!other.stopCancellations_.isEmpty()) { + if (stopCancellationsBuilder_.isEmpty()) { + stopCancellationsBuilder_.dispose(); + stopCancellationsBuilder_ = null; + stopCancellations_ = other.stopCancellations_; + bitField0_ = (bitField0_ & ~0x00000001); + stopCancellationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStopCancellationsFieldBuilder() + : null; + } else { + stopCancellationsBuilder_.addAllMessages(other.stopCancellations_); + } + } + } + if (affectedJourneyPatternsBuilder_ == null) { + if (!other.affectedJourneyPatterns_.isEmpty()) { + if (affectedJourneyPatterns_.isEmpty()) { + affectedJourneyPatterns_ = other.affectedJourneyPatterns_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAffectedJourneyPatternsIsMutable(); + affectedJourneyPatterns_.addAll(other.affectedJourneyPatterns_); + } + onChanged(); + } + } else { + if (!other.affectedJourneyPatterns_.isEmpty()) { + if (affectedJourneyPatternsBuilder_.isEmpty()) { + affectedJourneyPatternsBuilder_.dispose(); + affectedJourneyPatternsBuilder_ = null; + affectedJourneyPatterns_ = other.affectedJourneyPatterns_; + bitField0_ = (bitField0_ & ~0x00000002); + affectedJourneyPatternsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAffectedJourneyPatternsFieldBuilder() + : null; + } else { + affectedJourneyPatternsBuilder_.addAllMessages(other.affectedJourneyPatterns_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + for (int i = 0; i < getStopCancellationsCount(); i++) { + if (!getStopCancellations(i).isInitialized()) { + return false; + } + } + for (int i = 0; i < getAffectedJourneyPatternsCount(); i++) { + if (!getAffectedJourneyPatterns(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 : { + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation m = input + .readMessage( + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.PARSER, + extensionRegistry); + if (stopCancellationsBuilder_ == null) { + ensureStopCancellationsIsMutable(); + stopCancellations_.add(m); + } else { + stopCancellationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18 : { + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern m = input.readMessage( + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.PARSER, + extensionRegistry); + if (affectedJourneyPatternsBuilder_ == null) { + ensureAffectedJourneyPatternsIsMutable(); + affectedJourneyPatterns_.add(m); + } else { + affectedJourneyPatternsBuilder_.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.util.List stopCancellations_ = java.util.Collections + .emptyList(); + private void ensureStopCancellationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + stopCancellations_ = new java.util.ArrayList( + stopCancellations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 stopCancellationsBuilder_; + + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public java.util.List getStopCancellationsList() { + if (stopCancellationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(stopCancellations_); + } else { + return stopCancellationsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public int getStopCancellationsCount() { + if (stopCancellationsBuilder_ == null) { + return stopCancellations_.size(); + } else { + return stopCancellationsBuilder_.getCount(); + } + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation getStopCancellations( + int index) { + if (stopCancellationsBuilder_ == null) { + return stopCancellations_.get(index); + } else { + return stopCancellationsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public Builder setStopCancellations(int index, + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation value) { + if (stopCancellationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStopCancellationsIsMutable(); + stopCancellations_.set(index, value); + onChanged(); + } else { + stopCancellationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public Builder setStopCancellations(int index, + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder builderForValue) { + if (stopCancellationsBuilder_ == null) { + ensureStopCancellationsIsMutable(); + stopCancellations_.set(index, builderForValue.build()); + onChanged(); + } else { + stopCancellationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public Builder addStopCancellations( + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation value) { + if (stopCancellationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStopCancellationsIsMutable(); + stopCancellations_.add(value); + onChanged(); + } else { + stopCancellationsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public Builder addStopCancellations(int index, + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation value) { + if (stopCancellationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStopCancellationsIsMutable(); + stopCancellations_.add(index, value); + onChanged(); + } else { + stopCancellationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public Builder addStopCancellations( + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder builderForValue) { + if (stopCancellationsBuilder_ == null) { + ensureStopCancellationsIsMutable(); + stopCancellations_.add(builderForValue.build()); + onChanged(); + } else { + stopCancellationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public Builder addStopCancellations(int index, + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder builderForValue) { + if (stopCancellationsBuilder_ == null) { + ensureStopCancellationsIsMutable(); + stopCancellations_.add(index, builderForValue.build()); + onChanged(); + } else { + stopCancellationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public Builder addAllStopCancellations( + java.lang.Iterable values) { + if (stopCancellationsBuilder_ == null) { + ensureStopCancellationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stopCancellations_); + onChanged(); + } else { + stopCancellationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public Builder clearStopCancellations() { + if (stopCancellationsBuilder_ == null) { + stopCancellations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + stopCancellationsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public Builder removeStopCancellations(int index) { + if (stopCancellationsBuilder_ == null) { + ensureStopCancellationsIsMutable(); + stopCancellations_.remove(index); + onChanged(); + } else { + stopCancellationsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder getStopCancellationsBuilder( + int index) { + return getStopCancellationsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellationOrBuilder getStopCancellationsOrBuilder( + int index) { + if (stopCancellationsBuilder_ == null) { + return stopCancellations_.get(index); + } else { + return stopCancellationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public java.util.List getStopCancellationsOrBuilderList() { + if (stopCancellationsBuilder_ != null) { + return stopCancellationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stopCancellations_); + } + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder addStopCancellationsBuilder() { + return getStopCancellationsFieldBuilder() + .addBuilder(fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation + .getDefaultInstance()); + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder addStopCancellationsBuilder( + int index) { + return getStopCancellationsFieldBuilder().addBuilder(index, + fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation + .getDefaultInstance()); + } + /** + * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; + */ + public java.util.List getStopCancellationsBuilderList() { + return getStopCancellationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getStopCancellationsFieldBuilder() { + if (stopCancellationsBuilder_ == null) { + stopCancellationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + stopCancellations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + stopCancellations_ = null; + } + return stopCancellationsBuilder_; + } + + private java.util.List affectedJourneyPatterns_ = java.util.Collections + .emptyList(); + private void ensureAffectedJourneyPatternsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + affectedJourneyPatterns_ = new java.util.ArrayList( + affectedJourneyPatterns_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 affectedJourneyPatternsBuilder_; + + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public java.util.List getAffectedJourneyPatternsList() { + if (affectedJourneyPatternsBuilder_ == null) { + return java.util.Collections.unmodifiableList(affectedJourneyPatterns_); + } else { + return affectedJourneyPatternsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public int getAffectedJourneyPatternsCount() { + if (affectedJourneyPatternsBuilder_ == null) { + return affectedJourneyPatterns_.size(); + } else { + return affectedJourneyPatternsBuilder_.getCount(); + } + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern getAffectedJourneyPatterns( + int index) { + if (affectedJourneyPatternsBuilder_ == null) { + return affectedJourneyPatterns_.get(index); + } else { + return affectedJourneyPatternsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public Builder setAffectedJourneyPatterns(int index, + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern value) { + if (affectedJourneyPatternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedJourneyPatternsIsMutable(); + affectedJourneyPatterns_.set(index, value); + onChanged(); + } else { + affectedJourneyPatternsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public Builder setAffectedJourneyPatterns(int index, + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder builderForValue) { + if (affectedJourneyPatternsBuilder_ == null) { + ensureAffectedJourneyPatternsIsMutable(); + affectedJourneyPatterns_.set(index, builderForValue.build()); + onChanged(); + } else { + affectedJourneyPatternsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public Builder addAffectedJourneyPatterns( + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern value) { + if (affectedJourneyPatternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedJourneyPatternsIsMutable(); + affectedJourneyPatterns_.add(value); + onChanged(); + } else { + affectedJourneyPatternsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public Builder addAffectedJourneyPatterns(int index, + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern value) { + if (affectedJourneyPatternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedJourneyPatternsIsMutable(); + affectedJourneyPatterns_.add(index, value); + onChanged(); + } else { + affectedJourneyPatternsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public Builder addAffectedJourneyPatterns( + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder builderForValue) { + if (affectedJourneyPatternsBuilder_ == null) { + ensureAffectedJourneyPatternsIsMutable(); + affectedJourneyPatterns_.add(builderForValue.build()); + onChanged(); + } else { + affectedJourneyPatternsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public Builder addAffectedJourneyPatterns(int index, + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder builderForValue) { + if (affectedJourneyPatternsBuilder_ == null) { + ensureAffectedJourneyPatternsIsMutable(); + affectedJourneyPatterns_.add(index, builderForValue.build()); + onChanged(); + } else { + affectedJourneyPatternsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public Builder addAllAffectedJourneyPatterns( + java.lang.Iterable values) { + if (affectedJourneyPatternsBuilder_ == null) { + ensureAffectedJourneyPatternsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, affectedJourneyPatterns_); + onChanged(); + } else { + affectedJourneyPatternsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public Builder clearAffectedJourneyPatterns() { + if (affectedJourneyPatternsBuilder_ == null) { + affectedJourneyPatterns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + affectedJourneyPatternsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public Builder removeAffectedJourneyPatterns(int index) { + if (affectedJourneyPatternsBuilder_ == null) { + ensureAffectedJourneyPatternsIsMutable(); + affectedJourneyPatterns_.remove(index); + onChanged(); + } else { + affectedJourneyPatternsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder getAffectedJourneyPatternsBuilder( + int index) { + return getAffectedJourneyPatternsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPatternOrBuilder getAffectedJourneyPatternsOrBuilder( + int index) { + if (affectedJourneyPatternsBuilder_ == null) { + return affectedJourneyPatterns_.get(index); + } else { + return affectedJourneyPatternsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public java.util.List getAffectedJourneyPatternsOrBuilderList() { + if (affectedJourneyPatternsBuilder_ != null) { + return affectedJourneyPatternsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(affectedJourneyPatterns_); + } + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder addAffectedJourneyPatternsBuilder() { + return getAffectedJourneyPatternsFieldBuilder().addBuilder( + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.getDefaultInstance()); + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder addAffectedJourneyPatternsBuilder( + int index) { + return getAffectedJourneyPatternsFieldBuilder().addBuilder(index, + fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.getDefaultInstance()); + } + /** + * repeated .proto.JourneyPattern affected_journey_patterns = 2; + */ + public java.util.List getAffectedJourneyPatternsBuilderList() { + return getAffectedJourneyPatternsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getAffectedJourneyPatternsFieldBuilder() { + if (affectedJourneyPatternsBuilder_ == null) { + affectedJourneyPatternsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + affectedJourneyPatterns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), + isClean()); + affectedJourneyPatterns_ = null; + } + return affectedJourneyPatternsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.StopCancellations) + } + + // @@protoc_insertion_point(class_scope:proto.StopCancellations) + private static final fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations(); + } + + public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopCancellations parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TripCancellationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.TripCancellation) + com.google.protobuf.MessageOrBuilder { + + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + boolean hasSchemaVersion(); + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + int getSchemaVersion(); + + /** + * optional string trip_id = 2; + * @return Whether the tripId field is set. + */ + boolean hasTripId(); + /** + * optional string trip_id = 2; + * @return The tripId. + */ + java.lang.String getTripId(); + /** + * optional string trip_id = 2; + * @return The bytes for tripId. + */ + com.google.protobuf.ByteString getTripIdBytes(); + + /** + * optional string route_id = 3; + * @return Whether the routeId field is set. + */ + boolean hasRouteId(); + /** + * optional string route_id = 3; + * @return The routeId. + */ + java.lang.String getRouteId(); + /** + * optional string route_id = 3; + * @return The bytes for routeId. + */ + com.google.protobuf.ByteString getRouteIdBytes(); + + /** + * optional uint32 direction_id = 4; + * @return Whether the directionId field is set. + */ + boolean hasDirectionId(); + /** + * optional uint32 direction_id = 4; + * @return The directionId. + */ + int getDirectionId(); + + /** + * optional string start_time = 5; + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * optional string start_time = 5; + * @return The startTime. + */ + java.lang.String getStartTime(); + /** + * optional string start_time = 5; + * @return The bytes for startTime. + */ + com.google.protobuf.ByteString getStartTimeBytes(); + + /** + * optional string start_date = 6; + * @return Whether the startDate field is set. + */ + boolean hasStartDate(); + /** + * optional string start_date = 6; + * @return The startDate. + */ + java.lang.String getStartDate(); + /** + * optional string start_date = 6; + * @return The bytes for startDate. + */ + com.google.protobuf.ByteString getStartDateBytes(); + + /** + * required .proto.TripCancellation.Status status = 7; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * required .proto.TripCancellation.Status status = 7; + * @return The status. + */ + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status getStatus(); + + /** + * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; + * @return Whether the deviationCasesType field is set. + */ + boolean hasDeviationCasesType(); + /** + * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; + * @return The deviationCasesType. + */ + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType getDeviationCasesType(); + + /** + * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; + * @return Whether the affectedDeparturesType field is set. + */ + boolean hasAffectedDeparturesType(); + /** + * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; + * @return The affectedDeparturesType. + */ + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType getAffectedDeparturesType(); + + /** + * optional string title = 10; + * @return Whether the title field is set. + */ + boolean hasTitle(); + /** + * optional string title = 10; + * @return The title. + */ + java.lang.String getTitle(); + /** + * optional string title = 10; + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * optional string description = 11; + * @return Whether the description field is set. + */ + boolean hasDescription(); + /** + * optional string description = 11; + * @return The description. + */ + java.lang.String getDescription(); + /** + * optional string description = 11; + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * optional .proto.Category category = 12; + * @return Whether the category field is set. + */ + boolean hasCategory(); + /** + * optional .proto.Category category = 12; + * @return The category. + */ + fi.hsl.common.transitdata.proto.InternalMessages.Category getCategory(); + + /** + * optional .proto.TripCancellation.SubCategory sub_category = 13; + * @return Whether the subCategory field is set. + */ + boolean hasSubCategory(); + /** + * optional .proto.TripCancellation.SubCategory sub_category = 13; + * @return The subCategory. + */ + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory getSubCategory(); + + /** + * optional int64 deviation_case_id = 14; + * @return Whether the deviationCaseId field is set. + */ + boolean hasDeviationCaseId(); + /** + * optional int64 deviation_case_id = 14; + * @return The deviationCaseId. + */ + long getDeviationCaseId(); + } /** - * CHARGING_SERVICE = 33; + * Protobuf type {@code proto.TripCancellation} */ - CHARGING_SERVICE(33), - ; + public static final class TripCancellation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.TripCancellation) + TripCancellationOrBuilder { + private static final long serialVersionUID = 0L; + // Use TripCancellation.newBuilder() to construct. + private TripCancellation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TripCancellation() { + schemaVersion_ = 1; + tripId_ = ""; + routeId_ = ""; + startTime_ = ""; + startDate_ = ""; + status_ = 0; + deviationCasesType_ = 0; + affectedDeparturesType_ = 0; + title_ = ""; + description_ = ""; + category_ = 0; + subCategory_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TripCancellation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripCancellation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripCancellation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.class, + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Builder.class); + } + + /** + *
+         * This message is only used to either cancel a trip or mark a previously canceled trip as running as scheduled
+         * 
+ * + * Protobuf enum {@code proto.TripCancellation.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * RUNNING = 0; + */ + RUNNING(0), + /** + * CANCELED = 1; + */ + CANCELED(1),; + + /** + * RUNNING = 0; + */ + public static final int RUNNING_VALUE = 0; + /** + * CANCELED = 1; + */ + public static final int CANCELED_VALUE = 1; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Status forNumber(int value) { + switch (value) { + case 0 : + return RUNNING; + case 1 : + return CANCELED; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.getDescriptor().getEnumTypes() + .get(0); + } + + private static final Status[] VALUES = values(); + + public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.TripCancellation.Status) + } + + /** + * Protobuf enum {@code proto.TripCancellation.DeviationCasesType} + */ + public enum DeviationCasesType implements com.google.protobuf.ProtocolMessageEnum { + /** + * CANCEL_DEPARTURE = 0; + */ + CANCEL_DEPARTURE(0), + /** + * DETOUR = 1; + */ + DETOUR(1), + /** + * SKIPPED_STOP_CALLS = 2; + */ + SKIPPED_STOP_CALLS(2), + /** + * EARLY_DEPARTURE = 3; + */ + EARLY_DEPARTURE(3), + /** + * EARLY_DEPARTURE_FROM_TIMING_POINT = 4; + */ + EARLY_DEPARTURE_FROM_TIMING_POINT(4), + /** + * LATE_DEPARTURE = 5; + */ + LATE_DEPARTURE(5), + /** + * DEPARTURED_AFTER_NEXT_JOURNEY = 6; + */ + DEPARTURED_AFTER_NEXT_JOURNEY(6), + /** + * BLOCK_FIRST_DEPARTURE_LATE = 7; + */ + BLOCK_FIRST_DEPARTURE_LATE(7), + /** + * TIS_ERROR = 8; + */ + TIS_ERROR(8),; + + /** + * CANCEL_DEPARTURE = 0; + */ + public static final int CANCEL_DEPARTURE_VALUE = 0; + /** + * DETOUR = 1; + */ + public static final int DETOUR_VALUE = 1; + /** + * SKIPPED_STOP_CALLS = 2; + */ + public static final int SKIPPED_STOP_CALLS_VALUE = 2; + /** + * EARLY_DEPARTURE = 3; + */ + public static final int EARLY_DEPARTURE_VALUE = 3; + /** + * EARLY_DEPARTURE_FROM_TIMING_POINT = 4; + */ + public static final int EARLY_DEPARTURE_FROM_TIMING_POINT_VALUE = 4; + /** + * LATE_DEPARTURE = 5; + */ + public static final int LATE_DEPARTURE_VALUE = 5; + /** + * DEPARTURED_AFTER_NEXT_JOURNEY = 6; + */ + public static final int DEPARTURED_AFTER_NEXT_JOURNEY_VALUE = 6; + /** + * BLOCK_FIRST_DEPARTURE_LATE = 7; + */ + public static final int BLOCK_FIRST_DEPARTURE_LATE_VALUE = 7; + /** + * TIS_ERROR = 8; + */ + public static final int TIS_ERROR_VALUE = 8; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DeviationCasesType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DeviationCasesType forNumber(int value) { + switch (value) { + case 0 : + return CANCEL_DEPARTURE; + case 1 : + return DETOUR; + case 2 : + return SKIPPED_STOP_CALLS; + case 3 : + return EARLY_DEPARTURE; + case 4 : + return EARLY_DEPARTURE_FROM_TIMING_POINT; + case 5 : + return LATE_DEPARTURE; + case 6 : + return DEPARTURED_AFTER_NEXT_JOURNEY; + case 7 : + return BLOCK_FIRST_DEPARTURE_LATE; + case 8 : + return TIS_ERROR; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public DeviationCasesType findValueByNumber(int number) { + return DeviationCasesType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.getDescriptor().getEnumTypes() + .get(1); + } + + private static final DeviationCasesType[] VALUES = values(); + + public static DeviationCasesType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DeviationCasesType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.TripCancellation.DeviationCasesType) + } + + /** + * Protobuf enum {@code proto.TripCancellation.AffectedDeparturesType} + */ + public enum AffectedDeparturesType implements com.google.protobuf.ProtocolMessageEnum { + /** + * CANCEL_ENTIRE_DEPARTURE = 0; + */ + CANCEL_ENTIRE_DEPARTURE(0), + /** + * CANCEL_STOPS_FROM_START = 1; + */ + CANCEL_STOPS_FROM_START(1), + /** + * CANCEL_STOPS_FROM_MIDDLE = 2; + */ + CANCEL_STOPS_FROM_MIDDLE(2), + /** + * CANCEL_STOPS_FROM_END = 3; + */ + CANCEL_STOPS_FROM_END(3),; + + /** + * CANCEL_ENTIRE_DEPARTURE = 0; + */ + public static final int CANCEL_ENTIRE_DEPARTURE_VALUE = 0; + /** + * CANCEL_STOPS_FROM_START = 1; + */ + public static final int CANCEL_STOPS_FROM_START_VALUE = 1; + /** + * CANCEL_STOPS_FROM_MIDDLE = 2; + */ + public static final int CANCEL_STOPS_FROM_MIDDLE_VALUE = 2; + /** + * CANCEL_STOPS_FROM_END = 3; + */ + public static final int CANCEL_STOPS_FROM_END_VALUE = 3; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AffectedDeparturesType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AffectedDeparturesType forNumber(int value) { + switch (value) { + case 0 : + return CANCEL_ENTIRE_DEPARTURE; + case 1 : + return CANCEL_STOPS_FROM_START; + case 2 : + return CANCEL_STOPS_FROM_MIDDLE; + case 3 : + return CANCEL_STOPS_FROM_END; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public AffectedDeparturesType findValueByNumber(int number) { + return AffectedDeparturesType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.getDescriptor().getEnumTypes() + .get(2); + } + + private static final AffectedDeparturesType[] VALUES = values(); + + public static AffectedDeparturesType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AffectedDeparturesType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.TripCancellation.AffectedDeparturesType) + } + + /** + * Protobuf enum {@code proto.TripCancellation.SubCategory} + */ + public enum SubCategory implements com.google.protobuf.ProtocolMessageEnum { + /** + * BREAK_MALFUNCTION = 0; + */ + BREAK_MALFUNCTION(0), + /** + * OUT_OF_FUEL = 1; + */ + OUT_OF_FUEL(1), + /** + * FLUID_LEAKAGE = 2; + */ + FLUID_LEAKAGE(2), + /** + * ELECTRIC_MALFUNCTION = 3; + */ + ELECTRIC_MALFUNCTION(3), + /** + * ENGINE_MALFUNCTION = 4; + */ + ENGINE_MALFUNCTION(4), + /** + * OTHER_MALFUNCTION = 5; + */ + OTHER_MALFUNCTION(5), + /** + * OWN_FAULT = 6; + */ + OWN_FAULT(6), + /** + * OPPOSITE_FAULT = 7; + */ + OPPOSITE_FAULT(7), + /** + * FAULT_UNKNOWN = 8; + */ + FAULT_UNKNOWN(8), + /** + * STAFF_SHORTAGE = 9; + */ + STAFF_SHORTAGE(9), + /** + * ND_OPERATOR_PLANNING_ERROR = 10; + */ + ND_OPERATOR_PLANNING_ERROR(10), + /** + * DRIVER_LATE = 11; + */ + DRIVER_LATE(11), + /** + * INSUFFICIENT_INSTRUCTIONS_BY_OPERATOR = 12; + */ + INSUFFICIENT_INSTRUCTIONS_BY_OPERATOR(12), + /** + * INSUFFICIENT_INSTRUCTIONS_BY_AUTHORITY = 13; + */ + INSUFFICIENT_INSTRUCTIONS_BY_AUTHORITY(13), + /** + * NO_VEHICLE_AVAILABLE = 14; + */ + NO_VEHICLE_AVAILABLE(14), + /** + * ASSAULT_ON_DRIVER = 15; + */ + ASSAULT_ON_DRIVER(15), + /** + * ASSAULT_ON_PASSENGER = 16; + */ + ASSAULT_ON_PASSENGER(16), + /** + * ASSAULT_ON_VEHICLE = 17; + */ + ASSAULT_ON_VEHICLE(17), + /** + * PASSED_OUT_PASSENGER = 18; + */ + PASSED_OUT_PASSENGER(18), + /** + * OTHER_ASSAULT = 19; + */ + OTHER_ASSAULT(19), + /** + * UNDRIVEABLE_CONDITIONS = 20; + */ + UNDRIVEABLE_CONDITIONS(20), + /** + * STUCK_CAUSED_BY_SLIPPERY = 21; + */ + STUCK_CAUSED_BY_SLIPPERY(21), + /** + * CONGESTION_CAUSED_BY_WEATHER = 22; + */ + CONGESTION_CAUSED_BY_WEATHER(22), + /** + * SLIPPERY_TRACK = 23; + */ + SLIPPERY_TRACK(23), + /** + * ROAD_BLOCKED = 24; + */ + ROAD_BLOCKED(24), + /** + * VEHICLE_OFF_THE_ROAD_BY_DRIVER_ERROR = 25; + */ + VEHICLE_OFF_THE_ROAD_BY_DRIVER_ERROR(25), + /** + * VEHICLE_OFF_THE_ROAD_BY_OTHER_REASON = 26; + */ + VEHICLE_OFF_THE_ROAD_BY_OTHER_REASON(26), + /** + * MISSPARKED_VEHICLE = 27; + */ + MISSPARKED_VEHICLE(27), + /** + * CONGESTION_REASON_UKNOWN = 28; + */ + CONGESTION_REASON_UKNOWN(28), + /** + * CONGESTION_CAUSED_BY_ACCIDENT = 29; + */ + CONGESTION_CAUSED_BY_ACCIDENT(29), + /** + * DRIVER_SEIZURE = 30; + */ + DRIVER_SEIZURE(30), + /** + * PASSENGER_SEIZURE = 31; + */ + PASSENGER_SEIZURE(31), + /** + * PASSENGER_INJURED = 32; + */ + PASSENGER_INJURED(32), + /** + * OTHER_SEIZURE = 33; + */ + OTHER_SEIZURE(33), + /** + * DEVICE_ERROR = 34; + */ + DEVICE_ERROR(34), + /** + * OPERATOR_DEVICE_ERROR = 35; + */ + OPERATOR_DEVICE_ERROR(35), + /** + * WRONG_INFORMATION_IN_DEVICE = 36; + */ + WRONG_INFORMATION_IN_DEVICE(36), + /** + * ITS_SYSTEM_NOT_INSTALLED = 37; + */ + ITS_SYSTEM_NOT_INSTALLED(37), + /** + * USER_ERROR = 38; + */ + USER_ERROR(38), + /** + * FALSE_ALARM = 39; + */ + FALSE_ALARM(39), + /** + * OTHER_ITS_ERROR = 40; + */ + OTHER_ITS_ERROR(40), + /** + * DRIVER_ERROR = 41; + */ + DRIVER_ERROR(41), + /** + * INSUFFICIENT_CAPASITY = 42; + */ + INSUFFICIENT_CAPASITY(42), + /** + * OPERATOR_PERSONNEL_ON_STRIKE = 43; + */ + OPERATOR_PERSONNEL_ON_STRIKE(43), + /** + * OTHER_STRIKE = 44; + */ + OTHER_STRIKE(44), + /** + * OTHER_OPERATOR_REASON = 45; + */ + OTHER_OPERATOR_REASON(45), + /** + * UNKNOWN_CAUSE = 46; + */ + UNKNOWN_CAUSE(46), + /** + * DOOR_MALFUNCTION = 47; + */ + DOOR_MALFUNCTION(47), + /** + * OPERATOR_CHARGING_SERVICE = 48; + */ + OPERATOR_CHARGING_SERVICE(48), + /** + * OTHER_CHARGING_SERVICE = 49; + */ + OTHER_CHARGING_SERVICE(49),; + + /** + * BREAK_MALFUNCTION = 0; + */ + public static final int BREAK_MALFUNCTION_VALUE = 0; + /** + * OUT_OF_FUEL = 1; + */ + public static final int OUT_OF_FUEL_VALUE = 1; + /** + * FLUID_LEAKAGE = 2; + */ + public static final int FLUID_LEAKAGE_VALUE = 2; + /** + * ELECTRIC_MALFUNCTION = 3; + */ + public static final int ELECTRIC_MALFUNCTION_VALUE = 3; + /** + * ENGINE_MALFUNCTION = 4; + */ + public static final int ENGINE_MALFUNCTION_VALUE = 4; + /** + * OTHER_MALFUNCTION = 5; + */ + public static final int OTHER_MALFUNCTION_VALUE = 5; + /** + * OWN_FAULT = 6; + */ + public static final int OWN_FAULT_VALUE = 6; + /** + * OPPOSITE_FAULT = 7; + */ + public static final int OPPOSITE_FAULT_VALUE = 7; + /** + * FAULT_UNKNOWN = 8; + */ + public static final int FAULT_UNKNOWN_VALUE = 8; + /** + * STAFF_SHORTAGE = 9; + */ + public static final int STAFF_SHORTAGE_VALUE = 9; + /** + * ND_OPERATOR_PLANNING_ERROR = 10; + */ + public static final int ND_OPERATOR_PLANNING_ERROR_VALUE = 10; + /** + * DRIVER_LATE = 11; + */ + public static final int DRIVER_LATE_VALUE = 11; + /** + * INSUFFICIENT_INSTRUCTIONS_BY_OPERATOR = 12; + */ + public static final int INSUFFICIENT_INSTRUCTIONS_BY_OPERATOR_VALUE = 12; + /** + * INSUFFICIENT_INSTRUCTIONS_BY_AUTHORITY = 13; + */ + public static final int INSUFFICIENT_INSTRUCTIONS_BY_AUTHORITY_VALUE = 13; + /** + * NO_VEHICLE_AVAILABLE = 14; + */ + public static final int NO_VEHICLE_AVAILABLE_VALUE = 14; + /** + * ASSAULT_ON_DRIVER = 15; + */ + public static final int ASSAULT_ON_DRIVER_VALUE = 15; + /** + * ASSAULT_ON_PASSENGER = 16; + */ + public static final int ASSAULT_ON_PASSENGER_VALUE = 16; + /** + * ASSAULT_ON_VEHICLE = 17; + */ + public static final int ASSAULT_ON_VEHICLE_VALUE = 17; + /** + * PASSED_OUT_PASSENGER = 18; + */ + public static final int PASSED_OUT_PASSENGER_VALUE = 18; + /** + * OTHER_ASSAULT = 19; + */ + public static final int OTHER_ASSAULT_VALUE = 19; + /** + * UNDRIVEABLE_CONDITIONS = 20; + */ + public static final int UNDRIVEABLE_CONDITIONS_VALUE = 20; + /** + * STUCK_CAUSED_BY_SLIPPERY = 21; + */ + public static final int STUCK_CAUSED_BY_SLIPPERY_VALUE = 21; + /** + * CONGESTION_CAUSED_BY_WEATHER = 22; + */ + public static final int CONGESTION_CAUSED_BY_WEATHER_VALUE = 22; + /** + * SLIPPERY_TRACK = 23; + */ + public static final int SLIPPERY_TRACK_VALUE = 23; + /** + * ROAD_BLOCKED = 24; + */ + public static final int ROAD_BLOCKED_VALUE = 24; + /** + * VEHICLE_OFF_THE_ROAD_BY_DRIVER_ERROR = 25; + */ + public static final int VEHICLE_OFF_THE_ROAD_BY_DRIVER_ERROR_VALUE = 25; + /** + * VEHICLE_OFF_THE_ROAD_BY_OTHER_REASON = 26; + */ + public static final int VEHICLE_OFF_THE_ROAD_BY_OTHER_REASON_VALUE = 26; + /** + * MISSPARKED_VEHICLE = 27; + */ + public static final int MISSPARKED_VEHICLE_VALUE = 27; + /** + * CONGESTION_REASON_UKNOWN = 28; + */ + public static final int CONGESTION_REASON_UKNOWN_VALUE = 28; + /** + * CONGESTION_CAUSED_BY_ACCIDENT = 29; + */ + public static final int CONGESTION_CAUSED_BY_ACCIDENT_VALUE = 29; + /** + * DRIVER_SEIZURE = 30; + */ + public static final int DRIVER_SEIZURE_VALUE = 30; + /** + * PASSENGER_SEIZURE = 31; + */ + public static final int PASSENGER_SEIZURE_VALUE = 31; + /** + * PASSENGER_INJURED = 32; + */ + public static final int PASSENGER_INJURED_VALUE = 32; + /** + * OTHER_SEIZURE = 33; + */ + public static final int OTHER_SEIZURE_VALUE = 33; + /** + * DEVICE_ERROR = 34; + */ + public static final int DEVICE_ERROR_VALUE = 34; + /** + * OPERATOR_DEVICE_ERROR = 35; + */ + public static final int OPERATOR_DEVICE_ERROR_VALUE = 35; + /** + * WRONG_INFORMATION_IN_DEVICE = 36; + */ + public static final int WRONG_INFORMATION_IN_DEVICE_VALUE = 36; + /** + * ITS_SYSTEM_NOT_INSTALLED = 37; + */ + public static final int ITS_SYSTEM_NOT_INSTALLED_VALUE = 37; + /** + * USER_ERROR = 38; + */ + public static final int USER_ERROR_VALUE = 38; + /** + * FALSE_ALARM = 39; + */ + public static final int FALSE_ALARM_VALUE = 39; + /** + * OTHER_ITS_ERROR = 40; + */ + public static final int OTHER_ITS_ERROR_VALUE = 40; + /** + * DRIVER_ERROR = 41; + */ + public static final int DRIVER_ERROR_VALUE = 41; + /** + * INSUFFICIENT_CAPASITY = 42; + */ + public static final int INSUFFICIENT_CAPASITY_VALUE = 42; + /** + * OPERATOR_PERSONNEL_ON_STRIKE = 43; + */ + public static final int OPERATOR_PERSONNEL_ON_STRIKE_VALUE = 43; + /** + * OTHER_STRIKE = 44; + */ + public static final int OTHER_STRIKE_VALUE = 44; + /** + * OTHER_OPERATOR_REASON = 45; + */ + public static final int OTHER_OPERATOR_REASON_VALUE = 45; + /** + * UNKNOWN_CAUSE = 46; + */ + public static final int UNKNOWN_CAUSE_VALUE = 46; + /** + * DOOR_MALFUNCTION = 47; + */ + public static final int DOOR_MALFUNCTION_VALUE = 47; + /** + * OPERATOR_CHARGING_SERVICE = 48; + */ + public static final int OPERATOR_CHARGING_SERVICE_VALUE = 48; + /** + * OTHER_CHARGING_SERVICE = 49; + */ + public static final int OTHER_CHARGING_SERVICE_VALUE = 49; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SubCategory valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SubCategory forNumber(int value) { + switch (value) { + case 0 : + return BREAK_MALFUNCTION; + case 1 : + return OUT_OF_FUEL; + case 2 : + return FLUID_LEAKAGE; + case 3 : + return ELECTRIC_MALFUNCTION; + case 4 : + return ENGINE_MALFUNCTION; + case 5 : + return OTHER_MALFUNCTION; + case 6 : + return OWN_FAULT; + case 7 : + return OPPOSITE_FAULT; + case 8 : + return FAULT_UNKNOWN; + case 9 : + return STAFF_SHORTAGE; + case 10 : + return ND_OPERATOR_PLANNING_ERROR; + case 11 : + return DRIVER_LATE; + case 12 : + return INSUFFICIENT_INSTRUCTIONS_BY_OPERATOR; + case 13 : + return INSUFFICIENT_INSTRUCTIONS_BY_AUTHORITY; + case 14 : + return NO_VEHICLE_AVAILABLE; + case 15 : + return ASSAULT_ON_DRIVER; + case 16 : + return ASSAULT_ON_PASSENGER; + case 17 : + return ASSAULT_ON_VEHICLE; + case 18 : + return PASSED_OUT_PASSENGER; + case 19 : + return OTHER_ASSAULT; + case 20 : + return UNDRIVEABLE_CONDITIONS; + case 21 : + return STUCK_CAUSED_BY_SLIPPERY; + case 22 : + return CONGESTION_CAUSED_BY_WEATHER; + case 23 : + return SLIPPERY_TRACK; + case 24 : + return ROAD_BLOCKED; + case 25 : + return VEHICLE_OFF_THE_ROAD_BY_DRIVER_ERROR; + case 26 : + return VEHICLE_OFF_THE_ROAD_BY_OTHER_REASON; + case 27 : + return MISSPARKED_VEHICLE; + case 28 : + return CONGESTION_REASON_UKNOWN; + case 29 : + return CONGESTION_CAUSED_BY_ACCIDENT; + case 30 : + return DRIVER_SEIZURE; + case 31 : + return PASSENGER_SEIZURE; + case 32 : + return PASSENGER_INJURED; + case 33 : + return OTHER_SEIZURE; + case 34 : + return DEVICE_ERROR; + case 35 : + return OPERATOR_DEVICE_ERROR; + case 36 : + return WRONG_INFORMATION_IN_DEVICE; + case 37 : + return ITS_SYSTEM_NOT_INSTALLED; + case 38 : + return USER_ERROR; + case 39 : + return FALSE_ALARM; + case 40 : + return OTHER_ITS_ERROR; + case 41 : + return DRIVER_ERROR; + case 42 : + return INSUFFICIENT_CAPASITY; + case 43 : + return OPERATOR_PERSONNEL_ON_STRIKE; + case 44 : + return OTHER_STRIKE; + case 45 : + return OTHER_OPERATOR_REASON; + case 46 : + return UNKNOWN_CAUSE; + case 47 : + return DOOR_MALFUNCTION; + case 48 : + return OPERATOR_CHARGING_SERVICE; + case 49 : + return OTHER_CHARGING_SERVICE; + default : + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public SubCategory findValueByNumber(int number) { + return SubCategory.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.getDescriptor().getEnumTypes() + .get(3); + } + + private static final SubCategory[] VALUES = values(); + + public static SubCategory valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SubCategory(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.TripCancellation.SubCategory) + } + + private int bitField0_; + public static final int SCHEMAVERSION_FIELD_NUMBER = 1; + private int schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + + public static final int TRIP_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object tripId_ = ""; + /** + * optional string trip_id = 2; + * @return Whether the tripId field is set. + */ + @java.lang.Override + public boolean hasTripId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string trip_id = 2; + * @return The tripId. + */ + @java.lang.Override + public java.lang.String getTripId() { + java.lang.Object ref = tripId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + tripId_ = s; + } + return s; + } + } + /** + * optional string trip_id = 2; + * @return The bytes for tripId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTripIdBytes() { + java.lang.Object ref = tripId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tripId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROUTE_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object routeId_ = ""; + /** + * optional string route_id = 3; + * @return Whether the routeId field is set. + */ + @java.lang.Override + public boolean hasRouteId() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string route_id = 3; + * @return The routeId. + */ + @java.lang.Override + public java.lang.String getRouteId() { + java.lang.Object ref = routeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + routeId_ = s; + } + return s; + } + } + /** + * optional string route_id = 3; + * @return The bytes for routeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRouteIdBytes() { + java.lang.Object ref = routeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIRECTION_ID_FIELD_NUMBER = 4; + private int directionId_ = 0; + /** + * optional uint32 direction_id = 4; + * @return Whether the directionId field is set. + */ + @java.lang.Override + public boolean hasDirectionId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional uint32 direction_id = 4; + * @return The directionId. + */ + @java.lang.Override + public int getDirectionId() { + return directionId_; + } + + public static final int START_TIME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object startTime_ = ""; + /** + * optional string start_time = 5; + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string start_time = 5; + * @return The startTime. + */ + @java.lang.Override + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startTime_ = s; + } + return s; + } + } + /** + * optional string start_time = 5; + * @return The bytes for startTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_DATE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object startDate_ = ""; + /** + * optional string start_date = 6; + * @return Whether the startDate field is set. + */ + @java.lang.Override + public boolean hasStartDate() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional string start_date = 6; + * @return The startDate. + */ + @java.lang.Override + public java.lang.String getStartDate() { + java.lang.Object ref = startDate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startDate_ = s; + } + return s; + } + } + /** + * optional string start_date = 6; + * @return The bytes for startDate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartDateBytes() { + java.lang.Object ref = startDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 7; + private int status_ = 0; + /** + * required .proto.TripCancellation.Status status = 7; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * required .proto.TripCancellation.Status status = 7; + * @return The status. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status getStatus() { + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status + .forNumber(status_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status.RUNNING + : result; + } + + public static final int DEVIATION_CASES_TYPE_FIELD_NUMBER = 8; + private int deviationCasesType_ = 0; + /** + * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; + * @return Whether the deviationCasesType field is set. + */ + @java.lang.Override + public boolean hasDeviationCasesType() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; + * @return The deviationCasesType. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType getDeviationCasesType() { + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType + .forNumber(deviationCasesType_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType.CANCEL_DEPARTURE + : result; + } + + public static final int AFFECTED_DEPARTURES_TYPE_FIELD_NUMBER = 9; + private int affectedDeparturesType_ = 0; + /** + * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; + * @return Whether the affectedDeparturesType field is set. + */ + @java.lang.Override + public boolean hasAffectedDeparturesType() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; + * @return The affectedDeparturesType. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType getAffectedDeparturesType() { + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType + .forNumber(affectedDeparturesType_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType.CANCEL_ENTIRE_DEPARTURE + : result; + } + + public static final int TITLE_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + /** + * optional string title = 10; + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional string title = 10; + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + title_ = s; + } + return s; + } + } + /** + * optional string title = 10; + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * VEHICLE_BREAKDOWN = 0; - */ - public static final int VEHICLE_BREAKDOWN_VALUE = 0; - /** - * ACCIDENT = 1; - */ - public static final int ACCIDENT_VALUE = 1; - /** - * NO_DRIVER = 2; - */ - public static final int NO_DRIVER_VALUE = 2; - /** - * ASSAULT = 3; - */ - public static final int ASSAULT_VALUE = 3; - /** - * WEATHER = 4; - */ - public static final int WEATHER_VALUE = 4; - /** - * VEHICLE_OFF_THE_ROAD = 5; - */ - public static final int VEHICLE_OFF_THE_ROAD_VALUE = 5; - /** - * SEIZURE = 6; - */ - public static final int SEIZURE_VALUE = 6; - /** - * ITS_SYSTEM_ERROR = 7; - */ - public static final int ITS_SYSTEM_ERROR_VALUE = 7; - /** - * OTHER_DRIVER_ERROR = 8; - */ - public static final int OTHER_DRIVER_ERROR_VALUE = 8; - /** - * TOO_MANY_PASSENGERS = 9; - */ - public static final int TOO_MANY_PASSENGERS_VALUE = 9; - /** - * STRIKE = 10; - */ - public static final int STRIKE_VALUE = 10; - /** - * OTHER = 11; - */ - public static final int OTHER_VALUE = 11; - /** - * EARLIER_DISRUPTION = 12; - */ - public static final int EARLIER_DISRUPTION_VALUE = 12; - /** - * NO_TRAFFIC_DISRUPTION = 13; - */ - public static final int NO_TRAFFIC_DISRUPTION_VALUE = 13; - /** - * TRACK_BLOCKED = 14; - */ - public static final int TRACK_BLOCKED_VALUE = 14; - /** - * STAFF_DEFICIT = 15; - */ - public static final int STAFF_DEFICIT_VALUE = 15; - /** - * DISTURBANCE = 16; - */ - public static final int DISTURBANCE_VALUE = 16; - /** - * VEHICLE_DEFICIT = 17; - */ - public static final int VEHICLE_DEFICIT_VALUE = 17; - /** - * ROAD_CLOSED = 18; - */ - public static final int ROAD_CLOSED_VALUE = 18; - /** - * ROAD_TRENCH = 19; - */ - public static final int ROAD_TRENCH_VALUE = 19; - /** - * TRACK_MAINTENANCE = 20; - */ - public static final int TRACK_MAINTENANCE_VALUE = 20; - /** - * TRAFFIC_ACCIDENT = 21; - */ - public static final int TRAFFIC_ACCIDENT_VALUE = 21; - /** - * TRAFFIC_JAM = 22; - */ - public static final int TRAFFIC_JAM_VALUE = 22; - /** - * MEDICAL_INCIDENT = 23; - */ - public static final int MEDICAL_INCIDENT_VALUE = 23; - /** - * WEATHER_CONDITIONS = 24; - */ - public static final int WEATHER_CONDITIONS_VALUE = 24; - /** - * TECHNICAL_FAILURE = 25; - */ - public static final int TECHNICAL_FAILURE_VALUE = 25; - /** - * TEST = 26; - */ - public static final int TEST_VALUE = 26; - /** - * ROAD_MAINTENANCE = 27; - */ - public static final int ROAD_MAINTENANCE_VALUE = 27; - /** - * SWITCH_FAILURE = 28; - */ - public static final int SWITCH_FAILURE_VALUE = 28; - /** - * STATE_VISIT = 29; - */ - public static final int STATE_VISIT_VALUE = 29; - /** - * POWER_FAILURE = 30; - */ - public static final int POWER_FAILURE_VALUE = 30; - /** - * MISPARKED_VEHICLE = 31; - */ - public static final int MISPARKED_VEHICLE_VALUE = 31; - /** - * PUBLIC_EVENT = 32; - */ - public static final int PUBLIC_EVENT_VALUE = 32; - /** - * CHARGING_SERVICE = 33; - */ - public static final int CHARGING_SERVICE_VALUE = 33; + public static final int DESCRIPTION_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * optional string description = 11; + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional string description = 11; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + description_ = s; + } + return s; + } + } + /** + * optional string description = 11; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CATEGORY_FIELD_NUMBER = 12; + private int category_ = 0; + /** + * optional .proto.Category category = 12; + * @return Whether the category field is set. + */ + @java.lang.Override + public boolean hasCategory() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional .proto.Category category = 12; + * @return The category. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Category getCategory() { + fi.hsl.common.transitdata.proto.InternalMessages.Category result = fi.hsl.common.transitdata.proto.InternalMessages.Category + .forNumber(category_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.Category.VEHICLE_BREAKDOWN + : result; + } + + public static final int SUB_CATEGORY_FIELD_NUMBER = 13; + private int subCategory_ = 0; + /** + * optional .proto.TripCancellation.SubCategory sub_category = 13; + * @return Whether the subCategory field is set. + */ + @java.lang.Override + public boolean hasSubCategory() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional .proto.TripCancellation.SubCategory sub_category = 13; + * @return The subCategory. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory getSubCategory() { + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory + .forNumber(subCategory_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory.BREAK_MALFUNCTION + : result; + } + + public static final int DEVIATION_CASE_ID_FIELD_NUMBER = 14; + private long deviationCaseId_ = 0L; + /** + * optional int64 deviation_case_id = 14; + * @return Whether the deviationCaseId field is set. + */ + @java.lang.Override + public boolean hasDeviationCaseId() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * optional int64 deviation_case_id = 14; + * @return The deviationCaseId. + */ + @java.lang.Override + public long getDeviationCaseId() { + return deviationCaseId_; + } + + 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 (!hasSchemaVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStatus()) { + 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.writeInt32(1, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tripId_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, routeId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeUInt32(4, directionId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, startTime_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, startDate_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeEnum(7, status_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeEnum(8, deviationCasesType_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeEnum(9, affectedDeparturesType_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, title_); + } + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, description_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeEnum(12, category_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeEnum(13, subCategory_); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeInt64(14, deviationCaseId_); + } + 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, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tripId_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, routeId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, directionId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, startTime_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, startDate_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, status_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, deviationCasesType_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, affectedDeparturesType_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, title_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, description_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, category_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, subCategory_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, deviationCaseId_); + } + 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 fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation other = (fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation) obj; + + if (hasSchemaVersion() != other.hasSchemaVersion()) + return false; + if (hasSchemaVersion()) { + if (getSchemaVersion() != other.getSchemaVersion()) + return false; + } + 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 (hasStatus() != other.hasStatus()) + return false; + if (hasStatus()) { + if (status_ != other.status_) + return false; + } + if (hasDeviationCasesType() != other.hasDeviationCasesType()) + return false; + if (hasDeviationCasesType()) { + if (deviationCasesType_ != other.deviationCasesType_) + return false; + } + if (hasAffectedDeparturesType() != other.hasAffectedDeparturesType()) + return false; + if (hasAffectedDeparturesType()) { + if (affectedDeparturesType_ != other.affectedDeparturesType_) + return false; + } + if (hasTitle() != other.hasTitle()) + return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) + return false; + } + if (hasDescription() != other.hasDescription()) + return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) + return false; + } + if (hasCategory() != other.hasCategory()) + return false; + if (hasCategory()) { + if (category_ != other.category_) + return false; + } + if (hasSubCategory() != other.hasSubCategory()) + return false; + if (hasSubCategory()) { + if (subCategory_ != other.subCategory_) + return false; + } + if (hasDeviationCaseId() != other.hasDeviationCaseId()) + return false; + if (hasDeviationCaseId()) { + if (getDeviationCaseId() != other.getDeviationCaseId()) + 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 (hasSchemaVersion()) { + hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion(); + } + 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 (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasDeviationCasesType()) { + hash = (37 * hash) + DEVIATION_CASES_TYPE_FIELD_NUMBER; + hash = (53 * hash) + deviationCasesType_; + } + if (hasAffectedDeparturesType()) { + hash = (37 * hash) + AFFECTED_DEPARTURES_TYPE_FIELD_NUMBER; + hash = (53 * hash) + affectedDeparturesType_; + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasCategory()) { + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + category_; + } + if (hasSubCategory()) { + hash = (37 * hash) + SUB_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + subCategory_; + } + if (hasDeviationCaseId()) { + hash = (37 * hash) + DEVIATION_CASE_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDeviationCaseId()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.TripCancellation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.TripCancellation) + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripCancellation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripCancellation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.class, + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Builder.class); + } + + // Construct using fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schemaVersion_ = 1; + tripId_ = ""; + routeId_ = ""; + directionId_ = 0; + startTime_ = ""; + startDate_ = ""; + status_ = 0; + deviationCasesType_ = 0; + affectedDeparturesType_ = 0; + title_ = ""; + description_ = ""; + category_ = 0; + subCategory_ = 0; + deviationCaseId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripCancellation_descriptor; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation build() { + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation buildPartial() { + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation result = new fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schemaVersion_ = schemaVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tripId_ = tripId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.routeId_ = routeId_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.directionId_ = directionId_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.startTime_ = startTime_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.startDate_ = startDate_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.deviationCasesType_ = deviationCasesType_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.affectedDeparturesType_ = affectedDeparturesType_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.description_ = description_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.category_ = category_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.subCategory_ = subCategory_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.deviationCaseId_ = deviationCaseId_; + to_bitField0_ |= 0x00002000; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation) { + return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation other) { + if (other == fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.getDefaultInstance()) + return this; + if (other.hasSchemaVersion()) { + setSchemaVersion(other.getSchemaVersion()); + } + if (other.hasTripId()) { + tripId_ = other.tripId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRouteId()) { + routeId_ = other.routeId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasDirectionId()) { + setDirectionId(other.getDirectionId()); + } + if (other.hasStartTime()) { + startTime_ = other.startTime_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasStartDate()) { + startDate_ = other.startDate_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasStatus()) { + setStatus(other.getStatus()); + } + if (other.hasDeviationCasesType()) { + setDeviationCasesType(other.getDeviationCasesType()); + } + if (other.hasAffectedDeparturesType()) { + setAffectedDeparturesType(other.getAffectedDeparturesType()); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasDescription()) { + description_ = other.description_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasCategory()) { + setCategory(other.getCategory()); + } + if (other.hasSubCategory()) { + setSubCategory(other.getSubCategory()); + } + if (other.hasDeviationCaseId()) { + setDeviationCaseId(other.getDeviationCaseId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + @java.lang.Override + public final boolean isInitialized() { + if (!hasSchemaVersion()) { + return false; + } + if (!hasStatus()) { + return false; + } + return true; + } - public final int getNumber() { - return value; - } + @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 : { + schemaVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18 : { + tripId_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26 : { + routeId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32 : { + directionId_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42 : { + startTime_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50 : { + startDate_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status tmpValue = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(7, tmpRaw); + } else { + status_ = tmpRaw; + bitField0_ |= 0x00000040; + } + break; + } // case 56 + case 64 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType tmpValue = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(8, tmpRaw); + } else { + deviationCasesType_ = tmpRaw; + bitField0_ |= 0x00000080; + } + break; + } // case 64 + case 72 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType tmpValue = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(9, tmpRaw); + } else { + affectedDeparturesType_ = tmpRaw; + bitField0_ |= 0x00000100; + } + break; + } // case 72 + case 82 : { + title_ = input.readBytes(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90 : { + description_ = input.readBytes(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 96 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.transitdata.proto.InternalMessages.Category tmpValue = fi.hsl.common.transitdata.proto.InternalMessages.Category + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(12, tmpRaw); + } else { + category_ = tmpRaw; + bitField0_ |= 0x00000800; + } + break; + } // case 96 + case 104 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory tmpValue = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(13, tmpRaw); + } else { + subCategory_ = tmpRaw; + bitField0_ |= 0x00001000; + } + break; + } // case 104 + case 112 : { + deviationCaseId_ = input.readInt64(); + bitField0_ |= 0x00002000; + 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 int schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(int value) { + + schemaVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + schemaVersion_ = 1; + onChanged(); + return this; + } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Category valueOf(int value) { - return forNumber(value); - } + private java.lang.Object tripId_ = ""; + /** + * optional string trip_id = 2; + * @return Whether the tripId field is set. + */ + public boolean hasTripId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string trip_id = 2; + * @return The tripId. + */ + public java.lang.String getTripId() { + java.lang.Object ref = tripId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + tripId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string trip_id = 2; + * @return The bytes for tripId. + */ + public com.google.protobuf.ByteString getTripIdBytes() { + java.lang.Object ref = tripId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + tripId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string trip_id = 2; + * @param value The tripId to set. + * @return This builder for chaining. + */ + public Builder setTripId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tripId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional string trip_id = 2; + * @return This builder for chaining. + */ + public Builder clearTripId() { + tripId_ = getDefaultInstance().getTripId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * optional string trip_id = 2; + * @param value The bytes for tripId to set. + * @return This builder for chaining. + */ + public Builder setTripIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + tripId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Category forNumber(int value) { - switch (value) { - case 0: return VEHICLE_BREAKDOWN; - case 1: return ACCIDENT; - case 2: return NO_DRIVER; - case 3: return ASSAULT; - case 4: return WEATHER; - case 5: return VEHICLE_OFF_THE_ROAD; - case 6: return SEIZURE; - case 7: return ITS_SYSTEM_ERROR; - case 8: return OTHER_DRIVER_ERROR; - case 9: return TOO_MANY_PASSENGERS; - case 10: return STRIKE; - case 11: return OTHER; - case 12: return EARLIER_DISRUPTION; - case 13: return NO_TRAFFIC_DISRUPTION; - case 14: return TRACK_BLOCKED; - case 15: return STAFF_DEFICIT; - case 16: return DISTURBANCE; - case 17: return VEHICLE_DEFICIT; - case 18: return ROAD_CLOSED; - case 19: return ROAD_TRENCH; - case 20: return TRACK_MAINTENANCE; - case 21: return TRAFFIC_ACCIDENT; - case 22: return TRAFFIC_JAM; - case 23: return MEDICAL_INCIDENT; - case 24: return WEATHER_CONDITIONS; - case 25: return TECHNICAL_FAILURE; - case 26: return TEST; - case 27: return ROAD_MAINTENANCE; - case 28: return SWITCH_FAILURE; - case 29: return STATE_VISIT; - case 30: return POWER_FAILURE; - case 31: return MISPARKED_VEHICLE; - case 32: return PUBLIC_EVENT; - case 33: return CHARGING_SERVICE; - default: return null; - } - } + private java.lang.Object routeId_ = ""; + /** + * optional string route_id = 3; + * @return Whether the routeId field is set. + */ + public boolean hasRouteId() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string route_id = 3; + * @return The routeId. + */ + public java.lang.String getRouteId() { + java.lang.Object ref = routeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + routeId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string route_id = 3; + * @return The bytes for routeId. + */ + public com.google.protobuf.ByteString getRouteIdBytes() { + java.lang.Object ref = routeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + routeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string route_id = 3; + * @param value The routeId to set. + * @return This builder for chaining. + */ + public Builder setRouteId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + routeId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional string route_id = 3; + * @return This builder for chaining. + */ + public Builder clearRouteId() { + routeId_ = getDefaultInstance().getRouteId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * optional string route_id = 3; + * @param value The bytes for routeId to set. + * @return This builder for chaining. + */ + public Builder setRouteIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + routeId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Category> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Category findValueByNumber(int number) { - return Category.forNumber(number); + private int directionId_; + /** + * optional uint32 direction_id = 4; + * @return Whether the directionId field is set. + */ + @java.lang.Override + public boolean hasDirectionId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional uint32 direction_id = 4; + * @return The directionId. + */ + @java.lang.Override + public int getDirectionId() { + return directionId_; + } + /** + * optional uint32 direction_id = 4; + * @param value The directionId to set. + * @return This builder for chaining. + */ + public Builder setDirectionId(int value) { + + directionId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional uint32 direction_id = 4; + * @return This builder for chaining. + */ + public Builder clearDirectionId() { + bitField0_ = (bitField0_ & ~0x00000008); + directionId_ = 0; + onChanged(); + return this; } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.getDescriptor().getEnumTypes().get(0); - } + private java.lang.Object startTime_ = ""; + /** + * optional string start_time = 5; + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string start_time = 5; + * @return The startTime. + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startTime_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string start_time = 5; + * @return The bytes for startTime. + */ + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string start_time = 5; + * @param value The startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional string start_time = 5; + * @return This builder for chaining. + */ + public Builder clearStartTime() { + startTime_ = getDefaultInstance().getStartTime(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * optional string start_time = 5; + * @param value The bytes for startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - private static final Category[] VALUES = values(); + private java.lang.Object startDate_ = ""; + /** + * optional string start_date = 6; + * @return Whether the startDate field is set. + */ + public boolean hasStartDate() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional string start_date = 6; + * @return The startDate. + */ + public java.lang.String getStartDate() { + java.lang.Object ref = startDate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startDate_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string start_date = 6; + * @return The bytes for startDate. + */ + public com.google.protobuf.ByteString getStartDateBytes() { + java.lang.Object ref = startDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + startDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string start_date = 6; + * @param value The startDate to set. + * @return This builder for chaining. + */ + public Builder setStartDate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional string start_date = 6; + * @return This builder for chaining. + */ + public Builder clearStartDate() { + startDate_ = getDefaultInstance().getStartDate(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * optional string start_date = 6; + * @param value The bytes for startDate to set. + * @return This builder for chaining. + */ + public Builder setStartDateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } - public static Category valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } + private int status_ = 0; + /** + * required .proto.TripCancellation.Status status = 7; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * required .proto.TripCancellation.Status status = 7; + * @return The status. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status getStatus() { + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status + .forNumber(status_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status.RUNNING + : result; + } + /** + * required .proto.TripCancellation.Status status = 7; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * required .proto.TripCancellation.Status status = 7; + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000040); + status_ = 0; + onChanged(); + return this; + } - private final int value; + private int deviationCasesType_ = 0; + /** + * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; + * @return Whether the deviationCasesType field is set. + */ + @java.lang.Override + public boolean hasDeviationCasesType() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; + * @return The deviationCasesType. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType getDeviationCasesType() { + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType + .forNumber(deviationCasesType_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType.CANCEL_DEPARTURE + : result; + } + /** + * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; + * @param value The deviationCasesType to set. + * @return This builder for chaining. + */ + public Builder setDeviationCasesType( + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + deviationCasesType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; + * @return This builder for chaining. + */ + public Builder clearDeviationCasesType() { + bitField0_ = (bitField0_ & ~0x00000080); + deviationCasesType_ = 0; + onChanged(); + return this; + } - private Category(int value) { - this.value = value; - } + private int affectedDeparturesType_ = 0; + /** + * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; + * @return Whether the affectedDeparturesType field is set. + */ + @java.lang.Override + public boolean hasAffectedDeparturesType() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; + * @return The affectedDeparturesType. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType getAffectedDeparturesType() { + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType + .forNumber(affectedDeparturesType_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType.CANCEL_ENTIRE_DEPARTURE + : result; + } + /** + * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; + * @param value The affectedDeparturesType to set. + * @return This builder for chaining. + */ + public Builder setAffectedDeparturesType( + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + affectedDeparturesType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; + * @return This builder for chaining. + */ + public Builder clearAffectedDeparturesType() { + bitField0_ = (bitField0_ & ~0x00000100); + affectedDeparturesType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * optional string title = 10; + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional string title = 10; + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + title_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string title = 10; + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string title = 10; + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * optional string title = 10; + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * optional string title = 10; + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } - // @@protoc_insertion_point(enum_scope:proto.Category) - } + private java.lang.Object description_ = ""; + /** + * optional string description = 11; + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional string description = 11; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + description_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string description = 11; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string description = 11; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * optional string description = 11; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * optional string description = 11; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } - public interface TripInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.TripInfo) - com.google.protobuf.MessageOrBuilder { + private int category_ = 0; + /** + * optional .proto.Category category = 12; + * @return Whether the category field is set. + */ + @java.lang.Override + public boolean hasCategory() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional .proto.Category category = 12; + * @return The category. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Category getCategory() { + fi.hsl.common.transitdata.proto.InternalMessages.Category result = fi.hsl.common.transitdata.proto.InternalMessages.Category + .forNumber(category_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.Category.VEHICLE_BREAKDOWN + : result; + } + /** + * optional .proto.Category category = 12; + * @param value The category to set. + * @return This builder for chaining. + */ + public Builder setCategory(fi.hsl.common.transitdata.proto.InternalMessages.Category value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + category_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.Category category = 12; + * @return This builder for chaining. + */ + public Builder clearCategory() { + bitField0_ = (bitField0_ & ~0x00000800); + category_ = 0; + onChanged(); + return this; + } - /** - *
-     * Unique key for the trip
-     * For example: Dated Vehicle Journey ID or Journey Section ID
-     * 
- * - * required string trip_id = 1; - * @return Whether the tripId field is set. - */ - boolean hasTripId(); - /** - *
-     * Unique key for the trip
-     * For example: Dated Vehicle Journey ID or Journey Section ID
-     * 
- * - * required string trip_id = 1; - * @return The tripId. - */ - java.lang.String getTripId(); - /** - *
-     * Unique key for the trip
-     * For example: Dated Vehicle Journey ID or Journey Section ID
-     * 
- * - * required string trip_id = 1; - * @return The bytes for tripId. - */ - com.google.protobuf.ByteString - getTripIdBytes(); + private int subCategory_ = 0; + /** + * optional .proto.TripCancellation.SubCategory sub_category = 13; + * @return Whether the subCategory field is set. + */ + @java.lang.Override + public boolean hasSubCategory() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional .proto.TripCancellation.SubCategory sub_category = 13; + * @return The subCategory. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory getSubCategory() { + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory + .forNumber(subCategory_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory.BREAK_MALFUNCTION + : result; + } + /** + * optional .proto.TripCancellation.SubCategory sub_category = 13; + * @param value The subCategory to set. + * @return This builder for chaining. + */ + public Builder setSubCategory( + fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + subCategory_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.TripCancellation.SubCategory sub_category = 13; + * @return This builder for chaining. + */ + public Builder clearSubCategory() { + bitField0_ = (bitField0_ & ~0x00001000); + subCategory_ = 0; + onChanged(); + return this; + } - /** - *
-     * All fields in JORE-format
-     * 
- * - * required string operating_day = 2; - * @return Whether the operatingDay field is set. - */ - boolean hasOperatingDay(); - /** - *
-     * All fields in JORE-format
-     * 
- * - * required string operating_day = 2; - * @return The operatingDay. - */ - java.lang.String getOperatingDay(); - /** - *
-     * All fields in JORE-format
-     * 
- * - * required string operating_day = 2; - * @return The bytes for operatingDay. - */ - com.google.protobuf.ByteString - getOperatingDayBytes(); + private long deviationCaseId_; + /** + * optional int64 deviation_case_id = 14; + * @return Whether the deviationCaseId field is set. + */ + @java.lang.Override + public boolean hasDeviationCaseId() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * optional int64 deviation_case_id = 14; + * @return The deviationCaseId. + */ + @java.lang.Override + public long getDeviationCaseId() { + return deviationCaseId_; + } + /** + * optional int64 deviation_case_id = 14; + * @param value The deviationCaseId to set. + * @return This builder for chaining. + */ + public Builder setDeviationCaseId(long value) { + + deviationCaseId_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * optional int64 deviation_case_id = 14; + * @return This builder for chaining. + */ + public Builder clearDeviationCaseId() { + bitField0_ = (bitField0_ & ~0x00002000); + deviationCaseId_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - /** - * required string route_id = 3; - * @return Whether the routeId field is set. - */ - boolean hasRouteId(); - /** - * required string route_id = 3; - * @return The routeId. - */ - java.lang.String getRouteId(); - /** - * required string route_id = 3; - * @return The bytes for routeId. - */ - com.google.protobuf.ByteString - getRouteIdBytes(); + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - /** - * required uint32 direction_id = 4; - * @return Whether the directionId field is set. - */ - boolean hasDirectionId(); - /** - * required uint32 direction_id = 4; - * @return The directionId. - */ - int getDirectionId(); + // @@protoc_insertion_point(builder_scope:proto.TripCancellation) + } - /** - * required string start_time = 5; - * @return Whether the startTime field is set. - */ - boolean hasStartTime(); - /** - * required string start_time = 5; - * @return The startTime. - */ - java.lang.String getStartTime(); - /** - * required string start_time = 5; - * @return The bytes for startTime. - */ - com.google.protobuf.ByteString - getStartTimeBytes(); + // @@protoc_insertion_point(class_scope:proto.TripCancellation) + private static final fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation(); + } - /** - *
-     * Whether trip is included in static schedule or not
-     * 
- * - * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; - * @return Whether the scheduleType field is set. - */ - boolean hasScheduleType(); - /** - *
-     * Whether trip is included in static schedule or not
-     * 
- * - * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; - * @return The scheduleType. - */ - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType getScheduleType(); - } - /** - * Protobuf type {@code proto.TripInfo} - */ - public static final class TripInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.TripInfo) - TripInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use TripInfo.newBuilder() to construct. - private TripInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TripInfo() { - tripId_ = ""; - operatingDay_ = ""; - routeId_ = ""; - startTime_ = ""; - scheduleType_ = 1; - } + public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TripInfo(); - } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TripCancellation parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripInfo_descriptor; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.class, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder.class); } - /** - * Protobuf enum {@code proto.TripInfo.ScheduleType} - */ - public enum ScheduleType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       *Trip is present in the static schedule
-       * 
- * - * SCHEDULED = 1; - */ - SCHEDULED(1), - /** - *
-       *Trip is not present in the static schedule, but follows some schedule (e.g. replacement service for broken vehicle)
-       * 
- * - * ADDED = 2; - */ - ADDED(2), - /** - *
-       *Trip does not have any schedule (e.g. shuttle bus that runs when full)
-       * 
- * - * UNSCHEDULED = 3; - */ - UNSCHEDULED(3), - ; - - /** - *
-       *Trip is present in the static schedule
-       * 
- * - * SCHEDULED = 1; - */ - public static final int SCHEDULED_VALUE = 1; - /** - *
-       *Trip is not present in the static schedule, but follows some schedule (e.g. replacement service for broken vehicle)
-       * 
- * - * ADDED = 2; - */ - public static final int ADDED_VALUE = 2; - /** - *
-       *Trip does not have any schedule (e.g. shuttle bus that runs when full)
-       * 
- * - * UNSCHEDULED = 3; - */ - public static final int UNSCHEDULED_VALUE = 3; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ScheduleType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ScheduleType forNumber(int value) { - switch (value) { - case 1: return SCHEDULED; - case 2: return ADDED; - case 3: return UNSCHEDULED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ScheduleType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ScheduleType findValueByNumber(int number) { - return ScheduleType.forNumber(number); - } - }; + public interface StopEstimateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.StopEstimate) + com.google.protobuf.MessageOrBuilder { + + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + boolean hasSchemaVersion(); + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + int getSchemaVersion(); + + /** + * required .proto.TripInfo trip_info = 2; + * @return Whether the tripInfo field is set. + */ + boolean hasTripInfo(); + /** + * required .proto.TripInfo trip_info = 2; + * @return The tripInfo. + */ + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getTripInfo(); + /** + * required .proto.TripInfo trip_info = 2; + */ + fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getTripInfoOrBuilder(); + + /** + *
+         *The stop where the vehicle is scheduled to stop
+         * 
+ * + * required string stop_id = 3; + * @return Whether the stopId field is set. + */ + boolean hasStopId(); + /** + *
+         *The stop where the vehicle is scheduled to stop
+         * 
+ * + * required string stop_id = 3; + * @return The stopId. + */ + java.lang.String getStopId(); + /** + *
+         *The stop where the vehicle is scheduled to stop
+         * 
+ * + * required string stop_id = 3; + * @return The bytes for stopId. + */ + com.google.protobuf.ByteString getStopIdBytes(); + + /** + * required uint32 stop_sequence = 4; + * @return Whether the stopSequence field is set. + */ + boolean hasStopSequence(); + /** + * required uint32 stop_sequence = 4; + * @return The stopSequence. + */ + int getStopSequence(); + + /** + * required .proto.StopEstimate.Status status = 5; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * required .proto.StopEstimate.Status status = 5; + * @return The status. + */ + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status getStatus(); + + /** + * required .proto.StopEstimate.Type type = 6; + * @return Whether the type field is set. + */ + boolean hasType(); + /** + * required .proto.StopEstimate.Type type = 6; + * @return The type. + */ + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type getType(); - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDescriptor().getEnumTypes().get(0); - } - - private static final ScheduleType[] VALUES = values(); - - public static ScheduleType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ScheduleType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.TripInfo.ScheduleType) - } + /** + * optional int64 estimated_time_utc_ms = 7; + * @return Whether the estimatedTimeUtcMs field is set. + */ + boolean hasEstimatedTimeUtcMs(); + /** + * optional int64 estimated_time_utc_ms = 7; + * @return The estimatedTimeUtcMs. + */ + long getEstimatedTimeUtcMs(); - private int bitField0_; - public static final int TRIP_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object tripId_ = ""; - /** - *
-     * Unique key for the trip
-     * For example: Dated Vehicle Journey ID or Journey Section ID
-     * 
- * - * required string trip_id = 1; - * @return Whether the tripId field is set. - */ - @java.lang.Override - public boolean hasTripId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Unique key for the trip
-     * For example: Dated Vehicle Journey ID or Journey Section ID
-     * 
- * - * required string trip_id = 1; - * @return The tripId. - */ - @java.lang.Override - public java.lang.String getTripId() { - java.lang.Object ref = tripId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tripId_ = s; - } - return s; - } - } - /** - *
-     * Unique key for the trip
-     * For example: Dated Vehicle Journey ID or Journey Section ID
-     * 
- * - * required string trip_id = 1; - * @return The bytes for tripId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTripIdBytes() { - java.lang.Object ref = tripId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tripId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * optional int64 scheduled_time_utc_ms = 8; + * @return Whether the scheduledTimeUtcMs field is set. + */ + boolean hasScheduledTimeUtcMs(); + /** + * optional int64 scheduled_time_utc_ms = 8; + * @return The scheduledTimeUtcMs. + */ + long getScheduledTimeUtcMs(); - public static final int OPERATING_DAY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object operatingDay_ = ""; - /** - *
-     * All fields in JORE-format
-     * 
- * - * required string operating_day = 2; - * @return Whether the operatingDay field is set. - */ - @java.lang.Override - public boolean hasOperatingDay() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * All fields in JORE-format
-     * 
- * - * required string operating_day = 2; - * @return The operatingDay. - */ - @java.lang.Override - public java.lang.String getOperatingDay() { - java.lang.Object ref = operatingDay_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - operatingDay_ = s; - } - return s; - } - } - /** - *
-     * All fields in JORE-format
-     * 
- * - * required string operating_day = 2; - * @return The bytes for operatingDay. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOperatingDayBytes() { - java.lang.Object ref = operatingDay_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operatingDay_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * required int64 last_modified_utc_ms = 9; + * @return Whether the lastModifiedUtcMs field is set. + */ + boolean hasLastModifiedUtcMs(); + /** + * required int64 last_modified_utc_ms = 9; + * @return The lastModifiedUtcMs. + */ + long getLastModifiedUtcMs(); - public static final int ROUTE_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object routeId_ = ""; - /** - * required string route_id = 3; - * @return Whether the routeId field is set. - */ - @java.lang.Override - public boolean hasRouteId() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required string route_id = 3; - * @return The routeId. - */ - @java.lang.Override - public java.lang.String getRouteId() { - java.lang.Object ref = routeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - routeId_ = s; - } - return s; - } - } - /** - * required string route_id = 3; - * @return The bytes for routeId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRouteIdBytes() { - java.lang.Object ref = routeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + *
+         *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
+         * 
+ * + * optional bool observed_time = 10 [default = false]; + * @return Whether the observedTime field is set. + */ + boolean hasObservedTime(); + /** + *
+         *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
+         * 
+ * + * optional bool observed_time = 10 [default = false]; + * @return The observedTime. + */ + boolean getObservedTime(); - public static final int DIRECTION_ID_FIELD_NUMBER = 4; - private int directionId_ = 0; - /** - * required uint32 direction_id = 4; - * @return Whether the directionId field is set. - */ - @java.lang.Override - public boolean hasDirectionId() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required uint32 direction_id = 4; - * @return The directionId. - */ - @java.lang.Override - public int getDirectionId() { - return directionId_; - } + /** + *
+         *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
+         * 
+ * + * optional string targeted_stop_id = 11; + * @return Whether the targetedStopId field is set. + */ + boolean hasTargetedStopId(); + /** + *
+         *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
+         * 
+ * + * optional string targeted_stop_id = 11; + * @return The targetedStopId. + */ + java.lang.String getTargetedStopId(); + /** + *
+         *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
+         * 
+ * + * optional string targeted_stop_id = 11; + * @return The bytes for targetedStopId. + */ + com.google.protobuf.ByteString getTargetedStopIdBytes(); - public static final int START_TIME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object startTime_ = ""; - /** - * required string start_time = 5; - * @return Whether the startTime field is set. - */ - @java.lang.Override - public boolean hasStartTime() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required string start_time = 5; - * @return The startTime. - */ - @java.lang.Override - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startTime_ = s; - } - return s; - } + /** + * optional bool is_via_point = 12 [default = false]; + * @return Whether the isViaPoint field is set. + */ + boolean hasIsViaPoint(); + /** + * optional bool is_via_point = 12 [default = false]; + * @return The isViaPoint. + */ + boolean getIsViaPoint(); } /** - * required string start_time = 5; - * @return The bytes for startTime. + * Protobuf type {@code proto.StopEstimate} */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final class StopEstimate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.StopEstimate) + StopEstimateOrBuilder { + private static final long serialVersionUID = 0L; + // Use StopEstimate.newBuilder() to construct. + private StopEstimate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StopEstimate() { + schemaVersion_ = 1; + stopId_ = ""; + status_ = 0; + type_ = 0; + targetedStopId_ = ""; + } - public static final int SCHEDULE_TYPE_FIELD_NUMBER = 6; - private int scheduleType_ = 1; - /** - *
-     * Whether trip is included in static schedule or not
-     * 
- * - * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; - * @return Whether the scheduleType field is set. - */ - @java.lang.Override public boolean hasScheduleType() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * Whether trip is included in static schedule or not
-     * 
- * - * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; - * @return The scheduleType. - */ - @java.lang.Override public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType getScheduleType() { - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType result = fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType.forNumber(scheduleType_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType.SCHEDULED : result; - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StopEstimate(); + } - 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 (!hasTripId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasOperatingDay()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasRouteId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasDirectionId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStartTime()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopEstimate_descriptor; + } - @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, tripId_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operatingDay_); - } - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, routeId_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeUInt32(4, directionId_); - } - if (((bitField0_ & 0x00000010) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, startTime_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeEnum(6, scheduleType_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopEstimate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.class, + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Builder.class); + } - @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, operatingDay_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, routeId_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, directionId_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, startTime_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, scheduleType_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * Protobuf enum {@code proto.StopEstimate.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * SCHEDULED = 0; + */ + SCHEDULED(0), + /** + * SKIPPED = 1; + */ + SKIPPED(1), + /** + *
+             * No estimate is available
+             * 
+ * + * NO_DATA = 2; + */ + NO_DATA(2),; + + /** + * SCHEDULED = 0; + */ + public static final int SCHEDULED_VALUE = 0; + /** + * SKIPPED = 1; + */ + public static final int SKIPPED_VALUE = 1; + /** + *
+             * No estimate is available
+             * 
+ * + * NO_DATA = 2; + */ + public static final int NO_DATA_VALUE = 2; + + public final int getNumber() { + return value; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof fi.hsl.common.transitdata.proto.InternalMessages.TripInfo)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo other = (fi.hsl.common.transitdata.proto.InternalMessages.TripInfo) obj; - - if (hasTripId() != other.hasTripId()) return false; - if (hasTripId()) { - if (!getTripId() - .equals(other.getTripId())) return false; - } - if (hasOperatingDay() != other.hasOperatingDay()) return false; - if (hasOperatingDay()) { - if (!getOperatingDay() - .equals(other.getOperatingDay())) 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 (hasScheduleType() != other.hasScheduleType()) return false; - if (hasScheduleType()) { - if (scheduleType_ != other.scheduleType_) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Status valueOf(int value) { + return forNumber(value); + } - @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 (hasOperatingDay()) { - hash = (37 * hash) + OPERATING_DAY_FIELD_NUMBER; - hash = (53 * hash) + getOperatingDay().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 (hasScheduleType()) { - hash = (37 * hash) + SCHEDULE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + scheduleType_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Status forNumber(int value) { + switch (value) { + case 0 : + return SCHEDULED; + case 1 : + return SKIPPED; + case 2 : + return NO_DATA; + default : + return null; + } + } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.getDescriptor().getEnumTypes() + .get(0); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.TripInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.TripInfo) - fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.class, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder.class); - } - - // Construct using fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tripId_ = ""; - operatingDay_ = ""; - routeId_ = ""; - directionId_ = 0; - startTime_ = ""; - scheduleType_ = 1; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripInfo_descriptor; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo build() { - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo buildPartial() { - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo result = new fi.hsl.common.transitdata.proto.InternalMessages.TripInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tripId_ = tripId_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.operatingDay_ = operatingDay_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.routeId_ = routeId_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.directionId_ = directionId_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.startTime_ = startTime_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.scheduleType_ = scheduleType_; - to_bitField0_ |= 0x00000020; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.TripInfo) { - return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.TripInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo other) { - if (other == fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance()) return this; - if (other.hasTripId()) { - tripId_ = other.tripId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasOperatingDay()) { - operatingDay_ = other.operatingDay_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasRouteId()) { - routeId_ = other.routeId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasDirectionId()) { - setDirectionId(other.getDirectionId()); - } - if (other.hasStartTime()) { - startTime_ = other.startTime_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.hasScheduleType()) { - setScheduleType(other.getScheduleType()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasTripId()) { - return false; - } - if (!hasOperatingDay()) { - return false; - } - if (!hasRouteId()) { - return false; - } - if (!hasDirectionId()) { - return false; - } - if (!hasStartTime()) { - 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: { - operatingDay_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - routeId_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - directionId_ = input.readUInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - startTime_ = input.readBytes(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - int tmpRaw = input.readEnum(); - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType tmpValue = - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(6, tmpRaw); - } else { - scheduleType_ = tmpRaw; - 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 tripId_ = ""; - /** - *
-       * Unique key for the trip
-       * For example: Dated Vehicle Journey ID or Journey Section ID
-       * 
- * - * required string trip_id = 1; - * @return Whether the tripId field is set. - */ - public boolean hasTripId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Unique key for the trip
-       * For example: Dated Vehicle Journey ID or Journey Section ID
-       * 
- * - * required string trip_id = 1; - * @return The tripId. - */ - public java.lang.String getTripId() { - java.lang.Object ref = tripId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tripId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique key for the trip
-       * For example: Dated Vehicle Journey ID or Journey Section ID
-       * 
- * - * required string trip_id = 1; - * @return The bytes for tripId. - */ - public com.google.protobuf.ByteString - getTripIdBytes() { - java.lang.Object ref = tripId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tripId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique key for the trip
-       * For example: Dated Vehicle Journey ID or Journey Section ID
-       * 
- * - * required string trip_id = 1; - * @param value The tripId to set. - * @return This builder for chaining. - */ - public Builder setTripId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - tripId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Unique key for the trip
-       * For example: Dated Vehicle Journey ID or Journey Section ID
-       * 
- * - * required string trip_id = 1; - * @return This builder for chaining. - */ - public Builder clearTripId() { - tripId_ = getDefaultInstance().getTripId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Unique key for the trip
-       * For example: Dated Vehicle Journey ID or Journey Section ID
-       * 
- * - * required string trip_id = 1; - * @param value The bytes for tripId to set. - * @return This builder for chaining. - */ - public Builder setTripIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - tripId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object operatingDay_ = ""; - /** - *
-       * All fields in JORE-format
-       * 
- * - * required string operating_day = 2; - * @return Whether the operatingDay field is set. - */ - public boolean hasOperatingDay() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * All fields in JORE-format
-       * 
- * - * required string operating_day = 2; - * @return The operatingDay. - */ - public java.lang.String getOperatingDay() { - java.lang.Object ref = operatingDay_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - operatingDay_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * All fields in JORE-format
-       * 
- * - * required string operating_day = 2; - * @return The bytes for operatingDay. - */ - public com.google.protobuf.ByteString - getOperatingDayBytes() { - java.lang.Object ref = operatingDay_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operatingDay_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * All fields in JORE-format
-       * 
- * - * required string operating_day = 2; - * @param value The operatingDay to set. - * @return This builder for chaining. - */ - public Builder setOperatingDay( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - operatingDay_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * All fields in JORE-format
-       * 
- * - * required string operating_day = 2; - * @return This builder for chaining. - */ - public Builder clearOperatingDay() { - operatingDay_ = getDefaultInstance().getOperatingDay(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * All fields in JORE-format
-       * 
- * - * required string operating_day = 2; - * @param value The bytes for operatingDay to set. - * @return This builder for chaining. - */ - public Builder setOperatingDayBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - operatingDay_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object routeId_ = ""; - /** - * required string route_id = 3; - * @return Whether the routeId field is set. - */ - public boolean hasRouteId() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required string route_id = 3; - * @return The routeId. - */ - public java.lang.String getRouteId() { - java.lang.Object ref = routeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - routeId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string route_id = 3; - * @return The bytes for routeId. - */ - public com.google.protobuf.ByteString - getRouteIdBytes() { - java.lang.Object ref = routeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string route_id = 3; - * @param value The routeId to set. - * @return This builder for chaining. - */ - public Builder setRouteId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - routeId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required string route_id = 3; - * @return This builder for chaining. - */ - public Builder clearRouteId() { - routeId_ = getDefaultInstance().getRouteId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * required string route_id = 3; - * @param value The bytes for routeId to set. - * @return This builder for chaining. - */ - public Builder setRouteIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - routeId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private int directionId_ ; - /** - * required uint32 direction_id = 4; - * @return Whether the directionId field is set. - */ - @java.lang.Override - public boolean hasDirectionId() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required uint32 direction_id = 4; - * @return The directionId. - */ - @java.lang.Override - public int getDirectionId() { - return directionId_; - } - /** - * required uint32 direction_id = 4; - * @param value The directionId to set. - * @return This builder for chaining. - */ - public Builder setDirectionId(int value) { - - directionId_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * required uint32 direction_id = 4; - * @return This builder for chaining. - */ - public Builder clearDirectionId() { - bitField0_ = (bitField0_ & ~0x00000008); - directionId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object startTime_ = ""; - /** - * required string start_time = 5; - * @return Whether the startTime field is set. - */ - public boolean hasStartTime() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required string start_time = 5; - * @return The startTime. - */ - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startTime_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string start_time = 5; - * @return The bytes for startTime. - */ - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string start_time = 5; - * @param value The startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTime( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - startTime_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * required string start_time = 5; - * @return This builder for chaining. - */ - public Builder clearStartTime() { - startTime_ = getDefaultInstance().getStartTime(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * required string start_time = 5; - * @param value The bytes for startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - startTime_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private int scheduleType_ = 1; - /** - *
-       * Whether trip is included in static schedule or not
-       * 
- * - * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; - * @return Whether the scheduleType field is set. - */ - @java.lang.Override public boolean hasScheduleType() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-       * Whether trip is included in static schedule or not
-       * 
- * - * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; - * @return The scheduleType. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType getScheduleType() { - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType result = fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType.forNumber(scheduleType_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType.SCHEDULED : result; - } - /** - *
-       * Whether trip is included in static schedule or not
-       * 
- * - * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; - * @param value The scheduleType to set. - * @return This builder for chaining. - */ - public Builder setScheduleType(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.ScheduleType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - scheduleType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Whether trip is included in static schedule or not
-       * 
- * - * optional .proto.TripInfo.ScheduleType schedule_type = 6 [default = SCHEDULED]; - * @return This builder for chaining. - */ - public Builder clearScheduleType() { - bitField0_ = (bitField0_ & ~0x00000020); - scheduleType_ = 1; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.TripInfo) - } + private static final Status[] VALUES = values(); - // @@protoc_insertion_point(class_scope:proto.TripInfo) - private static final fi.hsl.common.transitdata.proto.InternalMessages.TripInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.TripInfo(); - } + public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private final int value; - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TripInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private Status(int value) { + this.value = value; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // @@protoc_insertion_point(enum_scope:proto.StopEstimate.Status) + } - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * Protobuf enum {@code proto.StopEstimate.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * ARRIVAL = 0; + */ + ARRIVAL(0), + /** + * DEPARTURE = 1; + */ + DEPARTURE(1),; + + /** + * ARRIVAL = 0; + */ + public static final int ARRIVAL_VALUE = 0; + /** + * DEPARTURE = 1; + */ + public static final int DEPARTURE_VALUE = 1; + + public final int getNumber() { + return value; + } - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } - public interface JourneyPatternOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.JourneyPattern) - com.google.protobuf.MessageOrBuilder { + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0 : + return ARRIVAL; + case 1 : + return DEPARTURE; + default : + return null; + } + } - /** - * required string journey_pattern_id = 1; - * @return Whether the journeyPatternId field is set. - */ - boolean hasJourneyPatternId(); - /** - * required string journey_pattern_id = 1; - * @return The journeyPatternId. - */ - java.lang.String getJourneyPatternId(); - /** - * required string journey_pattern_id = 1; - * @return The bytes for journeyPatternId. - */ - com.google.protobuf.ByteString - getJourneyPatternIdBytes(); + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - java.util.List - getStopsList(); - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop getStops(int index); - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - int getStopsCount(); - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - java.util.List - getStopsOrBuilderList(); - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.StopOrBuilder getStopsOrBuilder( - int index); + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.getDescriptor().getEnumTypes() + .get(1); + } - /** - *
-     *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-     * 
- * - * repeated .proto.TripInfo trips = 3; - */ - java.util.List - getTripsList(); - /** - *
-     *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-     * 
- * - * repeated .proto.TripInfo trips = 3; - */ - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getTrips(int index); - /** - *
-     *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-     * 
- * - * repeated .proto.TripInfo trips = 3; - */ - int getTripsCount(); - /** - *
-     *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-     * 
- * - * repeated .proto.TripInfo trips = 3; - */ - java.util.List - getTripsOrBuilderList(); - /** - *
-     *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-     * 
- * - * repeated .proto.TripInfo trips = 3; - */ - fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getTripsOrBuilder( - int index); - } - /** - * Protobuf type {@code proto.JourneyPattern} - */ - public static final class JourneyPattern extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.JourneyPattern) - JourneyPatternOrBuilder { - private static final long serialVersionUID = 0L; - // Use JourneyPattern.newBuilder() to construct. - private JourneyPattern(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private JourneyPattern() { - journeyPatternId_ = ""; - stops_ = java.util.Collections.emptyList(); - trips_ = java.util.Collections.emptyList(); - } + private static final Type[] VALUES = values(); - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new JourneyPattern(); - } + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_descriptor; - } + private final int value; - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.class, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder.class); - } + private Type(int value) { + this.value = value; + } - public interface StopOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.JourneyPattern.Stop) - com.google.protobuf.MessageOrBuilder { - - /** - * required string stop_id = 1; - * @return Whether the stopId field is set. - */ - boolean hasStopId(); - /** - * required string stop_id = 1; - * @return The stopId. - */ - java.lang.String getStopId(); - /** - * required string stop_id = 1; - * @return The bytes for stopId. - */ - com.google.protobuf.ByteString - getStopIdBytes(); - - /** - * required uint32 stop_sequence = 2; - * @return Whether the stopSequence field is set. - */ - boolean hasStopSequence(); - /** - * required uint32 stop_sequence = 2; - * @return The stopSequence. - */ - int getStopSequence(); - } - /** - * Protobuf type {@code proto.JourneyPattern.Stop} - */ - public static final class Stop extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.JourneyPattern.Stop) - StopOrBuilder { - private static final long serialVersionUID = 0L; - // Use Stop.newBuilder() to construct. - private Stop(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Stop() { - stopId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Stop(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_Stop_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_Stop_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.class, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder.class); - } - - private int bitField0_; - public static final int STOP_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object stopId_ = ""; - /** - * required string stop_id = 1; - * @return Whether the stopId field is set. - */ - @java.lang.Override - public boolean hasStopId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required string stop_id = 1; - * @return The stopId. - */ - @java.lang.Override - public java.lang.String getStopId() { - java.lang.Object ref = stopId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopId_ = s; - } - return s; - } - } - /** - * required string stop_id = 1; - * @return The bytes for stopId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStopIdBytes() { - java.lang.Object ref = stopId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STOP_SEQUENCE_FIELD_NUMBER = 2; - private int stopSequence_ = 0; - /** - * required uint32 stop_sequence = 2; - * @return Whether the stopSequence field is set. - */ - @java.lang.Override - public boolean hasStopSequence() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required uint32 stop_sequence = 2; - * @return The stopSequence. - */ - @java.lang.Override - public int getStopSequence() { - return stopSequence_; - } - - 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 (!hasStopId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStopSequence()) { - 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, stopId_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeUInt32(2, stopSequence_); - } - 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, stopId_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, stopSequence_); - } - 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 fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop other = (fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop) obj; - - if (hasStopId() != other.hasStopId()) return false; - if (hasStopId()) { - if (!getStopId() - .equals(other.getStopId())) return false; - } - if (hasStopSequence() != other.hasStopSequence()) return false; - if (hasStopSequence()) { - if (getStopSequence() - != other.getStopSequence()) 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 (hasStopId()) { - hash = (37 * hash) + STOP_ID_FIELD_NUMBER; - hash = (53 * hash) + getStopId().hashCode(); - } - if (hasStopSequence()) { - hash = (37 * hash) + STOP_SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + getStopSequence(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.JourneyPattern.Stop} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.JourneyPattern.Stop) - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.StopOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_Stop_descriptor; + // @@protoc_insertion_point(enum_scope:proto.StopEstimate.Type) } + private int bitField0_; + public static final int SCHEMAVERSION_FIELD_NUMBER = 1; + private int schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_Stop_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.class, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder.class); + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); } - - // Construct using fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.newBuilder() - private Builder() { - + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } + public static final int TRIP_INFO_FIELD_NUMBER = 2; + private fi.hsl.common.transitdata.proto.InternalMessages.TripInfo tripInfo_; + /** + * required .proto.TripInfo trip_info = 2; + * @return Whether the tripInfo field is set. + */ @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - stopId_ = ""; - stopSequence_ = 0; - return this; + public boolean hasTripInfo() { + return ((bitField0_ & 0x00000002) != 0); } - + /** + * required .proto.TripInfo trip_info = 2; + * @return The tripInfo. + */ @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_Stop_descriptor; + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getTripInfo() { + return tripInfo_ == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() + : tripInfo_; } - + /** + * required .proto.TripInfo trip_info = 2; + */ @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.getDefaultInstance(); + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getTripInfoOrBuilder() { + return tripInfo_ == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() + : tripInfo_; } + public static final int STOP_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object stopId_ = ""; + /** + *
+         *The stop where the vehicle is scheduled to stop
+         * 
+ * + * required string stop_id = 3; + * @return Whether the stopId field is set. + */ @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop build() { - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public boolean hasStopId() { + return ((bitField0_ & 0x00000004) != 0); } - + /** + *
+         *The stop where the vehicle is scheduled to stop
+         * 
+ * + * required string stop_id = 3; + * @return The stopId. + */ @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop buildPartial() { - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop result = new fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.stopId_ = stopId_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.stopSequence_ = stopSequence_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; + public java.lang.String getStopId() { + java.lang.Object ref = stopId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopId_ = s; + } + return s; + } } - + /** + *
+         *The stop where the vehicle is scheduled to stop
+         * 
+ * + * required string stop_id = 3; + * @return The bytes for stopId. + */ @java.lang.Override - public Builder clone() { - return super.clone(); + public com.google.protobuf.ByteString getStopIdBytes() { + java.lang.Object ref = stopId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + + public static final int STOP_SEQUENCE_FIELD_NUMBER = 4; + private int stopSequence_ = 0; + /** + * required uint32 stop_sequence = 4; + * @return Whether the stopSequence field is set. + */ @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + public boolean hasStopSequence() { + return ((bitField0_ & 0x00000008) != 0); } + /** + * required uint32 stop_sequence = 4; + * @return The stopSequence. + */ @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public int getStopSequence() { + return stopSequence_; } + + public static final int STATUS_FIELD_NUMBER = 5; + private int status_ = 0; + /** + * required .proto.StopEstimate.Status status = 5; + * @return Whether the status field is set. + */ @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public boolean hasStatus() { + return ((bitField0_ & 0x00000010) != 0); } + /** + * required .proto.StopEstimate.Status status = 5; + * @return The status. + */ @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status getStatus() { + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status result = fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status + .forNumber(status_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status.SCHEDULED + : result; } + + public static final int TYPE_FIELD_NUMBER = 6; + private int type_ = 0; + /** + * required .proto.StopEstimate.Type type = 6; + * @return Whether the type field is set. + */ @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + public boolean hasType() { + return ((bitField0_ & 0x00000020) != 0); } + /** + * required .proto.StopEstimate.Type type = 6; + * @return The type. + */ @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop) { - return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop other) { - if (other == fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.getDefaultInstance()) return this; - if (other.hasStopId()) { - stopId_ = other.stopId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasStopSequence()) { - setStopSequence(other.getStopSequence()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type getType() { + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type result = fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type + .forNumber(type_); + return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type.ARRIVAL : result; } + public static final int ESTIMATED_TIME_UTC_MS_FIELD_NUMBER = 7; + private long estimatedTimeUtcMs_ = 0L; + /** + * optional int64 estimated_time_utc_ms = 7; + * @return Whether the estimatedTimeUtcMs field is set. + */ @java.lang.Override - public final boolean isInitialized() { - if (!hasStopId()) { - return false; - } - if (!hasStopSequence()) { - return false; - } - return true; + public boolean hasEstimatedTimeUtcMs() { + return ((bitField0_ & 0x00000040) != 0); } - + /** + * optional int64 estimated_time_utc_ms = 7; + * @return The estimatedTimeUtcMs. + */ @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: { - stopId_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - stopSequence_ = 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; + public long getEstimatedTimeUtcMs() { + return estimatedTimeUtcMs_; } - private int bitField0_; - private java.lang.Object stopId_ = ""; + public static final int SCHEDULED_TIME_UTC_MS_FIELD_NUMBER = 8; + private long scheduledTimeUtcMs_ = 0L; /** - * required string stop_id = 1; - * @return Whether the stopId field is set. + * optional int64 scheduled_time_utc_ms = 8; + * @return Whether the scheduledTimeUtcMs field is set. */ - public boolean hasStopId() { - return ((bitField0_ & 0x00000001) != 0); + @java.lang.Override + public boolean hasScheduledTimeUtcMs() { + return ((bitField0_ & 0x00000080) != 0); } /** - * required string stop_id = 1; - * @return The stopId. + * optional int64 scheduled_time_utc_ms = 8; + * @return The scheduledTimeUtcMs. */ - public java.lang.String getStopId() { - java.lang.Object ref = stopId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public long getScheduledTimeUtcMs() { + return scheduledTimeUtcMs_; } + + public static final int LAST_MODIFIED_UTC_MS_FIELD_NUMBER = 9; + private long lastModifiedUtcMs_ = 0L; /** - * required string stop_id = 1; - * @return The bytes for stopId. + * required int64 last_modified_utc_ms = 9; + * @return Whether the lastModifiedUtcMs field is set. */ - public com.google.protobuf.ByteString - getStopIdBytes() { - java.lang.Object ref = stopId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public boolean hasLastModifiedUtcMs() { + return ((bitField0_ & 0x00000100) != 0); } /** - * required string stop_id = 1; - * @param value The stopId to set. - * @return This builder for chaining. + * required int64 last_modified_utc_ms = 9; + * @return The lastModifiedUtcMs. */ - public Builder setStopId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - stopId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public long getLastModifiedUtcMs() { + return lastModifiedUtcMs_; } + + public static final int OBSERVED_TIME_FIELD_NUMBER = 10; + private boolean observedTime_ = false; /** - * required string stop_id = 1; - * @return This builder for chaining. + *
+         *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
+         * 
+ * + * optional bool observed_time = 10 [default = false]; + * @return Whether the observedTime field is set. */ - public Builder clearStopId() { - stopId_ = getDefaultInstance().getStopId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + @java.lang.Override + public boolean hasObservedTime() { + return ((bitField0_ & 0x00000200) != 0); } /** - * required string stop_id = 1; - * @param value The bytes for stopId to set. - * @return This builder for chaining. + *
+         *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
+         * 
+ * + * optional bool observed_time = 10 [default = false]; + * @return The observedTime. */ - public Builder setStopIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - stopId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public boolean getObservedTime() { + return observedTime_; } - private int stopSequence_ ; + public static final int TARGETED_STOP_ID_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object targetedStopId_ = ""; /** - * required uint32 stop_sequence = 2; - * @return Whether the stopSequence field is set. + *
+         *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
+         * 
+ * + * optional string targeted_stop_id = 11; + * @return Whether the targetedStopId field is set. */ @java.lang.Override - public boolean hasStopSequence() { - return ((bitField0_ & 0x00000002) != 0); + public boolean hasTargetedStopId() { + return ((bitField0_ & 0x00000400) != 0); } /** - * required uint32 stop_sequence = 2; - * @return The stopSequence. + *
+         *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
+         * 
+ * + * optional string targeted_stop_id = 11; + * @return The targetedStopId. */ @java.lang.Override - public int getStopSequence() { - return stopSequence_; + public java.lang.String getTargetedStopId() { + java.lang.Object ref = targetedStopId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + targetedStopId_ = s; + } + return s; + } + } + /** + *
+         *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
+         * 
+ * + * optional string targeted_stop_id = 11; + * @return The bytes for targetedStopId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetedStopIdBytes() { + java.lang.Object ref = targetedStopId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetedStopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + + public static final int IS_VIA_POINT_FIELD_NUMBER = 12; + private boolean isViaPoint_ = false; /** - * required uint32 stop_sequence = 2; - * @param value The stopSequence to set. - * @return This builder for chaining. + * optional bool is_via_point = 12 [default = false]; + * @return Whether the isViaPoint field is set. */ - public Builder setStopSequence(int value) { - - stopSequence_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + @java.lang.Override + public boolean hasIsViaPoint() { + return ((bitField0_ & 0x00000800) != 0); } /** - * required uint32 stop_sequence = 2; - * @return This builder for chaining. + * optional bool is_via_point = 12 [default = false]; + * @return The isViaPoint. */ - public Builder clearStopSequence() { - bitField0_ = (bitField0_ & ~0x00000002); - stopSequence_ = 0; - onChanged(); - return this; + @java.lang.Override + public boolean getIsViaPoint() { + return isViaPoint_; } + + 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 (!hasSchemaVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTripInfo()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStopId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStopSequence()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStatus()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasLastModifiedUtcMs()) { + memoizedIsInitialized = 0; + return false; + } + if (!getTripInfo().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTripInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stopId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeUInt32(4, stopSequence_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(5, status_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(6, type_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt64(7, estimatedTimeUtcMs_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeInt64(8, scheduledTimeUtcMs_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeInt64(9, lastModifiedUtcMs_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeBool(10, observedTime_); + } + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, targetedStopId_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeBool(12, isViaPoint_); + } + getUnknownFields().writeTo(output); } @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTripInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, stopId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, stopSequence_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, status_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, type_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, estimatedTimeUtcMs_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, scheduledTimeUtcMs_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, lastModifiedUtcMs_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, observedTime_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, targetedStopId_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, isViaPoint_); + } + 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 fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate other = (fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate) obj; - // @@protoc_insertion_point(builder_scope:proto.JourneyPattern.Stop) - } + if (hasSchemaVersion() != other.hasSchemaVersion()) + return false; + if (hasSchemaVersion()) { + if (getSchemaVersion() != other.getSchemaVersion()) + return false; + } + if (hasTripInfo() != other.hasTripInfo()) + return false; + if (hasTripInfo()) { + if (!getTripInfo().equals(other.getTripInfo())) + return false; + } + if (hasStopId() != other.hasStopId()) + return false; + if (hasStopId()) { + if (!getStopId().equals(other.getStopId())) + return false; + } + if (hasStopSequence() != other.hasStopSequence()) + return false; + if (hasStopSequence()) { + if (getStopSequence() != other.getStopSequence()) + return false; + } + if (hasStatus() != other.hasStatus()) + return false; + if (hasStatus()) { + if (status_ != other.status_) + return false; + } + if (hasType() != other.hasType()) + return false; + if (hasType()) { + if (type_ != other.type_) + return false; + } + if (hasEstimatedTimeUtcMs() != other.hasEstimatedTimeUtcMs()) + return false; + if (hasEstimatedTimeUtcMs()) { + if (getEstimatedTimeUtcMs() != other.getEstimatedTimeUtcMs()) + return false; + } + if (hasScheduledTimeUtcMs() != other.hasScheduledTimeUtcMs()) + return false; + if (hasScheduledTimeUtcMs()) { + if (getScheduledTimeUtcMs() != other.getScheduledTimeUtcMs()) + return false; + } + if (hasLastModifiedUtcMs() != other.hasLastModifiedUtcMs()) + return false; + if (hasLastModifiedUtcMs()) { + if (getLastModifiedUtcMs() != other.getLastModifiedUtcMs()) + return false; + } + if (hasObservedTime() != other.hasObservedTime()) + return false; + if (hasObservedTime()) { + if (getObservedTime() != other.getObservedTime()) + return false; + } + if (hasTargetedStopId() != other.hasTargetedStopId()) + return false; + if (hasTargetedStopId()) { + if (!getTargetedStopId().equals(other.getTargetedStopId())) + return false; + } + if (hasIsViaPoint() != other.hasIsViaPoint()) + return false; + if (hasIsViaPoint()) { + if (getIsViaPoint() != other.getIsViaPoint()) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } - // @@protoc_insertion_point(class_scope:proto.JourneyPattern.Stop) - private static final fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSchemaVersion()) { + hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion(); + } + if (hasTripInfo()) { + hash = (37 * hash) + TRIP_INFO_FIELD_NUMBER; + hash = (53 * hash) + getTripInfo().hashCode(); + } + if (hasStopId()) { + hash = (37 * hash) + STOP_ID_FIELD_NUMBER; + hash = (53 * hash) + getStopId().hashCode(); + } + if (hasStopSequence()) { + hash = (37 * hash) + STOP_SEQUENCE_FIELD_NUMBER; + hash = (53 * hash) + getStopSequence(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + } + if (hasEstimatedTimeUtcMs()) { + hash = (37 * hash) + ESTIMATED_TIME_UTC_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEstimatedTimeUtcMs()); + } + if (hasScheduledTimeUtcMs()) { + hash = (37 * hash) + SCHEDULED_TIME_UTC_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getScheduledTimeUtcMs()); + } + if (hasLastModifiedUtcMs()) { + hash = (37 * hash) + LAST_MODIFIED_UTC_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLastModifiedUtcMs()); + } + if (hasObservedTime()) { + hash = (37 * hash) + OBSERVED_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getObservedTime()); + } + if (hasTargetedStopId()) { + hash = (37 * hash) + TARGETED_STOP_ID_FIELD_NUMBER; + hash = (53 * hash) + getTargetedStopId().hashCode(); + } + if (hasIsViaPoint()) { + hash = (37 * hash) + IS_VIA_POINT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsViaPoint()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Stop parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.StopEstimate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.StopEstimate) + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopEstimate_descriptor; + } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopEstimate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.class, + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Builder.class); + } - private int bitField0_; - public static final int JOURNEY_PATTERN_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object journeyPatternId_ = ""; - /** - * required string journey_pattern_id = 1; - * @return Whether the journeyPatternId field is set. - */ - @java.lang.Override - public boolean hasJourneyPatternId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required string journey_pattern_id = 1; - * @return The journeyPatternId. - */ - @java.lang.Override - public java.lang.String getJourneyPatternId() { - java.lang.Object ref = journeyPatternId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - journeyPatternId_ = s; - } - return s; - } - } - /** - * required string journey_pattern_id = 1; - * @return The bytes for journeyPatternId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getJourneyPatternIdBytes() { - java.lang.Object ref = journeyPatternId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - journeyPatternId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // Construct using fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static final int STOPS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List stops_; - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - @java.lang.Override - public java.util.List getStopsList() { - return stops_; - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - @java.lang.Override - public java.util.List - getStopsOrBuilderList() { - return stops_; - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - @java.lang.Override - public int getStopsCount() { - return stops_.size(); - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop getStops(int index) { - return stops_.get(index); - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.StopOrBuilder getStopsOrBuilder( - int index) { - return stops_.get(index); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTripInfoFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schemaVersion_ = 1; + tripInfo_ = null; + if (tripInfoBuilder_ != null) { + tripInfoBuilder_.dispose(); + tripInfoBuilder_ = null; + } + stopId_ = ""; + stopSequence_ = 0; + status_ = 0; + type_ = 0; + estimatedTimeUtcMs_ = 0L; + scheduledTimeUtcMs_ = 0L; + lastModifiedUtcMs_ = 0L; + observedTime_ = false; + targetedStopId_ = ""; + isViaPoint_ = false; + return this; + } - public static final int TRIPS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List trips_; - /** - *
-     *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-     * 
- * - * repeated .proto.TripInfo trips = 3; - */ - @java.lang.Override - public java.util.List getTripsList() { - return trips_; - } - /** - *
-     *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-     * 
- * - * repeated .proto.TripInfo trips = 3; - */ - @java.lang.Override - public java.util.List - getTripsOrBuilderList() { - return trips_; - } - /** - *
-     *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-     * 
- * - * repeated .proto.TripInfo trips = 3; - */ - @java.lang.Override - public int getTripsCount() { - return trips_.size(); - } - /** - *
-     *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-     * 
- * - * repeated .proto.TripInfo trips = 3; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getTrips(int index) { - return trips_.get(index); - } - /** - *
-     *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-     * 
- * - * repeated .proto.TripInfo trips = 3; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getTripsOrBuilder( - int index) { - return trips_.get(index); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopEstimate_descriptor; + } - 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 (!hasJourneyPatternId()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getStopsCount(); i++) { - if (!getStops(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getTripsCount(); i++) { - if (!getTrips(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.getDefaultInstance(); + } - @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, journeyPatternId_); - } - for (int i = 0; i < stops_.size(); i++) { - output.writeMessage(2, stops_.get(i)); - } - for (int i = 0; i < trips_.size(); i++) { - output.writeMessage(3, trips_.get(i)); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate build() { + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @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, journeyPatternId_); - } - for (int i = 0; i < stops_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, stops_.get(i)); - } - for (int i = 0; i < trips_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, trips_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate buildPartial() { + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate result = new fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern other = (fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern) obj; - - if (hasJourneyPatternId() != other.hasJourneyPatternId()) return false; - if (hasJourneyPatternId()) { - if (!getJourneyPatternId() - .equals(other.getJourneyPatternId())) return false; - } - if (!getStopsList() - .equals(other.getStopsList())) return false; - if (!getTripsList() - .equals(other.getTripsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schemaVersion_ = schemaVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tripInfo_ = tripInfoBuilder_ == null ? tripInfo_ : tripInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.stopId_ = stopId_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.stopSequence_ = stopSequence_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.type_ = type_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.estimatedTimeUtcMs_ = estimatedTimeUtcMs_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.scheduledTimeUtcMs_ = scheduledTimeUtcMs_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.lastModifiedUtcMs_ = lastModifiedUtcMs_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.observedTime_ = observedTime_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.targetedStopId_ = targetedStopId_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.isViaPoint_ = isViaPoint_; + to_bitField0_ |= 0x00000800; + } + result.bitField0_ |= to_bitField0_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasJourneyPatternId()) { - hash = (37 * hash) + JOURNEY_PATTERN_ID_FIELD_NUMBER; - hash = (53 * hash) + getJourneyPatternId().hashCode(); - } - if (getStopsCount() > 0) { - hash = (37 * hash) + STOPS_FIELD_NUMBER; - hash = (53 * hash) + getStopsList().hashCode(); - } - if (getTripsCount() > 0) { - hash = (37 * hash) + TRIPS_FIELD_NUMBER; - hash = (53 * hash) + getTripsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate) { + return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate other) { + if (other == fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.getDefaultInstance()) + return this; + if (other.hasSchemaVersion()) { + setSchemaVersion(other.getSchemaVersion()); + } + if (other.hasTripInfo()) { + mergeTripInfo(other.getTripInfo()); + } + if (other.hasStopId()) { + stopId_ = other.stopId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasStopSequence()) { + setStopSequence(other.getStopSequence()); + } + if (other.hasStatus()) { + setStatus(other.getStatus()); + } + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasEstimatedTimeUtcMs()) { + setEstimatedTimeUtcMs(other.getEstimatedTimeUtcMs()); + } + if (other.hasScheduledTimeUtcMs()) { + setScheduledTimeUtcMs(other.getScheduledTimeUtcMs()); + } + if (other.hasLastModifiedUtcMs()) { + setLastModifiedUtcMs(other.getLastModifiedUtcMs()); + } + if (other.hasObservedTime()) { + setObservedTime(other.getObservedTime()); + } + if (other.hasTargetedStopId()) { + targetedStopId_ = other.targetedStopId_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasIsViaPoint()) { + setIsViaPoint(other.getIsViaPoint()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasSchemaVersion()) { + return false; + } + if (!hasTripInfo()) { + return false; + } + if (!hasStopId()) { + return false; + } + if (!hasStopSequence()) { + return false; + } + if (!hasStatus()) { + return false; + } + if (!hasType()) { + return false; + } + if (!hasLastModifiedUtcMs()) { + return false; + } + if (!getTripInfo().isInitialized()) { + return false; + } + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.JourneyPattern} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.JourneyPattern) - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPatternOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.class, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder.class); - } - - // Construct using fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - journeyPatternId_ = ""; - if (stopsBuilder_ == null) { - stops_ = java.util.Collections.emptyList(); - } else { - stops_ = null; - stopsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (tripsBuilder_ == null) { - trips_ = java.util.Collections.emptyList(); - } else { - trips_ = null; - tripsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_JourneyPattern_descriptor; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern build() { - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern buildPartial() { - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern result = new fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern result) { - if (stopsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - stops_ = java.util.Collections.unmodifiableList(stops_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.stops_ = stops_; - } else { - result.stops_ = stopsBuilder_.build(); - } - if (tripsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - trips_ = java.util.Collections.unmodifiableList(trips_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.trips_ = trips_; - } else { - result.trips_ = tripsBuilder_.build(); - } - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.journeyPatternId_ = journeyPatternId_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern) { - return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern other) { - if (other == fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.getDefaultInstance()) return this; - if (other.hasJourneyPatternId()) { - journeyPatternId_ = other.journeyPatternId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (stopsBuilder_ == null) { - if (!other.stops_.isEmpty()) { - if (stops_.isEmpty()) { - stops_ = other.stops_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureStopsIsMutable(); - stops_.addAll(other.stops_); - } - onChanged(); - } - } else { - if (!other.stops_.isEmpty()) { - if (stopsBuilder_.isEmpty()) { - stopsBuilder_.dispose(); - stopsBuilder_ = null; - stops_ = other.stops_; - bitField0_ = (bitField0_ & ~0x00000002); - stopsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStopsFieldBuilder() : null; - } else { - stopsBuilder_.addAllMessages(other.stops_); + @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 : { + schemaVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18 : { + input.readMessage(getTripInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26 : { + stopId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32 : { + stopSequence_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status tmpValue = fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(5, tmpRaw); + } else { + status_ = tmpRaw; + bitField0_ |= 0x00000010; + } + break; + } // case 40 + case 48 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type tmpValue = fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(6, tmpRaw); + } else { + type_ = tmpRaw; + bitField0_ |= 0x00000020; + } + break; + } // case 48 + case 56 : { + estimatedTimeUtcMs_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64 : { + scheduledTimeUtcMs_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72 : { + lastModifiedUtcMs_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80 : { + observedTime_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90 : { + targetedStopId_ = input.readBytes(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 96 : { + isViaPoint_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + 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; } - } - } - if (tripsBuilder_ == null) { - if (!other.trips_.isEmpty()) { - if (trips_.isEmpty()) { - trips_ = other.trips_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureTripsIsMutable(); - trips_.addAll(other.trips_); - } - onChanged(); - } - } else { - if (!other.trips_.isEmpty()) { - if (tripsBuilder_.isEmpty()) { - tripsBuilder_.dispose(); - tripsBuilder_ = null; - trips_ = other.trips_; - bitField0_ = (bitField0_ & ~0x00000004); - tripsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTripsFieldBuilder() : null; - } else { - tripsBuilder_.addAllMessages(other.trips_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasJourneyPatternId()) { - return false; - } - for (int i = 0; i < getStopsCount(); i++) { - if (!getStops(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getTripsCount(); i++) { - if (!getTrips(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: { - journeyPatternId_ = input.readBytes(); + private int bitField0_; + + private int schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(int value) { + + schemaVersion_ = value; bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop m = - input.readMessage( - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.PARSER, - extensionRegistry); - if (stopsBuilder_ == null) { - ensureStopsIsMutable(); - stops_.add(m); + onChanged(); + return this; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + schemaVersion_ = 1; + onChanged(); + return this; + } + + private fi.hsl.common.transitdata.proto.InternalMessages.TripInfo tripInfo_; + private com.google.protobuf.SingleFieldBuilderV3 tripInfoBuilder_; + /** + * required .proto.TripInfo trip_info = 2; + * @return Whether the tripInfo field is set. + */ + public boolean hasTripInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required .proto.TripInfo trip_info = 2; + * @return The tripInfo. + */ + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getTripInfo() { + if (tripInfoBuilder_ == null) { + return tripInfo_ == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() + : tripInfo_; } else { - stopsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo m = - input.readMessage( - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.PARSER, - extensionRegistry); - if (tripsBuilder_ == null) { - ensureTripsIsMutable(); - trips_.add(m); + return tripInfoBuilder_.getMessage(); + } + } + /** + * required .proto.TripInfo trip_info = 2; + */ + public Builder setTripInfo(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo value) { + if (tripInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tripInfo_ = value; } else { - tripsBuilder_.addMessage(m); - } - 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 journeyPatternId_ = ""; - /** - * required string journey_pattern_id = 1; - * @return Whether the journeyPatternId field is set. - */ - public boolean hasJourneyPatternId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required string journey_pattern_id = 1; - * @return The journeyPatternId. - */ - public java.lang.String getJourneyPatternId() { - java.lang.Object ref = journeyPatternId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - journeyPatternId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string journey_pattern_id = 1; - * @return The bytes for journeyPatternId. - */ - public com.google.protobuf.ByteString - getJourneyPatternIdBytes() { - java.lang.Object ref = journeyPatternId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - journeyPatternId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string journey_pattern_id = 1; - * @param value The journeyPatternId to set. - * @return This builder for chaining. - */ - public Builder setJourneyPatternId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - journeyPatternId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required string journey_pattern_id = 1; - * @return This builder for chaining. - */ - public Builder clearJourneyPatternId() { - journeyPatternId_ = getDefaultInstance().getJourneyPatternId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * required string journey_pattern_id = 1; - * @param value The bytes for journeyPatternId to set. - * @return This builder for chaining. - */ - public Builder setJourneyPatternIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - journeyPatternId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List stops_ = - java.util.Collections.emptyList(); - private void ensureStopsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - stops_ = new java.util.ArrayList(stops_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.StopOrBuilder> stopsBuilder_; - - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public java.util.List getStopsList() { - if (stopsBuilder_ == null) { - return java.util.Collections.unmodifiableList(stops_); - } else { - return stopsBuilder_.getMessageList(); - } - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public int getStopsCount() { - if (stopsBuilder_ == null) { - return stops_.size(); - } else { - return stopsBuilder_.getCount(); - } - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop getStops(int index) { - if (stopsBuilder_ == null) { - return stops_.get(index); - } else { - return stopsBuilder_.getMessage(index); - } - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public Builder setStops( - int index, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop value) { - if (stopsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStopsIsMutable(); - stops_.set(index, value); - onChanged(); - } else { - stopsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public Builder setStops( - int index, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder builderForValue) { - if (stopsBuilder_ == null) { - ensureStopsIsMutable(); - stops_.set(index, builderForValue.build()); - onChanged(); - } else { - stopsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public Builder addStops(fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop value) { - if (stopsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStopsIsMutable(); - stops_.add(value); - onChanged(); - } else { - stopsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public Builder addStops( - int index, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop value) { - if (stopsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStopsIsMutable(); - stops_.add(index, value); - onChanged(); - } else { - stopsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public Builder addStops( - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder builderForValue) { - if (stopsBuilder_ == null) { - ensureStopsIsMutable(); - stops_.add(builderForValue.build()); - onChanged(); - } else { - stopsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public Builder addStops( - int index, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder builderForValue) { - if (stopsBuilder_ == null) { - ensureStopsIsMutable(); - stops_.add(index, builderForValue.build()); - onChanged(); - } else { - stopsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public Builder addAllStops( - java.lang.Iterable values) { - if (stopsBuilder_ == null) { - ensureStopsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stops_); - onChanged(); - } else { - stopsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public Builder clearStops() { - if (stopsBuilder_ == null) { - stops_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - stopsBuilder_.clear(); - } - return this; - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public Builder removeStops(int index) { - if (stopsBuilder_ == null) { - ensureStopsIsMutable(); - stops_.remove(index); - onChanged(); - } else { - stopsBuilder_.remove(index); - } - return this; - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder getStopsBuilder( - int index) { - return getStopsFieldBuilder().getBuilder(index); - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.StopOrBuilder getStopsOrBuilder( - int index) { - if (stopsBuilder_ == null) { - return stops_.get(index); } else { - return stopsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public java.util.List - getStopsOrBuilderList() { - if (stopsBuilder_ != null) { - return stopsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(stops_); - } - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder addStopsBuilder() { - return getStopsFieldBuilder().addBuilder( - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.getDefaultInstance()); - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder addStopsBuilder( - int index) { - return getStopsFieldBuilder().addBuilder( - index, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.getDefaultInstance()); - } - /** - * repeated .proto.JourneyPattern.Stop stops = 2; - */ - public java.util.List - getStopsBuilderList() { - return getStopsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.StopOrBuilder> - getStopsFieldBuilder() { - if (stopsBuilder_ == null) { - stopsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Stop.Builder, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.StopOrBuilder>( - stops_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - stops_ = null; - } - return stopsBuilder_; - } - - private java.util.List trips_ = - java.util.Collections.emptyList(); - private void ensureTripsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - trips_ = new java.util.ArrayList(trips_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder, fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder> tripsBuilder_; - - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public java.util.List getTripsList() { - if (tripsBuilder_ == null) { - return java.util.Collections.unmodifiableList(trips_); - } else { - return tripsBuilder_.getMessageList(); - } - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public int getTripsCount() { - if (tripsBuilder_ == null) { - return trips_.size(); - } else { - return tripsBuilder_.getCount(); - } - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getTrips(int index) { - if (tripsBuilder_ == null) { - return trips_.get(index); - } else { - return tripsBuilder_.getMessage(index); - } - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public Builder setTrips( - int index, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo value) { - if (tripsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTripsIsMutable(); - trips_.set(index, value); - onChanged(); - } else { - tripsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public Builder setTrips( - int index, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder builderForValue) { - if (tripsBuilder_ == null) { - ensureTripsIsMutable(); - trips_.set(index, builderForValue.build()); - onChanged(); - } else { - tripsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public Builder addTrips(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo value) { - if (tripsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTripsIsMutable(); - trips_.add(value); - onChanged(); - } else { - tripsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public Builder addTrips( - int index, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo value) { - if (tripsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTripsIsMutable(); - trips_.add(index, value); - onChanged(); - } else { - tripsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public Builder addTrips( - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder builderForValue) { - if (tripsBuilder_ == null) { - ensureTripsIsMutable(); - trips_.add(builderForValue.build()); - onChanged(); - } else { - tripsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public Builder addTrips( - int index, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder builderForValue) { - if (tripsBuilder_ == null) { - ensureTripsIsMutable(); - trips_.add(index, builderForValue.build()); - onChanged(); - } else { - tripsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public Builder addAllTrips( - java.lang.Iterable values) { - if (tripsBuilder_ == null) { - ensureTripsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, trips_); - onChanged(); - } else { - tripsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public Builder clearTrips() { - if (tripsBuilder_ == null) { - trips_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - tripsBuilder_.clear(); - } - return this; - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public Builder removeTrips(int index) { - if (tripsBuilder_ == null) { - ensureTripsIsMutable(); - trips_.remove(index); - onChanged(); - } else { - tripsBuilder_.remove(index); - } - return this; - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder getTripsBuilder( - int index) { - return getTripsFieldBuilder().getBuilder(index); - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getTripsOrBuilder( - int index) { - if (tripsBuilder_ == null) { - return trips_.get(index); } else { - return tripsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public java.util.List - getTripsOrBuilderList() { - if (tripsBuilder_ != null) { - return tripsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(trips_); - } - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder addTripsBuilder() { - return getTripsFieldBuilder().addBuilder( - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance()); - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder addTripsBuilder( - int index) { - return getTripsFieldBuilder().addBuilder( - index, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance()); - } - /** - *
-       *List of trips that use the journey pattern and are affected by one or more StopCancellation messages
-       * 
- * - * repeated .proto.TripInfo trips = 3; - */ - public java.util.List - getTripsBuilderList() { - return getTripsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder, fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder> - getTripsFieldBuilder() { - if (tripsBuilder_ == null) { - tripsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder, fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder>( - trips_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - trips_ = null; - } - return tripsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.JourneyPattern) - } - - // @@protoc_insertion_point(class_scope:proto.JourneyPattern) - private static final fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern(); - } - - public static fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JourneyPattern parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + tripInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required .proto.TripInfo trip_info = 2; + */ + public Builder setTripInfo( + fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder builderForValue) { + if (tripInfoBuilder_ == null) { + tripInfo_ = builderForValue.build(); + } else { + tripInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required .proto.TripInfo trip_info = 2; + */ + public Builder mergeTripInfo(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo value) { + if (tripInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && tripInfo_ != null + && tripInfo_ != fi.hsl.common.transitdata.proto.InternalMessages.TripInfo + .getDefaultInstance()) { + getTripInfoBuilder().mergeFrom(value); + } else { + tripInfo_ = value; + } + } else { + tripInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required .proto.TripInfo trip_info = 2; + */ + public Builder clearTripInfo() { + bitField0_ = (bitField0_ & ~0x00000002); + tripInfo_ = null; + if (tripInfoBuilder_ != null) { + tripInfoBuilder_.dispose(); + tripInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * required .proto.TripInfo trip_info = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder getTripInfoBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTripInfoFieldBuilder().getBuilder(); + } + /** + * required .proto.TripInfo trip_info = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getTripInfoOrBuilder() { + if (tripInfoBuilder_ != null) { + return tripInfoBuilder_.getMessageOrBuilder(); + } else { + return tripInfo_ == null + ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() + : tripInfo_; + } + } + /** + * required .proto.TripInfo trip_info = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTripInfoFieldBuilder() { + if (tripInfoBuilder_ == null) { + tripInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTripInfo(), getParentForChildren(), isClean()); + tripInfo_ = null; + } + return tripInfoBuilder_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private java.lang.Object stopId_ = ""; + /** + *
+             *The stop where the vehicle is scheduled to stop
+             * 
+ * + * required string stop_id = 3; + * @return Whether the stopId field is set. + */ + public boolean hasStopId() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+             *The stop where the vehicle is scheduled to stop
+             * 
+ * + * required string stop_id = 3; + * @return The stopId. + */ + public java.lang.String getStopId() { + java.lang.Object ref = stopId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             *The stop where the vehicle is scheduled to stop
+             * 
+ * + * required string stop_id = 3; + * @return The bytes for stopId. + */ + public com.google.protobuf.ByteString getStopIdBytes() { + java.lang.Object ref = stopId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + stopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             *The stop where the vehicle is scheduled to stop
+             * 
+ * + * required string stop_id = 3; + * @param value The stopId to set. + * @return This builder for chaining. + */ + public Builder setStopId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + stopId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+             *The stop where the vehicle is scheduled to stop
+             * 
+ * + * required string stop_id = 3; + * @return This builder for chaining. + */ + public Builder clearStopId() { + stopId_ = getDefaultInstance().getStopId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+             *The stop where the vehicle is scheduled to stop
+             * 
+ * + * required string stop_id = 3; + * @param value The bytes for stopId to set. + * @return This builder for chaining. + */ + public Builder setStopIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + stopId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private int stopSequence_; + /** + * required uint32 stop_sequence = 4; + * @return Whether the stopSequence field is set. + */ + @java.lang.Override + public boolean hasStopSequence() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * required uint32 stop_sequence = 4; + * @return The stopSequence. + */ + @java.lang.Override + public int getStopSequence() { + return stopSequence_; + } + /** + * required uint32 stop_sequence = 4; + * @param value The stopSequence to set. + * @return This builder for chaining. + */ + public Builder setStopSequence(int value) { + + stopSequence_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * required uint32 stop_sequence = 4; + * @return This builder for chaining. + */ + public Builder clearStopSequence() { + bitField0_ = (bitField0_ & ~0x00000008); + stopSequence_ = 0; + onChanged(); + return this; + } - } + private int status_ = 0; + /** + * required .proto.StopEstimate.Status status = 5; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * required .proto.StopEstimate.Status status = 5; + * @return The status. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status getStatus() { + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status result = fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status + .forNumber(status_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status.SCHEDULED + : result; + } + /** + * required .proto.StopEstimate.Status status = 5; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * required .proto.StopEstimate.Status status = 5; + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000010); + status_ = 0; + onChanged(); + return this; + } - public interface StopCancellationsOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.StopCancellations) - com.google.protobuf.MessageOrBuilder { + private int type_ = 0; + /** + * required .proto.StopEstimate.Type type = 6; + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * required .proto.StopEstimate.Type type = 6; + * @return The type. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type getType() { + fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type result = fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type + .forNumber(type_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type.ARRIVAL + : result; + } + /** + * required .proto.StopEstimate.Type type = 6; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * required .proto.StopEstimate.Type type = 6; + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000020); + type_ = 0; + onChanged(); + return this; + } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - java.util.List - getStopCancellationsList(); - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation getStopCancellations(int index); - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - int getStopCancellationsCount(); - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - java.util.List - getStopCancellationsOrBuilderList(); - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellationOrBuilder getStopCancellationsOrBuilder( - int index); + private long estimatedTimeUtcMs_; + /** + * optional int64 estimated_time_utc_ms = 7; + * @return Whether the estimatedTimeUtcMs field is set. + */ + @java.lang.Override + public boolean hasEstimatedTimeUtcMs() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional int64 estimated_time_utc_ms = 7; + * @return The estimatedTimeUtcMs. + */ + @java.lang.Override + public long getEstimatedTimeUtcMs() { + return estimatedTimeUtcMs_; + } + /** + * optional int64 estimated_time_utc_ms = 7; + * @param value The estimatedTimeUtcMs to set. + * @return This builder for chaining. + */ + public Builder setEstimatedTimeUtcMs(long value) { + + estimatedTimeUtcMs_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional int64 estimated_time_utc_ms = 7; + * @return This builder for chaining. + */ + public Builder clearEstimatedTimeUtcMs() { + bitField0_ = (bitField0_ & ~0x00000040); + estimatedTimeUtcMs_ = 0L; + onChanged(); + return this; + } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - java.util.List - getAffectedJourneyPatternsList(); - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern getAffectedJourneyPatterns(int index); - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - int getAffectedJourneyPatternsCount(); - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - java.util.List - getAffectedJourneyPatternsOrBuilderList(); - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPatternOrBuilder getAffectedJourneyPatternsOrBuilder( - int index); - } - /** - * Protobuf type {@code proto.StopCancellations} - */ - public static final class StopCancellations extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.StopCancellations) - StopCancellationsOrBuilder { - private static final long serialVersionUID = 0L; - // Use StopCancellations.newBuilder() to construct. - private StopCancellations(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StopCancellations() { - stopCancellations_ = java.util.Collections.emptyList(); - affectedJourneyPatterns_ = java.util.Collections.emptyList(); - } + private long scheduledTimeUtcMs_; + /** + * optional int64 scheduled_time_utc_ms = 8; + * @return Whether the scheduledTimeUtcMs field is set. + */ + @java.lang.Override + public boolean hasScheduledTimeUtcMs() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional int64 scheduled_time_utc_ms = 8; + * @return The scheduledTimeUtcMs. + */ + @java.lang.Override + public long getScheduledTimeUtcMs() { + return scheduledTimeUtcMs_; + } + /** + * optional int64 scheduled_time_utc_ms = 8; + * @param value The scheduledTimeUtcMs to set. + * @return This builder for chaining. + */ + public Builder setScheduledTimeUtcMs(long value) { + + scheduledTimeUtcMs_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional int64 scheduled_time_utc_ms = 8; + * @return This builder for chaining. + */ + public Builder clearScheduledTimeUtcMs() { + bitField0_ = (bitField0_ & ~0x00000080); + scheduledTimeUtcMs_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StopCancellations(); - } + private long lastModifiedUtcMs_; + /** + * required int64 last_modified_utc_ms = 9; + * @return Whether the lastModifiedUtcMs field is set. + */ + @java.lang.Override + public boolean hasLastModifiedUtcMs() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * required int64 last_modified_utc_ms = 9; + * @return The lastModifiedUtcMs. + */ + @java.lang.Override + public long getLastModifiedUtcMs() { + return lastModifiedUtcMs_; + } + /** + * required int64 last_modified_utc_ms = 9; + * @param value The lastModifiedUtcMs to set. + * @return This builder for chaining. + */ + public Builder setLastModifiedUtcMs(long value) { + + lastModifiedUtcMs_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * required int64 last_modified_utc_ms = 9; + * @return This builder for chaining. + */ + public Builder clearLastModifiedUtcMs() { + bitField0_ = (bitField0_ & ~0x00000100); + lastModifiedUtcMs_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_descriptor; - } + private boolean observedTime_; + /** + *
+             *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
+             * 
+ * + * optional bool observed_time = 10 [default = false]; + * @return Whether the observedTime field is set. + */ + @java.lang.Override + public boolean hasObservedTime() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+             *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
+             * 
+ * + * optional bool observed_time = 10 [default = false]; + * @return The observedTime. + */ + @java.lang.Override + public boolean getObservedTime() { + return observedTime_; + } + /** + *
+             *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
+             * 
+ * + * optional bool observed_time = 10 [default = false]; + * @param value The observedTime to set. + * @return This builder for chaining. + */ + public Builder setObservedTime(boolean value) { + + observedTime_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+             *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
+             * 
+ * + * optional bool observed_time = 10 [default = false]; + * @return This builder for chaining. + */ + public Builder clearObservedTime() { + bitField0_ = (bitField0_ & ~0x00000200); + observedTime_ = false; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.class, fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Builder.class); - } + private java.lang.Object targetedStopId_ = ""; + /** + *
+             *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
+             * 
+ * + * optional string targeted_stop_id = 11; + * @return Whether the targetedStopId field is set. + */ + public boolean hasTargetedStopId() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+             *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
+             * 
+ * + * optional string targeted_stop_id = 11; + * @return The targetedStopId. + */ + public java.lang.String getTargetedStopId() { + java.lang.Object ref = targetedStopId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + targetedStopId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
+             * 
+ * + * optional string targeted_stop_id = 11; + * @return The bytes for targetedStopId. + */ + public com.google.protobuf.ByteString getTargetedStopIdBytes() { + java.lang.Object ref = targetedStopId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + targetedStopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
+             * 
+ * + * optional string targeted_stop_id = 11; + * @param value The targetedStopId to set. + * @return This builder for chaining. + */ + public Builder setTargetedStopId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetedStopId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+             *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
+             * 
+ * + * optional string targeted_stop_id = 11; + * @return This builder for chaining. + */ + public Builder clearTargetedStopId() { + targetedStopId_ = getDefaultInstance().getTargetedStopId(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + *
+             *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
+             * 
+ * + * optional string targeted_stop_id = 11; + * @param value The bytes for targetedStopId to set. + * @return This builder for chaining. + */ + public Builder setTargetedStopIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + targetedStopId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } - /** - * Protobuf enum {@code proto.StopCancellations.Cause} - */ - public enum Cause - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       *Stop cancellation is caused by a closed stop and thus affects all journey patterns that use the stop
-       * 
- * - * CLOSED_STOP = 0; - */ - CLOSED_STOP(0), - /** - *
-       *Stop cancellation is caused by a detour and affects only some journey patterns
-       * 
- * - * JOURNEY_PATTERN_DETOUR = 1; - */ - JOURNEY_PATTERN_DETOUR(1), - /** - *
-       *Stop cancellation affects only one journey (i.e. trip) specified (above) in StopCancellation.affected_trip (TripInfo)
-       * 
- * - * JOURNEY_DETOUR = 2; - */ - JOURNEY_DETOUR(2), - ; - - /** - *
-       *Stop cancellation is caused by a closed stop and thus affects all journey patterns that use the stop
-       * 
- * - * CLOSED_STOP = 0; - */ - public static final int CLOSED_STOP_VALUE = 0; - /** - *
-       *Stop cancellation is caused by a detour and affects only some journey patterns
-       * 
- * - * JOURNEY_PATTERN_DETOUR = 1; - */ - public static final int JOURNEY_PATTERN_DETOUR_VALUE = 1; - /** - *
-       *Stop cancellation affects only one journey (i.e. trip) specified (above) in StopCancellation.affected_trip (TripInfo)
-       * 
- * - * JOURNEY_DETOUR = 2; - */ - public static final int JOURNEY_DETOUR_VALUE = 2; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Cause valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Cause forNumber(int value) { - switch (value) { - case 0: return CLOSED_STOP; - case 1: return JOURNEY_PATTERN_DETOUR; - case 2: return JOURNEY_DETOUR; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Cause> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Cause findValueByNumber(int number) { - return Cause.forNumber(number); - } - }; + private boolean isViaPoint_; + /** + * optional bool is_via_point = 12 [default = false]; + * @return Whether the isViaPoint field is set. + */ + @java.lang.Override + public boolean hasIsViaPoint() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional bool is_via_point = 12 [default = false]; + * @return The isViaPoint. + */ + @java.lang.Override + public boolean getIsViaPoint() { + return isViaPoint_; + } + /** + * optional bool is_via_point = 12 [default = false]; + * @param value The isViaPoint to set. + * @return This builder for chaining. + */ + public Builder setIsViaPoint(boolean value) { + + isViaPoint_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * optional bool is_via_point = 12 [default = false]; + * @return This builder for chaining. + */ + public Builder clearIsViaPoint() { + bitField0_ = (bitField0_ & ~0x00000800); + isViaPoint_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.getDescriptor().getEnumTypes().get(0); - } - - private static final Cause[] VALUES = values(); - - public static Cause valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Cause(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.StopCancellations.Cause) - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public interface StopCancellationOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.StopCancellations.StopCancellation) - com.google.protobuf.MessageOrBuilder { - - /** - * required .proto.StopCancellations.Cause cause = 1; - * @return Whether the cause field is set. - */ - boolean hasCause(); - /** - * required .proto.StopCancellations.Cause cause = 1; - * @return The cause. - */ - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause getCause(); - - /** - * required string stop_id = 2; - * @return Whether the stopId field is set. - */ - boolean hasStopId(); - /** - * required string stop_id = 2; - * @return The stopId. - */ - java.lang.String getStopId(); - /** - * required string stop_id = 2; - * @return The bytes for stopId. - */ - com.google.protobuf.ByteString - getStopIdBytes(); - - /** - * optional int64 valid_from_unix_s = 3; - * @return Whether the validFromUnixS field is set. - */ - boolean hasValidFromUnixS(); - /** - * optional int64 valid_from_unix_s = 3; - * @return The validFromUnixS. - */ - long getValidFromUnixS(); - - /** - * optional int64 valid_to_unix_s = 4; - * @return Whether the validToUnixS field is set. - */ - boolean hasValidToUnixS(); - /** - * optional int64 valid_to_unix_s = 4; - * @return The validToUnixS. - */ - long getValidToUnixS(); - - /** - *
-       *List of journey patterns (IDs) that are affected by the stop cancellation
-       * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @return A list containing the affectedJourneyPatternIds. - */ - java.util.List - getAffectedJourneyPatternIdsList(); - /** - *
-       *List of journey patterns (IDs) that are affected by the stop cancellation
-       * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @return The count of affectedJourneyPatternIds. - */ - int getAffectedJourneyPatternIdsCount(); - /** - *
-       *List of journey patterns (IDs) that are affected by the stop cancellation
-       * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @param index The index of the element to return. - * @return The affectedJourneyPatternIds at the given index. - */ - java.lang.String getAffectedJourneyPatternIds(int index); - /** - *
-       *List of journey patterns (IDs) that are affected by the stop cancellation
-       * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @param index The index of the value to return. - * @return The bytes of the affectedJourneyPatternIds at the given index. - */ - com.google.protobuf.ByteString - getAffectedJourneyPatternIdsBytes(int index); - - /** - *
-       *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
-       * 
- * - * optional .proto.TripInfo affected_trip = 6; - * @return Whether the affectedTrip field is set. - */ - boolean hasAffectedTrip(); - /** - *
-       *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
-       * 
- * - * optional .proto.TripInfo affected_trip = 6; - * @return The affectedTrip. - */ - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getAffectedTrip(); - /** - *
-       *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
-       * 
- * - * optional .proto.TripInfo affected_trip = 6; - */ - fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getAffectedTripOrBuilder(); - } - /** - * Protobuf type {@code proto.StopCancellations.StopCancellation} - */ - public static final class StopCancellation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.StopCancellations.StopCancellation) - StopCancellationOrBuilder { - private static final long serialVersionUID = 0L; - // Use StopCancellation.newBuilder() to construct. - private StopCancellation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StopCancellation() { - cause_ = 0; - stopId_ = ""; - affectedJourneyPatternIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StopCancellation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_StopCancellation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_StopCancellation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.class, fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder.class); - } - - private int bitField0_; - public static final int CAUSE_FIELD_NUMBER = 1; - private int cause_ = 0; - /** - * required .proto.StopCancellations.Cause cause = 1; - * @return Whether the cause field is set. - */ - @java.lang.Override public boolean hasCause() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required .proto.StopCancellations.Cause cause = 1; - * @return The cause. - */ - @java.lang.Override public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause getCause() { - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause result = fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause.forNumber(cause_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause.CLOSED_STOP : result; - } - - public static final int STOP_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object stopId_ = ""; - /** - * required string stop_id = 2; - * @return Whether the stopId field is set. - */ - @java.lang.Override - public boolean hasStopId() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required string stop_id = 2; - * @return The stopId. - */ - @java.lang.Override - public java.lang.String getStopId() { - java.lang.Object ref = stopId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopId_ = s; - } - return s; - } - } - /** - * required string stop_id = 2; - * @return The bytes for stopId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStopIdBytes() { - java.lang.Object ref = stopId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALID_FROM_UNIX_S_FIELD_NUMBER = 3; - private long validFromUnixS_ = 0L; - /** - * optional int64 valid_from_unix_s = 3; - * @return Whether the validFromUnixS field is set. - */ - @java.lang.Override - public boolean hasValidFromUnixS() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional int64 valid_from_unix_s = 3; - * @return The validFromUnixS. - */ - @java.lang.Override - public long getValidFromUnixS() { - return validFromUnixS_; - } - - public static final int VALID_TO_UNIX_S_FIELD_NUMBER = 4; - private long validToUnixS_ = 0L; - /** - * optional int64 valid_to_unix_s = 4; - * @return Whether the validToUnixS field is set. - */ - @java.lang.Override - public boolean hasValidToUnixS() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional int64 valid_to_unix_s = 4; - * @return The validToUnixS. - */ - @java.lang.Override - public long getValidToUnixS() { - return validToUnixS_; - } - - public static final int AFFECTED_JOURNEY_PATTERN_IDS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList affectedJourneyPatternIds_; - /** - *
-       *List of journey patterns (IDs) that are affected by the stop cancellation
-       * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @return A list containing the affectedJourneyPatternIds. - */ - public com.google.protobuf.ProtocolStringList - getAffectedJourneyPatternIdsList() { - return affectedJourneyPatternIds_; - } - /** - *
-       *List of journey patterns (IDs) that are affected by the stop cancellation
-       * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @return The count of affectedJourneyPatternIds. - */ - public int getAffectedJourneyPatternIdsCount() { - return affectedJourneyPatternIds_.size(); - } - /** - *
-       *List of journey patterns (IDs) that are affected by the stop cancellation
-       * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @param index The index of the element to return. - * @return The affectedJourneyPatternIds at the given index. - */ - public java.lang.String getAffectedJourneyPatternIds(int index) { - return affectedJourneyPatternIds_.get(index); - } - /** - *
-       *List of journey patterns (IDs) that are affected by the stop cancellation
-       * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @param index The index of the value to return. - * @return The bytes of the affectedJourneyPatternIds at the given index. - */ - public com.google.protobuf.ByteString - getAffectedJourneyPatternIdsBytes(int index) { - return affectedJourneyPatternIds_.getByteString(index); - } - - public static final int AFFECTED_TRIP_FIELD_NUMBER = 6; - private fi.hsl.common.transitdata.proto.InternalMessages.TripInfo affectedTrip_; - /** - *
-       *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
-       * 
- * - * optional .proto.TripInfo affected_trip = 6; - * @return Whether the affectedTrip field is set. - */ - @java.lang.Override - public boolean hasAffectedTrip() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-       *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
-       * 
- * - * optional .proto.TripInfo affected_trip = 6; - * @return The affectedTrip. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getAffectedTrip() { - return affectedTrip_ == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() : affectedTrip_; - } - /** - *
-       *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
-       * 
- * - * optional .proto.TripInfo affected_trip = 6; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getAffectedTripOrBuilder() { - return affectedTrip_ == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() : affectedTrip_; - } - - 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 (!hasCause()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStopId()) { - memoizedIsInitialized = 0; - return false; - } - if (hasAffectedTrip()) { - if (!getAffectedTrip().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.writeEnum(1, cause_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stopId_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeInt64(3, validFromUnixS_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeInt64(4, validToUnixS_); - } - for (int i = 0; i < affectedJourneyPatternIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, affectedJourneyPatternIds_.getRaw(i)); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(6, getAffectedTrip()); - } - 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 - .computeEnumSize(1, cause_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stopId_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, validFromUnixS_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, validToUnixS_); - } - { - int dataSize = 0; - for (int i = 0; i < affectedJourneyPatternIds_.size(); i++) { - dataSize += computeStringSizeNoTag(affectedJourneyPatternIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getAffectedJourneyPatternIdsList().size(); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getAffectedTrip()); - } - 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 fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation other = (fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation) obj; - - if (hasCause() != other.hasCause()) return false; - if (hasCause()) { - if (cause_ != other.cause_) return false; - } - if (hasStopId() != other.hasStopId()) return false; - if (hasStopId()) { - if (!getStopId() - .equals(other.getStopId())) return false; - } - if (hasValidFromUnixS() != other.hasValidFromUnixS()) return false; - if (hasValidFromUnixS()) { - if (getValidFromUnixS() - != other.getValidFromUnixS()) return false; - } - if (hasValidToUnixS() != other.hasValidToUnixS()) return false; - if (hasValidToUnixS()) { - if (getValidToUnixS() - != other.getValidToUnixS()) return false; - } - if (!getAffectedJourneyPatternIdsList() - .equals(other.getAffectedJourneyPatternIdsList())) return false; - if (hasAffectedTrip() != other.hasAffectedTrip()) return false; - if (hasAffectedTrip()) { - if (!getAffectedTrip() - .equals(other.getAffectedTrip())) 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 (hasCause()) { - hash = (37 * hash) + CAUSE_FIELD_NUMBER; - hash = (53 * hash) + cause_; - } - if (hasStopId()) { - hash = (37 * hash) + STOP_ID_FIELD_NUMBER; - hash = (53 * hash) + getStopId().hashCode(); - } - if (hasValidFromUnixS()) { - hash = (37 * hash) + VALID_FROM_UNIX_S_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getValidFromUnixS()); - } - if (hasValidToUnixS()) { - hash = (37 * hash) + VALID_TO_UNIX_S_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getValidToUnixS()); - } - if (getAffectedJourneyPatternIdsCount() > 0) { - hash = (37 * hash) + AFFECTED_JOURNEY_PATTERN_IDS_FIELD_NUMBER; - hash = (53 * hash) + getAffectedJourneyPatternIdsList().hashCode(); - } - if (hasAffectedTrip()) { - hash = (37 * hash) + AFFECTED_TRIP_FIELD_NUMBER; - hash = (53 * hash) + getAffectedTrip().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.StopCancellations.StopCancellation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.StopCancellations.StopCancellation) - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_StopCancellation_descriptor; + // @@protoc_insertion_point(builder_scope:proto.StopEstimate) } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_StopCancellation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.class, fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder.class); + // @@protoc_insertion_point(class_scope:proto.StopEstimate) + private static final fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate(); } - // Construct using fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate getDefaultInstance() { + return DEFAULT_INSTANCE; } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAffectedTripFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - cause_ = 0; - stopId_ = ""; - validFromUnixS_ = 0L; - validToUnixS_ = 0L; - affectedJourneyPatternIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - affectedTrip_ = null; - if (affectedTripBuilder_ != null) { - affectedTripBuilder_.dispose(); - affectedTripBuilder_ = null; - } - return this; - } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopEstimate parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_StopCancellation_descriptor; + public static com.google.protobuf.Parser parser() { + return PARSER; } @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.getDefaultInstance(); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation build() { - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation buildPartial() { - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation result = new fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation result) { - if (((bitField0_ & 0x00000010) != 0)) { - affectedJourneyPatternIds_ = affectedJourneyPatternIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.affectedJourneyPatternIds_ = affectedJourneyPatternIds_; - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.cause_ = cause_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.stopId_ = stopId_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.validFromUnixS_ = validFromUnixS_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.validToUnixS_ = validToUnixS_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.affectedTrip_ = affectedTripBuilder_ == null - ? affectedTrip_ - : affectedTripBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - result.bitField0_ |= to_bitField0_; - } + } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation) { - return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation other) { - if (other == fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.getDefaultInstance()) return this; - if (other.hasCause()) { - setCause(other.getCause()); - } - if (other.hasStopId()) { - stopId_ = other.stopId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasValidFromUnixS()) { - setValidFromUnixS(other.getValidFromUnixS()); - } - if (other.hasValidToUnixS()) { - setValidToUnixS(other.getValidToUnixS()); - } - if (!other.affectedJourneyPatternIds_.isEmpty()) { - if (affectedJourneyPatternIds_.isEmpty()) { - affectedJourneyPatternIds_ = other.affectedJourneyPatternIds_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureAffectedJourneyPatternIdsIsMutable(); - affectedJourneyPatternIds_.addAll(other.affectedJourneyPatternIds_); - } - onChanged(); - } - if (other.hasAffectedTrip()) { - mergeAffectedTrip(other.getAffectedTrip()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + public interface BulletinOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.Bulletin) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public final boolean isInitialized() { - if (!hasCause()) { - return false; - } - if (!hasStopId()) { - return false; - } - if (hasAffectedTrip()) { - if (!getAffectedTrip().isInitialized()) { - return false; - } - } - return true; - } + /** + * optional string bulletin_id = 1; + * @return Whether the bulletinId field is set. + */ + boolean hasBulletinId(); + /** + * optional string bulletin_id = 1; + * @return The bulletinId. + */ + java.lang.String getBulletinId(); + /** + * optional string bulletin_id = 1; + * @return The bytes for bulletinId. + */ + com.google.protobuf.ByteString getBulletinIdBytes(); - @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: { - int tmpRaw = input.readEnum(); - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause tmpValue = - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(1, tmpRaw); - } else { - cause_ = tmpRaw; - bitField0_ |= 0x00000001; - } - break; - } // case 8 - case 18: { - stopId_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validFromUnixS_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - validToUnixS_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - ensureAffectedJourneyPatternIdsIsMutable(); - affectedJourneyPatternIds_.add(bs); - break; - } // case 42 - case 50: { - input.readMessage( - getAffectedTripFieldBuilder().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_; + /** + * optional .proto.Category category = 2; + * @return Whether the category field is set. + */ + boolean hasCategory(); + /** + * optional .proto.Category category = 2; + * @return The category. + */ + fi.hsl.common.transitdata.proto.InternalMessages.Category getCategory(); - private int cause_ = 0; /** - * required .proto.StopCancellations.Cause cause = 1; - * @return Whether the cause field is set. + * required int64 last_modified_utc_ms = 3; + * @return Whether the lastModifiedUtcMs field is set. */ - @java.lang.Override public boolean hasCause() { - return ((bitField0_ & 0x00000001) != 0); - } + boolean hasLastModifiedUtcMs(); /** - * required .proto.StopCancellations.Cause cause = 1; - * @return The cause. + * required int64 last_modified_utc_ms = 3; + * @return The lastModifiedUtcMs. */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause getCause() { - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause result = fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause.forNumber(cause_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause.CLOSED_STOP : result; - } + long getLastModifiedUtcMs(); + /** - * required .proto.StopCancellations.Cause cause = 1; - * @param value The cause to set. - * @return This builder for chaining. + * required int64 valid_from_utc_ms = 4; + * @return Whether the validFromUtcMs field is set. */ - public Builder setCause(fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Cause value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - cause_ = value.getNumber(); - onChanged(); - return this; - } + boolean hasValidFromUtcMs(); /** - * required .proto.StopCancellations.Cause cause = 1; - * @return This builder for chaining. + * required int64 valid_from_utc_ms = 4; + * @return The validFromUtcMs. */ - public Builder clearCause() { - bitField0_ = (bitField0_ & ~0x00000001); - cause_ = 0; - onChanged(); - return this; - } + long getValidFromUtcMs(); - private java.lang.Object stopId_ = ""; /** - * required string stop_id = 2; - * @return Whether the stopId field is set. + * required int64 valid_to_utc_ms = 5; + * @return Whether the validToUtcMs field is set. */ - public boolean hasStopId() { - return ((bitField0_ & 0x00000002) != 0); - } + boolean hasValidToUtcMs(); /** - * required string stop_id = 2; - * @return The stopId. + * required int64 valid_to_utc_ms = 5; + * @return The validToUtcMs. */ - public java.lang.String getStopId() { - java.lang.Object ref = stopId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } + long getValidToUtcMs(); + /** - * required string stop_id = 2; - * @return The bytes for stopId. + * optional bool affects_all_routes = 6; + * @return Whether the affectsAllRoutes field is set. */ - public com.google.protobuf.ByteString - getStopIdBytes() { - java.lang.Object ref = stopId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + boolean hasAffectsAllRoutes(); /** - * required string stop_id = 2; - * @param value The stopId to set. - * @return This builder for chaining. + * optional bool affects_all_routes = 6; + * @return The affectsAllRoutes. */ - public Builder setStopId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - stopId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + boolean getAffectsAllRoutes(); + /** - * required string stop_id = 2; - * @return This builder for chaining. + * optional bool affects_all_stops = 7; + * @return Whether the affectsAllStops field is set. */ - public Builder clearStopId() { - stopId_ = getDefaultInstance().getStopId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } + boolean hasAffectsAllStops(); /** - * required string stop_id = 2; - * @param value The bytes for stopId to set. - * @return This builder for chaining. + * optional bool affects_all_stops = 7; + * @return The affectsAllStops. */ - public Builder setStopIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - stopId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + boolean getAffectsAllStops(); - private long validFromUnixS_ ; /** - * optional int64 valid_from_unix_s = 3; - * @return Whether the validFromUnixS field is set. + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; */ - @java.lang.Override - public boolean hasValidFromUnixS() { - return ((bitField0_ & 0x00000004) != 0); - } + java.util.List getAffectedRoutesList(); /** - * optional int64 valid_from_unix_s = 3; - * @return The validFromUnixS. + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; */ - @java.lang.Override - public long getValidFromUnixS() { - return validFromUnixS_; - } + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getAffectedRoutes(int index); /** - * optional int64 valid_from_unix_s = 3; - * @param value The validFromUnixS to set. - * @return This builder for chaining. + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; */ - public Builder setValidFromUnixS(long value) { - - validFromUnixS_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + int getAffectedRoutesCount(); /** - * optional int64 valid_from_unix_s = 3; - * @return This builder for chaining. + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; */ - public Builder clearValidFromUnixS() { - bitField0_ = (bitField0_ & ~0x00000004); - validFromUnixS_ = 0L; - onChanged(); - return this; - } + java.util.List getAffectedRoutesOrBuilderList(); + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder getAffectedRoutesOrBuilder( + int index); - private long validToUnixS_ ; /** - * optional int64 valid_to_unix_s = 4; - * @return Whether the validToUnixS field is set. + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; */ - @java.lang.Override - public boolean hasValidToUnixS() { - return ((bitField0_ & 0x00000008) != 0); - } + java.util.List getAffectedStopsList(); /** - * optional int64 valid_to_unix_s = 4; - * @return The validToUnixS. + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; */ - @java.lang.Override - public long getValidToUnixS() { - return validToUnixS_; - } + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getAffectedStops(int index); /** - * optional int64 valid_to_unix_s = 4; - * @param value The validToUnixS to set. - * @return This builder for chaining. + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; */ - public Builder setValidToUnixS(long value) { - - validToUnixS_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } + int getAffectedStopsCount(); + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + java.util.List getAffectedStopsOrBuilderList(); + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder getAffectedStopsOrBuilder( + int index); + + /** + * optional .proto.Bulletin.Impact impact = 10; + * @return Whether the impact field is set. + */ + boolean hasImpact(); + /** + * optional .proto.Bulletin.Impact impact = 10; + * @return The impact. + */ + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact getImpact(); + + /** + * optional .proto.Bulletin.Priority priority = 11; + * @return Whether the priority field is set. + */ + boolean hasPriority(); + /** + * optional .proto.Bulletin.Priority priority = 11; + * @return The priority. + */ + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority getPriority(); + /** - * optional int64 valid_to_unix_s = 4; - * @return This builder for chaining. + * repeated .proto.Bulletin.Translation titles = 12; */ - public Builder clearValidToUnixS() { - bitField0_ = (bitField0_ & ~0x00000008); - validToUnixS_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList affectedJourneyPatternIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAffectedJourneyPatternIdsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - affectedJourneyPatternIds_ = new com.google.protobuf.LazyStringArrayList(affectedJourneyPatternIds_); - bitField0_ |= 0x00000010; - } - } + java.util.List getTitlesList(); /** - *
-         *List of journey patterns (IDs) that are affected by the stop cancellation
-         * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @return A list containing the affectedJourneyPatternIds. + * repeated .proto.Bulletin.Translation titles = 12; */ - public com.google.protobuf.ProtocolStringList - getAffectedJourneyPatternIdsList() { - return affectedJourneyPatternIds_.getUnmodifiableView(); - } + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getTitles(int index); /** - *
-         *List of journey patterns (IDs) that are affected by the stop cancellation
-         * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @return The count of affectedJourneyPatternIds. + * repeated .proto.Bulletin.Translation titles = 12; */ - public int getAffectedJourneyPatternIdsCount() { - return affectedJourneyPatternIds_.size(); - } + int getTitlesCount(); /** - *
-         *List of journey patterns (IDs) that are affected by the stop cancellation
-         * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @param index The index of the element to return. - * @return The affectedJourneyPatternIds at the given index. + * repeated .proto.Bulletin.Translation titles = 12; */ - public java.lang.String getAffectedJourneyPatternIds(int index) { - return affectedJourneyPatternIds_.get(index); - } + java.util.List getTitlesOrBuilderList(); /** - *
-         *List of journey patterns (IDs) that are affected by the stop cancellation
-         * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @param index The index of the value to return. - * @return The bytes of the affectedJourneyPatternIds at the given index. + * repeated .proto.Bulletin.Translation titles = 12; */ - public com.google.protobuf.ByteString - getAffectedJourneyPatternIdsBytes(int index) { - return affectedJourneyPatternIds_.getByteString(index); - } + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getTitlesOrBuilder(int index); + /** - *
-         *List of journey patterns (IDs) that are affected by the stop cancellation
-         * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @param index The index to set the value at. - * @param value The affectedJourneyPatternIds to set. - * @return This builder for chaining. + * repeated .proto.Bulletin.Translation descriptions = 13; */ - public Builder setAffectedJourneyPatternIds( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureAffectedJourneyPatternIdsIsMutable(); - affectedJourneyPatternIds_.set(index, value); - onChanged(); - return this; - } + java.util.List getDescriptionsList(); /** - *
-         *List of journey patterns (IDs) that are affected by the stop cancellation
-         * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @param value The affectedJourneyPatternIds to add. - * @return This builder for chaining. + * repeated .proto.Bulletin.Translation descriptions = 13; */ - public Builder addAffectedJourneyPatternIds( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureAffectedJourneyPatternIdsIsMutable(); - affectedJourneyPatternIds_.add(value); - onChanged(); - return this; - } + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getDescriptions(int index); /** - *
-         *List of journey patterns (IDs) that are affected by the stop cancellation
-         * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @param values The affectedJourneyPatternIds to add. - * @return This builder for chaining. + * repeated .proto.Bulletin.Translation descriptions = 13; */ - public Builder addAllAffectedJourneyPatternIds( - java.lang.Iterable values) { - ensureAffectedJourneyPatternIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, affectedJourneyPatternIds_); - onChanged(); - return this; - } + int getDescriptionsCount(); /** - *
-         *List of journey patterns (IDs) that are affected by the stop cancellation
-         * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @return This builder for chaining. + * repeated .proto.Bulletin.Translation descriptions = 13; */ - public Builder clearAffectedJourneyPatternIds() { - affectedJourneyPatternIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } + java.util.List getDescriptionsOrBuilderList(); /** - *
-         *List of journey patterns (IDs) that are affected by the stop cancellation
-         * 
- * - * repeated string affected_journey_pattern_ids = 5; - * @param value The bytes of the affectedJourneyPatternIds to add. - * @return This builder for chaining. + * repeated .proto.Bulletin.Translation descriptions = 13; */ - public Builder addAffectedJourneyPatternIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - ensureAffectedJourneyPatternIdsIsMutable(); - affectedJourneyPatternIds_.add(value); - onChanged(); - return this; - } + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getDescriptionsOrBuilder( + int index); - private fi.hsl.common.transitdata.proto.InternalMessages.TripInfo affectedTrip_; - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder, fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder> affectedTripBuilder_; /** - *
-         *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
-         * 
- * - * optional .proto.TripInfo affected_trip = 6; - * @return Whether the affectedTrip field is set. + * repeated .proto.Bulletin.Translation urls = 14; */ - public boolean hasAffectedTrip() { - return ((bitField0_ & 0x00000020) != 0); - } + java.util.List getUrlsList(); /** - *
-         *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
-         * 
- * - * optional .proto.TripInfo affected_trip = 6; - * @return The affectedTrip. + * repeated .proto.Bulletin.Translation urls = 14; */ - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getAffectedTrip() { - if (affectedTripBuilder_ == null) { - return affectedTrip_ == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() : affectedTrip_; - } else { - return affectedTripBuilder_.getMessage(); - } - } + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getUrls(int index); /** - *
-         *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
-         * 
- * - * optional .proto.TripInfo affected_trip = 6; + * repeated .proto.Bulletin.Translation urls = 14; */ - public Builder setAffectedTrip(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo value) { - if (affectedTripBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - affectedTrip_ = value; - } else { - affectedTripBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } + int getUrlsCount(); /** - *
-         *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
-         * 
- * - * optional .proto.TripInfo affected_trip = 6; + * repeated .proto.Bulletin.Translation urls = 14; */ - public Builder setAffectedTrip( - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder builderForValue) { - if (affectedTripBuilder_ == null) { - affectedTrip_ = builderForValue.build(); - } else { - affectedTripBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-         *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
-         * 
- * - * optional .proto.TripInfo affected_trip = 6; - */ - public Builder mergeAffectedTrip(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo value) { - if (affectedTripBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - affectedTrip_ != null && - affectedTrip_ != fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance()) { - getAffectedTripBuilder().mergeFrom(value); - } else { - affectedTrip_ = value; - } - } else { - affectedTripBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } + java.util.List getUrlsOrBuilderList(); /** - *
-         *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
-         * 
- * - * optional .proto.TripInfo affected_trip = 6; + * repeated .proto.Bulletin.Translation urls = 14; */ - public Builder clearAffectedTrip() { - bitField0_ = (bitField0_ & ~0x00000020); - affectedTrip_ = null; - if (affectedTripBuilder_ != null) { - affectedTripBuilder_.dispose(); - affectedTripBuilder_ = null; - } - onChanged(); - return this; - } + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getUrlsOrBuilder(int index); + /** *
-         *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+         *If true, the bulletin should be shown only on vehicle displays
          * 
* - * optional .proto.TripInfo affected_trip = 6; + * optional bool display_only = 15 [default = false]; + * @return Whether the displayOnly field is set. */ - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder getAffectedTripBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getAffectedTripFieldBuilder().getBuilder(); - } + boolean hasDisplayOnly(); /** *
-         *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
+         *If true, the bulletin should be shown only on vehicle displays
          * 
* - * optional .proto.TripInfo affected_trip = 6; + * optional bool display_only = 15 [default = false]; + * @return The displayOnly. */ - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getAffectedTripOrBuilder() { - if (affectedTripBuilder_ != null) { - return affectedTripBuilder_.getMessageOrBuilder(); - } else { - return affectedTrip_ == null ? - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() : affectedTrip_; - } - } - /** - *
-         *Refers to the affected trip if cause is JOURNEY_DETOUR - i.e. stopCancellation affects only one journey/trip
-         * 
- * - * optional .proto.TripInfo affected_trip = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder, fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder> - getAffectedTripFieldBuilder() { - if (affectedTripBuilder_ == null) { - affectedTripBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder, fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder>( - getAffectedTrip(), - getParentForChildren(), - isClean()); - affectedTrip_ = null; - } - return affectedTripBuilder_; + boolean getDisplayOnly(); + } + /** + * Protobuf type {@code proto.Bulletin} + */ + public static final class Bulletin extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.Bulletin) + BulletinOrBuilder { + private static final long serialVersionUID = 0L; + // Use Bulletin.newBuilder() to construct. + private Bulletin(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Bulletin() { + bulletinId_ = ""; + category_ = 0; + affectedRoutes_ = java.util.Collections.emptyList(); + affectedStops_ = java.util.Collections.emptyList(); + impact_ = 0; + priority_ = 0; + titles_ = java.util.Collections.emptyList(); + descriptions_ = java.util.Collections.emptyList(); + urls_ = java.util.Collections.emptyList(); } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Bulletin(); } @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_descriptor; } - - // @@protoc_insertion_point(builder_scope:proto.StopCancellations.StopCancellation) - } - - // @@protoc_insertion_point(class_scope:proto.StopCancellations.StopCancellation) - private static final fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation(); - } - - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public StopCancellation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int STOP_CANCELLATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List stopCancellations_; - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - @java.lang.Override - public java.util.List getStopCancellationsList() { - return stopCancellations_; - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - @java.lang.Override - public java.util.List - getStopCancellationsOrBuilderList() { - return stopCancellations_; - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - @java.lang.Override - public int getStopCancellationsCount() { - return stopCancellations_.size(); - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation getStopCancellations(int index) { - return stopCancellations_.get(index); - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellationOrBuilder getStopCancellationsOrBuilder( - int index) { - return stopCancellations_.get(index); - } - - public static final int AFFECTED_JOURNEY_PATTERNS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List affectedJourneyPatterns_; - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - @java.lang.Override - public java.util.List getAffectedJourneyPatternsList() { - return affectedJourneyPatterns_; - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - @java.lang.Override - public java.util.List - getAffectedJourneyPatternsOrBuilderList() { - return affectedJourneyPatterns_; - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - @java.lang.Override - public int getAffectedJourneyPatternsCount() { - return affectedJourneyPatterns_.size(); - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern getAffectedJourneyPatterns(int index) { - return affectedJourneyPatterns_.get(index); - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPatternOrBuilder getAffectedJourneyPatternsOrBuilder( - int index) { - return affectedJourneyPatterns_.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 < getStopCancellationsCount(); i++) { - if (!getStopCancellations(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getAffectedJourneyPatternsCount(); i++) { - if (!getAffectedJourneyPatterns(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 { - for (int i = 0; i < stopCancellations_.size(); i++) { - output.writeMessage(1, stopCancellations_.get(i)); - } - for (int i = 0; i < affectedJourneyPatterns_.size(); i++) { - output.writeMessage(2, affectedJourneyPatterns_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < stopCancellations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, stopCancellations_.get(i)); - } - for (int i = 0; i < affectedJourneyPatterns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, affectedJourneyPatterns_.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 fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations other = (fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations) obj; - - if (!getStopCancellationsList() - .equals(other.getStopCancellationsList())) return false; - if (!getAffectedJourneyPatternsList() - .equals(other.getAffectedJourneyPatternsList())) 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 (getStopCancellationsCount() > 0) { - hash = (37 * hash) + STOP_CANCELLATIONS_FIELD_NUMBER; - hash = (53 * hash) + getStopCancellationsList().hashCode(); - } - if (getAffectedJourneyPatternsCount() > 0) { - hash = (37 * hash) + AFFECTED_JOURNEY_PATTERNS_FIELD_NUMBER; - hash = (53 * hash) + getAffectedJourneyPatternsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.StopCancellations} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.StopCancellations) - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellationsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.class, fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.Builder.class); - } - - // Construct using fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (stopCancellationsBuilder_ == null) { - stopCancellations_ = java.util.Collections.emptyList(); - } else { - stopCancellations_ = null; - stopCancellationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (affectedJourneyPatternsBuilder_ == null) { - affectedJourneyPatterns_ = java.util.Collections.emptyList(); - } else { - affectedJourneyPatterns_ = null; - affectedJourneyPatternsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopCancellations_descriptor; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations build() { - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations buildPartial() { - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations result = new fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations result) { - if (stopCancellationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - stopCancellations_ = java.util.Collections.unmodifiableList(stopCancellations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.stopCancellations_ = stopCancellations_; - } else { - result.stopCancellations_ = stopCancellationsBuilder_.build(); - } - if (affectedJourneyPatternsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - affectedJourneyPatterns_ = java.util.Collections.unmodifiableList(affectedJourneyPatterns_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.affectedJourneyPatterns_ = affectedJourneyPatterns_; - } else { - result.affectedJourneyPatterns_ = affectedJourneyPatternsBuilder_.build(); - } - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations) { - return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations other) { - if (other == fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.getDefaultInstance()) return this; - if (stopCancellationsBuilder_ == null) { - if (!other.stopCancellations_.isEmpty()) { - if (stopCancellations_.isEmpty()) { - stopCancellations_ = other.stopCancellations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureStopCancellationsIsMutable(); - stopCancellations_.addAll(other.stopCancellations_); - } - onChanged(); - } - } else { - if (!other.stopCancellations_.isEmpty()) { - if (stopCancellationsBuilder_.isEmpty()) { - stopCancellationsBuilder_.dispose(); - stopCancellationsBuilder_ = null; - stopCancellations_ = other.stopCancellations_; - bitField0_ = (bitField0_ & ~0x00000001); - stopCancellationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStopCancellationsFieldBuilder() : null; - } else { - stopCancellationsBuilder_.addAllMessages(other.stopCancellations_); - } - } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.class, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder.class); } - if (affectedJourneyPatternsBuilder_ == null) { - if (!other.affectedJourneyPatterns_.isEmpty()) { - if (affectedJourneyPatterns_.isEmpty()) { - affectedJourneyPatterns_ = other.affectedJourneyPatterns_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAffectedJourneyPatternsIsMutable(); - affectedJourneyPatterns_.addAll(other.affectedJourneyPatterns_); - } - onChanged(); - } - } else { - if (!other.affectedJourneyPatterns_.isEmpty()) { - if (affectedJourneyPatternsBuilder_.isEmpty()) { - affectedJourneyPatternsBuilder_.dispose(); - affectedJourneyPatternsBuilder_ = null; - affectedJourneyPatterns_ = other.affectedJourneyPatterns_; - bitField0_ = (bitField0_ & ~0x00000002); - affectedJourneyPatternsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAffectedJourneyPatternsFieldBuilder() : null; - } else { - affectedJourneyPatternsBuilder_.addAllMessages(other.affectedJourneyPatterns_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (int i = 0; i < getStopCancellationsCount(); i++) { - if (!getStopCancellations(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getAffectedJourneyPatternsCount(); i++) { - if (!getAffectedJourneyPatterns(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: { - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation m = - input.readMessage( - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.PARSER, - extensionRegistry); - if (stopCancellationsBuilder_ == null) { - ensureStopCancellationsIsMutable(); - stopCancellations_.add(m); - } else { - stopCancellationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern m = - input.readMessage( - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.PARSER, - extensionRegistry); - if (affectedJourneyPatternsBuilder_ == null) { - ensureAffectedJourneyPatternsIsMutable(); - affectedJourneyPatterns_.add(m); - } else { - affectedJourneyPatternsBuilder_.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.util.List stopCancellations_ = - java.util.Collections.emptyList(); - private void ensureStopCancellationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - stopCancellations_ = new java.util.ArrayList(stopCancellations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation, fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder, fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellationOrBuilder> stopCancellationsBuilder_; - - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public java.util.List getStopCancellationsList() { - if (stopCancellationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(stopCancellations_); - } else { - return stopCancellationsBuilder_.getMessageList(); - } - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public int getStopCancellationsCount() { - if (stopCancellationsBuilder_ == null) { - return stopCancellations_.size(); - } else { - return stopCancellationsBuilder_.getCount(); - } - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation getStopCancellations(int index) { - if (stopCancellationsBuilder_ == null) { - return stopCancellations_.get(index); - } else { - return stopCancellationsBuilder_.getMessage(index); - } - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public Builder setStopCancellations( - int index, fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation value) { - if (stopCancellationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStopCancellationsIsMutable(); - stopCancellations_.set(index, value); - onChanged(); - } else { - stopCancellationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public Builder setStopCancellations( - int index, fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder builderForValue) { - if (stopCancellationsBuilder_ == null) { - ensureStopCancellationsIsMutable(); - stopCancellations_.set(index, builderForValue.build()); - onChanged(); - } else { - stopCancellationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public Builder addStopCancellations(fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation value) { - if (stopCancellationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStopCancellationsIsMutable(); - stopCancellations_.add(value); - onChanged(); - } else { - stopCancellationsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public Builder addStopCancellations( - int index, fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation value) { - if (stopCancellationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStopCancellationsIsMutable(); - stopCancellations_.add(index, value); - onChanged(); - } else { - stopCancellationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public Builder addStopCancellations( - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder builderForValue) { - if (stopCancellationsBuilder_ == null) { - ensureStopCancellationsIsMutable(); - stopCancellations_.add(builderForValue.build()); - onChanged(); - } else { - stopCancellationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public Builder addStopCancellations( - int index, fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder builderForValue) { - if (stopCancellationsBuilder_ == null) { - ensureStopCancellationsIsMutable(); - stopCancellations_.add(index, builderForValue.build()); - onChanged(); - } else { - stopCancellationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public Builder addAllStopCancellations( - java.lang.Iterable values) { - if (stopCancellationsBuilder_ == null) { - ensureStopCancellationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stopCancellations_); - onChanged(); - } else { - stopCancellationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public Builder clearStopCancellations() { - if (stopCancellationsBuilder_ == null) { - stopCancellations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - stopCancellationsBuilder_.clear(); - } - return this; - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public Builder removeStopCancellations(int index) { - if (stopCancellationsBuilder_ == null) { - ensureStopCancellationsIsMutable(); - stopCancellations_.remove(index); - onChanged(); - } else { - stopCancellationsBuilder_.remove(index); - } - return this; - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder getStopCancellationsBuilder( - int index) { - return getStopCancellationsFieldBuilder().getBuilder(index); - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellationOrBuilder getStopCancellationsOrBuilder( - int index) { - if (stopCancellationsBuilder_ == null) { - return stopCancellations_.get(index); } else { - return stopCancellationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public java.util.List - getStopCancellationsOrBuilderList() { - if (stopCancellationsBuilder_ != null) { - return stopCancellationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(stopCancellations_); - } - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder addStopCancellationsBuilder() { - return getStopCancellationsFieldBuilder().addBuilder( - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.getDefaultInstance()); - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder addStopCancellationsBuilder( - int index) { - return getStopCancellationsFieldBuilder().addBuilder( - index, fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.getDefaultInstance()); - } - /** - * repeated .proto.StopCancellations.StopCancellation stop_cancellations = 1; - */ - public java.util.List - getStopCancellationsBuilderList() { - return getStopCancellationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation, fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder, fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellationOrBuilder> - getStopCancellationsFieldBuilder() { - if (stopCancellationsBuilder_ == null) { - stopCancellationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation, fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellation.Builder, fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations.StopCancellationOrBuilder>( - stopCancellations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - stopCancellations_ = null; - } - return stopCancellationsBuilder_; - } - - private java.util.List affectedJourneyPatterns_ = - java.util.Collections.emptyList(); - private void ensureAffectedJourneyPatternsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - affectedJourneyPatterns_ = new java.util.ArrayList(affectedJourneyPatterns_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPatternOrBuilder> affectedJourneyPatternsBuilder_; - - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public java.util.List getAffectedJourneyPatternsList() { - if (affectedJourneyPatternsBuilder_ == null) { - return java.util.Collections.unmodifiableList(affectedJourneyPatterns_); - } else { - return affectedJourneyPatternsBuilder_.getMessageList(); - } - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public int getAffectedJourneyPatternsCount() { - if (affectedJourneyPatternsBuilder_ == null) { - return affectedJourneyPatterns_.size(); - } else { - return affectedJourneyPatternsBuilder_.getCount(); - } - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern getAffectedJourneyPatterns(int index) { - if (affectedJourneyPatternsBuilder_ == null) { - return affectedJourneyPatterns_.get(index); - } else { - return affectedJourneyPatternsBuilder_.getMessage(index); - } - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public Builder setAffectedJourneyPatterns( - int index, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern value) { - if (affectedJourneyPatternsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedJourneyPatternsIsMutable(); - affectedJourneyPatterns_.set(index, value); - onChanged(); - } else { - affectedJourneyPatternsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public Builder setAffectedJourneyPatterns( - int index, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder builderForValue) { - if (affectedJourneyPatternsBuilder_ == null) { - ensureAffectedJourneyPatternsIsMutable(); - affectedJourneyPatterns_.set(index, builderForValue.build()); - onChanged(); - } else { - affectedJourneyPatternsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public Builder addAffectedJourneyPatterns(fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern value) { - if (affectedJourneyPatternsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedJourneyPatternsIsMutable(); - affectedJourneyPatterns_.add(value); - onChanged(); - } else { - affectedJourneyPatternsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public Builder addAffectedJourneyPatterns( - int index, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern value) { - if (affectedJourneyPatternsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedJourneyPatternsIsMutable(); - affectedJourneyPatterns_.add(index, value); - onChanged(); - } else { - affectedJourneyPatternsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public Builder addAffectedJourneyPatterns( - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder builderForValue) { - if (affectedJourneyPatternsBuilder_ == null) { - ensureAffectedJourneyPatternsIsMutable(); - affectedJourneyPatterns_.add(builderForValue.build()); - onChanged(); - } else { - affectedJourneyPatternsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public Builder addAffectedJourneyPatterns( - int index, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder builderForValue) { - if (affectedJourneyPatternsBuilder_ == null) { - ensureAffectedJourneyPatternsIsMutable(); - affectedJourneyPatterns_.add(index, builderForValue.build()); - onChanged(); - } else { - affectedJourneyPatternsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public Builder addAllAffectedJourneyPatterns( - java.lang.Iterable values) { - if (affectedJourneyPatternsBuilder_ == null) { - ensureAffectedJourneyPatternsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, affectedJourneyPatterns_); - onChanged(); - } else { - affectedJourneyPatternsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public Builder clearAffectedJourneyPatterns() { - if (affectedJourneyPatternsBuilder_ == null) { - affectedJourneyPatterns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - affectedJourneyPatternsBuilder_.clear(); - } - return this; - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public Builder removeAffectedJourneyPatterns(int index) { - if (affectedJourneyPatternsBuilder_ == null) { - ensureAffectedJourneyPatternsIsMutable(); - affectedJourneyPatterns_.remove(index); - onChanged(); - } else { - affectedJourneyPatternsBuilder_.remove(index); - } - return this; - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder getAffectedJourneyPatternsBuilder( - int index) { - return getAffectedJourneyPatternsFieldBuilder().getBuilder(index); - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPatternOrBuilder getAffectedJourneyPatternsOrBuilder( - int index) { - if (affectedJourneyPatternsBuilder_ == null) { - return affectedJourneyPatterns_.get(index); } else { - return affectedJourneyPatternsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public java.util.List - getAffectedJourneyPatternsOrBuilderList() { - if (affectedJourneyPatternsBuilder_ != null) { - return affectedJourneyPatternsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(affectedJourneyPatterns_); - } - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder addAffectedJourneyPatternsBuilder() { - return getAffectedJourneyPatternsFieldBuilder().addBuilder( - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.getDefaultInstance()); - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder addAffectedJourneyPatternsBuilder( - int index) { - return getAffectedJourneyPatternsFieldBuilder().addBuilder( - index, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.getDefaultInstance()); - } - /** - * repeated .proto.JourneyPattern affected_journey_patterns = 2; - */ - public java.util.List - getAffectedJourneyPatternsBuilderList() { - return getAffectedJourneyPatternsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPatternOrBuilder> - getAffectedJourneyPatternsFieldBuilder() { - if (affectedJourneyPatternsBuilder_ == null) { - affectedJourneyPatternsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPattern.Builder, fi.hsl.common.transitdata.proto.InternalMessages.JourneyPatternOrBuilder>( - affectedJourneyPatterns_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - affectedJourneyPatterns_ = null; - } - return affectedJourneyPatternsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.StopCancellations) - } - - // @@protoc_insertion_point(class_scope:proto.StopCancellations) - private static final fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations(); - } - - public static fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopCancellations parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopCancellations getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TripCancellationOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.TripCancellation) - com.google.protobuf.MessageOrBuilder { - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - boolean hasSchemaVersion(); - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - int getSchemaVersion(); + /** + * Protobuf enum {@code proto.Bulletin.Impact} + */ + public enum Impact implements com.google.protobuf.ProtocolMessageEnum { + /** + * CANCELLED = 0; + */ + CANCELLED(0), + /** + * DELAYED = 1; + */ + DELAYED(1), + /** + * DEVIATING_SCHEDULE = 2; + */ + DEVIATING_SCHEDULE(2), + /** + * DISRUPTION_ROUTE = 3; + */ + DISRUPTION_ROUTE(3), + /** + * IRREGULAR_DEPARTURES = 4; + */ + IRREGULAR_DEPARTURES(4), + /** + * POSSIBLE_DEVIATIONS = 5; + */ + POSSIBLE_DEVIATIONS(5), + /** + * POSSIBLY_DELAYED = 6; + */ + POSSIBLY_DELAYED(6), + /** + * REDUCED_TRANSPORT = 7; + */ + REDUCED_TRANSPORT(7), + /** + * RETURNING_TO_NORMAL = 8; + */ + RETURNING_TO_NORMAL(8), + /** + * VENDING_MACHINE_OUT_OF_ORDER = 9; + */ + VENDING_MACHINE_OUT_OF_ORDER(9), + /** + * NULL = 10; + */ + NULL(10), + /** + * OTHER = 11; + */ + OTHER(11), + /** + * NO_TRAFFIC_IMPACT = 12; + */ + NO_TRAFFIC_IMPACT(12), + /** + * UNKNOWN = 13; + */ + UNKNOWN(13),; + + /** + * CANCELLED = 0; + */ + public static final int CANCELLED_VALUE = 0; + /** + * DELAYED = 1; + */ + public static final int DELAYED_VALUE = 1; + /** + * DEVIATING_SCHEDULE = 2; + */ + public static final int DEVIATING_SCHEDULE_VALUE = 2; + /** + * DISRUPTION_ROUTE = 3; + */ + public static final int DISRUPTION_ROUTE_VALUE = 3; + /** + * IRREGULAR_DEPARTURES = 4; + */ + public static final int IRREGULAR_DEPARTURES_VALUE = 4; + /** + * POSSIBLE_DEVIATIONS = 5; + */ + public static final int POSSIBLE_DEVIATIONS_VALUE = 5; + /** + * POSSIBLY_DELAYED = 6; + */ + public static final int POSSIBLY_DELAYED_VALUE = 6; + /** + * REDUCED_TRANSPORT = 7; + */ + public static final int REDUCED_TRANSPORT_VALUE = 7; + /** + * RETURNING_TO_NORMAL = 8; + */ + public static final int RETURNING_TO_NORMAL_VALUE = 8; + /** + * VENDING_MACHINE_OUT_OF_ORDER = 9; + */ + public static final int VENDING_MACHINE_OUT_OF_ORDER_VALUE = 9; + /** + * NULL = 10; + */ + public static final int NULL_VALUE = 10; + /** + * OTHER = 11; + */ + public static final int OTHER_VALUE = 11; + /** + * NO_TRAFFIC_IMPACT = 12; + */ + public static final int NO_TRAFFIC_IMPACT_VALUE = 12; + /** + * UNKNOWN = 13; + */ + public static final int UNKNOWN_VALUE = 13; + + public final int getNumber() { + return value; + } - /** - * optional string trip_id = 2; - * @return Whether the tripId field is set. - */ - boolean hasTripId(); - /** - * optional string trip_id = 2; - * @return The tripId. - */ - java.lang.String getTripId(); - /** - * optional string trip_id = 2; - * @return The bytes for tripId. - */ - com.google.protobuf.ByteString - getTripIdBytes(); + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Impact valueOf(int value) { + return forNumber(value); + } - /** - * optional string route_id = 3; - * @return Whether the routeId field is set. - */ - boolean hasRouteId(); - /** - * optional string route_id = 3; - * @return The routeId. - */ - java.lang.String getRouteId(); - /** - * optional string route_id = 3; - * @return The bytes for routeId. - */ - com.google.protobuf.ByteString - getRouteIdBytes(); + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Impact forNumber(int value) { + switch (value) { + case 0 : + return CANCELLED; + case 1 : + return DELAYED; + case 2 : + return DEVIATING_SCHEDULE; + case 3 : + return DISRUPTION_ROUTE; + case 4 : + return IRREGULAR_DEPARTURES; + case 5 : + return POSSIBLE_DEVIATIONS; + case 6 : + return POSSIBLY_DELAYED; + case 7 : + return REDUCED_TRANSPORT; + case 8 : + return RETURNING_TO_NORMAL; + case 9 : + return VENDING_MACHINE_OUT_OF_ORDER; + case 10 : + return NULL; + case 11 : + return OTHER; + case 12 : + return NO_TRAFFIC_IMPACT; + case 13 : + return UNKNOWN; + default : + return null; + } + } - /** - * optional uint32 direction_id = 4; - * @return Whether the directionId field is set. - */ - boolean hasDirectionId(); - /** - * optional uint32 direction_id = 4; - * @return The directionId. - */ - int getDirectionId(); + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public Impact findValueByNumber(int number) { + return Impact.forNumber(number); + } + }; - /** - * optional string start_time = 5; - * @return Whether the startTime field is set. - */ - boolean hasStartTime(); - /** - * optional string start_time = 5; - * @return The startTime. - */ - java.lang.String getStartTime(); - /** - * optional string start_time = 5; - * @return The bytes for startTime. - */ - com.google.protobuf.ByteString - getStartTimeBytes(); + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.getDescriptor().getEnumTypes().get(0); + } - /** - * optional string start_date = 6; - * @return Whether the startDate field is set. - */ - boolean hasStartDate(); - /** - * optional string start_date = 6; - * @return The startDate. - */ - java.lang.String getStartDate(); - /** - * optional string start_date = 6; - * @return The bytes for startDate. - */ - com.google.protobuf.ByteString - getStartDateBytes(); + private static final Impact[] VALUES = values(); - /** - * required .proto.TripCancellation.Status status = 7; - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - * required .proto.TripCancellation.Status status = 7; - * @return The status. - */ - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status getStatus(); + public static Impact valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } - /** - * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; - * @return Whether the deviationCasesType field is set. - */ - boolean hasDeviationCasesType(); - /** - * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; - * @return The deviationCasesType. - */ - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType getDeviationCasesType(); + private final int value; - /** - * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; - * @return Whether the affectedDeparturesType field is set. - */ - boolean hasAffectedDeparturesType(); - /** - * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; - * @return The affectedDeparturesType. - */ - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType getAffectedDeparturesType(); + private Impact(int value) { + this.value = value; + } - /** - * optional string title = 10; - * @return Whether the title field is set. - */ - boolean hasTitle(); - /** - * optional string title = 10; - * @return The title. - */ - java.lang.String getTitle(); - /** - * optional string title = 10; - * @return The bytes for title. - */ - com.google.protobuf.ByteString - getTitleBytes(); + // @@protoc_insertion_point(enum_scope:proto.Bulletin.Impact) + } - /** - * optional string description = 11; - * @return Whether the description field is set. - */ - boolean hasDescription(); - /** - * optional string description = 11; - * @return The description. - */ - java.lang.String getDescription(); - /** - * optional string description = 11; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); + /** + * Protobuf enum {@code proto.Bulletin.Priority} + */ + public enum Priority implements com.google.protobuf.ProtocolMessageEnum { + /** + * INFO = 0; + */ + INFO(0), + /** + * WARNING = 1; + */ + WARNING(1), + /** + * SEVERE = 2; + */ + SEVERE(2),; + + /** + * INFO = 0; + */ + public static final int INFO_VALUE = 0; + /** + * WARNING = 1; + */ + public static final int WARNING_VALUE = 1; + /** + * SEVERE = 2; + */ + public static final int SEVERE_VALUE = 2; + + public final int getNumber() { + return value; + } - /** - * optional .proto.Category category = 12; - * @return Whether the category field is set. - */ - boolean hasCategory(); - /** - * optional .proto.Category category = 12; - * @return The category. - */ - fi.hsl.common.transitdata.proto.InternalMessages.Category getCategory(); + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Priority valueOf(int value) { + return forNumber(value); + } - /** - * optional .proto.TripCancellation.SubCategory sub_category = 13; - * @return Whether the subCategory field is set. - */ - boolean hasSubCategory(); - /** - * optional .proto.TripCancellation.SubCategory sub_category = 13; - * @return The subCategory. - */ - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory getSubCategory(); + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Priority forNumber(int value) { + switch (value) { + case 0 : + return INFO; + case 1 : + return WARNING; + case 2 : + return SEVERE; + default : + return null; + } + } - /** - * optional int64 deviation_case_id = 14; - * @return Whether the deviationCaseId field is set. - */ - boolean hasDeviationCaseId(); - /** - * optional int64 deviation_case_id = 14; - * @return The deviationCaseId. - */ - long getDeviationCaseId(); - } - /** - * Protobuf type {@code proto.TripCancellation} - */ - public static final class TripCancellation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.TripCancellation) - TripCancellationOrBuilder { - private static final long serialVersionUID = 0L; - // Use TripCancellation.newBuilder() to construct. - private TripCancellation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TripCancellation() { - schemaVersion_ = 1; - tripId_ = ""; - routeId_ = ""; - startTime_ = ""; - startDate_ = ""; - status_ = 0; - deviationCasesType_ = 0; - affectedDeparturesType_ = 0; - title_ = ""; - description_ = ""; - category_ = 0; - subCategory_ = 0; - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public Priority findValueByNumber(int number) { + return Priority.forNumber(number); + } + }; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TripCancellation(); - } + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.getDescriptor().getEnumTypes().get(1); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripCancellation_descriptor; - } + private static final Priority[] VALUES = values(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripCancellation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.class, fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Builder.class); - } + public static Priority valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } - /** - *
-     * This message is only used to either cancel a trip or mark a previously canceled trip as running as scheduled
-     * 
- * - * Protobuf enum {@code proto.TripCancellation.Status} - */ - public enum Status - implements com.google.protobuf.ProtocolMessageEnum { - /** - * RUNNING = 0; - */ - RUNNING(0), - /** - * CANCELED = 1; - */ - CANCELED(1), - ; - - /** - * RUNNING = 0; - */ - public static final int RUNNING_VALUE = 0; - /** - * CANCELED = 1; - */ - public static final int CANCELED_VALUE = 1; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Status valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Status forNumber(int value) { - switch (value) { - case 0: return RUNNING; - case 1: return CANCELED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Status> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Status findValueByNumber(int number) { - return Status.forNumber(number); - } - }; + private final int value; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.getDescriptor().getEnumTypes().get(0); - } - - private static final Status[] VALUES = values(); - - public static Status valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Status(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.TripCancellation.Status) - } + private Priority(int value) { + this.value = value; + } - /** - * Protobuf enum {@code proto.TripCancellation.DeviationCasesType} - */ - public enum DeviationCasesType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * CANCEL_DEPARTURE = 0; - */ - CANCEL_DEPARTURE(0), - /** - * DETOUR = 1; - */ - DETOUR(1), - /** - * SKIPPED_STOP_CALLS = 2; - */ - SKIPPED_STOP_CALLS(2), - /** - * EARLY_DEPARTURE = 3; - */ - EARLY_DEPARTURE(3), - /** - * EARLY_DEPARTURE_FROM_TIMING_POINT = 4; - */ - EARLY_DEPARTURE_FROM_TIMING_POINT(4), - /** - * LATE_DEPARTURE = 5; - */ - LATE_DEPARTURE(5), - /** - * DEPARTURED_AFTER_NEXT_JOURNEY = 6; - */ - DEPARTURED_AFTER_NEXT_JOURNEY(6), - /** - * BLOCK_FIRST_DEPARTURE_LATE = 7; - */ - BLOCK_FIRST_DEPARTURE_LATE(7), - /** - * TIS_ERROR = 8; - */ - TIS_ERROR(8), - ; - - /** - * CANCEL_DEPARTURE = 0; - */ - public static final int CANCEL_DEPARTURE_VALUE = 0; - /** - * DETOUR = 1; - */ - public static final int DETOUR_VALUE = 1; - /** - * SKIPPED_STOP_CALLS = 2; - */ - public static final int SKIPPED_STOP_CALLS_VALUE = 2; - /** - * EARLY_DEPARTURE = 3; - */ - public static final int EARLY_DEPARTURE_VALUE = 3; - /** - * EARLY_DEPARTURE_FROM_TIMING_POINT = 4; - */ - public static final int EARLY_DEPARTURE_FROM_TIMING_POINT_VALUE = 4; - /** - * LATE_DEPARTURE = 5; - */ - public static final int LATE_DEPARTURE_VALUE = 5; - /** - * DEPARTURED_AFTER_NEXT_JOURNEY = 6; - */ - public static final int DEPARTURED_AFTER_NEXT_JOURNEY_VALUE = 6; - /** - * BLOCK_FIRST_DEPARTURE_LATE = 7; - */ - public static final int BLOCK_FIRST_DEPARTURE_LATE_VALUE = 7; - /** - * TIS_ERROR = 8; - */ - public static final int TIS_ERROR_VALUE = 8; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DeviationCasesType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static DeviationCasesType forNumber(int value) { - switch (value) { - case 0: return CANCEL_DEPARTURE; - case 1: return DETOUR; - case 2: return SKIPPED_STOP_CALLS; - case 3: return EARLY_DEPARTURE; - case 4: return EARLY_DEPARTURE_FROM_TIMING_POINT; - case 5: return LATE_DEPARTURE; - case 6: return DEPARTURED_AFTER_NEXT_JOURNEY; - case 7: return BLOCK_FIRST_DEPARTURE_LATE; - case 8: return TIS_ERROR; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - DeviationCasesType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DeviationCasesType findValueByNumber(int number) { - return DeviationCasesType.forNumber(number); - } - }; + // @@protoc_insertion_point(enum_scope:proto.Bulletin.Priority) + } + + public interface AffectedEntityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.Bulletin.AffectedEntity) + com.google.protobuf.MessageOrBuilder { + + /** + * required string entity_id = 1; + * @return Whether the entityId field is set. + */ + boolean hasEntityId(); + /** + * required string entity_id = 1; + * @return The entityId. + */ + java.lang.String getEntityId(); + /** + * required string entity_id = 1; + * @return The bytes for entityId. + */ + com.google.protobuf.ByteString getEntityIdBytes(); + } + /** + * Protobuf type {@code proto.Bulletin.AffectedEntity} + */ + public static final class AffectedEntity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.Bulletin.AffectedEntity) + AffectedEntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use AffectedEntity.newBuilder() to construct. + private AffectedEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AffectedEntity() { + entityId_ = ""; + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.getDescriptor().getEnumTypes().get(1); - } - - private static final DeviationCasesType[] VALUES = values(); - - public static DeviationCasesType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private DeviationCasesType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.TripCancellation.DeviationCasesType) - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AffectedEntity(); + } - /** - * Protobuf enum {@code proto.TripCancellation.AffectedDeparturesType} - */ - public enum AffectedDeparturesType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * CANCEL_ENTIRE_DEPARTURE = 0; - */ - CANCEL_ENTIRE_DEPARTURE(0), - /** - * CANCEL_STOPS_FROM_START = 1; - */ - CANCEL_STOPS_FROM_START(1), - /** - * CANCEL_STOPS_FROM_MIDDLE = 2; - */ - CANCEL_STOPS_FROM_MIDDLE(2), - /** - * CANCEL_STOPS_FROM_END = 3; - */ - CANCEL_STOPS_FROM_END(3), - ; - - /** - * CANCEL_ENTIRE_DEPARTURE = 0; - */ - public static final int CANCEL_ENTIRE_DEPARTURE_VALUE = 0; - /** - * CANCEL_STOPS_FROM_START = 1; - */ - public static final int CANCEL_STOPS_FROM_START_VALUE = 1; - /** - * CANCEL_STOPS_FROM_MIDDLE = 2; - */ - public static final int CANCEL_STOPS_FROM_MIDDLE_VALUE = 2; - /** - * CANCEL_STOPS_FROM_END = 3; - */ - public static final int CANCEL_STOPS_FROM_END_VALUE = 3; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AffectedDeparturesType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static AffectedDeparturesType forNumber(int value) { - switch (value) { - case 0: return CANCEL_ENTIRE_DEPARTURE; - case 1: return CANCEL_STOPS_FROM_START; - case 2: return CANCEL_STOPS_FROM_MIDDLE; - case 3: return CANCEL_STOPS_FROM_END; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AffectedDeparturesType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AffectedDeparturesType findValueByNumber(int number) { - return AffectedDeparturesType.forNumber(number); - } - }; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_AffectedEntity_descriptor; + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.getDescriptor().getEnumTypes().get(2); - } - - private static final AffectedDeparturesType[] VALUES = values(); - - public static AffectedDeparturesType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AffectedDeparturesType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.TripCancellation.AffectedDeparturesType) - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_AffectedEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.class, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder.class); + } - /** - * Protobuf enum {@code proto.TripCancellation.SubCategory} - */ - public enum SubCategory - implements com.google.protobuf.ProtocolMessageEnum { - /** - * BREAK_MALFUNCTION = 0; - */ - BREAK_MALFUNCTION(0), - /** - * OUT_OF_FUEL = 1; - */ - OUT_OF_FUEL(1), - /** - * FLUID_LEAKAGE = 2; - */ - FLUID_LEAKAGE(2), - /** - * ELECTRIC_MALFUNCTION = 3; - */ - ELECTRIC_MALFUNCTION(3), - /** - * ENGINE_MALFUNCTION = 4; - */ - ENGINE_MALFUNCTION(4), - /** - * OTHER_MALFUNCTION = 5; - */ - OTHER_MALFUNCTION(5), - /** - * OWN_FAULT = 6; - */ - OWN_FAULT(6), - /** - * OPPOSITE_FAULT = 7; - */ - OPPOSITE_FAULT(7), - /** - * FAULT_UNKNOWN = 8; - */ - FAULT_UNKNOWN(8), - /** - * STAFF_SHORTAGE = 9; - */ - STAFF_SHORTAGE(9), - /** - * ND_OPERATOR_PLANNING_ERROR = 10; - */ - ND_OPERATOR_PLANNING_ERROR(10), - /** - * DRIVER_LATE = 11; - */ - DRIVER_LATE(11), - /** - * INSUFFICIENT_INSTRUCTIONS_BY_OPERATOR = 12; - */ - INSUFFICIENT_INSTRUCTIONS_BY_OPERATOR(12), - /** - * INSUFFICIENT_INSTRUCTIONS_BY_AUTHORITY = 13; - */ - INSUFFICIENT_INSTRUCTIONS_BY_AUTHORITY(13), - /** - * NO_VEHICLE_AVAILABLE = 14; - */ - NO_VEHICLE_AVAILABLE(14), - /** - * ASSAULT_ON_DRIVER = 15; - */ - ASSAULT_ON_DRIVER(15), - /** - * ASSAULT_ON_PASSENGER = 16; - */ - ASSAULT_ON_PASSENGER(16), - /** - * ASSAULT_ON_VEHICLE = 17; - */ - ASSAULT_ON_VEHICLE(17), - /** - * PASSED_OUT_PASSENGER = 18; - */ - PASSED_OUT_PASSENGER(18), - /** - * OTHER_ASSAULT = 19; - */ - OTHER_ASSAULT(19), - /** - * UNDRIVEABLE_CONDITIONS = 20; - */ - UNDRIVEABLE_CONDITIONS(20), - /** - * STUCK_CAUSED_BY_SLIPPERY = 21; - */ - STUCK_CAUSED_BY_SLIPPERY(21), - /** - * CONGESTION_CAUSED_BY_WEATHER = 22; - */ - CONGESTION_CAUSED_BY_WEATHER(22), - /** - * SLIPPERY_TRACK = 23; - */ - SLIPPERY_TRACK(23), - /** - * ROAD_BLOCKED = 24; - */ - ROAD_BLOCKED(24), - /** - * VEHICLE_OFF_THE_ROAD_BY_DRIVER_ERROR = 25; - */ - VEHICLE_OFF_THE_ROAD_BY_DRIVER_ERROR(25), - /** - * VEHICLE_OFF_THE_ROAD_BY_OTHER_REASON = 26; - */ - VEHICLE_OFF_THE_ROAD_BY_OTHER_REASON(26), - /** - * MISSPARKED_VEHICLE = 27; - */ - MISSPARKED_VEHICLE(27), - /** - * CONGESTION_REASON_UKNOWN = 28; - */ - CONGESTION_REASON_UKNOWN(28), - /** - * CONGESTION_CAUSED_BY_ACCIDENT = 29; - */ - CONGESTION_CAUSED_BY_ACCIDENT(29), - /** - * DRIVER_SEIZURE = 30; - */ - DRIVER_SEIZURE(30), - /** - * PASSENGER_SEIZURE = 31; - */ - PASSENGER_SEIZURE(31), - /** - * PASSENGER_INJURED = 32; - */ - PASSENGER_INJURED(32), - /** - * OTHER_SEIZURE = 33; - */ - OTHER_SEIZURE(33), - /** - * DEVICE_ERROR = 34; - */ - DEVICE_ERROR(34), - /** - * OPERATOR_DEVICE_ERROR = 35; - */ - OPERATOR_DEVICE_ERROR(35), - /** - * WRONG_INFORMATION_IN_DEVICE = 36; - */ - WRONG_INFORMATION_IN_DEVICE(36), - /** - * ITS_SYSTEM_NOT_INSTALLED = 37; - */ - ITS_SYSTEM_NOT_INSTALLED(37), - /** - * USER_ERROR = 38; - */ - USER_ERROR(38), - /** - * FALSE_ALARM = 39; - */ - FALSE_ALARM(39), - /** - * OTHER_ITS_ERROR = 40; - */ - OTHER_ITS_ERROR(40), - /** - * DRIVER_ERROR = 41; - */ - DRIVER_ERROR(41), - /** - * INSUFFICIENT_CAPASITY = 42; - */ - INSUFFICIENT_CAPASITY(42), - /** - * OPERATOR_PERSONNEL_ON_STRIKE = 43; - */ - OPERATOR_PERSONNEL_ON_STRIKE(43), - /** - * OTHER_STRIKE = 44; - */ - OTHER_STRIKE(44), - /** - * OTHER_OPERATOR_REASON = 45; - */ - OTHER_OPERATOR_REASON(45), - /** - * UNKNOWN_CAUSE = 46; - */ - UNKNOWN_CAUSE(46), - /** - * DOOR_MALFUNCTION = 47; - */ - DOOR_MALFUNCTION(47), - /** - * OPERATOR_CHARGING_SERVICE = 48; - */ - OPERATOR_CHARGING_SERVICE(48), - /** - * OTHER_CHARGING_SERVICE = 49; - */ - OTHER_CHARGING_SERVICE(49), - ; - - /** - * BREAK_MALFUNCTION = 0; - */ - public static final int BREAK_MALFUNCTION_VALUE = 0; - /** - * OUT_OF_FUEL = 1; - */ - public static final int OUT_OF_FUEL_VALUE = 1; - /** - * FLUID_LEAKAGE = 2; - */ - public static final int FLUID_LEAKAGE_VALUE = 2; - /** - * ELECTRIC_MALFUNCTION = 3; - */ - public static final int ELECTRIC_MALFUNCTION_VALUE = 3; - /** - * ENGINE_MALFUNCTION = 4; - */ - public static final int ENGINE_MALFUNCTION_VALUE = 4; - /** - * OTHER_MALFUNCTION = 5; - */ - public static final int OTHER_MALFUNCTION_VALUE = 5; - /** - * OWN_FAULT = 6; - */ - public static final int OWN_FAULT_VALUE = 6; - /** - * OPPOSITE_FAULT = 7; - */ - public static final int OPPOSITE_FAULT_VALUE = 7; - /** - * FAULT_UNKNOWN = 8; - */ - public static final int FAULT_UNKNOWN_VALUE = 8; - /** - * STAFF_SHORTAGE = 9; - */ - public static final int STAFF_SHORTAGE_VALUE = 9; - /** - * ND_OPERATOR_PLANNING_ERROR = 10; - */ - public static final int ND_OPERATOR_PLANNING_ERROR_VALUE = 10; - /** - * DRIVER_LATE = 11; - */ - public static final int DRIVER_LATE_VALUE = 11; - /** - * INSUFFICIENT_INSTRUCTIONS_BY_OPERATOR = 12; - */ - public static final int INSUFFICIENT_INSTRUCTIONS_BY_OPERATOR_VALUE = 12; - /** - * INSUFFICIENT_INSTRUCTIONS_BY_AUTHORITY = 13; - */ - public static final int INSUFFICIENT_INSTRUCTIONS_BY_AUTHORITY_VALUE = 13; - /** - * NO_VEHICLE_AVAILABLE = 14; - */ - public static final int NO_VEHICLE_AVAILABLE_VALUE = 14; - /** - * ASSAULT_ON_DRIVER = 15; - */ - public static final int ASSAULT_ON_DRIVER_VALUE = 15; - /** - * ASSAULT_ON_PASSENGER = 16; - */ - public static final int ASSAULT_ON_PASSENGER_VALUE = 16; - /** - * ASSAULT_ON_VEHICLE = 17; - */ - public static final int ASSAULT_ON_VEHICLE_VALUE = 17; - /** - * PASSED_OUT_PASSENGER = 18; - */ - public static final int PASSED_OUT_PASSENGER_VALUE = 18; - /** - * OTHER_ASSAULT = 19; - */ - public static final int OTHER_ASSAULT_VALUE = 19; - /** - * UNDRIVEABLE_CONDITIONS = 20; - */ - public static final int UNDRIVEABLE_CONDITIONS_VALUE = 20; - /** - * STUCK_CAUSED_BY_SLIPPERY = 21; - */ - public static final int STUCK_CAUSED_BY_SLIPPERY_VALUE = 21; - /** - * CONGESTION_CAUSED_BY_WEATHER = 22; - */ - public static final int CONGESTION_CAUSED_BY_WEATHER_VALUE = 22; - /** - * SLIPPERY_TRACK = 23; - */ - public static final int SLIPPERY_TRACK_VALUE = 23; - /** - * ROAD_BLOCKED = 24; - */ - public static final int ROAD_BLOCKED_VALUE = 24; - /** - * VEHICLE_OFF_THE_ROAD_BY_DRIVER_ERROR = 25; - */ - public static final int VEHICLE_OFF_THE_ROAD_BY_DRIVER_ERROR_VALUE = 25; - /** - * VEHICLE_OFF_THE_ROAD_BY_OTHER_REASON = 26; - */ - public static final int VEHICLE_OFF_THE_ROAD_BY_OTHER_REASON_VALUE = 26; - /** - * MISSPARKED_VEHICLE = 27; - */ - public static final int MISSPARKED_VEHICLE_VALUE = 27; - /** - * CONGESTION_REASON_UKNOWN = 28; - */ - public static final int CONGESTION_REASON_UKNOWN_VALUE = 28; - /** - * CONGESTION_CAUSED_BY_ACCIDENT = 29; - */ - public static final int CONGESTION_CAUSED_BY_ACCIDENT_VALUE = 29; - /** - * DRIVER_SEIZURE = 30; - */ - public static final int DRIVER_SEIZURE_VALUE = 30; - /** - * PASSENGER_SEIZURE = 31; - */ - public static final int PASSENGER_SEIZURE_VALUE = 31; - /** - * PASSENGER_INJURED = 32; - */ - public static final int PASSENGER_INJURED_VALUE = 32; - /** - * OTHER_SEIZURE = 33; - */ - public static final int OTHER_SEIZURE_VALUE = 33; - /** - * DEVICE_ERROR = 34; - */ - public static final int DEVICE_ERROR_VALUE = 34; - /** - * OPERATOR_DEVICE_ERROR = 35; - */ - public static final int OPERATOR_DEVICE_ERROR_VALUE = 35; - /** - * WRONG_INFORMATION_IN_DEVICE = 36; - */ - public static final int WRONG_INFORMATION_IN_DEVICE_VALUE = 36; - /** - * ITS_SYSTEM_NOT_INSTALLED = 37; - */ - public static final int ITS_SYSTEM_NOT_INSTALLED_VALUE = 37; - /** - * USER_ERROR = 38; - */ - public static final int USER_ERROR_VALUE = 38; - /** - * FALSE_ALARM = 39; - */ - public static final int FALSE_ALARM_VALUE = 39; - /** - * OTHER_ITS_ERROR = 40; - */ - public static final int OTHER_ITS_ERROR_VALUE = 40; - /** - * DRIVER_ERROR = 41; - */ - public static final int DRIVER_ERROR_VALUE = 41; - /** - * INSUFFICIENT_CAPASITY = 42; - */ - public static final int INSUFFICIENT_CAPASITY_VALUE = 42; - /** - * OPERATOR_PERSONNEL_ON_STRIKE = 43; - */ - public static final int OPERATOR_PERSONNEL_ON_STRIKE_VALUE = 43; - /** - * OTHER_STRIKE = 44; - */ - public static final int OTHER_STRIKE_VALUE = 44; - /** - * OTHER_OPERATOR_REASON = 45; - */ - public static final int OTHER_OPERATOR_REASON_VALUE = 45; - /** - * UNKNOWN_CAUSE = 46; - */ - public static final int UNKNOWN_CAUSE_VALUE = 46; - /** - * DOOR_MALFUNCTION = 47; - */ - public static final int DOOR_MALFUNCTION_VALUE = 47; - /** - * OPERATOR_CHARGING_SERVICE = 48; - */ - public static final int OPERATOR_CHARGING_SERVICE_VALUE = 48; - /** - * OTHER_CHARGING_SERVICE = 49; - */ - public static final int OTHER_CHARGING_SERVICE_VALUE = 49; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SubCategory valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static SubCategory forNumber(int value) { - switch (value) { - case 0: return BREAK_MALFUNCTION; - case 1: return OUT_OF_FUEL; - case 2: return FLUID_LEAKAGE; - case 3: return ELECTRIC_MALFUNCTION; - case 4: return ENGINE_MALFUNCTION; - case 5: return OTHER_MALFUNCTION; - case 6: return OWN_FAULT; - case 7: return OPPOSITE_FAULT; - case 8: return FAULT_UNKNOWN; - case 9: return STAFF_SHORTAGE; - case 10: return ND_OPERATOR_PLANNING_ERROR; - case 11: return DRIVER_LATE; - case 12: return INSUFFICIENT_INSTRUCTIONS_BY_OPERATOR; - case 13: return INSUFFICIENT_INSTRUCTIONS_BY_AUTHORITY; - case 14: return NO_VEHICLE_AVAILABLE; - case 15: return ASSAULT_ON_DRIVER; - case 16: return ASSAULT_ON_PASSENGER; - case 17: return ASSAULT_ON_VEHICLE; - case 18: return PASSED_OUT_PASSENGER; - case 19: return OTHER_ASSAULT; - case 20: return UNDRIVEABLE_CONDITIONS; - case 21: return STUCK_CAUSED_BY_SLIPPERY; - case 22: return CONGESTION_CAUSED_BY_WEATHER; - case 23: return SLIPPERY_TRACK; - case 24: return ROAD_BLOCKED; - case 25: return VEHICLE_OFF_THE_ROAD_BY_DRIVER_ERROR; - case 26: return VEHICLE_OFF_THE_ROAD_BY_OTHER_REASON; - case 27: return MISSPARKED_VEHICLE; - case 28: return CONGESTION_REASON_UKNOWN; - case 29: return CONGESTION_CAUSED_BY_ACCIDENT; - case 30: return DRIVER_SEIZURE; - case 31: return PASSENGER_SEIZURE; - case 32: return PASSENGER_INJURED; - case 33: return OTHER_SEIZURE; - case 34: return DEVICE_ERROR; - case 35: return OPERATOR_DEVICE_ERROR; - case 36: return WRONG_INFORMATION_IN_DEVICE; - case 37: return ITS_SYSTEM_NOT_INSTALLED; - case 38: return USER_ERROR; - case 39: return FALSE_ALARM; - case 40: return OTHER_ITS_ERROR; - case 41: return DRIVER_ERROR; - case 42: return INSUFFICIENT_CAPASITY; - case 43: return OPERATOR_PERSONNEL_ON_STRIKE; - case 44: return OTHER_STRIKE; - case 45: return OTHER_OPERATOR_REASON; - case 46: return UNKNOWN_CAUSE; - case 47: return DOOR_MALFUNCTION; - case 48: return OPERATOR_CHARGING_SERVICE; - case 49: return OTHER_CHARGING_SERVICE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - SubCategory> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SubCategory findValueByNumber(int number) { - return SubCategory.forNumber(number); - } - }; + private int bitField0_; + public static final int ENTITY_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object entityId_ = ""; + /** + * required string entity_id = 1; + * @return Whether the entityId field is set. + */ + @java.lang.Override + public boolean hasEntityId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required string entity_id = 1; + * @return The entityId. + */ + @java.lang.Override + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + entityId_ = s; + } + return s; + } + } + /** + * required string entity_id = 1; + * @return The bytes for entityId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.getDescriptor().getEnumTypes().get(3); - } - - private static final SubCategory[] VALUES = values(); - - public static SubCategory valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private SubCategory(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.TripCancellation.SubCategory) - } + 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 (!hasEntityId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - private int bitField0_; - public static final int SCHEMAVERSION_FIELD_NUMBER = 1; - private int schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } + @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, entityId_); + } + getUnknownFields().writeTo(output); + } - public static final int TRIP_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object tripId_ = ""; - /** - * optional string trip_id = 2; - * @return Whether the tripId field is set. - */ - @java.lang.Override - public boolean hasTripId() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional string trip_id = 2; - * @return The tripId. - */ - @java.lang.Override - public java.lang.String getTripId() { - java.lang.Object ref = tripId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tripId_ = s; - } - return s; - } - } - /** - * optional string trip_id = 2; - * @return The bytes for tripId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTripIdBytes() { - java.lang.Object ref = tripId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tripId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static final int ROUTE_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object routeId_ = ""; - /** - * optional string route_id = 3; - * @return Whether the routeId field is set. - */ - @java.lang.Override - public boolean hasRouteId() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional string route_id = 3; - * @return The routeId. - */ - @java.lang.Override - public java.lang.String getRouteId() { - java.lang.Object ref = routeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - routeId_ = s; - } - return s; - } - } - /** - * optional string route_id = 3; - * @return The bytes for routeId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRouteIdBytes() { - java.lang.Object ref = routeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int DIRECTION_ID_FIELD_NUMBER = 4; - private int directionId_ = 0; - /** - * optional uint32 direction_id = 4; - * @return Whether the directionId field is set. - */ - @java.lang.Override - public boolean hasDirectionId() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional uint32 direction_id = 4; - * @return The directionId. - */ - @java.lang.Override - public int getDirectionId() { - return directionId_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity other = (fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity) obj; - public static final int START_TIME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object startTime_ = ""; - /** - * optional string start_time = 5; - * @return Whether the startTime field is set. - */ - @java.lang.Override - public boolean hasStartTime() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional string start_time = 5; - * @return The startTime. - */ - @java.lang.Override - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startTime_ = s; - } - return s; - } - } - /** - * optional string start_time = 5; - * @return The bytes for startTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + if (hasEntityId() != other.hasEntityId()) + return false; + if (hasEntityId()) { + if (!getEntityId().equals(other.getEntityId())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } - public static final int START_DATE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object startDate_ = ""; - /** - * optional string start_date = 6; - * @return Whether the startDate field is set. - */ - @java.lang.Override - public boolean hasStartDate() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * optional string start_date = 6; - * @return The startDate. - */ - @java.lang.Override - public java.lang.String getStartDate() { - java.lang.Object ref = startDate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startDate_ = s; - } - return s; - } - } - /** - * optional string start_date = 6; - * @return The bytes for startDate. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartDateBytes() { - java.lang.Object ref = startDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEntityId()) { + hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; + hash = (53 * hash) + getEntityId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int STATUS_FIELD_NUMBER = 7; - private int status_ = 0; - /** - * required .proto.TripCancellation.Status status = 7; - * @return Whether the status field is set. - */ - @java.lang.Override public boolean hasStatus() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * required .proto.TripCancellation.Status status = 7; - * @return The status. - */ - @java.lang.Override public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status getStatus() { - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status.forNumber(status_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status.RUNNING : result; - } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - public static final int DEVIATION_CASES_TYPE_FIELD_NUMBER = 8; - private int deviationCasesType_ = 0; - /** - * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; - * @return Whether the deviationCasesType field is set. - */ - @java.lang.Override public boolean hasDeviationCasesType() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; - * @return The deviationCasesType. - */ - @java.lang.Override public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType getDeviationCasesType() { - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType.forNumber(deviationCasesType_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType.CANCEL_DEPARTURE : result; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int AFFECTED_DEPARTURES_TYPE_FIELD_NUMBER = 9; - private int affectedDeparturesType_ = 0; - /** - * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; - * @return Whether the affectedDeparturesType field is set. - */ - @java.lang.Override public boolean hasAffectedDeparturesType() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; - * @return The affectedDeparturesType. - */ - @java.lang.Override public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType getAffectedDeparturesType() { - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType.forNumber(affectedDeparturesType_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType.CANCEL_ENTIRE_DEPARTURE : result; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.Bulletin.AffectedEntity} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.Bulletin.AffectedEntity) + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_AffectedEntity_descriptor; + } - public static final int TITLE_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; - /** - * optional string title = 10; - * @return Whether the title field is set. - */ - @java.lang.Override - public boolean hasTitle() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * optional string title = 10; - * @return The title. - */ - @java.lang.Override - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - title_ = s; - } - return s; - } - } - /** - * optional string title = 10; - * @return The bytes for title. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_AffectedEntity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.class, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder.class); + } - public static final int DESCRIPTION_FIELD_NUMBER = 11; - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - * optional string description = 11; - * @return Whether the description field is set. - */ - @java.lang.Override - public boolean hasDescription() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * optional string description = 11; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } - } - /** - * optional string description = 11; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // Construct using fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.newBuilder() + private Builder() { - public static final int CATEGORY_FIELD_NUMBER = 12; - private int category_ = 0; - /** - * optional .proto.Category category = 12; - * @return Whether the category field is set. - */ - @java.lang.Override public boolean hasCategory() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * optional .proto.Category category = 12; - * @return The category. - */ - @java.lang.Override public fi.hsl.common.transitdata.proto.InternalMessages.Category getCategory() { - fi.hsl.common.transitdata.proto.InternalMessages.Category result = fi.hsl.common.transitdata.proto.InternalMessages.Category.forNumber(category_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.Category.VEHICLE_BREAKDOWN : result; - } + } - public static final int SUB_CATEGORY_FIELD_NUMBER = 13; - private int subCategory_ = 0; - /** - * optional .proto.TripCancellation.SubCategory sub_category = 13; - * @return Whether the subCategory field is set. - */ - @java.lang.Override public boolean hasSubCategory() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * optional .proto.TripCancellation.SubCategory sub_category = 13; - * @return The subCategory. - */ - @java.lang.Override public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory getSubCategory() { - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory.forNumber(subCategory_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory.BREAK_MALFUNCTION : result; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - public static final int DEVIATION_CASE_ID_FIELD_NUMBER = 14; - private long deviationCaseId_ = 0L; - /** - * optional int64 deviation_case_id = 14; - * @return Whether the deviationCaseId field is set. - */ - @java.lang.Override - public boolean hasDeviationCaseId() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * optional int64 deviation_case_id = 14; - * @return The deviationCaseId. - */ - @java.lang.Override - public long getDeviationCaseId() { - return deviationCaseId_; - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + entityId_ = ""; + return this; + } - 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 (!hasSchemaVersion()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStatus()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_AffectedEntity_descriptor; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tripId_); - } - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, routeId_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeUInt32(4, directionId_); - } - if (((bitField0_ & 0x00000010) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, startTime_); - } - if (((bitField0_ & 0x00000020) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, startDate_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeEnum(7, status_); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeEnum(8, deviationCasesType_); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeEnum(9, affectedDeparturesType_); - } - if (((bitField0_ & 0x00000200) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, title_); - } - if (((bitField0_ & 0x00000400) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, description_); - } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeEnum(12, category_); - } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeEnum(13, subCategory_); - } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeInt64(14, deviationCaseId_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity + .getDefaultInstance(); + } - @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, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tripId_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, routeId_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, directionId_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, startTime_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, startDate_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, status_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, deviationCasesType_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, affectedDeparturesType_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, title_); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, description_); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, category_); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, subCategory_); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(14, deviationCaseId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity build() { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation other = (fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation) obj; - - if (hasSchemaVersion() != other.hasSchemaVersion()) return false; - if (hasSchemaVersion()) { - if (getSchemaVersion() - != other.getSchemaVersion()) return false; - } - 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 (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (status_ != other.status_) return false; - } - if (hasDeviationCasesType() != other.hasDeviationCasesType()) return false; - if (hasDeviationCasesType()) { - if (deviationCasesType_ != other.deviationCasesType_) return false; - } - if (hasAffectedDeparturesType() != other.hasAffectedDeparturesType()) return false; - if (hasAffectedDeparturesType()) { - if (affectedDeparturesType_ != other.affectedDeparturesType_) return false; - } - if (hasTitle() != other.hasTitle()) return false; - if (hasTitle()) { - if (!getTitle() - .equals(other.getTitle())) return false; - } - if (hasDescription() != other.hasDescription()) return false; - if (hasDescription()) { - if (!getDescription() - .equals(other.getDescription())) return false; - } - if (hasCategory() != other.hasCategory()) return false; - if (hasCategory()) { - if (category_ != other.category_) return false; - } - if (hasSubCategory() != other.hasSubCategory()) return false; - if (hasSubCategory()) { - if (subCategory_ != other.subCategory_) return false; - } - if (hasDeviationCaseId() != other.hasDeviationCaseId()) return false; - if (hasDeviationCaseId()) { - if (getDeviationCaseId() - != other.getDeviationCaseId()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity buildPartial() { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity result = new fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSchemaVersion()) { - hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getSchemaVersion(); - } - 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 (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - } - if (hasDeviationCasesType()) { - hash = (37 * hash) + DEVIATION_CASES_TYPE_FIELD_NUMBER; - hash = (53 * hash) + deviationCasesType_; - } - if (hasAffectedDeparturesType()) { - hash = (37 * hash) + AFFECTED_DEPARTURES_TYPE_FIELD_NUMBER; - hash = (53 * hash) + affectedDeparturesType_; - } - if (hasTitle()) { - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - } - if (hasDescription()) { - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - } - if (hasCategory()) { - hash = (37 * hash) + CATEGORY_FIELD_NUMBER; - hash = (53 * hash) + category_; - } - if (hasSubCategory()) { - hash = (37 * hash) + SUB_CATEGORY_FIELD_NUMBER; - hash = (53 * hash) + subCategory_; - } - if (hasDeviationCaseId()) { - hash = (37 * hash) + DEVIATION_CASE_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDeviationCaseId()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + private void buildPartial0( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityId_ = entityId_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity) { + return mergeFrom( + (fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder mergeFrom( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity other) { + if (other == fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity + .getDefaultInstance()) + return this; + if (other.hasEntityId()) { + entityId_ = other.entityId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.TripCancellation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.TripCancellation) - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripCancellation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripCancellation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.class, fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Builder.class); - } - - // Construct using fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - schemaVersion_ = 1; - tripId_ = ""; - routeId_ = ""; - directionId_ = 0; - startTime_ = ""; - startDate_ = ""; - status_ = 0; - deviationCasesType_ = 0; - affectedDeparturesType_ = 0; - title_ = ""; - description_ = ""; - category_ = 0; - subCategory_ = 0; - deviationCaseId_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_TripCancellation_descriptor; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation build() { - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation buildPartial() { - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation result = new fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.schemaVersion_ = schemaVersion_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tripId_ = tripId_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.routeId_ = routeId_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.directionId_ = directionId_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.startTime_ = startTime_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.startDate_ = startDate_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.status_ = status_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.deviationCasesType_ = deviationCasesType_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.affectedDeparturesType_ = affectedDeparturesType_; - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.title_ = title_; - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.description_ = description_; - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.category_ = category_; - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.subCategory_ = subCategory_; - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.deviationCaseId_ = deviationCaseId_; - to_bitField0_ |= 0x00002000; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation) { - return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation other) { - if (other == fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.getDefaultInstance()) return this; - if (other.hasSchemaVersion()) { - setSchemaVersion(other.getSchemaVersion()); - } - if (other.hasTripId()) { - tripId_ = other.tripId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasRouteId()) { - routeId_ = other.routeId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasDirectionId()) { - setDirectionId(other.getDirectionId()); - } - if (other.hasStartTime()) { - startTime_ = other.startTime_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.hasStartDate()) { - startDate_ = other.startDate_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.hasStatus()) { - setStatus(other.getStatus()); - } - if (other.hasDeviationCasesType()) { - setDeviationCasesType(other.getDeviationCasesType()); - } - if (other.hasAffectedDeparturesType()) { - setAffectedDeparturesType(other.getAffectedDeparturesType()); - } - if (other.hasTitle()) { - title_ = other.title_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (other.hasDescription()) { - description_ = other.description_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (other.hasCategory()) { - setCategory(other.getCategory()); - } - if (other.hasSubCategory()) { - setSubCategory(other.getSubCategory()); - } - if (other.hasDeviationCaseId()) { - setDeviationCaseId(other.getDeviationCaseId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSchemaVersion()) { - return false; - } - if (!hasStatus()) { - 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: { - schemaVersion_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - tripId_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - routeId_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - directionId_ = input.readUInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - startTime_ = input.readBytes(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - startDate_ = input.readBytes(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - int tmpRaw = input.readEnum(); - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status tmpValue = - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(7, tmpRaw); - } else { - status_ = tmpRaw; - bitField0_ |= 0x00000040; - } - break; - } // case 56 - case 64: { - int tmpRaw = input.readEnum(); - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType tmpValue = - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(8, tmpRaw); - } else { - deviationCasesType_ = tmpRaw; - bitField0_ |= 0x00000080; - } - break; - } // case 64 - case 72: { - int tmpRaw = input.readEnum(); - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType tmpValue = - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(9, tmpRaw); - } else { - affectedDeparturesType_ = tmpRaw; - bitField0_ |= 0x00000100; + @java.lang.Override + public final boolean isInitialized() { + if (!hasEntityId()) { + return false; + } + return true; } - break; - } // case 72 - case 82: { - title_ = input.readBytes(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: { - description_ = input.readBytes(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 96: { - int tmpRaw = input.readEnum(); - fi.hsl.common.transitdata.proto.InternalMessages.Category tmpValue = - fi.hsl.common.transitdata.proto.InternalMessages.Category.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(12, tmpRaw); - } else { - category_ = tmpRaw; - bitField0_ |= 0x00000800; - } - break; - } // case 96 - case 104: { - int tmpRaw = input.readEnum(); - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory tmpValue = - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(13, tmpRaw); - } else { - subCategory_ = tmpRaw; - bitField0_ |= 0x00001000; + + @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 : { + entityId_ = 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 entityId_ = ""; + /** + * required string entity_id = 1; + * @return Whether the entityId field is set. + */ + public boolean hasEntityId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required string entity_id = 1; + * @return The entityId. + */ + public java.lang.String getEntityId() { + java.lang.Object ref = entityId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + entityId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string entity_id = 1; + * @return The bytes for entityId. + */ + public com.google.protobuf.ByteString getEntityIdBytes() { + java.lang.Object ref = entityId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + entityId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string entity_id = 1; + * @param value The entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entityId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * required string entity_id = 1; + * @return This builder for chaining. + */ + public Builder clearEntityId() { + entityId_ = getDefaultInstance().getEntityId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * required string entity_id = 1; + * @param value The bytes for entityId to set. + * @return This builder for chaining. + */ + public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + entityId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - break; - } // case 104 - case 112: { - deviationCaseId_ = input.readInt64(); - bitField0_ |= 0x00002000; - 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 int schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @param value The schemaVersion to set. - * @return This builder for chaining. - */ - public Builder setSchemaVersion(int value) { - - schemaVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return This builder for chaining. - */ - public Builder clearSchemaVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - schemaVersion_ = 1; - onChanged(); - return this; - } - - private java.lang.Object tripId_ = ""; - /** - * optional string trip_id = 2; - * @return Whether the tripId field is set. - */ - public boolean hasTripId() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional string trip_id = 2; - * @return The tripId. - */ - public java.lang.String getTripId() { - java.lang.Object ref = tripId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tripId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string trip_id = 2; - * @return The bytes for tripId. - */ - public com.google.protobuf.ByteString - getTripIdBytes() { - java.lang.Object ref = tripId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tripId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string trip_id = 2; - * @param value The tripId to set. - * @return This builder for chaining. - */ - public Builder setTripId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - tripId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional string trip_id = 2; - * @return This builder for chaining. - */ - public Builder clearTripId() { - tripId_ = getDefaultInstance().getTripId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * optional string trip_id = 2; - * @param value The bytes for tripId to set. - * @return This builder for chaining. - */ - public Builder setTripIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - tripId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object routeId_ = ""; - /** - * optional string route_id = 3; - * @return Whether the routeId field is set. - */ - public boolean hasRouteId() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional string route_id = 3; - * @return The routeId. - */ - public java.lang.String getRouteId() { - java.lang.Object ref = routeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - routeId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string route_id = 3; - * @return The bytes for routeId. - */ - public com.google.protobuf.ByteString - getRouteIdBytes() { - java.lang.Object ref = routeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string route_id = 3; - * @param value The routeId to set. - * @return This builder for chaining. - */ - public Builder setRouteId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - routeId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * optional string route_id = 3; - * @return This builder for chaining. - */ - public Builder clearRouteId() { - routeId_ = getDefaultInstance().getRouteId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * optional string route_id = 3; - * @param value The bytes for routeId to set. - * @return This builder for chaining. - */ - public Builder setRouteIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - routeId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private int directionId_ ; - /** - * optional uint32 direction_id = 4; - * @return Whether the directionId field is set. - */ - @java.lang.Override - public boolean hasDirectionId() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional uint32 direction_id = 4; - * @return The directionId. - */ - @java.lang.Override - public int getDirectionId() { - return directionId_; - } - /** - * optional uint32 direction_id = 4; - * @param value The directionId to set. - * @return This builder for chaining. - */ - public Builder setDirectionId(int value) { - - directionId_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * optional uint32 direction_id = 4; - * @return This builder for chaining. - */ - public Builder clearDirectionId() { - bitField0_ = (bitField0_ & ~0x00000008); - directionId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object startTime_ = ""; - /** - * optional string start_time = 5; - * @return Whether the startTime field is set. - */ - public boolean hasStartTime() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional string start_time = 5; - * @return The startTime. - */ - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startTime_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string start_time = 5; - * @return The bytes for startTime. - */ - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string start_time = 5; - * @param value The startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTime( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - startTime_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * optional string start_time = 5; - * @return This builder for chaining. - */ - public Builder clearStartTime() { - startTime_ = getDefaultInstance().getStartTime(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * optional string start_time = 5; - * @param value The bytes for startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - startTime_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object startDate_ = ""; - /** - * optional string start_date = 6; - * @return Whether the startDate field is set. - */ - public boolean hasStartDate() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * optional string start_date = 6; - * @return The startDate. - */ - public java.lang.String getStartDate() { - java.lang.Object ref = startDate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startDate_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string start_date = 6; - * @return The bytes for startDate. - */ - public com.google.protobuf.ByteString - getStartDateBytes() { - java.lang.Object ref = startDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string start_date = 6; - * @param value The startDate to set. - * @return This builder for chaining. - */ - public Builder setStartDate( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - startDate_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * optional string start_date = 6; - * @return This builder for chaining. - */ - public Builder clearStartDate() { - startDate_ = getDefaultInstance().getStartDate(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * optional string start_date = 6; - * @param value The bytes for startDate to set. - * @return This builder for chaining. - */ - public Builder setStartDateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - startDate_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * required .proto.TripCancellation.Status status = 7; - * @return Whether the status field is set. - */ - @java.lang.Override public boolean hasStatus() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * required .proto.TripCancellation.Status status = 7; - * @return The status. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status getStatus() { - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status.forNumber(status_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status.RUNNING : result; - } - /** - * required .proto.TripCancellation.Status status = 7; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.Status value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .proto.TripCancellation.Status status = 7; - * @return This builder for chaining. - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000040); - status_ = 0; - onChanged(); - return this; - } - - private int deviationCasesType_ = 0; - /** - * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; - * @return Whether the deviationCasesType field is set. - */ - @java.lang.Override public boolean hasDeviationCasesType() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; - * @return The deviationCasesType. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType getDeviationCasesType() { - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType.forNumber(deviationCasesType_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType.CANCEL_DEPARTURE : result; - } - /** - * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; - * @param value The deviationCasesType to set. - * @return This builder for chaining. - */ - public Builder setDeviationCasesType(fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.DeviationCasesType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - deviationCasesType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .proto.TripCancellation.DeviationCasesType deviation_cases_type = 8; - * @return This builder for chaining. - */ - public Builder clearDeviationCasesType() { - bitField0_ = (bitField0_ & ~0x00000080); - deviationCasesType_ = 0; - onChanged(); - return this; - } - - private int affectedDeparturesType_ = 0; - /** - * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; - * @return Whether the affectedDeparturesType field is set. - */ - @java.lang.Override public boolean hasAffectedDeparturesType() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; - * @return The affectedDeparturesType. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType getAffectedDeparturesType() { - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType.forNumber(affectedDeparturesType_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType.CANCEL_ENTIRE_DEPARTURE : result; - } - /** - * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; - * @param value The affectedDeparturesType to set. - * @return This builder for chaining. - */ - public Builder setAffectedDeparturesType(fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.AffectedDeparturesType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - affectedDeparturesType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .proto.TripCancellation.AffectedDeparturesType affected_departures_type = 9; - * @return This builder for chaining. - */ - public Builder clearAffectedDeparturesType() { - bitField0_ = (bitField0_ & ~0x00000100); - affectedDeparturesType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object title_ = ""; - /** - * optional string title = 10; - * @return Whether the title field is set. - */ - public boolean hasTitle() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * optional string title = 10; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - title_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string title = 10; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string title = 10; - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - title_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * optional string title = 10; - * @return This builder for chaining. - */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } - /** - * optional string title = 10; - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - title_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * optional string description = 11; - * @return Whether the description field is set. - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * optional string description = 11; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string description = 11; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string description = 11; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * optional string description = 11; - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - return this; - } - /** - * optional string description = 11; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - private int category_ = 0; - /** - * optional .proto.Category category = 12; - * @return Whether the category field is set. - */ - @java.lang.Override public boolean hasCategory() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * optional .proto.Category category = 12; - * @return The category. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Category getCategory() { - fi.hsl.common.transitdata.proto.InternalMessages.Category result = fi.hsl.common.transitdata.proto.InternalMessages.Category.forNumber(category_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.Category.VEHICLE_BREAKDOWN : result; - } - /** - * optional .proto.Category category = 12; - * @param value The category to set. - * @return This builder for chaining. - */ - public Builder setCategory(fi.hsl.common.transitdata.proto.InternalMessages.Category value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - category_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .proto.Category category = 12; - * @return This builder for chaining. - */ - public Builder clearCategory() { - bitField0_ = (bitField0_ & ~0x00000800); - category_ = 0; - onChanged(); - return this; - } - - private int subCategory_ = 0; - /** - * optional .proto.TripCancellation.SubCategory sub_category = 13; - * @return Whether the subCategory field is set. - */ - @java.lang.Override public boolean hasSubCategory() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * optional .proto.TripCancellation.SubCategory sub_category = 13; - * @return The subCategory. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory getSubCategory() { - fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory result = fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory.forNumber(subCategory_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory.BREAK_MALFUNCTION : result; - } - /** - * optional .proto.TripCancellation.SubCategory sub_category = 13; - * @param value The subCategory to set. - * @return This builder for chaining. - */ - public Builder setSubCategory(fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation.SubCategory value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; - subCategory_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .proto.TripCancellation.SubCategory sub_category = 13; - * @return This builder for chaining. - */ - public Builder clearSubCategory() { - bitField0_ = (bitField0_ & ~0x00001000); - subCategory_ = 0; - onChanged(); - return this; - } - - private long deviationCaseId_ ; - /** - * optional int64 deviation_case_id = 14; - * @return Whether the deviationCaseId field is set. - */ - @java.lang.Override - public boolean hasDeviationCaseId() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * optional int64 deviation_case_id = 14; - * @return The deviationCaseId. - */ - @java.lang.Override - public long getDeviationCaseId() { - return deviationCaseId_; - } - /** - * optional int64 deviation_case_id = 14; - * @param value The deviationCaseId to set. - * @return This builder for chaining. - */ - public Builder setDeviationCaseId(long value) { - - deviationCaseId_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * optional int64 deviation_case_id = 14; - * @return This builder for chaining. - */ - public Builder clearDeviationCaseId() { - bitField0_ = (bitField0_ & ~0x00002000); - deviationCaseId_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.TripCancellation) - } - // @@protoc_insertion_point(class_scope:proto.TripCancellation) - private static final fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation(); - } + // @@protoc_insertion_point(builder_scope:proto.Bulletin.AffectedEntity) + } - public static fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(class_scope:proto.Bulletin.AffectedEntity) + private static final fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity(); + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TripCancellation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AffectedEntity parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripCancellation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public interface StopEstimateOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.StopEstimate) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - boolean hasSchemaVersion(); - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - int getSchemaVersion(); + } - /** - * required .proto.TripInfo trip_info = 2; - * @return Whether the tripInfo field is set. - */ - boolean hasTripInfo(); - /** - * required .proto.TripInfo trip_info = 2; - * @return The tripInfo. - */ - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getTripInfo(); - /** - * required .proto.TripInfo trip_info = 2; - */ - fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getTripInfoOrBuilder(); + public interface TranslationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.Bulletin.Translation) + com.google.protobuf.MessageOrBuilder { + + /** + * required string text = 1; + * @return Whether the text field is set. + */ + boolean hasText(); + /** + * required string text = 1; + * @return The text. + */ + java.lang.String getText(); + /** + * required string text = 1; + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * optional string language = 2; + * @return Whether the language field is set. + */ + boolean hasLanguage(); + /** + * optional string language = 2; + * @return The language. + */ + java.lang.String getLanguage(); + /** + * optional string language = 2; + * @return The bytes for language. + */ + com.google.protobuf.ByteString getLanguageBytes(); + } + /** + * Protobuf type {@code proto.Bulletin.Translation} + */ + public static final class Translation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.Bulletin.Translation) + TranslationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Translation.newBuilder() to construct. + private Translation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Translation() { + text_ = ""; + language_ = ""; + } - /** - *
-     *The stop where the vehicle is scheduled to stop
-     * 
- * - * required string stop_id = 3; - * @return Whether the stopId field is set. - */ - boolean hasStopId(); - /** - *
-     *The stop where the vehicle is scheduled to stop
-     * 
- * - * required string stop_id = 3; - * @return The stopId. - */ - java.lang.String getStopId(); - /** - *
-     *The stop where the vehicle is scheduled to stop
-     * 
- * - * required string stop_id = 3; - * @return The bytes for stopId. - */ - com.google.protobuf.ByteString - getStopIdBytes(); + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Translation(); + } - /** - * required uint32 stop_sequence = 4; - * @return Whether the stopSequence field is set. - */ - boolean hasStopSequence(); - /** - * required uint32 stop_sequence = 4; - * @return The stopSequence. - */ - int getStopSequence(); + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_Translation_descriptor; + } - /** - * required .proto.StopEstimate.Status status = 5; - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - * required .proto.StopEstimate.Status status = 5; - * @return The status. - */ - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status getStatus(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_Translation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.class, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder.class); + } - /** - * required .proto.StopEstimate.Type type = 6; - * @return Whether the type field is set. - */ - boolean hasType(); - /** - * required .proto.StopEstimate.Type type = 6; - * @return The type. - */ - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type getType(); + private int bitField0_; + public static final int TEXT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + /** + * required string text = 1; + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required string text = 1; + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + text_ = s; + } + return s; + } + } + /** + * required string text = 1; + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * optional int64 estimated_time_utc_ms = 7; - * @return Whether the estimatedTimeUtcMs field is set. - */ - boolean hasEstimatedTimeUtcMs(); - /** - * optional int64 estimated_time_utc_ms = 7; - * @return The estimatedTimeUtcMs. - */ - long getEstimatedTimeUtcMs(); + public static final int LANGUAGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object language_ = ""; + /** + * optional string language = 2; + * @return Whether the language field is set. + */ + @java.lang.Override + public boolean hasLanguage() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string language = 2; + * @return The language. + */ + @java.lang.Override + public java.lang.String getLanguage() { + java.lang.Object ref = language_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + language_ = s; + } + return s; + } + } + /** + * optional string language = 2; + * @return The bytes for language. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageBytes() { + java.lang.Object ref = language_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + language_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * optional int64 scheduled_time_utc_ms = 8; - * @return Whether the scheduledTimeUtcMs field is set. - */ - boolean hasScheduledTimeUtcMs(); - /** - * optional int64 scheduled_time_utc_ms = 8; - * @return The scheduledTimeUtcMs. - */ - long getScheduledTimeUtcMs(); + 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; + } + memoizedIsInitialized = 1; + return true; + } - /** - * required int64 last_modified_utc_ms = 9; - * @return Whether the lastModifiedUtcMs field is set. - */ - boolean hasLastModifiedUtcMs(); - /** - * required int64 last_modified_utc_ms = 9; - * @return The lastModifiedUtcMs. - */ - long getLastModifiedUtcMs(); + @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, text_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, language_); + } + getUnknownFields().writeTo(output); + } - /** - *
-     *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
-     * 
- * - * optional bool observed_time = 10 [default = false]; - * @return Whether the observedTime field is set. - */ - boolean hasObservedTime(); - /** - *
-     *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
-     * 
- * - * optional bool observed_time = 10 [default = false]; - * @return The observedTime. - */ - boolean getObservedTime(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - /** - *
-     *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
-     * 
- * - * optional string targeted_stop_id = 11; - * @return Whether the targetedStopId field is set. - */ - boolean hasTargetedStopId(); - /** - *
-     *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
-     * 
- * - * optional string targeted_stop_id = 11; - * @return The targetedStopId. - */ - java.lang.String getTargetedStopId(); - /** - *
-     *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
-     * 
- * - * optional string targeted_stop_id = 11; - * @return The bytes for targetedStopId. - */ - com.google.protobuf.ByteString - getTargetedStopIdBytes(); + 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 += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * optional bool is_via_point = 12 [default = false]; - * @return Whether the isViaPoint field is set. - */ - boolean hasIsViaPoint(); - /** - * optional bool is_via_point = 12 [default = false]; - * @return The isViaPoint. - */ - boolean getIsViaPoint(); - } - /** - * Protobuf type {@code proto.StopEstimate} - */ - public static final class StopEstimate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.StopEstimate) - StopEstimateOrBuilder { - private static final long serialVersionUID = 0L; - // Use StopEstimate.newBuilder() to construct. - private StopEstimate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StopEstimate() { - schemaVersion_ = 1; - stopId_ = ""; - status_ = 0; - type_ = 0; - targetedStopId_ = ""; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation other = (fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation) obj; - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StopEstimate(); - } + 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; + return true; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopEstimate_descriptor; - } + @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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopEstimate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.class, fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Builder.class); - } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * Protobuf enum {@code proto.StopEstimate.Status} - */ - public enum Status - implements com.google.protobuf.ProtocolMessageEnum { - /** - * SCHEDULED = 0; - */ - SCHEDULED(0), - /** - * SKIPPED = 1; - */ - SKIPPED(1), - /** - *
-       * No estimate is available
-       * 
- * - * NO_DATA = 2; - */ - NO_DATA(2), - ; - - /** - * SCHEDULED = 0; - */ - public static final int SCHEDULED_VALUE = 0; - /** - * SKIPPED = 1; - */ - public static final int SKIPPED_VALUE = 1; - /** - *
-       * No estimate is available
-       * 
- * - * NO_DATA = 2; - */ - public static final int NO_DATA_VALUE = 2; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Status valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Status forNumber(int value) { - switch (value) { - case 0: return SCHEDULED; - case 1: return SKIPPED; - case 2: return NO_DATA; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Status> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Status findValueByNumber(int number) { - return Status.forNumber(number); - } - }; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.getDescriptor().getEnumTypes().get(0); - } - - private static final Status[] VALUES = values(); - - public static Status valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Status(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.StopEstimate.Status) - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.Bulletin.Translation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.Bulletin.Translation) + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_Translation_descriptor; + } - /** - * Protobuf enum {@code proto.StopEstimate.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ARRIVAL = 0; - */ - ARRIVAL(0), - /** - * DEPARTURE = 1; - */ - DEPARTURE(1), - ; - - /** - * ARRIVAL = 0; - */ - public static final int ARRIVAL_VALUE = 0; - /** - * DEPARTURE = 1; - */ - public static final int DEPARTURE_VALUE = 1; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Type forNumber(int value) { - switch (value) { - case 0: return ARRIVAL; - case 1: return DEPARTURE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_Translation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.class, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder.class); + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.getDescriptor().getEnumTypes().get(1); - } - - private static final Type[] VALUES = values(); - - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.StopEstimate.Type) - } + // Construct using fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.newBuilder() + private Builder() { - private int bitField0_; - public static final int SCHEMAVERSION_FIELD_NUMBER = 1; - private int schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } + } - public static final int TRIP_INFO_FIELD_NUMBER = 2; - private fi.hsl.common.transitdata.proto.InternalMessages.TripInfo tripInfo_; - /** - * required .proto.TripInfo trip_info = 2; - * @return Whether the tripInfo field is set. - */ - @java.lang.Override - public boolean hasTripInfo() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required .proto.TripInfo trip_info = 2; - * @return The tripInfo. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getTripInfo() { - return tripInfo_ == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() : tripInfo_; - } - /** - * required .proto.TripInfo trip_info = 2; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getTripInfoOrBuilder() { - return tripInfo_ == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() : tripInfo_; - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - public static final int STOP_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object stopId_ = ""; - /** - *
-     *The stop where the vehicle is scheduled to stop
-     * 
- * - * required string stop_id = 3; - * @return Whether the stopId field is set. - */ - @java.lang.Override - public boolean hasStopId() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     *The stop where the vehicle is scheduled to stop
-     * 
- * - * required string stop_id = 3; - * @return The stopId. - */ - @java.lang.Override - public java.lang.String getStopId() { - java.lang.Object ref = stopId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopId_ = s; - } - return s; - } - } - /** - *
-     *The stop where the vehicle is scheduled to stop
-     * 
- * - * required string stop_id = 3; - * @return The bytes for stopId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStopIdBytes() { - java.lang.Object ref = stopId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + text_ = ""; + language_ = ""; + return this; + } - public static final int STOP_SEQUENCE_FIELD_NUMBER = 4; - private int stopSequence_ = 0; - /** - * required uint32 stop_sequence = 4; - * @return Whether the stopSequence field is set. - */ - @java.lang.Override - public boolean hasStopSequence() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required uint32 stop_sequence = 4; - * @return The stopSequence. - */ - @java.lang.Override - public int getStopSequence() { - return stopSequence_; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_Translation_descriptor; + } - public static final int STATUS_FIELD_NUMBER = 5; - private int status_ = 0; - /** - * required .proto.StopEstimate.Status status = 5; - * @return Whether the status field is set. - */ - @java.lang.Override public boolean hasStatus() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required .proto.StopEstimate.Status status = 5; - * @return The status. - */ - @java.lang.Override public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status getStatus() { - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status result = fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status.forNumber(status_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status.SCHEDULED : result; - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.getDefaultInstance(); + } - public static final int TYPE_FIELD_NUMBER = 6; - private int type_ = 0; - /** - * required .proto.StopEstimate.Type type = 6; - * @return Whether the type field is set. - */ - @java.lang.Override public boolean hasType() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * required .proto.StopEstimate.Type type = 6; - * @return The type. - */ - @java.lang.Override public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type getType() { - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type result = fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type.forNumber(type_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type.ARRIVAL : result; - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation build() { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static final int ESTIMATED_TIME_UTC_MS_FIELD_NUMBER = 7; - private long estimatedTimeUtcMs_ = 0L; - /** - * optional int64 estimated_time_utc_ms = 7; - * @return Whether the estimatedTimeUtcMs field is set. - */ - @java.lang.Override - public boolean hasEstimatedTimeUtcMs() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * optional int64 estimated_time_utc_ms = 7; - * @return The estimatedTimeUtcMs. - */ - @java.lang.Override - public long getEstimatedTimeUtcMs() { - return estimatedTimeUtcMs_; - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation buildPartial() { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation result = new fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static final int SCHEDULED_TIME_UTC_MS_FIELD_NUMBER = 8; - private long scheduledTimeUtcMs_ = 0L; - /** - * optional int64 scheduled_time_utc_ms = 8; - * @return Whether the scheduledTimeUtcMs field is set. - */ - @java.lang.Override - public boolean hasScheduledTimeUtcMs() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional int64 scheduled_time_utc_ms = 8; - * @return The scheduledTimeUtcMs. - */ - @java.lang.Override - public long getScheduledTimeUtcMs() { - return scheduledTimeUtcMs_; - } + private void buildPartial0( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.text_ = text_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.language_ = language_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } - public static final int LAST_MODIFIED_UTC_MS_FIELD_NUMBER = 9; - private long lastModifiedUtcMs_ = 0L; - /** - * required int64 last_modified_utc_ms = 9; - * @return Whether the lastModifiedUtcMs field is set. - */ - @java.lang.Override - public boolean hasLastModifiedUtcMs() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * required int64 last_modified_utc_ms = 9; - * @return The lastModifiedUtcMs. - */ - @java.lang.Override - public long getLastModifiedUtcMs() { - return lastModifiedUtcMs_; - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation) { + return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int OBSERVED_TIME_FIELD_NUMBER = 10; - private boolean observedTime_ = false; - /** - *
-     *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
-     * 
- * - * optional bool observed_time = 10 [default = false]; - * @return Whether the observedTime field is set. - */ - @java.lang.Override - public boolean hasObservedTime() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - *
-     *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
-     * 
- * - * optional bool observed_time = 10 [default = false]; - * @return The observedTime. - */ - @java.lang.Override - public boolean getObservedTime() { - return observedTime_; - } + public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation other) { + if (other == fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation + .getDefaultInstance()) + return this; + if (other.hasText()) { + text_ = other.text_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasLanguage()) { + language_ = other.language_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static final int TARGETED_STOP_ID_FIELD_NUMBER = 11; - @SuppressWarnings("serial") - private volatile java.lang.Object targetedStopId_ = ""; - /** - *
-     *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
-     * 
- * - * optional string targeted_stop_id = 11; - * @return Whether the targetedStopId field is set. - */ - @java.lang.Override - public boolean hasTargetedStopId() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - *
-     *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
-     * 
- * - * optional string targeted_stop_id = 11; - * @return The targetedStopId. - */ - @java.lang.Override - public java.lang.String getTargetedStopId() { - java.lang.Object ref = targetedStopId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - targetedStopId_ = s; - } - return s; - } - } - /** - *
-     *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
-     * 
- * - * optional string targeted_stop_id = 11; - * @return The bytes for targetedStopId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTargetedStopIdBytes() { - java.lang.Object ref = targetedStopId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetedStopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasText()) { + 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_ = ""; + /** + * required string text = 1; + * @return Whether the text field is set. + */ + public boolean hasText() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required string text = 1; + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + text_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string text = 1; + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string text = 1; + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * required string text = 1; + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * required string text = 1; + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object language_ = ""; + /** + * optional string language = 2; + * @return Whether the language field is set. + */ + public boolean hasLanguage() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string language = 2; + * @return The language. + */ + public java.lang.String getLanguage() { + java.lang.Object ref = language_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + language_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string language = 2; + * @return The bytes for language. + */ + public com.google.protobuf.ByteString getLanguageBytes() { + java.lang.Object ref = language_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + language_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string language = 2; + * @param value The language to set. + * @return This builder for chaining. + */ + public Builder setLanguage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + language_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional string language = 2; + * @return This builder for chaining. + */ + public Builder clearLanguage() { + language_ = getDefaultInstance().getLanguage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * optional string language = 2; + * @param value The bytes for language to set. + * @return This builder for chaining. + */ + public Builder setLanguageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + language_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static final int IS_VIA_POINT_FIELD_NUMBER = 12; - private boolean isViaPoint_ = false; - /** - * optional bool is_via_point = 12 [default = false]; - * @return Whether the isViaPoint field is set. - */ - @java.lang.Override - public boolean hasIsViaPoint() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * optional bool is_via_point = 12 [default = false]; - * @return The isViaPoint. - */ - @java.lang.Override - public boolean getIsViaPoint() { - return isViaPoint_; - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - 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 (!hasSchemaVersion()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTripInfo()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStopId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStopSequence()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStatus()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasType()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasLastModifiedUtcMs()) { - memoizedIsInitialized = 0; - return false; - } - if (!getTripInfo().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + // @@protoc_insertion_point(builder_scope:proto.Bulletin.Translation) + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getTripInfo()); - } - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stopId_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeUInt32(4, stopSequence_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeEnum(5, status_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeEnum(6, type_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeInt64(7, estimatedTimeUtcMs_); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeInt64(8, scheduledTimeUtcMs_); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeInt64(9, lastModifiedUtcMs_); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeBool(10, observedTime_); - } - if (((bitField0_ & 0x00000400) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, targetedStopId_); - } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeBool(12, isViaPoint_); - } - getUnknownFields().writeTo(output); - } + // @@protoc_insertion_point(class_scope:proto.Bulletin.Translation) + private static final fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation(); + } - @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, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTripInfo()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, stopId_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, stopSequence_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, status_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, type_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, estimatedTimeUtcMs_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, scheduledTimeUtcMs_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, lastModifiedUtcMs_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, observedTime_); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, targetedStopId_); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, isViaPoint_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate other = (fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate) obj; - - if (hasSchemaVersion() != other.hasSchemaVersion()) return false; - if (hasSchemaVersion()) { - if (getSchemaVersion() - != other.getSchemaVersion()) return false; - } - if (hasTripInfo() != other.hasTripInfo()) return false; - if (hasTripInfo()) { - if (!getTripInfo() - .equals(other.getTripInfo())) return false; - } - if (hasStopId() != other.hasStopId()) return false; - if (hasStopId()) { - if (!getStopId() - .equals(other.getStopId())) return false; - } - if (hasStopSequence() != other.hasStopSequence()) return false; - if (hasStopSequence()) { - if (getStopSequence() - != other.getStopSequence()) return false; - } - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (status_ != other.status_) return false; - } - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (type_ != other.type_) return false; - } - if (hasEstimatedTimeUtcMs() != other.hasEstimatedTimeUtcMs()) return false; - if (hasEstimatedTimeUtcMs()) { - if (getEstimatedTimeUtcMs() - != other.getEstimatedTimeUtcMs()) return false; - } - if (hasScheduledTimeUtcMs() != other.hasScheduledTimeUtcMs()) return false; - if (hasScheduledTimeUtcMs()) { - if (getScheduledTimeUtcMs() - != other.getScheduledTimeUtcMs()) return false; - } - if (hasLastModifiedUtcMs() != other.hasLastModifiedUtcMs()) return false; - if (hasLastModifiedUtcMs()) { - if (getLastModifiedUtcMs() - != other.getLastModifiedUtcMs()) return false; - } - if (hasObservedTime() != other.hasObservedTime()) return false; - if (hasObservedTime()) { - if (getObservedTime() - != other.getObservedTime()) return false; - } - if (hasTargetedStopId() != other.hasTargetedStopId()) return false; - if (hasTargetedStopId()) { - if (!getTargetedStopId() - .equals(other.getTargetedStopId())) return false; - } - if (hasIsViaPoint() != other.hasIsViaPoint()) return false; - if (hasIsViaPoint()) { - if (getIsViaPoint() - != other.getIsViaPoint()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Translation parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSchemaVersion()) { - hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getSchemaVersion(); - } - if (hasTripInfo()) { - hash = (37 * hash) + TRIP_INFO_FIELD_NUMBER; - hash = (53 * hash) + getTripInfo().hashCode(); - } - if (hasStopId()) { - hash = (37 * hash) + STOP_ID_FIELD_NUMBER; - hash = (53 * hash) + getStopId().hashCode(); - } - if (hasStopSequence()) { - hash = (37 * hash) + STOP_SEQUENCE_FIELD_NUMBER; - hash = (53 * hash) + getStopSequence(); - } - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - } - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - } - if (hasEstimatedTimeUtcMs()) { - hash = (37 * hash) + ESTIMATED_TIME_UTC_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEstimatedTimeUtcMs()); - } - if (hasScheduledTimeUtcMs()) { - hash = (37 * hash) + SCHEDULED_TIME_UTC_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getScheduledTimeUtcMs()); - } - if (hasLastModifiedUtcMs()) { - hash = (37 * hash) + LAST_MODIFIED_UTC_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLastModifiedUtcMs()); - } - if (hasObservedTime()) { - hash = (37 * hash) + OBSERVED_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getObservedTime()); - } - if (hasTargetedStopId()) { - hash = (37 * hash) + TARGETED_STOP_ID_FIELD_NUMBER; - hash = (53 * hash) + getTargetedStopId().hashCode(); - } - if (hasIsViaPoint()) { - hash = (37 * hash) + IS_VIA_POINT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsViaPoint()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.StopEstimate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.StopEstimate) - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopEstimate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopEstimate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.class, fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Builder.class); - } - - // Construct using fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTripInfoFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - schemaVersion_ = 1; - tripInfo_ = null; - if (tripInfoBuilder_ != null) { - tripInfoBuilder_.dispose(); - tripInfoBuilder_ = null; - } - stopId_ = ""; - stopSequence_ = 0; - status_ = 0; - type_ = 0; - estimatedTimeUtcMs_ = 0L; - scheduledTimeUtcMs_ = 0L; - lastModifiedUtcMs_ = 0L; - observedTime_ = false; - targetedStopId_ = ""; - isViaPoint_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_StopEstimate_descriptor; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate build() { - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate buildPartial() { - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate result = new fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.schemaVersion_ = schemaVersion_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tripInfo_ = tripInfoBuilder_ == null - ? tripInfo_ - : tripInfoBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.stopId_ = stopId_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.stopSequence_ = stopSequence_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.status_ = status_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.type_ = type_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.estimatedTimeUtcMs_ = estimatedTimeUtcMs_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.scheduledTimeUtcMs_ = scheduledTimeUtcMs_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.lastModifiedUtcMs_ = lastModifiedUtcMs_; - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.observedTime_ = observedTime_; - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.targetedStopId_ = targetedStopId_; - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.isViaPoint_ = isViaPoint_; - to_bitField0_ |= 0x00000800; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate) { - return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate other) { - if (other == fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.getDefaultInstance()) return this; - if (other.hasSchemaVersion()) { - setSchemaVersion(other.getSchemaVersion()); - } - if (other.hasTripInfo()) { - mergeTripInfo(other.getTripInfo()); - } - if (other.hasStopId()) { - stopId_ = other.stopId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasStopSequence()) { - setStopSequence(other.getStopSequence()); - } - if (other.hasStatus()) { - setStatus(other.getStatus()); - } - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasEstimatedTimeUtcMs()) { - setEstimatedTimeUtcMs(other.getEstimatedTimeUtcMs()); - } - if (other.hasScheduledTimeUtcMs()) { - setScheduledTimeUtcMs(other.getScheduledTimeUtcMs()); - } - if (other.hasLastModifiedUtcMs()) { - setLastModifiedUtcMs(other.getLastModifiedUtcMs()); - } - if (other.hasObservedTime()) { - setObservedTime(other.getObservedTime()); - } - if (other.hasTargetedStopId()) { - targetedStopId_ = other.targetedStopId_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (other.hasIsViaPoint()) { - setIsViaPoint(other.getIsViaPoint()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSchemaVersion()) { - return false; - } - if (!hasTripInfo()) { - return false; - } - if (!hasStopId()) { - return false; - } - if (!hasStopSequence()) { - return false; - } - if (!hasStatus()) { - return false; - } - if (!hasType()) { - return false; - } - if (!hasLastModifiedUtcMs()) { - return false; - } - if (!getTripInfo().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: { - schemaVersion_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getTripInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - stopId_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - stopSequence_ = input.readUInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - int tmpRaw = input.readEnum(); - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status tmpValue = - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(5, tmpRaw); - } else { - status_ = tmpRaw; - bitField0_ |= 0x00000010; - } - break; - } // case 40 - case 48: { - int tmpRaw = input.readEnum(); - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type tmpValue = - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(6, tmpRaw); - } else { - type_ = tmpRaw; - bitField0_ |= 0x00000020; + } + + private int bitField0_; + public static final int BULLETIN_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object bulletinId_ = ""; + /** + * optional string bulletin_id = 1; + * @return Whether the bulletinId field is set. + */ + @java.lang.Override + public boolean hasBulletinId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string bulletin_id = 1; + * @return The bulletinId. + */ + @java.lang.Override + public java.lang.String getBulletinId() { + java.lang.Object ref = bulletinId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + bulletinId_ = s; } - break; - } // case 48 - case 56: { - estimatedTimeUtcMs_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - scheduledTimeUtcMs_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - lastModifiedUtcMs_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 80: { - observedTime_ = input.readBool(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 90: { - targetedStopId_ = input.readBytes(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 96: { - isViaPoint_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 96 - 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 schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @param value The schemaVersion to set. - * @return This builder for chaining. - */ - public Builder setSchemaVersion(int value) { - - schemaVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return This builder for chaining. - */ - public Builder clearSchemaVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - schemaVersion_ = 1; - onChanged(); - return this; - } - - private fi.hsl.common.transitdata.proto.InternalMessages.TripInfo tripInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder, fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder> tripInfoBuilder_; - /** - * required .proto.TripInfo trip_info = 2; - * @return Whether the tripInfo field is set. - */ - public boolean hasTripInfo() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required .proto.TripInfo trip_info = 2; - * @return The tripInfo. - */ - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo getTripInfo() { - if (tripInfoBuilder_ == null) { - return tripInfo_ == null ? fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() : tripInfo_; - } else { - return tripInfoBuilder_.getMessage(); - } - } - /** - * required .proto.TripInfo trip_info = 2; - */ - public Builder setTripInfo(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo value) { - if (tripInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tripInfo_ = value; - } else { - tripInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * required .proto.TripInfo trip_info = 2; - */ - public Builder setTripInfo( - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder builderForValue) { - if (tripInfoBuilder_ == null) { - tripInfo_ = builderForValue.build(); - } else { - tripInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * required .proto.TripInfo trip_info = 2; - */ - public Builder mergeTripInfo(fi.hsl.common.transitdata.proto.InternalMessages.TripInfo value) { - if (tripInfoBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - tripInfo_ != null && - tripInfo_ != fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance()) { - getTripInfoBuilder().mergeFrom(value); - } else { - tripInfo_ = value; - } - } else { - tripInfoBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * required .proto.TripInfo trip_info = 2; - */ - public Builder clearTripInfo() { - bitField0_ = (bitField0_ & ~0x00000002); - tripInfo_ = null; - if (tripInfoBuilder_ != null) { - tripInfoBuilder_.dispose(); - tripInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * required .proto.TripInfo trip_info = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder getTripInfoBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getTripInfoFieldBuilder().getBuilder(); - } - /** - * required .proto.TripInfo trip_info = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder getTripInfoOrBuilder() { - if (tripInfoBuilder_ != null) { - return tripInfoBuilder_.getMessageOrBuilder(); - } else { - return tripInfo_ == null ? - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.getDefaultInstance() : tripInfo_; - } - } - /** - * required .proto.TripInfo trip_info = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder, fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder> - getTripInfoFieldBuilder() { - if (tripInfoBuilder_ == null) { - tripInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.TripInfo, fi.hsl.common.transitdata.proto.InternalMessages.TripInfo.Builder, fi.hsl.common.transitdata.proto.InternalMessages.TripInfoOrBuilder>( - getTripInfo(), - getParentForChildren(), - isClean()); - tripInfo_ = null; - } - return tripInfoBuilder_; - } - - private java.lang.Object stopId_ = ""; - /** - *
-       *The stop where the vehicle is scheduled to stop
-       * 
- * - * required string stop_id = 3; - * @return Whether the stopId field is set. - */ - public boolean hasStopId() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       *The stop where the vehicle is scheduled to stop
-       * 
- * - * required string stop_id = 3; - * @return The stopId. - */ - public java.lang.String getStopId() { - java.lang.Object ref = stopId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *The stop where the vehicle is scheduled to stop
-       * 
- * - * required string stop_id = 3; - * @return The bytes for stopId. - */ - public com.google.protobuf.ByteString - getStopIdBytes() { - java.lang.Object ref = stopId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *The stop where the vehicle is scheduled to stop
-       * 
- * - * required string stop_id = 3; - * @param value The stopId to set. - * @return This builder for chaining. - */ - public Builder setStopId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - stopId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       *The stop where the vehicle is scheduled to stop
-       * 
- * - * required string stop_id = 3; - * @return This builder for chaining. - */ - public Builder clearStopId() { - stopId_ = getDefaultInstance().getStopId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-       *The stop where the vehicle is scheduled to stop
-       * 
- * - * required string stop_id = 3; - * @param value The bytes for stopId to set. - * @return This builder for chaining. - */ - public Builder setStopIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - stopId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private int stopSequence_ ; - /** - * required uint32 stop_sequence = 4; - * @return Whether the stopSequence field is set. - */ - @java.lang.Override - public boolean hasStopSequence() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required uint32 stop_sequence = 4; - * @return The stopSequence. - */ - @java.lang.Override - public int getStopSequence() { - return stopSequence_; - } - /** - * required uint32 stop_sequence = 4; - * @param value The stopSequence to set. - * @return This builder for chaining. - */ - public Builder setStopSequence(int value) { - - stopSequence_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * required uint32 stop_sequence = 4; - * @return This builder for chaining. - */ - public Builder clearStopSequence() { - bitField0_ = (bitField0_ & ~0x00000008); - stopSequence_ = 0; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * required .proto.StopEstimate.Status status = 5; - * @return Whether the status field is set. - */ - @java.lang.Override public boolean hasStatus() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required .proto.StopEstimate.Status status = 5; - * @return The status. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status getStatus() { - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status result = fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status.forNumber(status_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status.SCHEDULED : result; - } - /** - * required .proto.StopEstimate.Status status = 5; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Status value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .proto.StopEstimate.Status status = 5; - * @return This builder for chaining. - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000010); - status_ = 0; - onChanged(); - return this; - } - - private int type_ = 0; - /** - * required .proto.StopEstimate.Type type = 6; - * @return Whether the type field is set. - */ - @java.lang.Override public boolean hasType() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * required .proto.StopEstimate.Type type = 6; - * @return The type. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type getType() { - fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type result = fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type.forNumber(type_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type.ARRIVAL : result; - } - /** - * required .proto.StopEstimate.Type type = 6; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .proto.StopEstimate.Type type = 6; - * @return This builder for chaining. - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000020); - type_ = 0; - onChanged(); - return this; - } - - private long estimatedTimeUtcMs_ ; - /** - * optional int64 estimated_time_utc_ms = 7; - * @return Whether the estimatedTimeUtcMs field is set. - */ - @java.lang.Override - public boolean hasEstimatedTimeUtcMs() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * optional int64 estimated_time_utc_ms = 7; - * @return The estimatedTimeUtcMs. - */ - @java.lang.Override - public long getEstimatedTimeUtcMs() { - return estimatedTimeUtcMs_; - } - /** - * optional int64 estimated_time_utc_ms = 7; - * @param value The estimatedTimeUtcMs to set. - * @return This builder for chaining. - */ - public Builder setEstimatedTimeUtcMs(long value) { - - estimatedTimeUtcMs_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * optional int64 estimated_time_utc_ms = 7; - * @return This builder for chaining. - */ - public Builder clearEstimatedTimeUtcMs() { - bitField0_ = (bitField0_ & ~0x00000040); - estimatedTimeUtcMs_ = 0L; - onChanged(); - return this; - } - - private long scheduledTimeUtcMs_ ; - /** - * optional int64 scheduled_time_utc_ms = 8; - * @return Whether the scheduledTimeUtcMs field is set. - */ - @java.lang.Override - public boolean hasScheduledTimeUtcMs() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional int64 scheduled_time_utc_ms = 8; - * @return The scheduledTimeUtcMs. - */ - @java.lang.Override - public long getScheduledTimeUtcMs() { - return scheduledTimeUtcMs_; - } - /** - * optional int64 scheduled_time_utc_ms = 8; - * @param value The scheduledTimeUtcMs to set. - * @return This builder for chaining. - */ - public Builder setScheduledTimeUtcMs(long value) { - - scheduledTimeUtcMs_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * optional int64 scheduled_time_utc_ms = 8; - * @return This builder for chaining. - */ - public Builder clearScheduledTimeUtcMs() { - bitField0_ = (bitField0_ & ~0x00000080); - scheduledTimeUtcMs_ = 0L; - onChanged(); - return this; - } - - private long lastModifiedUtcMs_ ; - /** - * required int64 last_modified_utc_ms = 9; - * @return Whether the lastModifiedUtcMs field is set. - */ - @java.lang.Override - public boolean hasLastModifiedUtcMs() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * required int64 last_modified_utc_ms = 9; - * @return The lastModifiedUtcMs. - */ - @java.lang.Override - public long getLastModifiedUtcMs() { - return lastModifiedUtcMs_; - } - /** - * required int64 last_modified_utc_ms = 9; - * @param value The lastModifiedUtcMs to set. - * @return This builder for chaining. - */ - public Builder setLastModifiedUtcMs(long value) { - - lastModifiedUtcMs_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * required int64 last_modified_utc_ms = 9; - * @return This builder for chaining. - */ - public Builder clearLastModifiedUtcMs() { - bitField0_ = (bitField0_ & ~0x00000100); - lastModifiedUtcMs_ = 0L; - onChanged(); - return this; - } - - private boolean observedTime_ ; - /** - *
-       *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
-       * 
- * - * optional bool observed_time = 10 [default = false]; - * @return Whether the observedTime field is set. - */ - @java.lang.Override - public boolean hasObservedTime() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - *
-       *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
-       * 
- * - * optional bool observed_time = 10 [default = false]; - * @return The observedTime. - */ - @java.lang.Override - public boolean getObservedTime() { - return observedTime_; - } - /** - *
-       *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
-       * 
- * - * optional bool observed_time = 10 [default = false]; - * @param value The observedTime to set. - * @return This builder for chaining. - */ - public Builder setObservedTime(boolean value) { - - observedTime_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - *
-       *True if the estimated time was observed (i.e. true if the vehicle has already passed the stop)
-       * 
- * - * optional bool observed_time = 10 [default = false]; - * @return This builder for chaining. - */ - public Builder clearObservedTime() { - bitField0_ = (bitField0_ & ~0x00000200); - observedTime_ = false; - onChanged(); - return this; - } - - private java.lang.Object targetedStopId_ = ""; - /** - *
-       *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
-       * 
- * - * optional string targeted_stop_id = 11; - * @return Whether the targetedStopId field is set. - */ - public boolean hasTargetedStopId() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - *
-       *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
-       * 
- * - * optional string targeted_stop_id = 11; - * @return The targetedStopId. - */ - public java.lang.String getTargetedStopId() { - java.lang.Object ref = targetedStopId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - targetedStopId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
-       * 
- * - * optional string targeted_stop_id = 11; - * @return The bytes for targetedStopId. - */ - public com.google.protobuf.ByteString - getTargetedStopIdBytes() { - java.lang.Object ref = targetedStopId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetedStopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
-       * 
- * - * optional string targeted_stop_id = 11; - * @param value The targetedStopId to set. - * @return This builder for chaining. - */ - public Builder setTargetedStopId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - targetedStopId_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-       *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
-       * 
- * - * optional string targeted_stop_id = 11; - * @return This builder for chaining. - */ - public Builder clearTargetedStopId() { - targetedStopId_ = getDefaultInstance().getTargetedStopId(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - return this; - } - /** - *
-       *The stop where the vehicle is targeted to stop (e.g. train using a different track than scheduled)
-       * 
- * - * optional string targeted_stop_id = 11; - * @param value The bytes for targetedStopId to set. - * @return This builder for chaining. - */ - public Builder setTargetedStopIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - targetedStopId_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - private boolean isViaPoint_ ; - /** - * optional bool is_via_point = 12 [default = false]; - * @return Whether the isViaPoint field is set. - */ - @java.lang.Override - public boolean hasIsViaPoint() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * optional bool is_via_point = 12 [default = false]; - * @return The isViaPoint. - */ - @java.lang.Override - public boolean getIsViaPoint() { - return isViaPoint_; - } - /** - * optional bool is_via_point = 12 [default = false]; - * @param value The isViaPoint to set. - * @return This builder for chaining. - */ - public Builder setIsViaPoint(boolean value) { - - isViaPoint_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * optional bool is_via_point = 12 [default = false]; - * @return This builder for chaining. - */ - public Builder clearIsViaPoint() { - bitField0_ = (bitField0_ & ~0x00000800); - isViaPoint_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.StopEstimate) - } + return s; + } + } + /** + * optional string bulletin_id = 1; + * @return The bytes for bulletinId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBulletinIdBytes() { + java.lang.Object ref = bulletinId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bulletinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:proto.StopEstimate) - private static final fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate(); - } + public static final int CATEGORY_FIELD_NUMBER = 2; + private int category_ = 0; + /** + * optional .proto.Category category = 2; + * @return Whether the category field is set. + */ + @java.lang.Override + public boolean hasCategory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .proto.Category category = 2; + * @return The category. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Category getCategory() { + fi.hsl.common.transitdata.proto.InternalMessages.Category result = fi.hsl.common.transitdata.proto.InternalMessages.Category + .forNumber(category_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.Category.VEHICLE_BREAKDOWN + : result; + } - public static fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int LAST_MODIFIED_UTC_MS_FIELD_NUMBER = 3; + private long lastModifiedUtcMs_ = 0L; + /** + * required int64 last_modified_utc_ms = 3; + * @return Whether the lastModifiedUtcMs field is set. + */ + @java.lang.Override + public boolean hasLastModifiedUtcMs() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required int64 last_modified_utc_ms = 3; + * @return The lastModifiedUtcMs. + */ + @java.lang.Override + public long getLastModifiedUtcMs() { + return lastModifiedUtcMs_; + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopEstimate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static final int VALID_FROM_UTC_MS_FIELD_NUMBER = 4; + private long validFromUtcMs_ = 0L; + /** + * required int64 valid_from_utc_ms = 4; + * @return Whether the validFromUtcMs field is set. + */ + @java.lang.Override + public boolean hasValidFromUtcMs() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * required int64 valid_from_utc_ms = 4; + * @return The validFromUtcMs. + */ + @java.lang.Override + public long getValidFromUtcMs() { + return validFromUtcMs_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int VALID_TO_UTC_MS_FIELD_NUMBER = 5; + private long validToUtcMs_ = 0L; + /** + * required int64 valid_to_utc_ms = 5; + * @return Whether the validToUtcMs field is set. + */ + @java.lang.Override + public boolean hasValidToUtcMs() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * required int64 valid_to_utc_ms = 5; + * @return The validToUtcMs. + */ + @java.lang.Override + public long getValidToUtcMs() { + return validToUtcMs_; + } - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.StopEstimate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final int AFFECTS_ALL_ROUTES_FIELD_NUMBER = 6; + private boolean affectsAllRoutes_ = false; + /** + * optional bool affects_all_routes = 6; + * @return Whether the affectsAllRoutes field is set. + */ + @java.lang.Override + public boolean hasAffectsAllRoutes() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional bool affects_all_routes = 6; + * @return The affectsAllRoutes. + */ + @java.lang.Override + public boolean getAffectsAllRoutes() { + return affectsAllRoutes_; + } + + public static final int AFFECTS_ALL_STOPS_FIELD_NUMBER = 7; + private boolean affectsAllStops_ = false; + /** + * optional bool affects_all_stops = 7; + * @return Whether the affectsAllStops field is set. + */ + @java.lang.Override + public boolean hasAffectsAllStops() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional bool affects_all_stops = 7; + * @return The affectsAllStops. + */ + @java.lang.Override + public boolean getAffectsAllStops() { + return affectsAllStops_; + } + + public static final int AFFECTED_ROUTES_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private java.util.List affectedRoutes_; + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + @java.lang.Override + public java.util.List getAffectedRoutesList() { + return affectedRoutes_; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + @java.lang.Override + public java.util.List getAffectedRoutesOrBuilderList() { + return affectedRoutes_; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + @java.lang.Override + public int getAffectedRoutesCount() { + return affectedRoutes_.size(); + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getAffectedRoutes(int index) { + return affectedRoutes_.get(index); + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder getAffectedRoutesOrBuilder( + int index) { + return affectedRoutes_.get(index); + } + + public static final int AFFECTED_STOPS_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private java.util.List affectedStops_; + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + @java.lang.Override + public java.util.List getAffectedStopsList() { + return affectedStops_; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + @java.lang.Override + public java.util.List getAffectedStopsOrBuilderList() { + return affectedStops_; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + @java.lang.Override + public int getAffectedStopsCount() { + return affectedStops_.size(); + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getAffectedStops(int index) { + return affectedStops_.get(index); + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder getAffectedStopsOrBuilder( + int index) { + return affectedStops_.get(index); + } - } + public static final int IMPACT_FIELD_NUMBER = 10; + private int impact_ = 0; + /** + * optional .proto.Bulletin.Impact impact = 10; + * @return Whether the impact field is set. + */ + @java.lang.Override + public boolean hasImpact() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional .proto.Bulletin.Impact impact = 10; + * @return The impact. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact getImpact() { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact result = fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact + .forNumber(impact_); + return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact.CANCELLED : result; + } - public interface BulletinOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.Bulletin) - com.google.protobuf.MessageOrBuilder { + public static final int PRIORITY_FIELD_NUMBER = 11; + private int priority_ = 0; + /** + * optional .proto.Bulletin.Priority priority = 11; + * @return Whether the priority field is set. + */ + @java.lang.Override + public boolean hasPriority() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional .proto.Bulletin.Priority priority = 11; + * @return The priority. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority getPriority() { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority result = fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority + .forNumber(priority_); + return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority.INFO : result; + } - /** - * optional string bulletin_id = 1; - * @return Whether the bulletinId field is set. - */ - boolean hasBulletinId(); - /** - * optional string bulletin_id = 1; - * @return The bulletinId. - */ - java.lang.String getBulletinId(); - /** - * optional string bulletin_id = 1; - * @return The bytes for bulletinId. - */ - com.google.protobuf.ByteString - getBulletinIdBytes(); + public static final int TITLES_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private java.util.List titles_; + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + @java.lang.Override + public java.util.List getTitlesList() { + return titles_; + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + @java.lang.Override + public java.util.List getTitlesOrBuilderList() { + return titles_; + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + @java.lang.Override + public int getTitlesCount() { + return titles_.size(); + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getTitles(int index) { + return titles_.get(index); + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getTitlesOrBuilder( + int index) { + return titles_.get(index); + } + + public static final int DESCRIPTIONS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private java.util.List descriptions_; + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + @java.lang.Override + public java.util.List getDescriptionsList() { + return descriptions_; + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + @java.lang.Override + public java.util.List getDescriptionsOrBuilderList() { + return descriptions_; + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + @java.lang.Override + public int getDescriptionsCount() { + return descriptions_.size(); + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getDescriptions(int index) { + return descriptions_.get(index); + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getDescriptionsOrBuilder( + int index) { + return descriptions_.get(index); + } + + public static final int URLS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") + private java.util.List urls_; + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + @java.lang.Override + public java.util.List getUrlsList() { + return urls_; + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + @java.lang.Override + public java.util.List getUrlsOrBuilderList() { + return urls_; + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + @java.lang.Override + public int getUrlsCount() { + return urls_.size(); + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getUrls(int index) { + return urls_.get(index); + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getUrlsOrBuilder( + int index) { + return urls_.get(index); + } + + public static final int DISPLAY_ONLY_FIELD_NUMBER = 15; + private boolean displayOnly_ = false; + /** + *
+         *If true, the bulletin should be shown only on vehicle displays
+         * 
+ * + * optional bool display_only = 15 [default = false]; + * @return Whether the displayOnly field is set. + */ + @java.lang.Override + public boolean hasDisplayOnly() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+         *If true, the bulletin should be shown only on vehicle displays
+         * 
+ * + * optional bool display_only = 15 [default = false]; + * @return The displayOnly. + */ + @java.lang.Override + public boolean getDisplayOnly() { + return displayOnly_; + } - /** - * optional .proto.Category category = 2; - * @return Whether the category field is set. - */ - boolean hasCategory(); - /** - * optional .proto.Category category = 2; - * @return The category. - */ - fi.hsl.common.transitdata.proto.InternalMessages.Category getCategory(); + 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 (!hasLastModifiedUtcMs()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasValidFromUtcMs()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasValidToUtcMs()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getAffectedRoutesCount(); i++) { + if (!getAffectedRoutes(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getAffectedStopsCount(); i++) { + if (!getAffectedStops(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getTitlesCount(); i++) { + if (!getTitles(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getDescriptionsCount(); i++) { + if (!getDescriptions(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getUrlsCount(); i++) { + if (!getUrls(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - /** - * required int64 last_modified_utc_ms = 3; - * @return Whether the lastModifiedUtcMs field is set. - */ - boolean hasLastModifiedUtcMs(); - /** - * required int64 last_modified_utc_ms = 3; - * @return The lastModifiedUtcMs. - */ - long getLastModifiedUtcMs(); + @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, bulletinId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, category_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, lastModifiedUtcMs_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(4, validFromUtcMs_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt64(5, validToUtcMs_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeBool(6, affectsAllRoutes_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeBool(7, affectsAllStops_); + } + for (int i = 0; i < affectedRoutes_.size(); i++) { + output.writeMessage(8, affectedRoutes_.get(i)); + } + for (int i = 0; i < affectedStops_.size(); i++) { + output.writeMessage(9, affectedStops_.get(i)); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeEnum(10, impact_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeEnum(11, priority_); + } + for (int i = 0; i < titles_.size(); i++) { + output.writeMessage(12, titles_.get(i)); + } + for (int i = 0; i < descriptions_.size(); i++) { + output.writeMessage(13, descriptions_.get(i)); + } + for (int i = 0; i < urls_.size(); i++) { + output.writeMessage(14, urls_.get(i)); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeBool(15, displayOnly_); + } + getUnknownFields().writeTo(output); + } - /** - * required int64 valid_from_utc_ms = 4; - * @return Whether the validFromUtcMs field is set. - */ - boolean hasValidFromUtcMs(); - /** - * required int64 valid_from_utc_ms = 4; - * @return The validFromUtcMs. - */ - long getValidFromUtcMs(); + @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, bulletinId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, category_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, lastModifiedUtcMs_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, validFromUtcMs_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, validToUtcMs_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, affectsAllRoutes_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, affectsAllStops_); + } + for (int i = 0; i < affectedRoutes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, affectedRoutes_.get(i)); + } + for (int i = 0; i < affectedStops_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, affectedStops_.get(i)); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, impact_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, priority_); + } + for (int i = 0; i < titles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, titles_.get(i)); + } + for (int i = 0; i < descriptions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, descriptions_.get(i)); + } + for (int i = 0; i < urls_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, urls_.get(i)); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, displayOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * required int64 valid_to_utc_ms = 5; - * @return Whether the validToUtcMs field is set. - */ - boolean hasValidToUtcMs(); - /** - * required int64 valid_to_utc_ms = 5; - * @return The validToUtcMs. - */ - long getValidToUtcMs(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof fi.hsl.common.transitdata.proto.InternalMessages.Bulletin)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin other = (fi.hsl.common.transitdata.proto.InternalMessages.Bulletin) obj; - /** - * optional bool affects_all_routes = 6; - * @return Whether the affectsAllRoutes field is set. - */ - boolean hasAffectsAllRoutes(); - /** - * optional bool affects_all_routes = 6; - * @return The affectsAllRoutes. - */ - boolean getAffectsAllRoutes(); + if (hasBulletinId() != other.hasBulletinId()) + return false; + if (hasBulletinId()) { + if (!getBulletinId().equals(other.getBulletinId())) + return false; + } + if (hasCategory() != other.hasCategory()) + return false; + if (hasCategory()) { + if (category_ != other.category_) + return false; + } + if (hasLastModifiedUtcMs() != other.hasLastModifiedUtcMs()) + return false; + if (hasLastModifiedUtcMs()) { + if (getLastModifiedUtcMs() != other.getLastModifiedUtcMs()) + return false; + } + if (hasValidFromUtcMs() != other.hasValidFromUtcMs()) + return false; + if (hasValidFromUtcMs()) { + if (getValidFromUtcMs() != other.getValidFromUtcMs()) + return false; + } + if (hasValidToUtcMs() != other.hasValidToUtcMs()) + return false; + if (hasValidToUtcMs()) { + if (getValidToUtcMs() != other.getValidToUtcMs()) + return false; + } + if (hasAffectsAllRoutes() != other.hasAffectsAllRoutes()) + return false; + if (hasAffectsAllRoutes()) { + if (getAffectsAllRoutes() != other.getAffectsAllRoutes()) + return false; + } + if (hasAffectsAllStops() != other.hasAffectsAllStops()) + return false; + if (hasAffectsAllStops()) { + if (getAffectsAllStops() != other.getAffectsAllStops()) + return false; + } + if (!getAffectedRoutesList().equals(other.getAffectedRoutesList())) + return false; + if (!getAffectedStopsList().equals(other.getAffectedStopsList())) + return false; + if (hasImpact() != other.hasImpact()) + return false; + if (hasImpact()) { + if (impact_ != other.impact_) + return false; + } + if (hasPriority() != other.hasPriority()) + return false; + if (hasPriority()) { + if (priority_ != other.priority_) + return false; + } + if (!getTitlesList().equals(other.getTitlesList())) + return false; + if (!getDescriptionsList().equals(other.getDescriptionsList())) + return false; + if (!getUrlsList().equals(other.getUrlsList())) + return false; + if (hasDisplayOnly() != other.hasDisplayOnly()) + return false; + if (hasDisplayOnly()) { + if (getDisplayOnly() != other.getDisplayOnly()) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } - /** - * optional bool affects_all_stops = 7; - * @return Whether the affectsAllStops field is set. - */ - boolean hasAffectsAllStops(); - /** - * optional bool affects_all_stops = 7; - * @return The affectsAllStops. - */ - boolean getAffectsAllStops(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBulletinId()) { + hash = (37 * hash) + BULLETIN_ID_FIELD_NUMBER; + hash = (53 * hash) + getBulletinId().hashCode(); + } + if (hasCategory()) { + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + category_; + } + if (hasLastModifiedUtcMs()) { + hash = (37 * hash) + LAST_MODIFIED_UTC_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLastModifiedUtcMs()); + } + if (hasValidFromUtcMs()) { + hash = (37 * hash) + VALID_FROM_UTC_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValidFromUtcMs()); + } + if (hasValidToUtcMs()) { + hash = (37 * hash) + VALID_TO_UTC_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getValidToUtcMs()); + } + if (hasAffectsAllRoutes()) { + hash = (37 * hash) + AFFECTS_ALL_ROUTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAffectsAllRoutes()); + } + if (hasAffectsAllStops()) { + hash = (37 * hash) + AFFECTS_ALL_STOPS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAffectsAllStops()); + } + if (getAffectedRoutesCount() > 0) { + hash = (37 * hash) + AFFECTED_ROUTES_FIELD_NUMBER; + hash = (53 * hash) + getAffectedRoutesList().hashCode(); + } + if (getAffectedStopsCount() > 0) { + hash = (37 * hash) + AFFECTED_STOPS_FIELD_NUMBER; + hash = (53 * hash) + getAffectedStopsList().hashCode(); + } + if (hasImpact()) { + hash = (37 * hash) + IMPACT_FIELD_NUMBER; + hash = (53 * hash) + impact_; + } + if (hasPriority()) { + hash = (37 * hash) + PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + priority_; + } + if (getTitlesCount() > 0) { + hash = (37 * hash) + TITLES_FIELD_NUMBER; + hash = (53 * hash) + getTitlesList().hashCode(); + } + if (getDescriptionsCount() > 0) { + hash = (37 * hash) + DESCRIPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getDescriptionsList().hashCode(); + } + if (getUrlsCount() > 0) { + hash = (37 * hash) + URLS_FIELD_NUMBER; + hash = (53 * hash) + getUrlsList().hashCode(); + } + if (hasDisplayOnly()) { + hash = (37 * hash) + DISPLAY_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisplayOnly()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - java.util.List - getAffectedRoutesList(); - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getAffectedRoutes(int index); - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - int getAffectedRoutesCount(); - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - java.util.List - getAffectedRoutesOrBuilderList(); - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder getAffectedRoutesOrBuilder( - int index); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - java.util.List - getAffectedStopsList(); - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getAffectedStops(int index); - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - int getAffectedStopsCount(); - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - java.util.List - getAffectedStopsOrBuilderList(); - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder getAffectedStopsOrBuilder( - int index); + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.Bulletin} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.Bulletin) + fi.hsl.common.transitdata.proto.InternalMessages.BulletinOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_descriptor; + } - /** - * optional .proto.Bulletin.Impact impact = 10; - * @return Whether the impact field is set. - */ - boolean hasImpact(); - /** - * optional .proto.Bulletin.Impact impact = 10; - * @return The impact. - */ - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact getImpact(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.class, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder.class); + } - /** - * optional .proto.Bulletin.Priority priority = 11; - * @return Whether the priority field is set. - */ - boolean hasPriority(); - /** - * optional .proto.Bulletin.Priority priority = 11; - * @return The priority. - */ - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority getPriority(); + // Construct using fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.newBuilder() + private Builder() { - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - java.util.List - getTitlesList(); - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getTitles(int index); - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - int getTitlesCount(); - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - java.util.List - getTitlesOrBuilderList(); - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getTitlesOrBuilder( - int index); + } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - java.util.List - getDescriptionsList(); - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getDescriptions(int index); - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - int getDescriptionsCount(); - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - java.util.List - getDescriptionsOrBuilderList(); - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getDescriptionsOrBuilder( - int index); + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - java.util.List - getUrlsList(); - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getUrls(int index); - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - int getUrlsCount(); - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - java.util.List - getUrlsOrBuilderList(); - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getUrlsOrBuilder( - int index); + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bulletinId_ = ""; + category_ = 0; + lastModifiedUtcMs_ = 0L; + validFromUtcMs_ = 0L; + validToUtcMs_ = 0L; + affectsAllRoutes_ = false; + affectsAllStops_ = false; + if (affectedRoutesBuilder_ == null) { + affectedRoutes_ = java.util.Collections.emptyList(); + } else { + affectedRoutes_ = null; + affectedRoutesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + if (affectedStopsBuilder_ == null) { + affectedStops_ = java.util.Collections.emptyList(); + } else { + affectedStops_ = null; + affectedStopsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + impact_ = 0; + priority_ = 0; + if (titlesBuilder_ == null) { + titles_ = java.util.Collections.emptyList(); + } else { + titles_ = null; + titlesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + if (descriptionsBuilder_ == null) { + descriptions_ = java.util.Collections.emptyList(); + } else { + descriptions_ = null; + descriptionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + if (urlsBuilder_ == null) { + urls_ = java.util.Collections.emptyList(); + } else { + urls_ = null; + urlsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + displayOnly_ = false; + return this; + } - /** - *
-     *If true, the bulletin should be shown only on vehicle displays
-     * 
- * - * optional bool display_only = 15 [default = false]; - * @return Whether the displayOnly field is set. - */ - boolean hasDisplayOnly(); - /** - *
-     *If true, the bulletin should be shown only on vehicle displays
-     * 
- * - * optional bool display_only = 15 [default = false]; - * @return The displayOnly. - */ - boolean getDisplayOnly(); - } - /** - * Protobuf type {@code proto.Bulletin} - */ - public static final class Bulletin extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.Bulletin) - BulletinOrBuilder { - private static final long serialVersionUID = 0L; - // Use Bulletin.newBuilder() to construct. - private Bulletin(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Bulletin() { - bulletinId_ = ""; - category_ = 0; - affectedRoutes_ = java.util.Collections.emptyList(); - affectedStops_ = java.util.Collections.emptyList(); - impact_ = 0; - priority_ = 0; - titles_ = java.util.Collections.emptyList(); - descriptions_ = java.util.Collections.emptyList(); - urls_ = java.util.Collections.emptyList(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_descriptor; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Bulletin(); - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.getDefaultInstance(); + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_descriptor; - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin build() { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.class, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder.class); - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin buildPartial() { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin result = new fi.hsl.common.transitdata.proto.InternalMessages.Bulletin( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - * Protobuf enum {@code proto.Bulletin.Impact} - */ - public enum Impact - implements com.google.protobuf.ProtocolMessageEnum { - /** - * CANCELLED = 0; - */ - CANCELLED(0), - /** - * DELAYED = 1; - */ - DELAYED(1), - /** - * DEVIATING_SCHEDULE = 2; - */ - DEVIATING_SCHEDULE(2), - /** - * DISRUPTION_ROUTE = 3; - */ - DISRUPTION_ROUTE(3), - /** - * IRREGULAR_DEPARTURES = 4; - */ - IRREGULAR_DEPARTURES(4), - /** - * POSSIBLE_DEVIATIONS = 5; - */ - POSSIBLE_DEVIATIONS(5), - /** - * POSSIBLY_DELAYED = 6; - */ - POSSIBLY_DELAYED(6), - /** - * REDUCED_TRANSPORT = 7; - */ - REDUCED_TRANSPORT(7), - /** - * RETURNING_TO_NORMAL = 8; - */ - RETURNING_TO_NORMAL(8), - /** - * VENDING_MACHINE_OUT_OF_ORDER = 9; - */ - VENDING_MACHINE_OUT_OF_ORDER(9), - /** - * NULL = 10; - */ - NULL(10), - /** - * OTHER = 11; - */ - OTHER(11), - /** - * NO_TRAFFIC_IMPACT = 12; - */ - NO_TRAFFIC_IMPACT(12), - /** - * UNKNOWN = 13; - */ - UNKNOWN(13), - ; - - /** - * CANCELLED = 0; - */ - public static final int CANCELLED_VALUE = 0; - /** - * DELAYED = 1; - */ - public static final int DELAYED_VALUE = 1; - /** - * DEVIATING_SCHEDULE = 2; - */ - public static final int DEVIATING_SCHEDULE_VALUE = 2; - /** - * DISRUPTION_ROUTE = 3; - */ - public static final int DISRUPTION_ROUTE_VALUE = 3; - /** - * IRREGULAR_DEPARTURES = 4; - */ - public static final int IRREGULAR_DEPARTURES_VALUE = 4; - /** - * POSSIBLE_DEVIATIONS = 5; - */ - public static final int POSSIBLE_DEVIATIONS_VALUE = 5; - /** - * POSSIBLY_DELAYED = 6; - */ - public static final int POSSIBLY_DELAYED_VALUE = 6; - /** - * REDUCED_TRANSPORT = 7; - */ - public static final int REDUCED_TRANSPORT_VALUE = 7; - /** - * RETURNING_TO_NORMAL = 8; - */ - public static final int RETURNING_TO_NORMAL_VALUE = 8; - /** - * VENDING_MACHINE_OUT_OF_ORDER = 9; - */ - public static final int VENDING_MACHINE_OUT_OF_ORDER_VALUE = 9; - /** - * NULL = 10; - */ - public static final int NULL_VALUE = 10; - /** - * OTHER = 11; - */ - public static final int OTHER_VALUE = 11; - /** - * NO_TRAFFIC_IMPACT = 12; - */ - public static final int NO_TRAFFIC_IMPACT_VALUE = 12; - /** - * UNKNOWN = 13; - */ - public static final int UNKNOWN_VALUE = 13; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Impact valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Impact forNumber(int value) { - switch (value) { - case 0: return CANCELLED; - case 1: return DELAYED; - case 2: return DEVIATING_SCHEDULE; - case 3: return DISRUPTION_ROUTE; - case 4: return IRREGULAR_DEPARTURES; - case 5: return POSSIBLE_DEVIATIONS; - case 6: return POSSIBLY_DELAYED; - case 7: return REDUCED_TRANSPORT; - case 8: return RETURNING_TO_NORMAL; - case 9: return VENDING_MACHINE_OUT_OF_ORDER; - case 10: return NULL; - case 11: return OTHER; - case 12: return NO_TRAFFIC_IMPACT; - case 13: return UNKNOWN; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Impact> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Impact findValueByNumber(int number) { - return Impact.forNumber(number); - } - }; + private void buildPartialRepeatedFields(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin result) { + if (affectedRoutesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + affectedRoutes_ = java.util.Collections.unmodifiableList(affectedRoutes_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.affectedRoutes_ = affectedRoutes_; + } else { + result.affectedRoutes_ = affectedRoutesBuilder_.build(); + } + if (affectedStopsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + affectedStops_ = java.util.Collections.unmodifiableList(affectedStops_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.affectedStops_ = affectedStops_; + } else { + result.affectedStops_ = affectedStopsBuilder_.build(); + } + if (titlesBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0)) { + titles_ = java.util.Collections.unmodifiableList(titles_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.titles_ = titles_; + } else { + result.titles_ = titlesBuilder_.build(); + } + if (descriptionsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + descriptions_ = java.util.Collections.unmodifiableList(descriptions_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.descriptions_ = descriptions_; + } else { + result.descriptions_ = descriptionsBuilder_.build(); + } + if (urlsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + urls_ = java.util.Collections.unmodifiableList(urls_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.urls_ = urls_; + } else { + result.urls_ = urlsBuilder_.build(); + } + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.getDescriptor().getEnumTypes().get(0); - } - - private static final Impact[] VALUES = values(); - - public static Impact valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Impact(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.Bulletin.Impact) - } + private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bulletinId_ = bulletinId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.category_ = category_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.lastModifiedUtcMs_ = lastModifiedUtcMs_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validFromUtcMs_ = validFromUtcMs_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.validToUtcMs_ = validToUtcMs_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.affectsAllRoutes_ = affectsAllRoutes_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.affectsAllStops_ = affectsAllStops_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.impact_ = impact_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.priority_ = priority_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.displayOnly_ = displayOnly_; + to_bitField0_ |= 0x00000200; + } + result.bitField0_ |= to_bitField0_; + } - /** - * Protobuf enum {@code proto.Bulletin.Priority} - */ - public enum Priority - implements com.google.protobuf.ProtocolMessageEnum { - /** - * INFO = 0; - */ - INFO(0), - /** - * WARNING = 1; - */ - WARNING(1), - /** - * SEVERE = 2; - */ - SEVERE(2), - ; - - /** - * INFO = 0; - */ - public static final int INFO_VALUE = 0; - /** - * WARNING = 1; - */ - public static final int WARNING_VALUE = 1; - /** - * SEVERE = 2; - */ - public static final int SEVERE_VALUE = 2; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Priority valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Priority forNumber(int value) { - switch (value) { - case 0: return INFO; - case 1: return WARNING; - case 2: return SEVERE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Priority> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Priority findValueByNumber(int number) { - return Priority.forNumber(number); - } - }; + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.Bulletin) { + return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.Bulletin) other); + } else { + super.mergeFrom(other); + return this; + } + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.getDescriptor().getEnumTypes().get(1); - } - - private static final Priority[] VALUES = values(); - - public static Priority valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Priority(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:proto.Bulletin.Priority) - } + public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin other) { + if (other == fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.getDefaultInstance()) + return this; + if (other.hasBulletinId()) { + bulletinId_ = other.bulletinId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCategory()) { + setCategory(other.getCategory()); + } + if (other.hasLastModifiedUtcMs()) { + setLastModifiedUtcMs(other.getLastModifiedUtcMs()); + } + if (other.hasValidFromUtcMs()) { + setValidFromUtcMs(other.getValidFromUtcMs()); + } + if (other.hasValidToUtcMs()) { + setValidToUtcMs(other.getValidToUtcMs()); + } + if (other.hasAffectsAllRoutes()) { + setAffectsAllRoutes(other.getAffectsAllRoutes()); + } + if (other.hasAffectsAllStops()) { + setAffectsAllStops(other.getAffectsAllStops()); + } + if (affectedRoutesBuilder_ == null) { + if (!other.affectedRoutes_.isEmpty()) { + if (affectedRoutes_.isEmpty()) { + affectedRoutes_ = other.affectedRoutes_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureAffectedRoutesIsMutable(); + affectedRoutes_.addAll(other.affectedRoutes_); + } + onChanged(); + } + } else { + if (!other.affectedRoutes_.isEmpty()) { + if (affectedRoutesBuilder_.isEmpty()) { + affectedRoutesBuilder_.dispose(); + affectedRoutesBuilder_ = null; + affectedRoutes_ = other.affectedRoutes_; + bitField0_ = (bitField0_ & ~0x00000080); + affectedRoutesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAffectedRoutesFieldBuilder() + : null; + } else { + affectedRoutesBuilder_.addAllMessages(other.affectedRoutes_); + } + } + } + if (affectedStopsBuilder_ == null) { + if (!other.affectedStops_.isEmpty()) { + if (affectedStops_.isEmpty()) { + affectedStops_ = other.affectedStops_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureAffectedStopsIsMutable(); + affectedStops_.addAll(other.affectedStops_); + } + onChanged(); + } + } else { + if (!other.affectedStops_.isEmpty()) { + if (affectedStopsBuilder_.isEmpty()) { + affectedStopsBuilder_.dispose(); + affectedStopsBuilder_ = null; + affectedStops_ = other.affectedStops_; + bitField0_ = (bitField0_ & ~0x00000100); + affectedStopsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAffectedStopsFieldBuilder() + : null; + } else { + affectedStopsBuilder_.addAllMessages(other.affectedStops_); + } + } + } + if (other.hasImpact()) { + setImpact(other.getImpact()); + } + if (other.hasPriority()) { + setPriority(other.getPriority()); + } + if (titlesBuilder_ == null) { + if (!other.titles_.isEmpty()) { + if (titles_.isEmpty()) { + titles_ = other.titles_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureTitlesIsMutable(); + titles_.addAll(other.titles_); + } + onChanged(); + } + } else { + if (!other.titles_.isEmpty()) { + if (titlesBuilder_.isEmpty()) { + titlesBuilder_.dispose(); + titlesBuilder_ = null; + titles_ = other.titles_; + bitField0_ = (bitField0_ & ~0x00000800); + titlesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTitlesFieldBuilder() + : null; + } else { + titlesBuilder_.addAllMessages(other.titles_); + } + } + } + if (descriptionsBuilder_ == null) { + if (!other.descriptions_.isEmpty()) { + if (descriptions_.isEmpty()) { + descriptions_ = other.descriptions_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureDescriptionsIsMutable(); + descriptions_.addAll(other.descriptions_); + } + onChanged(); + } + } else { + if (!other.descriptions_.isEmpty()) { + if (descriptionsBuilder_.isEmpty()) { + descriptionsBuilder_.dispose(); + descriptionsBuilder_ = null; + descriptions_ = other.descriptions_; + bitField0_ = (bitField0_ & ~0x00001000); + descriptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDescriptionsFieldBuilder() + : null; + } else { + descriptionsBuilder_.addAllMessages(other.descriptions_); + } + } + } + if (urlsBuilder_ == null) { + if (!other.urls_.isEmpty()) { + if (urls_.isEmpty()) { + urls_ = other.urls_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureUrlsIsMutable(); + urls_.addAll(other.urls_); + } + onChanged(); + } + } else { + if (!other.urls_.isEmpty()) { + if (urlsBuilder_.isEmpty()) { + urlsBuilder_.dispose(); + urlsBuilder_ = null; + urls_ = other.urls_; + bitField0_ = (bitField0_ & ~0x00002000); + urlsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getUrlsFieldBuilder() + : null; + } else { + urlsBuilder_.addAllMessages(other.urls_); + } + } + } + if (other.hasDisplayOnly()) { + setDisplayOnly(other.getDisplayOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public interface AffectedEntityOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.Bulletin.AffectedEntity) - com.google.protobuf.MessageOrBuilder { - - /** - * required string entity_id = 1; - * @return Whether the entityId field is set. - */ - boolean hasEntityId(); - /** - * required string entity_id = 1; - * @return The entityId. - */ - java.lang.String getEntityId(); - /** - * required string entity_id = 1; - * @return The bytes for entityId. - */ - com.google.protobuf.ByteString - getEntityIdBytes(); - } - /** - * Protobuf type {@code proto.Bulletin.AffectedEntity} - */ - public static final class AffectedEntity extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.Bulletin.AffectedEntity) - AffectedEntityOrBuilder { - private static final long serialVersionUID = 0L; - // Use AffectedEntity.newBuilder() to construct. - private AffectedEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AffectedEntity() { - entityId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AffectedEntity(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_AffectedEntity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_AffectedEntity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.class, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder.class); - } - - private int bitField0_; - public static final int ENTITY_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object entityId_ = ""; - /** - * required string entity_id = 1; - * @return Whether the entityId field is set. - */ - @java.lang.Override - public boolean hasEntityId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required string entity_id = 1; - * @return The entityId. - */ - @java.lang.Override - public java.lang.String getEntityId() { - java.lang.Object ref = entityId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - entityId_ = s; - } - return s; - } - } - /** - * required string entity_id = 1; - * @return The bytes for entityId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEntityIdBytes() { - java.lang.Object ref = entityId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - entityId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!hasEntityId()) { - 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, entityId_); - } - 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, entityId_); - } - 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 fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity other = (fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity) obj; - - if (hasEntityId() != other.hasEntityId()) return false; - if (hasEntityId()) { - if (!getEntityId() - .equals(other.getEntityId())) 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 (hasEntityId()) { - hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.Bulletin.AffectedEntity} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.Bulletin.AffectedEntity) - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_AffectedEntity_descriptor; - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasLastModifiedUtcMs()) { + return false; + } + if (!hasValidFromUtcMs()) { + return false; + } + if (!hasValidToUtcMs()) { + return false; + } + for (int i = 0; i < getAffectedRoutesCount(); i++) { + if (!getAffectedRoutes(i).isInitialized()) { + return false; + } + } + for (int i = 0; i < getAffectedStopsCount(); i++) { + if (!getAffectedStops(i).isInitialized()) { + return false; + } + } + for (int i = 0; i < getTitlesCount(); i++) { + if (!getTitles(i).isInitialized()) { + return false; + } + } + for (int i = 0; i < getDescriptionsCount(); i++) { + if (!getDescriptions(i).isInitialized()) { + return false; + } + } + for (int i = 0; i < getUrlsCount(); i++) { + if (!getUrls(i).isInitialized()) { + return false; + } + } + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_AffectedEntity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.class, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder.class); - } + @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 : { + bulletinId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.transitdata.proto.InternalMessages.Category tmpValue = fi.hsl.common.transitdata.proto.InternalMessages.Category + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(2, tmpRaw); + } else { + category_ = tmpRaw; + bitField0_ |= 0x00000002; + } + break; + } // case 16 + case 24 : { + lastModifiedUtcMs_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32 : { + validFromUtcMs_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40 : { + validToUtcMs_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48 : { + affectsAllRoutes_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56 : { + affectsAllStops_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66 : { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity m = input + .readMessage( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.PARSER, + extensionRegistry); + if (affectedRoutesBuilder_ == null) { + ensureAffectedRoutesIsMutable(); + affectedRoutes_.add(m); + } else { + affectedRoutesBuilder_.addMessage(m); + } + break; + } // case 66 + case 74 : { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity m = input + .readMessage( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.PARSER, + extensionRegistry); + if (affectedStopsBuilder_ == null) { + ensureAffectedStopsIsMutable(); + affectedStops_.add(m); + } else { + affectedStopsBuilder_.addMessage(m); + } + break; + } // case 74 + case 80 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact tmpValue = fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(10, tmpRaw); + } else { + impact_ = tmpRaw; + bitField0_ |= 0x00000200; + } + break; + } // case 80 + case 88 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority tmpValue = fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(11, tmpRaw); + } else { + priority_ = tmpRaw; + bitField0_ |= 0x00000400; + } + break; + } // case 88 + case 98 : { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation m = input + .readMessage( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.PARSER, + extensionRegistry); + if (titlesBuilder_ == null) { + ensureTitlesIsMutable(); + titles_.add(m); + } else { + titlesBuilder_.addMessage(m); + } + break; + } // case 98 + case 106 : { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation m = input + .readMessage( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.PARSER, + extensionRegistry); + if (descriptionsBuilder_ == null) { + ensureDescriptionsIsMutable(); + descriptions_.add(m); + } else { + descriptionsBuilder_.addMessage(m); + } + break; + } // case 106 + case 114 : { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation m = input + .readMessage( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.PARSER, + extensionRegistry); + if (urlsBuilder_ == null) { + ensureUrlsIsMutable(); + urls_.add(m); + } else { + urlsBuilder_.addMessage(m); + } + break; + } // case 114 + case 120 : { + displayOnly_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 120 + 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 bulletinId_ = ""; + /** + * optional string bulletin_id = 1; + * @return Whether the bulletinId field is set. + */ + public boolean hasBulletinId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string bulletin_id = 1; + * @return The bulletinId. + */ + public java.lang.String getBulletinId() { + java.lang.Object ref = bulletinId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + bulletinId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string bulletin_id = 1; + * @return The bytes for bulletinId. + */ + public com.google.protobuf.ByteString getBulletinIdBytes() { + java.lang.Object ref = bulletinId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + bulletinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string bulletin_id = 1; + * @param value The bulletinId to set. + * @return This builder for chaining. + */ + public Builder setBulletinId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bulletinId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional string bulletin_id = 1; + * @return This builder for chaining. + */ + public Builder clearBulletinId() { + bulletinId_ = getDefaultInstance().getBulletinId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * optional string bulletin_id = 1; + * @param value The bytes for bulletinId to set. + * @return This builder for chaining. + */ + public Builder setBulletinIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bulletinId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - // Construct using fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.newBuilder() - private Builder() { + private int category_ = 0; + /** + * optional .proto.Category category = 2; + * @return Whether the category field is set. + */ + @java.lang.Override + public boolean hasCategory() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .proto.Category category = 2; + * @return The category. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Category getCategory() { + fi.hsl.common.transitdata.proto.InternalMessages.Category result = fi.hsl.common.transitdata.proto.InternalMessages.Category + .forNumber(category_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.Category.VEHICLE_BREAKDOWN + : result; + } + /** + * optional .proto.Category category = 2; + * @param value The category to set. + * @return This builder for chaining. + */ + public Builder setCategory(fi.hsl.common.transitdata.proto.InternalMessages.Category value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + category_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.Category category = 2; + * @return This builder for chaining. + */ + public Builder clearCategory() { + bitField0_ = (bitField0_ & ~0x00000002); + category_ = 0; + onChanged(); + return this; + } - } + private long lastModifiedUtcMs_; + /** + * required int64 last_modified_utc_ms = 3; + * @return Whether the lastModifiedUtcMs field is set. + */ + @java.lang.Override + public boolean hasLastModifiedUtcMs() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required int64 last_modified_utc_ms = 3; + * @return The lastModifiedUtcMs. + */ + @java.lang.Override + public long getLastModifiedUtcMs() { + return lastModifiedUtcMs_; + } + /** + * required int64 last_modified_utc_ms = 3; + * @param value The lastModifiedUtcMs to set. + * @return This builder for chaining. + */ + public Builder setLastModifiedUtcMs(long value) { + + lastModifiedUtcMs_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required int64 last_modified_utc_ms = 3; + * @return This builder for chaining. + */ + public Builder clearLastModifiedUtcMs() { + bitField0_ = (bitField0_ & ~0x00000004); + lastModifiedUtcMs_ = 0L; + onChanged(); + return this; + } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + private long validFromUtcMs_; + /** + * required int64 valid_from_utc_ms = 4; + * @return Whether the validFromUtcMs field is set. + */ + @java.lang.Override + public boolean hasValidFromUtcMs() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * required int64 valid_from_utc_ms = 4; + * @return The validFromUtcMs. + */ + @java.lang.Override + public long getValidFromUtcMs() { + return validFromUtcMs_; + } + /** + * required int64 valid_from_utc_ms = 4; + * @param value The validFromUtcMs to set. + * @return This builder for chaining. + */ + public Builder setValidFromUtcMs(long value) { + + validFromUtcMs_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * required int64 valid_from_utc_ms = 4; + * @return This builder for chaining. + */ + public Builder clearValidFromUtcMs() { + bitField0_ = (bitField0_ & ~0x00000008); + validFromUtcMs_ = 0L; + onChanged(); + return this; + } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - entityId_ = ""; - return this; - } + private long validToUtcMs_; + /** + * required int64 valid_to_utc_ms = 5; + * @return Whether the validToUtcMs field is set. + */ + @java.lang.Override + public boolean hasValidToUtcMs() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * required int64 valid_to_utc_ms = 5; + * @return The validToUtcMs. + */ + @java.lang.Override + public long getValidToUtcMs() { + return validToUtcMs_; + } + /** + * required int64 valid_to_utc_ms = 5; + * @param value The validToUtcMs to set. + * @return This builder for chaining. + */ + public Builder setValidToUtcMs(long value) { + + validToUtcMs_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * required int64 valid_to_utc_ms = 5; + * @return This builder for chaining. + */ + public Builder clearValidToUtcMs() { + bitField0_ = (bitField0_ & ~0x00000010); + validToUtcMs_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_AffectedEntity_descriptor; - } + private boolean affectsAllRoutes_; + /** + * optional bool affects_all_routes = 6; + * @return Whether the affectsAllRoutes field is set. + */ + @java.lang.Override + public boolean hasAffectsAllRoutes() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional bool affects_all_routes = 6; + * @return The affectsAllRoutes. + */ + @java.lang.Override + public boolean getAffectsAllRoutes() { + return affectsAllRoutes_; + } + /** + * optional bool affects_all_routes = 6; + * @param value The affectsAllRoutes to set. + * @return This builder for chaining. + */ + public Builder setAffectsAllRoutes(boolean value) { + + affectsAllRoutes_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional bool affects_all_routes = 6; + * @return This builder for chaining. + */ + public Builder clearAffectsAllRoutes() { + bitField0_ = (bitField0_ & ~0x00000020); + affectsAllRoutes_ = false; + onChanged(); + return this; + } - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.getDefaultInstance(); - } + private boolean affectsAllStops_; + /** + * optional bool affects_all_stops = 7; + * @return Whether the affectsAllStops field is set. + */ + @java.lang.Override + public boolean hasAffectsAllStops() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional bool affects_all_stops = 7; + * @return The affectsAllStops. + */ + @java.lang.Override + public boolean getAffectsAllStops() { + return affectsAllStops_; + } + /** + * optional bool affects_all_stops = 7; + * @param value The affectsAllStops to set. + * @return This builder for chaining. + */ + public Builder setAffectsAllStops(boolean value) { + + affectsAllStops_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional bool affects_all_stops = 7; + * @return This builder for chaining. + */ + public Builder clearAffectsAllStops() { + bitField0_ = (bitField0_ & ~0x00000040); + affectsAllStops_ = false; + onChanged(); + return this; + } - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity build() { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + private java.util.List affectedRoutes_ = java.util.Collections + .emptyList(); + private void ensureAffectedRoutesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + affectedRoutes_ = new java.util.ArrayList( + affectedRoutes_); + bitField0_ |= 0x00000080; + } + } - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity buildPartial() { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity result = new fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } + private com.google.protobuf.RepeatedFieldBuilderV3 affectedRoutesBuilder_; - private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.entityId_ = entityId_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public java.util.List getAffectedRoutesList() { + if (affectedRoutesBuilder_ == null) { + return java.util.Collections.unmodifiableList(affectedRoutes_); + } else { + return affectedRoutesBuilder_.getMessageList(); + } + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public int getAffectedRoutesCount() { + if (affectedRoutesBuilder_ == null) { + return affectedRoutes_.size(); + } else { + return affectedRoutesBuilder_.getCount(); + } + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getAffectedRoutes( + int index) { + if (affectedRoutesBuilder_ == null) { + return affectedRoutes_.get(index); + } else { + return affectedRoutesBuilder_.getMessage(index); + } + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public Builder setAffectedRoutes(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity value) { + if (affectedRoutesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedRoutesIsMutable(); + affectedRoutes_.set(index, value); + onChanged(); + } else { + affectedRoutesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public Builder setAffectedRoutes(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder builderForValue) { + if (affectedRoutesBuilder_ == null) { + ensureAffectedRoutesIsMutable(); + affectedRoutes_.set(index, builderForValue.build()); + onChanged(); + } else { + affectedRoutesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public Builder addAffectedRoutes( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity value) { + if (affectedRoutesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedRoutesIsMutable(); + affectedRoutes_.add(value); + onChanged(); + } else { + affectedRoutesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public Builder addAffectedRoutes(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity value) { + if (affectedRoutesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedRoutesIsMutable(); + affectedRoutes_.add(index, value); + onChanged(); + } else { + affectedRoutesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public Builder addAffectedRoutes( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder builderForValue) { + if (affectedRoutesBuilder_ == null) { + ensureAffectedRoutesIsMutable(); + affectedRoutes_.add(builderForValue.build()); + onChanged(); + } else { + affectedRoutesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public Builder addAffectedRoutes(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder builderForValue) { + if (affectedRoutesBuilder_ == null) { + ensureAffectedRoutesIsMutable(); + affectedRoutes_.add(index, builderForValue.build()); + onChanged(); + } else { + affectedRoutesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public Builder addAllAffectedRoutes( + java.lang.Iterable values) { + if (affectedRoutesBuilder_ == null) { + ensureAffectedRoutesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, affectedRoutes_); + onChanged(); + } else { + affectedRoutesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public Builder clearAffectedRoutes() { + if (affectedRoutesBuilder_ == null) { + affectedRoutes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + affectedRoutesBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public Builder removeAffectedRoutes(int index) { + if (affectedRoutesBuilder_ == null) { + ensureAffectedRoutesIsMutable(); + affectedRoutes_.remove(index); + onChanged(); + } else { + affectedRoutesBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder getAffectedRoutesBuilder( + int index) { + return getAffectedRoutesFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder getAffectedRoutesOrBuilder( + int index) { + if (affectedRoutesBuilder_ == null) { + return affectedRoutes_.get(index); + } else { + return affectedRoutesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public java.util.List getAffectedRoutesOrBuilderList() { + if (affectedRoutesBuilder_ != null) { + return affectedRoutesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(affectedRoutes_); + } + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder addAffectedRoutesBuilder() { + return getAffectedRoutesFieldBuilder().addBuilder( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.getDefaultInstance()); + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder addAffectedRoutesBuilder( + int index) { + return getAffectedRoutesFieldBuilder().addBuilder(index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.getDefaultInstance()); + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; + */ + public java.util.List getAffectedRoutesBuilderList() { + return getAffectedRoutesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getAffectedRoutesFieldBuilder() { + if (affectedRoutesBuilder_ == null) { + affectedRoutesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + affectedRoutes_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + affectedRoutes_ = null; + } + return affectedRoutesBuilder_; + } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity) { - return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity other) { - if (other == fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.getDefaultInstance()) return this; - if (other.hasEntityId()) { - entityId_ = other.entityId_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + private java.util.List affectedStops_ = java.util.Collections + .emptyList(); + private void ensureAffectedStopsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + affectedStops_ = new java.util.ArrayList( + affectedStops_); + bitField0_ |= 0x00000100; + } + } - @java.lang.Override - public final boolean isInitialized() { - if (!hasEntityId()) { - return false; - } - return true; - } + private com.google.protobuf.RepeatedFieldBuilderV3 affectedStopsBuilder_; - @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: { - entityId_ = 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_; + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public java.util.List getAffectedStopsList() { + if (affectedStopsBuilder_ == null) { + return java.util.Collections.unmodifiableList(affectedStops_); + } else { + return affectedStopsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public int getAffectedStopsCount() { + if (affectedStopsBuilder_ == null) { + return affectedStops_.size(); + } else { + return affectedStopsBuilder_.getCount(); + } + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getAffectedStops( + int index) { + if (affectedStopsBuilder_ == null) { + return affectedStops_.get(index); + } else { + return affectedStopsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public Builder setAffectedStops(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity value) { + if (affectedStopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedStopsIsMutable(); + affectedStops_.set(index, value); + onChanged(); + } else { + affectedStopsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public Builder setAffectedStops(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder builderForValue) { + if (affectedStopsBuilder_ == null) { + ensureAffectedStopsIsMutable(); + affectedStops_.set(index, builderForValue.build()); + onChanged(); + } else { + affectedStopsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public Builder addAffectedStops( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity value) { + if (affectedStopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedStopsIsMutable(); + affectedStops_.add(value); + onChanged(); + } else { + affectedStopsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public Builder addAffectedStops(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity value) { + if (affectedStopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAffectedStopsIsMutable(); + affectedStops_.add(index, value); + onChanged(); + } else { + affectedStopsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public Builder addAffectedStops( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder builderForValue) { + if (affectedStopsBuilder_ == null) { + ensureAffectedStopsIsMutable(); + affectedStops_.add(builderForValue.build()); + onChanged(); + } else { + affectedStopsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public Builder addAffectedStops(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder builderForValue) { + if (affectedStopsBuilder_ == null) { + ensureAffectedStopsIsMutable(); + affectedStops_.add(index, builderForValue.build()); + onChanged(); + } else { + affectedStopsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public Builder addAllAffectedStops( + java.lang.Iterable values) { + if (affectedStopsBuilder_ == null) { + ensureAffectedStopsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, affectedStops_); + onChanged(); + } else { + affectedStopsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public Builder clearAffectedStops() { + if (affectedStopsBuilder_ == null) { + affectedStops_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + affectedStopsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public Builder removeAffectedStops(int index) { + if (affectedStopsBuilder_ == null) { + ensureAffectedStopsIsMutable(); + affectedStops_.remove(index); + onChanged(); + } else { + affectedStopsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder getAffectedStopsBuilder( + int index) { + return getAffectedStopsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder getAffectedStopsOrBuilder( + int index) { + if (affectedStopsBuilder_ == null) { + return affectedStops_.get(index); + } else { + return affectedStopsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public java.util.List getAffectedStopsOrBuilderList() { + if (affectedStopsBuilder_ != null) { + return affectedStopsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(affectedStops_); + } + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder addAffectedStopsBuilder() { + return getAffectedStopsFieldBuilder().addBuilder( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.getDefaultInstance()); + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder addAffectedStopsBuilder( + int index) { + return getAffectedStopsFieldBuilder().addBuilder(index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.getDefaultInstance()); + } + /** + * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; + */ + public java.util.List getAffectedStopsBuilderList() { + return getAffectedStopsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getAffectedStopsFieldBuilder() { + if (affectedStopsBuilder_ == null) { + affectedStopsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + affectedStops_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + affectedStops_ = null; + } + return affectedStopsBuilder_; + } - private java.lang.Object entityId_ = ""; - /** - * required string entity_id = 1; - * @return Whether the entityId field is set. - */ - public boolean hasEntityId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required string entity_id = 1; - * @return The entityId. - */ - public java.lang.String getEntityId() { - java.lang.Object ref = entityId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - entityId_ = s; + private int impact_ = 0; + /** + * optional .proto.Bulletin.Impact impact = 10; + * @return Whether the impact field is set. + */ + @java.lang.Override + public boolean hasImpact() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional .proto.Bulletin.Impact impact = 10; + * @return The impact. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact getImpact() { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact result = fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact + .forNumber(impact_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact.CANCELLED + : result; + } + /** + * optional .proto.Bulletin.Impact impact = 10; + * @param value The impact to set. + * @return This builder for chaining. + */ + public Builder setImpact(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + impact_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.Bulletin.Impact impact = 10; + * @return This builder for chaining. + */ + public Builder clearImpact() { + bitField0_ = (bitField0_ & ~0x00000200); + impact_ = 0; + onChanged(); + return this; } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string entity_id = 1; - * @return The bytes for entityId. - */ - public com.google.protobuf.ByteString - getEntityIdBytes() { - java.lang.Object ref = entityId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - entityId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string entity_id = 1; - * @param value The entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - entityId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required string entity_id = 1; - * @return This builder for chaining. - */ - public Builder clearEntityId() { - entityId_ = getDefaultInstance().getEntityId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * required string entity_id = 1; - * @param value The bytes for entityId to set. - * @return This builder for chaining. - */ - public Builder setEntityIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - entityId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } + private int priority_ = 0; + /** + * optional .proto.Bulletin.Priority priority = 11; + * @return Whether the priority field is set. + */ + @java.lang.Override + public boolean hasPriority() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional .proto.Bulletin.Priority priority = 11; + * @return The priority. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority getPriority() { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority result = fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority + .forNumber(priority_); + return result == null + ? fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority.INFO + : result; + } + /** + * optional .proto.Bulletin.Priority priority = 11; + * @param value The priority to set. + * @return This builder for chaining. + */ + public Builder setPriority(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + priority_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.Bulletin.Priority priority = 11; + * @return This builder for chaining. + */ + public Builder clearPriority() { + bitField0_ = (bitField0_ & ~0x00000400); + priority_ = 0; + onChanged(); + return this; + } + private java.util.List titles_ = java.util.Collections + .emptyList(); + private void ensureTitlesIsMutable() { + if (!((bitField0_ & 0x00000800) != 0)) { + titles_ = new java.util.ArrayList( + titles_); + bitField0_ |= 0x00000800; + } + } - // @@protoc_insertion_point(builder_scope:proto.Bulletin.AffectedEntity) - } + private com.google.protobuf.RepeatedFieldBuilderV3 titlesBuilder_; - // @@protoc_insertion_point(class_scope:proto.Bulletin.AffectedEntity) - private static final fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity(); - } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public java.util.List getTitlesList() { + if (titlesBuilder_ == null) { + return java.util.Collections.unmodifiableList(titles_); + } else { + return titlesBuilder_.getMessageList(); + } + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public int getTitlesCount() { + if (titlesBuilder_ == null) { + return titles_.size(); + } else { + return titlesBuilder_.getCount(); + } + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getTitles(int index) { + if (titlesBuilder_ == null) { + return titles_.get(index); + } else { + return titlesBuilder_.getMessage(index); + } + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public Builder setTitles(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { + if (titlesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTitlesIsMutable(); + titles_.set(index, value); + onChanged(); + } else { + titlesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public Builder setTitles(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { + if (titlesBuilder_ == null) { + ensureTitlesIsMutable(); + titles_.set(index, builderForValue.build()); + onChanged(); + } else { + titlesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public Builder addTitles(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { + if (titlesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTitlesIsMutable(); + titles_.add(value); + onChanged(); + } else { + titlesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public Builder addTitles(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { + if (titlesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTitlesIsMutable(); + titles_.add(index, value); + onChanged(); + } else { + titlesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public Builder addTitles( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { + if (titlesBuilder_ == null) { + ensureTitlesIsMutable(); + titles_.add(builderForValue.build()); + onChanged(); + } else { + titlesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public Builder addTitles(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { + if (titlesBuilder_ == null) { + ensureTitlesIsMutable(); + titles_.add(index, builderForValue.build()); + onChanged(); + } else { + titlesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public Builder addAllTitles( + java.lang.Iterable values) { + if (titlesBuilder_ == null) { + ensureTitlesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, titles_); + onChanged(); + } else { + titlesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public Builder clearTitles() { + if (titlesBuilder_ == null) { + titles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + titlesBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public Builder removeTitles(int index) { + if (titlesBuilder_ == null) { + ensureTitlesIsMutable(); + titles_.remove(index); + onChanged(); + } else { + titlesBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder getTitlesBuilder( + int index) { + return getTitlesFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getTitlesOrBuilder( + int index) { + if (titlesBuilder_ == null) { + return titles_.get(index); + } else { + return titlesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public java.util.List getTitlesOrBuilderList() { + if (titlesBuilder_ != null) { + return titlesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(titles_); + } + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder addTitlesBuilder() { + return getTitlesFieldBuilder().addBuilder( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.getDefaultInstance()); + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder addTitlesBuilder( + int index) { + return getTitlesFieldBuilder().addBuilder(index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.getDefaultInstance()); + } + /** + * repeated .proto.Bulletin.Translation titles = 12; + */ + public java.util.List getTitlesBuilderList() { + return getTitlesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getTitlesFieldBuilder() { + if (titlesBuilder_ == null) { + titlesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + titles_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); + titles_ = null; + } + return titlesBuilder_; + } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private java.util.List descriptions_ = java.util.Collections + .emptyList(); + private void ensureDescriptionsIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + descriptions_ = new java.util.ArrayList( + descriptions_); + bitField0_ |= 0x00001000; + } + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AffectedEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private com.google.protobuf.RepeatedFieldBuilderV3 descriptionsBuilder_; - } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public java.util.List getDescriptionsList() { + if (descriptionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(descriptions_); + } else { + return descriptionsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public int getDescriptionsCount() { + if (descriptionsBuilder_ == null) { + return descriptions_.size(); + } else { + return descriptionsBuilder_.getCount(); + } + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getDescriptions(int index) { + if (descriptionsBuilder_ == null) { + return descriptions_.get(index); + } else { + return descriptionsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public Builder setDescriptions(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { + if (descriptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescriptionsIsMutable(); + descriptions_.set(index, value); + onChanged(); + } else { + descriptionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public Builder setDescriptions(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { + if (descriptionsBuilder_ == null) { + ensureDescriptionsIsMutable(); + descriptions_.set(index, builderForValue.build()); + onChanged(); + } else { + descriptionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public Builder addDescriptions( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { + if (descriptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescriptionsIsMutable(); + descriptions_.add(value); + onChanged(); + } else { + descriptionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public Builder addDescriptions(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { + if (descriptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescriptionsIsMutable(); + descriptions_.add(index, value); + onChanged(); + } else { + descriptionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public Builder addDescriptions( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { + if (descriptionsBuilder_ == null) { + ensureDescriptionsIsMutable(); + descriptions_.add(builderForValue.build()); + onChanged(); + } else { + descriptionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public Builder addDescriptions(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { + if (descriptionsBuilder_ == null) { + ensureDescriptionsIsMutable(); + descriptions_.add(index, builderForValue.build()); + onChanged(); + } else { + descriptionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public Builder addAllDescriptions( + java.lang.Iterable values) { + if (descriptionsBuilder_ == null) { + ensureDescriptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, descriptions_); + onChanged(); + } else { + descriptionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public Builder clearDescriptions() { + if (descriptionsBuilder_ == null) { + descriptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + descriptionsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public Builder removeDescriptions(int index) { + if (descriptionsBuilder_ == null) { + ensureDescriptionsIsMutable(); + descriptions_.remove(index); + onChanged(); + } else { + descriptionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder getDescriptionsBuilder( + int index) { + return getDescriptionsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getDescriptionsOrBuilder( + int index) { + if (descriptionsBuilder_ == null) { + return descriptions_.get(index); + } else { + return descriptionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public java.util.List getDescriptionsOrBuilderList() { + if (descriptionsBuilder_ != null) { + return descriptionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(descriptions_); + } + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder addDescriptionsBuilder() { + return getDescriptionsFieldBuilder().addBuilder( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.getDefaultInstance()); + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder addDescriptionsBuilder( + int index) { + return getDescriptionsFieldBuilder().addBuilder(index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.getDefaultInstance()); + } + /** + * repeated .proto.Bulletin.Translation descriptions = 13; + */ + public java.util.List getDescriptionsBuilderList() { + return getDescriptionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getDescriptionsFieldBuilder() { + if (descriptionsBuilder_ == null) { + descriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + descriptions_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); + descriptions_ = null; + } + return descriptionsBuilder_; + } - public interface TranslationOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.Bulletin.Translation) - com.google.protobuf.MessageOrBuilder { - - /** - * required string text = 1; - * @return Whether the text field is set. - */ - boolean hasText(); - /** - * required string text = 1; - * @return The text. - */ - java.lang.String getText(); - /** - * required string text = 1; - * @return The bytes for text. - */ - com.google.protobuf.ByteString - getTextBytes(); - - /** - * optional string language = 2; - * @return Whether the language field is set. - */ - boolean hasLanguage(); - /** - * optional string language = 2; - * @return The language. - */ - java.lang.String getLanguage(); - /** - * optional string language = 2; - * @return The bytes for language. - */ - com.google.protobuf.ByteString - getLanguageBytes(); - } - /** - * Protobuf type {@code proto.Bulletin.Translation} - */ - public static final class Translation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.Bulletin.Translation) - TranslationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Translation.newBuilder() to construct. - private Translation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Translation() { - text_ = ""; - language_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Translation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_Translation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_Translation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.class, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder.class); - } - - private int bitField0_; - public static final int TEXT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object text_ = ""; - /** - * required string text = 1; - * @return Whether the text field is set. - */ - @java.lang.Override - public boolean hasText() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required string text = 1; - * @return The text. - */ - @java.lang.Override - public java.lang.String getText() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - text_ = s; - } - return s; - } - } - /** - * required string text = 1; - * @return The bytes for text. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LANGUAGE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object language_ = ""; - /** - * optional string language = 2; - * @return Whether the language field is set. - */ - @java.lang.Override - public boolean hasLanguage() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional string language = 2; - * @return The language. - */ - @java.lang.Override - public java.lang.String getLanguage() { - java.lang.Object ref = language_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - language_ = s; - } - return s; - } - } - /** - * optional string language = 2; - * @return The bytes for language. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLanguageBytes() { - java.lang.Object ref = language_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - language_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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; - } - 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, text_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, language_); - } - 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 += 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 fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation other = (fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.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; - 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.Bulletin.Translation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.Bulletin.Translation) - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_Translation_descriptor; - } + private java.util.List urls_ = java.util.Collections + .emptyList(); + private void ensureUrlsIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + urls_ = new java.util.ArrayList( + urls_); + bitField0_ |= 0x00002000; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_Translation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.class, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder.class); - } + private com.google.protobuf.RepeatedFieldBuilderV3 urlsBuilder_; - // Construct using fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.newBuilder() - private Builder() { + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public java.util.List getUrlsList() { + if (urlsBuilder_ == null) { + return java.util.Collections.unmodifiableList(urls_); + } else { + return urlsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public int getUrlsCount() { + if (urlsBuilder_ == null) { + return urls_.size(); + } else { + return urlsBuilder_.getCount(); + } + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getUrls(int index) { + if (urlsBuilder_ == null) { + return urls_.get(index); + } else { + return urlsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public Builder setUrls(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { + if (urlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlsIsMutable(); + urls_.set(index, value); + onChanged(); + } else { + urlsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public Builder setUrls(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { + if (urlsBuilder_ == null) { + ensureUrlsIsMutable(); + urls_.set(index, builderForValue.build()); + onChanged(); + } else { + urlsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public Builder addUrls(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { + if (urlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlsIsMutable(); + urls_.add(value); + onChanged(); + } else { + urlsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public Builder addUrls(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { + if (urlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlsIsMutable(); + urls_.add(index, value); + onChanged(); + } else { + urlsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public Builder addUrls( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { + if (urlsBuilder_ == null) { + ensureUrlsIsMutable(); + urls_.add(builderForValue.build()); + onChanged(); + } else { + urlsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public Builder addUrls(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { + if (urlsBuilder_ == null) { + ensureUrlsIsMutable(); + urls_.add(index, builderForValue.build()); + onChanged(); + } else { + urlsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public Builder addAllUrls( + java.lang.Iterable values) { + if (urlsBuilder_ == null) { + ensureUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, urls_); + onChanged(); + } else { + urlsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public Builder clearUrls() { + if (urlsBuilder_ == null) { + urls_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + urlsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public Builder removeUrls(int index) { + if (urlsBuilder_ == null) { + ensureUrlsIsMutable(); + urls_.remove(index); + onChanged(); + } else { + urlsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder getUrlsBuilder( + int index) { + return getUrlsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getUrlsOrBuilder( + int index) { + if (urlsBuilder_ == null) { + return urls_.get(index); + } else { + return urlsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public java.util.List getUrlsOrBuilderList() { + if (urlsBuilder_ != null) { + return urlsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(urls_); + } + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder addUrlsBuilder() { + return getUrlsFieldBuilder().addBuilder( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.getDefaultInstance()); + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder addUrlsBuilder( + int index) { + return getUrlsFieldBuilder().addBuilder(index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.getDefaultInstance()); + } + /** + * repeated .proto.Bulletin.Translation urls = 14; + */ + public java.util.List getUrlsBuilderList() { + return getUrlsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getUrlsFieldBuilder() { + if (urlsBuilder_ == null) { + urlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + urls_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); + urls_ = null; + } + return urlsBuilder_; + } - } + private boolean displayOnly_; + /** + *
+             *If true, the bulletin should be shown only on vehicle displays
+             * 
+ * + * optional bool display_only = 15 [default = false]; + * @return Whether the displayOnly field is set. + */ + @java.lang.Override + public boolean hasDisplayOnly() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+             *If true, the bulletin should be shown only on vehicle displays
+             * 
+ * + * optional bool display_only = 15 [default = false]; + * @return The displayOnly. + */ + @java.lang.Override + public boolean getDisplayOnly() { + return displayOnly_; + } + /** + *
+             *If true, the bulletin should be shown only on vehicle displays
+             * 
+ * + * optional bool display_only = 15 [default = false]; + * @param value The displayOnly to set. + * @return This builder for chaining. + */ + public Builder setDisplayOnly(boolean value) { + + displayOnly_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+             *If true, the bulletin should be shown only on vehicle displays
+             * 
+ * + * optional bool display_only = 15 [default = false]; + * @return This builder for chaining. + */ + public Builder clearDisplayOnly() { + bitField0_ = (bitField0_ & ~0x00004000); + displayOnly_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - text_ = ""; - language_ = ""; - return this; + // @@protoc_insertion_point(builder_scope:proto.Bulletin) } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_Translation_descriptor; + // @@protoc_insertion_point(class_scope:proto.Bulletin) + private static final fi.hsl.common.transitdata.proto.InternalMessages.Bulletin DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.Bulletin(); } - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.getDefaultInstance(); + public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin getDefaultInstance() { + return DEFAULT_INSTANCE; } - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation build() { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Bulletin parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation buildPartial() { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation result = new fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.text_ = text_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.language_ = language_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; + public static com.google.protobuf.Parser parser() { + return PARSER; } @java.lang.Override - public Builder clone() { - return super.clone(); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } + @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + + } + + public interface ServiceAlertOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.ServiceAlert) + com.google.protobuf.MessageOrBuilder { + + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + boolean hasSchemaVersion(); + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + int getSchemaVersion(); + + /** + * repeated .proto.Bulletin bulletins = 2; + */ + java.util.List getBulletinsList(); + /** + * repeated .proto.Bulletin bulletins = 2; + */ + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin getBulletins(int index); + /** + * repeated .proto.Bulletin bulletins = 2; + */ + int getBulletinsCount(); + /** + * repeated .proto.Bulletin bulletins = 2; + */ + java.util.List getBulletinsOrBuilderList(); + /** + * repeated .proto.Bulletin bulletins = 2; + */ + fi.hsl.common.transitdata.proto.InternalMessages.BulletinOrBuilder getBulletinsOrBuilder(int index); + } + /** + * Protobuf type {@code proto.ServiceAlert} + */ + public static final class ServiceAlert extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.ServiceAlert) + ServiceAlertOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServiceAlert.newBuilder() to construct. + private ServiceAlert(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + private ServiceAlert() { + schemaVersion_ = 1; + bulletins_ = java.util.Collections.emptyList(); } + @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServiceAlert(); } + @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation) { - return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation other) { - if (other == fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.getDefaultInstance()) return this; - if (other.hasText()) { - text_ = other.text_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasLanguage()) { - language_ = other.language_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_ServiceAlert_descriptor; } @java.lang.Override - public final boolean isInitialized() { - if (!hasText()) { - return false; - } - return true; + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_ServiceAlert_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert.class, + fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert.Builder.class); } - @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_ = ""; + public static final int SCHEMAVERSION_FIELD_NUMBER = 1; + private int schemaVersion_ = 1; /** - * required string text = 1; - * @return Whether the text field is set. + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. */ - public boolean hasText() { - return ((bitField0_ & 0x00000001) != 0); + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); } /** - * required string text = 1; - * @return The text. + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. */ - public java.lang.String getText() { - java.lang.Object ref = text_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - text_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; } + + public static final int BULLETINS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List bulletins_; /** - * required string text = 1; - * @return The bytes for text. + * repeated .proto.Bulletin bulletins = 2; */ - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public java.util.List getBulletinsList() { + return bulletins_; } /** - * required string text = 1; - * @param value The text to set. - * @return This builder for chaining. + * repeated .proto.Bulletin bulletins = 2; */ - public Builder setText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - text_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public java.util.List getBulletinsOrBuilderList() { + return bulletins_; } /** - * required string text = 1; - * @return This builder for chaining. + * repeated .proto.Bulletin bulletins = 2; */ - public Builder clearText() { - text_ = getDefaultInstance().getText(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + @java.lang.Override + public int getBulletinsCount() { + return bulletins_.size(); } /** - * required string text = 1; - * @param value The bytes for text to set. - * @return This builder for chaining. + * repeated .proto.Bulletin bulletins = 2; */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - text_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin getBulletins(int index) { + return bulletins_.get(index); } - - private java.lang.Object language_ = ""; /** - * optional string language = 2; - * @return Whether the language field is set. + * repeated .proto.Bulletin bulletins = 2; */ - public boolean hasLanguage() { - return ((bitField0_ & 0x00000002) != 0); + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.BulletinOrBuilder getBulletinsOrBuilder(int index) { + return bulletins_.get(index); } - /** - * optional string language = 2; - * @return The language. - */ - public java.lang.String getLanguage() { - java.lang.Object ref = language_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - language_ = s; + + 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 (!hasSchemaVersion()) { + memoizedIsInitialized = 0; + return false; } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string language = 2; - * @return The bytes for language. - */ - public com.google.protobuf.ByteString - getLanguageBytes() { - java.lang.Object ref = language_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - language_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string language = 2; - * @param value The language to set. - * @return This builder for chaining. - */ - public Builder setLanguage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - language_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional string language = 2; - * @return This builder for chaining. - */ - public Builder clearLanguage() { - language_ = getDefaultInstance().getLanguage(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * optional string language = 2; - * @param value The bytes for language to set. - * @return This builder for chaining. - */ - public Builder setLanguageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - language_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + for (int i = 0; i < getBulletinsCount(); i++) { + if (!getBulletins(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, schemaVersion_); + } + for (int i = 0; i < bulletins_.size(); i++) { + output.writeMessage(2, bulletins_.get(i)); + } + getUnknownFields().writeTo(output); } @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, schemaVersion_); + } + for (int i = 0; i < bulletins_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, bulletins_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - - // @@protoc_insertion_point(builder_scope:proto.Bulletin.Translation) - } - - // @@protoc_insertion_point(class_scope:proto.Bulletin.Translation) - private static final fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation(); - } - - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Translation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int BULLETIN_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object bulletinId_ = ""; - /** - * optional string bulletin_id = 1; - * @return Whether the bulletinId field is set. - */ - @java.lang.Override - public boolean hasBulletinId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string bulletin_id = 1; - * @return The bulletinId. - */ - @java.lang.Override - public java.lang.String getBulletinId() { - java.lang.Object ref = bulletinId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - bulletinId_ = s; - } - return s; - } - } - /** - * optional string bulletin_id = 1; - * @return The bytes for bulletinId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBulletinIdBytes() { - java.lang.Object ref = bulletinId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bulletinId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CATEGORY_FIELD_NUMBER = 2; - private int category_ = 0; - /** - * optional .proto.Category category = 2; - * @return Whether the category field is set. - */ - @java.lang.Override public boolean hasCategory() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .proto.Category category = 2; - * @return The category. - */ - @java.lang.Override public fi.hsl.common.transitdata.proto.InternalMessages.Category getCategory() { - fi.hsl.common.transitdata.proto.InternalMessages.Category result = fi.hsl.common.transitdata.proto.InternalMessages.Category.forNumber(category_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.Category.VEHICLE_BREAKDOWN : result; - } - - public static final int LAST_MODIFIED_UTC_MS_FIELD_NUMBER = 3; - private long lastModifiedUtcMs_ = 0L; - /** - * required int64 last_modified_utc_ms = 3; - * @return Whether the lastModifiedUtcMs field is set. - */ - @java.lang.Override - public boolean hasLastModifiedUtcMs() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required int64 last_modified_utc_ms = 3; - * @return The lastModifiedUtcMs. - */ - @java.lang.Override - public long getLastModifiedUtcMs() { - return lastModifiedUtcMs_; - } - - public static final int VALID_FROM_UTC_MS_FIELD_NUMBER = 4; - private long validFromUtcMs_ = 0L; - /** - * required int64 valid_from_utc_ms = 4; - * @return Whether the validFromUtcMs field is set. - */ - @java.lang.Override - public boolean hasValidFromUtcMs() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required int64 valid_from_utc_ms = 4; - * @return The validFromUtcMs. - */ - @java.lang.Override - public long getValidFromUtcMs() { - return validFromUtcMs_; - } - - public static final int VALID_TO_UTC_MS_FIELD_NUMBER = 5; - private long validToUtcMs_ = 0L; - /** - * required int64 valid_to_utc_ms = 5; - * @return Whether the validToUtcMs field is set. - */ - @java.lang.Override - public boolean hasValidToUtcMs() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required int64 valid_to_utc_ms = 5; - * @return The validToUtcMs. - */ - @java.lang.Override - public long getValidToUtcMs() { - return validToUtcMs_; - } - - public static final int AFFECTS_ALL_ROUTES_FIELD_NUMBER = 6; - private boolean affectsAllRoutes_ = false; - /** - * optional bool affects_all_routes = 6; - * @return Whether the affectsAllRoutes field is set. - */ - @java.lang.Override - public boolean hasAffectsAllRoutes() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * optional bool affects_all_routes = 6; - * @return The affectsAllRoutes. - */ - @java.lang.Override - public boolean getAffectsAllRoutes() { - return affectsAllRoutes_; - } - - public static final int AFFECTS_ALL_STOPS_FIELD_NUMBER = 7; - private boolean affectsAllStops_ = false; - /** - * optional bool affects_all_stops = 7; - * @return Whether the affectsAllStops field is set. - */ - @java.lang.Override - public boolean hasAffectsAllStops() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * optional bool affects_all_stops = 7; - * @return The affectsAllStops. - */ - @java.lang.Override - public boolean getAffectsAllStops() { - return affectsAllStops_; - } - - public static final int AFFECTED_ROUTES_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private java.util.List affectedRoutes_; - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - @java.lang.Override - public java.util.List getAffectedRoutesList() { - return affectedRoutes_; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - @java.lang.Override - public java.util.List - getAffectedRoutesOrBuilderList() { - return affectedRoutes_; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - @java.lang.Override - public int getAffectedRoutesCount() { - return affectedRoutes_.size(); - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getAffectedRoutes(int index) { - return affectedRoutes_.get(index); - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder getAffectedRoutesOrBuilder( - int index) { - return affectedRoutes_.get(index); - } - - public static final int AFFECTED_STOPS_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private java.util.List affectedStops_; - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - @java.lang.Override - public java.util.List getAffectedStopsList() { - return affectedStops_; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - @java.lang.Override - public java.util.List - getAffectedStopsOrBuilderList() { - return affectedStops_; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - @java.lang.Override - public int getAffectedStopsCount() { - return affectedStops_.size(); - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getAffectedStops(int index) { - return affectedStops_.get(index); - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder getAffectedStopsOrBuilder( - int index) { - return affectedStops_.get(index); - } - - public static final int IMPACT_FIELD_NUMBER = 10; - private int impact_ = 0; - /** - * optional .proto.Bulletin.Impact impact = 10; - * @return Whether the impact field is set. - */ - @java.lang.Override public boolean hasImpact() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional .proto.Bulletin.Impact impact = 10; - * @return The impact. - */ - @java.lang.Override public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact getImpact() { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact result = fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact.forNumber(impact_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact.CANCELLED : result; - } - - public static final int PRIORITY_FIELD_NUMBER = 11; - private int priority_ = 0; - /** - * optional .proto.Bulletin.Priority priority = 11; - * @return Whether the priority field is set. - */ - @java.lang.Override public boolean hasPriority() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * optional .proto.Bulletin.Priority priority = 11; - * @return The priority. - */ - @java.lang.Override public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority getPriority() { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority result = fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority.forNumber(priority_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority.INFO : result; - } - - public static final int TITLES_FIELD_NUMBER = 12; - @SuppressWarnings("serial") - private java.util.List titles_; - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - @java.lang.Override - public java.util.List getTitlesList() { - return titles_; - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - @java.lang.Override - public java.util.List - getTitlesOrBuilderList() { - return titles_; - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - @java.lang.Override - public int getTitlesCount() { - return titles_.size(); - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getTitles(int index) { - return titles_.get(index); - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getTitlesOrBuilder( - int index) { - return titles_.get(index); - } - - public static final int DESCRIPTIONS_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private java.util.List descriptions_; - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - @java.lang.Override - public java.util.List getDescriptionsList() { - return descriptions_; - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - @java.lang.Override - public java.util.List - getDescriptionsOrBuilderList() { - return descriptions_; - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - @java.lang.Override - public int getDescriptionsCount() { - return descriptions_.size(); - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getDescriptions(int index) { - return descriptions_.get(index); - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getDescriptionsOrBuilder( - int index) { - return descriptions_.get(index); - } - - public static final int URLS_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private java.util.List urls_; - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - @java.lang.Override - public java.util.List getUrlsList() { - return urls_; - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - @java.lang.Override - public java.util.List - getUrlsOrBuilderList() { - return urls_; - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - @java.lang.Override - public int getUrlsCount() { - return urls_.size(); - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getUrls(int index) { - return urls_.get(index); - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getUrlsOrBuilder( - int index) { - return urls_.get(index); - } - - public static final int DISPLAY_ONLY_FIELD_NUMBER = 15; - private boolean displayOnly_ = false; - /** - *
-     *If true, the bulletin should be shown only on vehicle displays
-     * 
- * - * optional bool display_only = 15 [default = false]; - * @return Whether the displayOnly field is set. - */ - @java.lang.Override - public boolean hasDisplayOnly() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - *
-     *If true, the bulletin should be shown only on vehicle displays
-     * 
- * - * optional bool display_only = 15 [default = false]; - * @return The displayOnly. - */ - @java.lang.Override - public boolean getDisplayOnly() { - return displayOnly_; - } - - 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 (!hasLastModifiedUtcMs()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasValidFromUtcMs()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasValidToUtcMs()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getAffectedRoutesCount(); i++) { - if (!getAffectedRoutes(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getAffectedStopsCount(); i++) { - if (!getAffectedStops(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getTitlesCount(); i++) { - if (!getTitles(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getDescriptionsCount(); i++) { - if (!getDescriptions(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getUrlsCount(); i++) { - if (!getUrls(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, bulletinId_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, category_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeInt64(3, lastModifiedUtcMs_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeInt64(4, validFromUtcMs_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeInt64(5, validToUtcMs_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeBool(6, affectsAllRoutes_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeBool(7, affectsAllStops_); - } - for (int i = 0; i < affectedRoutes_.size(); i++) { - output.writeMessage(8, affectedRoutes_.get(i)); - } - for (int i = 0; i < affectedStops_.size(); i++) { - output.writeMessage(9, affectedStops_.get(i)); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeEnum(10, impact_); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeEnum(11, priority_); - } - for (int i = 0; i < titles_.size(); i++) { - output.writeMessage(12, titles_.get(i)); - } - for (int i = 0; i < descriptions_.size(); i++) { - output.writeMessage(13, descriptions_.get(i)); - } - for (int i = 0; i < urls_.size(); i++) { - output.writeMessage(14, urls_.get(i)); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeBool(15, displayOnly_); - } - 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, bulletinId_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, category_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, lastModifiedUtcMs_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, validFromUtcMs_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, validToUtcMs_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, affectsAllRoutes_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, affectsAllStops_); - } - for (int i = 0; i < affectedRoutes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, affectedRoutes_.get(i)); - } - for (int i = 0; i < affectedStops_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, affectedStops_.get(i)); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, impact_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, priority_); - } - for (int i = 0; i < titles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, titles_.get(i)); - } - for (int i = 0; i < descriptions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, descriptions_.get(i)); - } - for (int i = 0; i < urls_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, urls_.get(i)); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, displayOnly_); - } - 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 fi.hsl.common.transitdata.proto.InternalMessages.Bulletin)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin other = (fi.hsl.common.transitdata.proto.InternalMessages.Bulletin) obj; - - if (hasBulletinId() != other.hasBulletinId()) return false; - if (hasBulletinId()) { - if (!getBulletinId() - .equals(other.getBulletinId())) return false; - } - if (hasCategory() != other.hasCategory()) return false; - if (hasCategory()) { - if (category_ != other.category_) return false; - } - if (hasLastModifiedUtcMs() != other.hasLastModifiedUtcMs()) return false; - if (hasLastModifiedUtcMs()) { - if (getLastModifiedUtcMs() - != other.getLastModifiedUtcMs()) return false; - } - if (hasValidFromUtcMs() != other.hasValidFromUtcMs()) return false; - if (hasValidFromUtcMs()) { - if (getValidFromUtcMs() - != other.getValidFromUtcMs()) return false; - } - if (hasValidToUtcMs() != other.hasValidToUtcMs()) return false; - if (hasValidToUtcMs()) { - if (getValidToUtcMs() - != other.getValidToUtcMs()) return false; - } - if (hasAffectsAllRoutes() != other.hasAffectsAllRoutes()) return false; - if (hasAffectsAllRoutes()) { - if (getAffectsAllRoutes() - != other.getAffectsAllRoutes()) return false; - } - if (hasAffectsAllStops() != other.hasAffectsAllStops()) return false; - if (hasAffectsAllStops()) { - if (getAffectsAllStops() - != other.getAffectsAllStops()) return false; - } - if (!getAffectedRoutesList() - .equals(other.getAffectedRoutesList())) return false; - if (!getAffectedStopsList() - .equals(other.getAffectedStopsList())) return false; - if (hasImpact() != other.hasImpact()) return false; - if (hasImpact()) { - if (impact_ != other.impact_) return false; - } - if (hasPriority() != other.hasPriority()) return false; - if (hasPriority()) { - if (priority_ != other.priority_) return false; - } - if (!getTitlesList() - .equals(other.getTitlesList())) return false; - if (!getDescriptionsList() - .equals(other.getDescriptionsList())) return false; - if (!getUrlsList() - .equals(other.getUrlsList())) return false; - if (hasDisplayOnly() != other.hasDisplayOnly()) return false; - if (hasDisplayOnly()) { - if (getDisplayOnly() - != other.getDisplayOnly()) 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 (hasBulletinId()) { - hash = (37 * hash) + BULLETIN_ID_FIELD_NUMBER; - hash = (53 * hash) + getBulletinId().hashCode(); - } - if (hasCategory()) { - hash = (37 * hash) + CATEGORY_FIELD_NUMBER; - hash = (53 * hash) + category_; - } - if (hasLastModifiedUtcMs()) { - hash = (37 * hash) + LAST_MODIFIED_UTC_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLastModifiedUtcMs()); - } - if (hasValidFromUtcMs()) { - hash = (37 * hash) + VALID_FROM_UTC_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getValidFromUtcMs()); - } - if (hasValidToUtcMs()) { - hash = (37 * hash) + VALID_TO_UTC_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getValidToUtcMs()); - } - if (hasAffectsAllRoutes()) { - hash = (37 * hash) + AFFECTS_ALL_ROUTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAffectsAllRoutes()); - } - if (hasAffectsAllStops()) { - hash = (37 * hash) + AFFECTS_ALL_STOPS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAffectsAllStops()); - } - if (getAffectedRoutesCount() > 0) { - hash = (37 * hash) + AFFECTED_ROUTES_FIELD_NUMBER; - hash = (53 * hash) + getAffectedRoutesList().hashCode(); - } - if (getAffectedStopsCount() > 0) { - hash = (37 * hash) + AFFECTED_STOPS_FIELD_NUMBER; - hash = (53 * hash) + getAffectedStopsList().hashCode(); - } - if (hasImpact()) { - hash = (37 * hash) + IMPACT_FIELD_NUMBER; - hash = (53 * hash) + impact_; - } - if (hasPriority()) { - hash = (37 * hash) + PRIORITY_FIELD_NUMBER; - hash = (53 * hash) + priority_; - } - if (getTitlesCount() > 0) { - hash = (37 * hash) + TITLES_FIELD_NUMBER; - hash = (53 * hash) + getTitlesList().hashCode(); - } - if (getDescriptionsCount() > 0) { - hash = (37 * hash) + DESCRIPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getDescriptionsList().hashCode(); - } - if (getUrlsCount() > 0) { - hash = (37 * hash) + URLS_FIELD_NUMBER; - hash = (53 * hash) + getUrlsList().hashCode(); - } - if (hasDisplayOnly()) { - hash = (37 * hash) + DISPLAY_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisplayOnly()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert other = (fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert) obj; - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + if (hasSchemaVersion() != other.hasSchemaVersion()) + return false; + if (hasSchemaVersion()) { + if (getSchemaVersion() != other.getSchemaVersion()) + return false; + } + if (!getBulletinsList().equals(other.getBulletinsList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.Bulletin} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.Bulletin) - fi.hsl.common.transitdata.proto.InternalMessages.BulletinOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.class, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder.class); - } - - // Construct using fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bulletinId_ = ""; - category_ = 0; - lastModifiedUtcMs_ = 0L; - validFromUtcMs_ = 0L; - validToUtcMs_ = 0L; - affectsAllRoutes_ = false; - affectsAllStops_ = false; - if (affectedRoutesBuilder_ == null) { - affectedRoutes_ = java.util.Collections.emptyList(); - } else { - affectedRoutes_ = null; - affectedRoutesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - if (affectedStopsBuilder_ == null) { - affectedStops_ = java.util.Collections.emptyList(); - } else { - affectedStops_ = null; - affectedStopsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - impact_ = 0; - priority_ = 0; - if (titlesBuilder_ == null) { - titles_ = java.util.Collections.emptyList(); - } else { - titles_ = null; - titlesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - if (descriptionsBuilder_ == null) { - descriptions_ = java.util.Collections.emptyList(); - } else { - descriptions_ = null; - descriptionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00001000); - if (urlsBuilder_ == null) { - urls_ = java.util.Collections.emptyList(); - } else { - urls_ = null; - urlsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00002000); - displayOnly_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_Bulletin_descriptor; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin build() { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin buildPartial() { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin result = new fi.hsl.common.transitdata.proto.InternalMessages.Bulletin(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin result) { - if (affectedRoutesBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - affectedRoutes_ = java.util.Collections.unmodifiableList(affectedRoutes_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.affectedRoutes_ = affectedRoutes_; - } else { - result.affectedRoutes_ = affectedRoutesBuilder_.build(); - } - if (affectedStopsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { - affectedStops_ = java.util.Collections.unmodifiableList(affectedStops_); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.affectedStops_ = affectedStops_; - } else { - result.affectedStops_ = affectedStopsBuilder_.build(); - } - if (titlesBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { - titles_ = java.util.Collections.unmodifiableList(titles_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.titles_ = titles_; - } else { - result.titles_ = titlesBuilder_.build(); - } - if (descriptionsBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0)) { - descriptions_ = java.util.Collections.unmodifiableList(descriptions_); - bitField0_ = (bitField0_ & ~0x00001000); - } - result.descriptions_ = descriptions_; - } else { - result.descriptions_ = descriptionsBuilder_.build(); - } - if (urlsBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0)) { - urls_ = java.util.Collections.unmodifiableList(urls_); - bitField0_ = (bitField0_ & ~0x00002000); - } - result.urls_ = urls_; - } else { - result.urls_ = urlsBuilder_.build(); - } - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.bulletinId_ = bulletinId_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.category_ = category_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.lastModifiedUtcMs_ = lastModifiedUtcMs_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.validFromUtcMs_ = validFromUtcMs_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.validToUtcMs_ = validToUtcMs_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.affectsAllRoutes_ = affectsAllRoutes_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.affectsAllStops_ = affectsAllStops_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.impact_ = impact_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.priority_ = priority_; - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.displayOnly_ = displayOnly_; - to_bitField0_ |= 0x00000200; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.Bulletin) { - return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.Bulletin)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin other) { - if (other == fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.getDefaultInstance()) return this; - if (other.hasBulletinId()) { - bulletinId_ = other.bulletinId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCategory()) { - setCategory(other.getCategory()); - } - if (other.hasLastModifiedUtcMs()) { - setLastModifiedUtcMs(other.getLastModifiedUtcMs()); - } - if (other.hasValidFromUtcMs()) { - setValidFromUtcMs(other.getValidFromUtcMs()); - } - if (other.hasValidToUtcMs()) { - setValidToUtcMs(other.getValidToUtcMs()); - } - if (other.hasAffectsAllRoutes()) { - setAffectsAllRoutes(other.getAffectsAllRoutes()); - } - if (other.hasAffectsAllStops()) { - setAffectsAllStops(other.getAffectsAllStops()); - } - if (affectedRoutesBuilder_ == null) { - if (!other.affectedRoutes_.isEmpty()) { - if (affectedRoutes_.isEmpty()) { - affectedRoutes_ = other.affectedRoutes_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureAffectedRoutesIsMutable(); - affectedRoutes_.addAll(other.affectedRoutes_); - } - onChanged(); - } - } else { - if (!other.affectedRoutes_.isEmpty()) { - if (affectedRoutesBuilder_.isEmpty()) { - affectedRoutesBuilder_.dispose(); - affectedRoutesBuilder_ = null; - affectedRoutes_ = other.affectedRoutes_; - bitField0_ = (bitField0_ & ~0x00000080); - affectedRoutesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAffectedRoutesFieldBuilder() : null; - } else { - affectedRoutesBuilder_.addAllMessages(other.affectedRoutes_); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - } - } - if (affectedStopsBuilder_ == null) { - if (!other.affectedStops_.isEmpty()) { - if (affectedStops_.isEmpty()) { - affectedStops_ = other.affectedStops_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureAffectedStopsIsMutable(); - affectedStops_.addAll(other.affectedStops_); - } - onChanged(); - } - } else { - if (!other.affectedStops_.isEmpty()) { - if (affectedStopsBuilder_.isEmpty()) { - affectedStopsBuilder_.dispose(); - affectedStopsBuilder_ = null; - affectedStops_ = other.affectedStops_; - bitField0_ = (bitField0_ & ~0x00000100); - affectedStopsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAffectedStopsFieldBuilder() : null; - } else { - affectedStopsBuilder_.addAllMessages(other.affectedStops_); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSchemaVersion()) { + hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion(); } - } + if (getBulletinsCount() > 0) { + hash = (37 * hash) + BULLETINS_FIELD_NUMBER; + hash = (53 * hash) + getBulletinsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); } - if (other.hasImpact()) { - setImpact(other.getImpact()); + public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - if (other.hasPriority()) { - setPriority(other.getPriority()); + public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } - if (titlesBuilder_ == null) { - if (!other.titles_.isEmpty()) { - if (titles_.isEmpty()) { - titles_ = other.titles_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensureTitlesIsMutable(); - titles_.addAll(other.titles_); - } - onChanged(); - } - } else { - if (!other.titles_.isEmpty()) { - if (titlesBuilder_.isEmpty()) { - titlesBuilder_.dispose(); - titlesBuilder_ = null; - titles_ = other.titles_; - bitField0_ = (bitField0_ & ~0x00000800); - titlesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTitlesFieldBuilder() : null; - } else { - titlesBuilder_.addAllMessages(other.titles_); - } - } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - if (descriptionsBuilder_ == null) { - if (!other.descriptions_.isEmpty()) { - if (descriptions_.isEmpty()) { - descriptions_ = other.descriptions_; - bitField0_ = (bitField0_ & ~0x00001000); - } else { - ensureDescriptionsIsMutable(); - descriptions_.addAll(other.descriptions_); - } - onChanged(); - } - } else { - if (!other.descriptions_.isEmpty()) { - if (descriptionsBuilder_.isEmpty()) { - descriptionsBuilder_.dispose(); - descriptionsBuilder_ = null; - descriptions_ = other.descriptions_; - bitField0_ = (bitField0_ & ~0x00001000); - descriptionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDescriptionsFieldBuilder() : null; - } else { - descriptionsBuilder_.addAllMessages(other.descriptions_); - } - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - if (urlsBuilder_ == null) { - if (!other.urls_.isEmpty()) { - if (urls_.isEmpty()) { - urls_ = other.urls_; - bitField0_ = (bitField0_ & ~0x00002000); - } else { - ensureUrlsIsMutable(); - urls_.addAll(other.urls_); - } - onChanged(); - } - } else { - if (!other.urls_.isEmpty()) { - if (urlsBuilder_.isEmpty()) { - urlsBuilder_.dispose(); - urlsBuilder_ = null; - urls_ = other.urls_; - bitField0_ = (bitField0_ & ~0x00002000); - urlsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUrlsFieldBuilder() : null; - } else { - urlsBuilder_.addAllMessages(other.urls_); - } - } - } - if (other.hasDisplayOnly()) { - setDisplayOnly(other.getDisplayOnly()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasLastModifiedUtcMs()) { - return false; - } - if (!hasValidFromUtcMs()) { - return false; - } - if (!hasValidToUtcMs()) { - return false; - } - for (int i = 0; i < getAffectedRoutesCount(); i++) { - if (!getAffectedRoutes(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getAffectedStopsCount(); i++) { - if (!getAffectedStops(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getTitlesCount(); i++) { - if (!getTitles(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getDescriptionsCount(); i++) { - if (!getDescriptions(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getUrlsCount(); i++) { - if (!getUrls(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: { - bulletinId_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - int tmpRaw = input.readEnum(); - fi.hsl.common.transitdata.proto.InternalMessages.Category tmpValue = - fi.hsl.common.transitdata.proto.InternalMessages.Category.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(2, tmpRaw); - } else { - category_ = tmpRaw; - bitField0_ |= 0x00000002; - } - break; - } // case 16 - case 24: { - lastModifiedUtcMs_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - validFromUtcMs_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - validToUtcMs_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - affectsAllRoutes_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - affectsAllStops_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 66: { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity m = - input.readMessage( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.PARSER, - extensionRegistry); - if (affectedRoutesBuilder_ == null) { - ensureAffectedRoutesIsMutable(); - affectedRoutes_.add(m); - } else { - affectedRoutesBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity m = - input.readMessage( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.PARSER, - extensionRegistry); - if (affectedStopsBuilder_ == null) { - ensureAffectedStopsIsMutable(); - affectedStops_.add(m); - } else { - affectedStopsBuilder_.addMessage(m); - } - break; - } // case 74 - case 80: { - int tmpRaw = input.readEnum(); - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact tmpValue = - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(10, tmpRaw); - } else { - impact_ = tmpRaw; - bitField0_ |= 0x00000200; - } - break; - } // case 80 - case 88: { - int tmpRaw = input.readEnum(); - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority tmpValue = - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(11, tmpRaw); - } else { - priority_ = tmpRaw; - bitField0_ |= 0x00000400; - } - break; - } // case 88 - case 98: { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation m = - input.readMessage( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.PARSER, - extensionRegistry); - if (titlesBuilder_ == null) { - ensureTitlesIsMutable(); - titles_.add(m); - } else { - titlesBuilder_.addMessage(m); - } - break; - } // case 98 - case 106: { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation m = - input.readMessage( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.PARSER, - extensionRegistry); - if (descriptionsBuilder_ == null) { - ensureDescriptionsIsMutable(); - descriptions_.add(m); - } else { - descriptionsBuilder_.addMessage(m); - } - break; - } // case 106 - case 114: { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation m = - input.readMessage( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.PARSER, - extensionRegistry); - if (urlsBuilder_ == null) { - ensureUrlsIsMutable(); - urls_.add(m); - } else { - urlsBuilder_.addMessage(m); - } - break; - } // case 114 - case 120: { - displayOnly_ = input.readBool(); - bitField0_ |= 0x00004000; - break; - } // case 120 - 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 bulletinId_ = ""; - /** - * optional string bulletin_id = 1; - * @return Whether the bulletinId field is set. - */ - public boolean hasBulletinId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string bulletin_id = 1; - * @return The bulletinId. - */ - public java.lang.String getBulletinId() { - java.lang.Object ref = bulletinId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - bulletinId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string bulletin_id = 1; - * @return The bytes for bulletinId. - */ - public com.google.protobuf.ByteString - getBulletinIdBytes() { - java.lang.Object ref = bulletinId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bulletinId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string bulletin_id = 1; - * @param value The bulletinId to set. - * @return This builder for chaining. - */ - public Builder setBulletinId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - bulletinId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * optional string bulletin_id = 1; - * @return This builder for chaining. - */ - public Builder clearBulletinId() { - bulletinId_ = getDefaultInstance().getBulletinId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * optional string bulletin_id = 1; - * @param value The bytes for bulletinId to set. - * @return This builder for chaining. - */ - public Builder setBulletinIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - bulletinId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int category_ = 0; - /** - * optional .proto.Category category = 2; - * @return Whether the category field is set. - */ - @java.lang.Override public boolean hasCategory() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .proto.Category category = 2; - * @return The category. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Category getCategory() { - fi.hsl.common.transitdata.proto.InternalMessages.Category result = fi.hsl.common.transitdata.proto.InternalMessages.Category.forNumber(category_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.Category.VEHICLE_BREAKDOWN : result; - } - /** - * optional .proto.Category category = 2; - * @param value The category to set. - * @return This builder for chaining. - */ - public Builder setCategory(fi.hsl.common.transitdata.proto.InternalMessages.Category value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - category_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .proto.Category category = 2; - * @return This builder for chaining. - */ - public Builder clearCategory() { - bitField0_ = (bitField0_ & ~0x00000002); - category_ = 0; - onChanged(); - return this; - } - - private long lastModifiedUtcMs_ ; - /** - * required int64 last_modified_utc_ms = 3; - * @return Whether the lastModifiedUtcMs field is set. - */ - @java.lang.Override - public boolean hasLastModifiedUtcMs() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required int64 last_modified_utc_ms = 3; - * @return The lastModifiedUtcMs. - */ - @java.lang.Override - public long getLastModifiedUtcMs() { - return lastModifiedUtcMs_; - } - /** - * required int64 last_modified_utc_ms = 3; - * @param value The lastModifiedUtcMs to set. - * @return This builder for chaining. - */ - public Builder setLastModifiedUtcMs(long value) { - - lastModifiedUtcMs_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required int64 last_modified_utc_ms = 3; - * @return This builder for chaining. - */ - public Builder clearLastModifiedUtcMs() { - bitField0_ = (bitField0_ & ~0x00000004); - lastModifiedUtcMs_ = 0L; - onChanged(); - return this; - } - - private long validFromUtcMs_ ; - /** - * required int64 valid_from_utc_ms = 4; - * @return Whether the validFromUtcMs field is set. - */ - @java.lang.Override - public boolean hasValidFromUtcMs() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required int64 valid_from_utc_ms = 4; - * @return The validFromUtcMs. - */ - @java.lang.Override - public long getValidFromUtcMs() { - return validFromUtcMs_; - } - /** - * required int64 valid_from_utc_ms = 4; - * @param value The validFromUtcMs to set. - * @return This builder for chaining. - */ - public Builder setValidFromUtcMs(long value) { - - validFromUtcMs_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * required int64 valid_from_utc_ms = 4; - * @return This builder for chaining. - */ - public Builder clearValidFromUtcMs() { - bitField0_ = (bitField0_ & ~0x00000008); - validFromUtcMs_ = 0L; - onChanged(); - return this; - } - - private long validToUtcMs_ ; - /** - * required int64 valid_to_utc_ms = 5; - * @return Whether the validToUtcMs field is set. - */ - @java.lang.Override - public boolean hasValidToUtcMs() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required int64 valid_to_utc_ms = 5; - * @return The validToUtcMs. - */ - @java.lang.Override - public long getValidToUtcMs() { - return validToUtcMs_; - } - /** - * required int64 valid_to_utc_ms = 5; - * @param value The validToUtcMs to set. - * @return This builder for chaining. - */ - public Builder setValidToUtcMs(long value) { - - validToUtcMs_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * required int64 valid_to_utc_ms = 5; - * @return This builder for chaining. - */ - public Builder clearValidToUtcMs() { - bitField0_ = (bitField0_ & ~0x00000010); - validToUtcMs_ = 0L; - onChanged(); - return this; - } - - private boolean affectsAllRoutes_ ; - /** - * optional bool affects_all_routes = 6; - * @return Whether the affectsAllRoutes field is set. - */ - @java.lang.Override - public boolean hasAffectsAllRoutes() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * optional bool affects_all_routes = 6; - * @return The affectsAllRoutes. - */ - @java.lang.Override - public boolean getAffectsAllRoutes() { - return affectsAllRoutes_; - } - /** - * optional bool affects_all_routes = 6; - * @param value The affectsAllRoutes to set. - * @return This builder for chaining. - */ - public Builder setAffectsAllRoutes(boolean value) { - - affectsAllRoutes_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * optional bool affects_all_routes = 6; - * @return This builder for chaining. - */ - public Builder clearAffectsAllRoutes() { - bitField0_ = (bitField0_ & ~0x00000020); - affectsAllRoutes_ = false; - onChanged(); - return this; - } - - private boolean affectsAllStops_ ; - /** - * optional bool affects_all_stops = 7; - * @return Whether the affectsAllStops field is set. - */ - @java.lang.Override - public boolean hasAffectsAllStops() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * optional bool affects_all_stops = 7; - * @return The affectsAllStops. - */ - @java.lang.Override - public boolean getAffectsAllStops() { - return affectsAllStops_; - } - /** - * optional bool affects_all_stops = 7; - * @param value The affectsAllStops to set. - * @return This builder for chaining. - */ - public Builder setAffectsAllStops(boolean value) { - - affectsAllStops_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * optional bool affects_all_stops = 7; - * @return This builder for chaining. - */ - public Builder clearAffectsAllStops() { - bitField0_ = (bitField0_ & ~0x00000040); - affectsAllStops_ = false; - onChanged(); - return this; - } - - private java.util.List affectedRoutes_ = - java.util.Collections.emptyList(); - private void ensureAffectedRoutesIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - affectedRoutes_ = new java.util.ArrayList(affectedRoutes_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder> affectedRoutesBuilder_; - - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public java.util.List getAffectedRoutesList() { - if (affectedRoutesBuilder_ == null) { - return java.util.Collections.unmodifiableList(affectedRoutes_); - } else { - return affectedRoutesBuilder_.getMessageList(); - } - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public int getAffectedRoutesCount() { - if (affectedRoutesBuilder_ == null) { - return affectedRoutes_.size(); - } else { - return affectedRoutesBuilder_.getCount(); - } - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getAffectedRoutes(int index) { - if (affectedRoutesBuilder_ == null) { - return affectedRoutes_.get(index); - } else { - return affectedRoutesBuilder_.getMessage(index); - } - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public Builder setAffectedRoutes( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity value) { - if (affectedRoutesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedRoutesIsMutable(); - affectedRoutes_.set(index, value); - onChanged(); - } else { - affectedRoutesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public Builder setAffectedRoutes( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder builderForValue) { - if (affectedRoutesBuilder_ == null) { - ensureAffectedRoutesIsMutable(); - affectedRoutes_.set(index, builderForValue.build()); - onChanged(); - } else { - affectedRoutesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public Builder addAffectedRoutes(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity value) { - if (affectedRoutesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedRoutesIsMutable(); - affectedRoutes_.add(value); - onChanged(); - } else { - affectedRoutesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public Builder addAffectedRoutes( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity value) { - if (affectedRoutesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedRoutesIsMutable(); - affectedRoutes_.add(index, value); - onChanged(); - } else { - affectedRoutesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public Builder addAffectedRoutes( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder builderForValue) { - if (affectedRoutesBuilder_ == null) { - ensureAffectedRoutesIsMutable(); - affectedRoutes_.add(builderForValue.build()); - onChanged(); - } else { - affectedRoutesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public Builder addAffectedRoutes( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder builderForValue) { - if (affectedRoutesBuilder_ == null) { - ensureAffectedRoutesIsMutable(); - affectedRoutes_.add(index, builderForValue.build()); - onChanged(); - } else { - affectedRoutesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public Builder addAllAffectedRoutes( - java.lang.Iterable values) { - if (affectedRoutesBuilder_ == null) { - ensureAffectedRoutesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, affectedRoutes_); - onChanged(); - } else { - affectedRoutesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public Builder clearAffectedRoutes() { - if (affectedRoutesBuilder_ == null) { - affectedRoutes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - affectedRoutesBuilder_.clear(); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public Builder removeAffectedRoutes(int index) { - if (affectedRoutesBuilder_ == null) { - ensureAffectedRoutesIsMutable(); - affectedRoutes_.remove(index); - onChanged(); - } else { - affectedRoutesBuilder_.remove(index); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder getAffectedRoutesBuilder( - int index) { - return getAffectedRoutesFieldBuilder().getBuilder(index); - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder getAffectedRoutesOrBuilder( - int index) { - if (affectedRoutesBuilder_ == null) { - return affectedRoutes_.get(index); } else { - return affectedRoutesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public java.util.List - getAffectedRoutesOrBuilderList() { - if (affectedRoutesBuilder_ != null) { - return affectedRoutesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(affectedRoutes_); - } - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder addAffectedRoutesBuilder() { - return getAffectedRoutesFieldBuilder().addBuilder( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.getDefaultInstance()); - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder addAffectedRoutesBuilder( - int index) { - return getAffectedRoutesFieldBuilder().addBuilder( - index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.getDefaultInstance()); - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_routes = 8; - */ - public java.util.List - getAffectedRoutesBuilderList() { - return getAffectedRoutesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder> - getAffectedRoutesFieldBuilder() { - if (affectedRoutesBuilder_ == null) { - affectedRoutesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder>( - affectedRoutes_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - affectedRoutes_ = null; - } - return affectedRoutesBuilder_; - } - - private java.util.List affectedStops_ = - java.util.Collections.emptyList(); - private void ensureAffectedStopsIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { - affectedStops_ = new java.util.ArrayList(affectedStops_); - bitField0_ |= 0x00000100; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder> affectedStopsBuilder_; - - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public java.util.List getAffectedStopsList() { - if (affectedStopsBuilder_ == null) { - return java.util.Collections.unmodifiableList(affectedStops_); - } else { - return affectedStopsBuilder_.getMessageList(); - } - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public int getAffectedStopsCount() { - if (affectedStopsBuilder_ == null) { - return affectedStops_.size(); - } else { - return affectedStopsBuilder_.getCount(); - } - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity getAffectedStops(int index) { - if (affectedStopsBuilder_ == null) { - return affectedStops_.get(index); - } else { - return affectedStopsBuilder_.getMessage(index); - } - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public Builder setAffectedStops( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity value) { - if (affectedStopsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedStopsIsMutable(); - affectedStops_.set(index, value); - onChanged(); - } else { - affectedStopsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public Builder setAffectedStops( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder builderForValue) { - if (affectedStopsBuilder_ == null) { - ensureAffectedStopsIsMutable(); - affectedStops_.set(index, builderForValue.build()); - onChanged(); - } else { - affectedStopsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public Builder addAffectedStops(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity value) { - if (affectedStopsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedStopsIsMutable(); - affectedStops_.add(value); - onChanged(); - } else { - affectedStopsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public Builder addAffectedStops( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity value) { - if (affectedStopsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAffectedStopsIsMutable(); - affectedStops_.add(index, value); - onChanged(); - } else { - affectedStopsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public Builder addAffectedStops( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder builderForValue) { - if (affectedStopsBuilder_ == null) { - ensureAffectedStopsIsMutable(); - affectedStops_.add(builderForValue.build()); - onChanged(); - } else { - affectedStopsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public Builder addAffectedStops( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder builderForValue) { - if (affectedStopsBuilder_ == null) { - ensureAffectedStopsIsMutable(); - affectedStops_.add(index, builderForValue.build()); - onChanged(); - } else { - affectedStopsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public Builder addAllAffectedStops( - java.lang.Iterable values) { - if (affectedStopsBuilder_ == null) { - ensureAffectedStopsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, affectedStops_); - onChanged(); - } else { - affectedStopsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public Builder clearAffectedStops() { - if (affectedStopsBuilder_ == null) { - affectedStops_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - } else { - affectedStopsBuilder_.clear(); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public Builder removeAffectedStops(int index) { - if (affectedStopsBuilder_ == null) { - ensureAffectedStopsIsMutable(); - affectedStops_.remove(index); - onChanged(); - } else { - affectedStopsBuilder_.remove(index); - } - return this; - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder getAffectedStopsBuilder( - int index) { - return getAffectedStopsFieldBuilder().getBuilder(index); - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder getAffectedStopsOrBuilder( - int index) { - if (affectedStopsBuilder_ == null) { - return affectedStops_.get(index); } else { - return affectedStopsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public java.util.List - getAffectedStopsOrBuilderList() { - if (affectedStopsBuilder_ != null) { - return affectedStopsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(affectedStops_); - } - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder addAffectedStopsBuilder() { - return getAffectedStopsFieldBuilder().addBuilder( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.getDefaultInstance()); - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder addAffectedStopsBuilder( - int index) { - return getAffectedStopsFieldBuilder().addBuilder( - index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.getDefaultInstance()); - } - /** - * repeated .proto.Bulletin.AffectedEntity affected_stops = 9; - */ - public java.util.List - getAffectedStopsBuilderList() { - return getAffectedStopsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder> - getAffectedStopsFieldBuilder() { - if (affectedStopsBuilder_ == null) { - affectedStopsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntity.Builder, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.AffectedEntityOrBuilder>( - affectedStops_, - ((bitField0_ & 0x00000100) != 0), - getParentForChildren(), - isClean()); - affectedStops_ = null; - } - return affectedStopsBuilder_; - } - - private int impact_ = 0; - /** - * optional .proto.Bulletin.Impact impact = 10; - * @return Whether the impact field is set. - */ - @java.lang.Override public boolean hasImpact() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * optional .proto.Bulletin.Impact impact = 10; - * @return The impact. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact getImpact() { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact result = fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact.forNumber(impact_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact.CANCELLED : result; - } - /** - * optional .proto.Bulletin.Impact impact = 10; - * @param value The impact to set. - * @return This builder for chaining. - */ - public Builder setImpact(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Impact value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - impact_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .proto.Bulletin.Impact impact = 10; - * @return This builder for chaining. - */ - public Builder clearImpact() { - bitField0_ = (bitField0_ & ~0x00000200); - impact_ = 0; - onChanged(); - return this; - } - - private int priority_ = 0; - /** - * optional .proto.Bulletin.Priority priority = 11; - * @return Whether the priority field is set. - */ - @java.lang.Override public boolean hasPriority() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * optional .proto.Bulletin.Priority priority = 11; - * @return The priority. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority getPriority() { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority result = fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority.forNumber(priority_); - return result == null ? fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority.INFO : result; - } - /** - * optional .proto.Bulletin.Priority priority = 11; - * @param value The priority to set. - * @return This builder for chaining. - */ - public Builder setPriority(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Priority value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - priority_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .proto.Bulletin.Priority priority = 11; - * @return This builder for chaining. - */ - public Builder clearPriority() { - bitField0_ = (bitField0_ & ~0x00000400); - priority_ = 0; - onChanged(); - return this; - } - - private java.util.List titles_ = - java.util.Collections.emptyList(); - private void ensureTitlesIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { - titles_ = new java.util.ArrayList(titles_); - bitField0_ |= 0x00000800; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder> titlesBuilder_; - - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public java.util.List getTitlesList() { - if (titlesBuilder_ == null) { - return java.util.Collections.unmodifiableList(titles_); - } else { - return titlesBuilder_.getMessageList(); - } - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public int getTitlesCount() { - if (titlesBuilder_ == null) { - return titles_.size(); - } else { - return titlesBuilder_.getCount(); - } - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getTitles(int index) { - if (titlesBuilder_ == null) { - return titles_.get(index); - } else { - return titlesBuilder_.getMessage(index); - } - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public Builder setTitles( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { - if (titlesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTitlesIsMutable(); - titles_.set(index, value); - onChanged(); - } else { - titlesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public Builder setTitles( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { - if (titlesBuilder_ == null) { - ensureTitlesIsMutable(); - titles_.set(index, builderForValue.build()); - onChanged(); - } else { - titlesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public Builder addTitles(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { - if (titlesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTitlesIsMutable(); - titles_.add(value); - onChanged(); - } else { - titlesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public Builder addTitles( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { - if (titlesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTitlesIsMutable(); - titles_.add(index, value); - onChanged(); - } else { - titlesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public Builder addTitles( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { - if (titlesBuilder_ == null) { - ensureTitlesIsMutable(); - titles_.add(builderForValue.build()); - onChanged(); - } else { - titlesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public Builder addTitles( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { - if (titlesBuilder_ == null) { - ensureTitlesIsMutable(); - titles_.add(index, builderForValue.build()); - onChanged(); - } else { - titlesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public Builder addAllTitles( - java.lang.Iterable values) { - if (titlesBuilder_ == null) { - ensureTitlesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, titles_); - onChanged(); - } else { - titlesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public Builder clearTitles() { - if (titlesBuilder_ == null) { - titles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - } else { - titlesBuilder_.clear(); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public Builder removeTitles(int index) { - if (titlesBuilder_ == null) { - ensureTitlesIsMutable(); - titles_.remove(index); - onChanged(); - } else { - titlesBuilder_.remove(index); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder getTitlesBuilder( - int index) { - return getTitlesFieldBuilder().getBuilder(index); - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getTitlesOrBuilder( - int index) { - if (titlesBuilder_ == null) { - return titles_.get(index); } else { - return titlesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public java.util.List - getTitlesOrBuilderList() { - if (titlesBuilder_ != null) { - return titlesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(titles_); - } - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder addTitlesBuilder() { - return getTitlesFieldBuilder().addBuilder( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.getDefaultInstance()); - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder addTitlesBuilder( - int index) { - return getTitlesFieldBuilder().addBuilder( - index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.getDefaultInstance()); - } - /** - * repeated .proto.Bulletin.Translation titles = 12; - */ - public java.util.List - getTitlesBuilderList() { - return getTitlesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder> - getTitlesFieldBuilder() { - if (titlesBuilder_ == null) { - titlesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder>( - titles_, - ((bitField0_ & 0x00000800) != 0), - getParentForChildren(), - isClean()); - titles_ = null; - } - return titlesBuilder_; - } - - private java.util.List descriptions_ = - java.util.Collections.emptyList(); - private void ensureDescriptionsIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { - descriptions_ = new java.util.ArrayList(descriptions_); - bitField0_ |= 0x00001000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder> descriptionsBuilder_; - - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public java.util.List getDescriptionsList() { - if (descriptionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(descriptions_); - } else { - return descriptionsBuilder_.getMessageList(); - } - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public int getDescriptionsCount() { - if (descriptionsBuilder_ == null) { - return descriptions_.size(); - } else { - return descriptionsBuilder_.getCount(); - } - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getDescriptions(int index) { - if (descriptionsBuilder_ == null) { - return descriptions_.get(index); - } else { - return descriptionsBuilder_.getMessage(index); - } - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public Builder setDescriptions( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { - if (descriptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDescriptionsIsMutable(); - descriptions_.set(index, value); - onChanged(); - } else { - descriptionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public Builder setDescriptions( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { - if (descriptionsBuilder_ == null) { - ensureDescriptionsIsMutable(); - descriptions_.set(index, builderForValue.build()); - onChanged(); - } else { - descriptionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public Builder addDescriptions(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { - if (descriptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDescriptionsIsMutable(); - descriptions_.add(value); - onChanged(); - } else { - descriptionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public Builder addDescriptions( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { - if (descriptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDescriptionsIsMutable(); - descriptions_.add(index, value); - onChanged(); - } else { - descriptionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public Builder addDescriptions( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { - if (descriptionsBuilder_ == null) { - ensureDescriptionsIsMutable(); - descriptions_.add(builderForValue.build()); - onChanged(); - } else { - descriptionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public Builder addDescriptions( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { - if (descriptionsBuilder_ == null) { - ensureDescriptionsIsMutable(); - descriptions_.add(index, builderForValue.build()); - onChanged(); - } else { - descriptionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public Builder addAllDescriptions( - java.lang.Iterable values) { - if (descriptionsBuilder_ == null) { - ensureDescriptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, descriptions_); - onChanged(); - } else { - descriptionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public Builder clearDescriptions() { - if (descriptionsBuilder_ == null) { - descriptions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - } else { - descriptionsBuilder_.clear(); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public Builder removeDescriptions(int index) { - if (descriptionsBuilder_ == null) { - ensureDescriptionsIsMutable(); - descriptions_.remove(index); - onChanged(); - } else { - descriptionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder getDescriptionsBuilder( - int index) { - return getDescriptionsFieldBuilder().getBuilder(index); - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getDescriptionsOrBuilder( - int index) { - if (descriptionsBuilder_ == null) { - return descriptions_.get(index); } else { - return descriptionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public java.util.List - getDescriptionsOrBuilderList() { - if (descriptionsBuilder_ != null) { - return descriptionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(descriptions_); - } - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder addDescriptionsBuilder() { - return getDescriptionsFieldBuilder().addBuilder( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.getDefaultInstance()); - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder addDescriptionsBuilder( - int index) { - return getDescriptionsFieldBuilder().addBuilder( - index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.getDefaultInstance()); - } - /** - * repeated .proto.Bulletin.Translation descriptions = 13; - */ - public java.util.List - getDescriptionsBuilderList() { - return getDescriptionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder> - getDescriptionsFieldBuilder() { - if (descriptionsBuilder_ == null) { - descriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder>( - descriptions_, - ((bitField0_ & 0x00001000) != 0), - getParentForChildren(), - isClean()); - descriptions_ = null; - } - return descriptionsBuilder_; - } - - private java.util.List urls_ = - java.util.Collections.emptyList(); - private void ensureUrlsIsMutable() { - if (!((bitField0_ & 0x00002000) != 0)) { - urls_ = new java.util.ArrayList(urls_); - bitField0_ |= 0x00002000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder> urlsBuilder_; - - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public java.util.List getUrlsList() { - if (urlsBuilder_ == null) { - return java.util.Collections.unmodifiableList(urls_); - } else { - return urlsBuilder_.getMessageList(); - } - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public int getUrlsCount() { - if (urlsBuilder_ == null) { - return urls_.size(); - } else { - return urlsBuilder_.getCount(); - } - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation getUrls(int index) { - if (urlsBuilder_ == null) { - return urls_.get(index); - } else { - return urlsBuilder_.getMessage(index); - } - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public Builder setUrls( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { - if (urlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUrlsIsMutable(); - urls_.set(index, value); - onChanged(); - } else { - urlsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public Builder setUrls( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { - if (urlsBuilder_ == null) { - ensureUrlsIsMutable(); - urls_.set(index, builderForValue.build()); - onChanged(); - } else { - urlsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public Builder addUrls(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { - if (urlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUrlsIsMutable(); - urls_.add(value); - onChanged(); - } else { - urlsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public Builder addUrls( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation value) { - if (urlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUrlsIsMutable(); - urls_.add(index, value); - onChanged(); - } else { - urlsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public Builder addUrls( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { - if (urlsBuilder_ == null) { - ensureUrlsIsMutable(); - urls_.add(builderForValue.build()); - onChanged(); - } else { - urlsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public Builder addUrls( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder builderForValue) { - if (urlsBuilder_ == null) { - ensureUrlsIsMutable(); - urls_.add(index, builderForValue.build()); - onChanged(); - } else { - urlsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public Builder addAllUrls( - java.lang.Iterable values) { - if (urlsBuilder_ == null) { - ensureUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, urls_); - onChanged(); - } else { - urlsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public Builder clearUrls() { - if (urlsBuilder_ == null) { - urls_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - } else { - urlsBuilder_.clear(); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public Builder removeUrls(int index) { - if (urlsBuilder_ == null) { - ensureUrlsIsMutable(); - urls_.remove(index); - onChanged(); - } else { - urlsBuilder_.remove(index); - } - return this; - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder getUrlsBuilder( - int index) { - return getUrlsFieldBuilder().getBuilder(index); - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder getUrlsOrBuilder( - int index) { - if (urlsBuilder_ == null) { - return urls_.get(index); } else { - return urlsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public java.util.List - getUrlsOrBuilderList() { - if (urlsBuilder_ != null) { - return urlsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(urls_); - } - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder addUrlsBuilder() { - return getUrlsFieldBuilder().addBuilder( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.getDefaultInstance()); - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder addUrlsBuilder( - int index) { - return getUrlsFieldBuilder().addBuilder( - index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.getDefaultInstance()); - } - /** - * repeated .proto.Bulletin.Translation urls = 14; - */ - public java.util.List - getUrlsBuilderList() { - return getUrlsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder> - getUrlsFieldBuilder() { - if (urlsBuilder_ == null) { - urlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Translation.Builder, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.TranslationOrBuilder>( - urls_, - ((bitField0_ & 0x00002000) != 0), - getParentForChildren(), - isClean()); - urls_ = null; - } - return urlsBuilder_; - } - - private boolean displayOnly_ ; - /** - *
-       *If true, the bulletin should be shown only on vehicle displays
-       * 
- * - * optional bool display_only = 15 [default = false]; - * @return Whether the displayOnly field is set. - */ - @java.lang.Override - public boolean hasDisplayOnly() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - *
-       *If true, the bulletin should be shown only on vehicle displays
-       * 
- * - * optional bool display_only = 15 [default = false]; - * @return The displayOnly. - */ - @java.lang.Override - public boolean getDisplayOnly() { - return displayOnly_; - } - /** - *
-       *If true, the bulletin should be shown only on vehicle displays
-       * 
- * - * optional bool display_only = 15 [default = false]; - * @param value The displayOnly to set. - * @return This builder for chaining. - */ - public Builder setDisplayOnly(boolean value) { - - displayOnly_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - *
-       *If true, the bulletin should be shown only on vehicle displays
-       * 
- * - * optional bool display_only = 15 [default = false]; - * @return This builder for chaining. - */ - public Builder clearDisplayOnly() { - bitField0_ = (bitField0_ & ~0x00004000); - displayOnly_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.Bulletin) - } - - // @@protoc_insertion_point(class_scope:proto.Bulletin) - private static final fi.hsl.common.transitdata.proto.InternalMessages.Bulletin DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.Bulletin(); - } - - public static fi.hsl.common.transitdata.proto.InternalMessages.Bulletin getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Bulletin parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.ServiceAlert} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.ServiceAlert) + fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlertOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_ServiceAlert_descriptor; + } - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_ServiceAlert_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert.class, + fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert.Builder.class); + } - } + // Construct using fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert.newBuilder() + private Builder() { - public interface ServiceAlertOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.ServiceAlert) - com.google.protobuf.MessageOrBuilder { + } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - boolean hasSchemaVersion(); - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - int getSchemaVersion(); + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - /** - * repeated .proto.Bulletin bulletins = 2; - */ - java.util.List - getBulletinsList(); - /** - * repeated .proto.Bulletin bulletins = 2; - */ - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin getBulletins(int index); - /** - * repeated .proto.Bulletin bulletins = 2; - */ - int getBulletinsCount(); - /** - * repeated .proto.Bulletin bulletins = 2; - */ - java.util.List - getBulletinsOrBuilderList(); - /** - * repeated .proto.Bulletin bulletins = 2; - */ - fi.hsl.common.transitdata.proto.InternalMessages.BulletinOrBuilder getBulletinsOrBuilder( - int index); - } - /** - * Protobuf type {@code proto.ServiceAlert} - */ - public static final class ServiceAlert extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.ServiceAlert) - ServiceAlertOrBuilder { - private static final long serialVersionUID = 0L; - // Use ServiceAlert.newBuilder() to construct. - private ServiceAlert(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ServiceAlert() { - schemaVersion_ = 1; - bulletins_ = java.util.Collections.emptyList(); - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schemaVersion_ = 1; + if (bulletinsBuilder_ == null) { + bulletins_ = java.util.Collections.emptyList(); + } else { + bulletins_ = null; + bulletinsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ServiceAlert(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_ServiceAlert_descriptor; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_ServiceAlert_descriptor; - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert.getDefaultInstance(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_ServiceAlert_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert.class, fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert.Builder.class); - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert build() { + fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - private int bitField0_; - public static final int SCHEMAVERSION_FIELD_NUMBER = 1; - private int schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert buildPartial() { + fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert result = new fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static final int BULLETINS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List bulletins_; - /** - * repeated .proto.Bulletin bulletins = 2; - */ - @java.lang.Override - public java.util.List getBulletinsList() { - return bulletins_; - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - @java.lang.Override - public java.util.List - getBulletinsOrBuilderList() { - return bulletins_; - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - @java.lang.Override - public int getBulletinsCount() { - return bulletins_.size(); - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin getBulletins(int index) { - return bulletins_.get(index); - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.BulletinOrBuilder getBulletinsOrBuilder( - int index) { - return bulletins_.get(index); - } + private void buildPartialRepeatedFields( + fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert result) { + if (bulletinsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + bulletins_ = java.util.Collections.unmodifiableList(bulletins_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.bulletins_ = bulletins_; + } else { + result.bulletins_ = bulletinsBuilder_.build(); + } + } - 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 (!hasSchemaVersion()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getBulletinsCount(); i++) { - if (!getBulletins(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } + private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schemaVersion_ = schemaVersion_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, schemaVersion_); - } - for (int i = 0; i < bulletins_.size(); i++) { - output.writeMessage(2, bulletins_.get(i)); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert) { + return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert) other); + } else { + super.mergeFrom(other); + return this; + } + } - @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, schemaVersion_); - } - for (int i = 0; i < bulletins_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, bulletins_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert other) { + if (other == fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert.getDefaultInstance()) + return this; + if (other.hasSchemaVersion()) { + setSchemaVersion(other.getSchemaVersion()); + } + if (bulletinsBuilder_ == null) { + if (!other.bulletins_.isEmpty()) { + if (bulletins_.isEmpty()) { + bulletins_ = other.bulletins_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBulletinsIsMutable(); + bulletins_.addAll(other.bulletins_); + } + onChanged(); + } + } else { + if (!other.bulletins_.isEmpty()) { + if (bulletinsBuilder_.isEmpty()) { + bulletinsBuilder_.dispose(); + bulletinsBuilder_ = null; + bulletins_ = other.bulletins_; + bitField0_ = (bitField0_ & ~0x00000002); + bulletinsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBulletinsFieldBuilder() + : null; + } else { + bulletinsBuilder_.addAllMessages(other.bulletins_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert other = (fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert) obj; - - if (hasSchemaVersion() != other.hasSchemaVersion()) return false; - if (hasSchemaVersion()) { - if (getSchemaVersion() - != other.getSchemaVersion()) return false; - } - if (!getBulletinsList() - .equals(other.getBulletinsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasSchemaVersion()) { + return false; + } + for (int i = 0; i < getBulletinsCount(); i++) { + if (!getBulletins(i).isInitialized()) { + return false; + } + } + return true; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSchemaVersion()) { - hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getSchemaVersion(); - } - if (getBulletinsCount() > 0) { - hash = (37 * hash) + BULLETINS_FIELD_NUMBER; - hash = (53 * hash) + getBulletinsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @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 : { + schemaVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18 : { + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin m = input.readMessage( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.PARSER, + extensionRegistry); + if (bulletinsBuilder_ == null) { + ensureBulletinsIsMutable(); + bulletins_.add(m); + } else { + bulletinsBuilder_.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 int schemaVersion_ = 1; + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(int value) { + + schemaVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * required int32 SchemaVersion = 1 [default = 1]; + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + schemaVersion_ = 1; + onChanged(); + return this; + } - public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + private java.util.List bulletins_ = java.util.Collections + .emptyList(); + private void ensureBulletinsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + bulletins_ = new java.util.ArrayList( + bulletins_); + bitField0_ |= 0x00000002; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private com.google.protobuf.RepeatedFieldBuilderV3 bulletinsBuilder_; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.ServiceAlert} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.ServiceAlert) - fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlertOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_ServiceAlert_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_ServiceAlert_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert.class, fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert.Builder.class); - } - - // Construct using fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - schemaVersion_ = 1; - if (bulletinsBuilder_ == null) { - bulletins_ = java.util.Collections.emptyList(); - } else { - bulletins_ = null; - bulletinsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.internal_static_proto_ServiceAlert_descriptor; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert build() { - fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert buildPartial() { - fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert result = new fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert result) { - if (bulletinsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - bulletins_ = java.util.Collections.unmodifiableList(bulletins_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.bulletins_ = bulletins_; - } else { - result.bulletins_ = bulletinsBuilder_.build(); - } - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.schemaVersion_ = schemaVersion_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert) { - return mergeFrom((fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert other) { - if (other == fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert.getDefaultInstance()) return this; - if (other.hasSchemaVersion()) { - setSchemaVersion(other.getSchemaVersion()); - } - if (bulletinsBuilder_ == null) { - if (!other.bulletins_.isEmpty()) { - if (bulletins_.isEmpty()) { - bulletins_ = other.bulletins_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureBulletinsIsMutable(); - bulletins_.addAll(other.bulletins_); - } - onChanged(); - } - } else { - if (!other.bulletins_.isEmpty()) { - if (bulletinsBuilder_.isEmpty()) { - bulletinsBuilder_.dispose(); - bulletinsBuilder_ = null; - bulletins_ = other.bulletins_; - bitField0_ = (bitField0_ & ~0x00000002); - bulletinsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBulletinsFieldBuilder() : null; - } else { - bulletinsBuilder_.addAllMessages(other.bulletins_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSchemaVersion()) { - return false; - } - for (int i = 0; i < getBulletinsCount(); i++) { - if (!getBulletins(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 8: { - schemaVersion_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin m = - input.readMessage( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.PARSER, - extensionRegistry); + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public java.util.List getBulletinsList() { if (bulletinsBuilder_ == null) { - ensureBulletinsIsMutable(); - bulletins_.add(m); + return java.util.Collections.unmodifiableList(bulletins_); } else { - bulletinsBuilder_.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 int schemaVersion_ = 1; - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @param value The schemaVersion to set. - * @return This builder for chaining. - */ - public Builder setSchemaVersion(int value) { - - schemaVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * required int32 SchemaVersion = 1 [default = 1]; - * @return This builder for chaining. - */ - public Builder clearSchemaVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - schemaVersion_ = 1; - onChanged(); - return this; - } - - private java.util.List bulletins_ = - java.util.Collections.emptyList(); - private void ensureBulletinsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - bulletins_ = new java.util.ArrayList(bulletins_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder, fi.hsl.common.transitdata.proto.InternalMessages.BulletinOrBuilder> bulletinsBuilder_; - - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public java.util.List getBulletinsList() { - if (bulletinsBuilder_ == null) { - return java.util.Collections.unmodifiableList(bulletins_); - } else { - return bulletinsBuilder_.getMessageList(); - } - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public int getBulletinsCount() { - if (bulletinsBuilder_ == null) { - return bulletins_.size(); - } else { - return bulletinsBuilder_.getCount(); - } - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin getBulletins(int index) { - if (bulletinsBuilder_ == null) { - return bulletins_.get(index); - } else { - return bulletinsBuilder_.getMessage(index); - } - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public Builder setBulletins( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin value) { - if (bulletinsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBulletinsIsMutable(); - bulletins_.set(index, value); - onChanged(); - } else { - bulletinsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public Builder setBulletins( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder builderForValue) { - if (bulletinsBuilder_ == null) { - ensureBulletinsIsMutable(); - bulletins_.set(index, builderForValue.build()); - onChanged(); - } else { - bulletinsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public Builder addBulletins(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin value) { - if (bulletinsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBulletinsIsMutable(); - bulletins_.add(value); - onChanged(); - } else { - bulletinsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public Builder addBulletins( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin value) { - if (bulletinsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBulletinsIsMutable(); - bulletins_.add(index, value); - onChanged(); - } else { - bulletinsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public Builder addBulletins( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder builderForValue) { - if (bulletinsBuilder_ == null) { - ensureBulletinsIsMutable(); - bulletins_.add(builderForValue.build()); - onChanged(); - } else { - bulletinsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public Builder addBulletins( - int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder builderForValue) { - if (bulletinsBuilder_ == null) { - ensureBulletinsIsMutable(); - bulletins_.add(index, builderForValue.build()); - onChanged(); - } else { - bulletinsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public Builder addAllBulletins( - java.lang.Iterable values) { - if (bulletinsBuilder_ == null) { - ensureBulletinsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bulletins_); - onChanged(); - } else { - bulletinsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public Builder clearBulletins() { - if (bulletinsBuilder_ == null) { - bulletins_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - bulletinsBuilder_.clear(); - } - return this; - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public Builder removeBulletins(int index) { - if (bulletinsBuilder_ == null) { - ensureBulletinsIsMutable(); - bulletins_.remove(index); - onChanged(); - } else { - bulletinsBuilder_.remove(index); - } - return this; - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder getBulletinsBuilder( - int index) { - return getBulletinsFieldBuilder().getBuilder(index); - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.BulletinOrBuilder getBulletinsOrBuilder( - int index) { - if (bulletinsBuilder_ == null) { - return bulletins_.get(index); } else { - return bulletinsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public java.util.List - getBulletinsOrBuilderList() { - if (bulletinsBuilder_ != null) { - return bulletinsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(bulletins_); - } - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder addBulletinsBuilder() { - return getBulletinsFieldBuilder().addBuilder( - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.getDefaultInstance()); - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder addBulletinsBuilder( - int index) { - return getBulletinsFieldBuilder().addBuilder( - index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.getDefaultInstance()); - } - /** - * repeated .proto.Bulletin bulletins = 2; - */ - public java.util.List - getBulletinsBuilderList() { - return getBulletinsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder, fi.hsl.common.transitdata.proto.InternalMessages.BulletinOrBuilder> - getBulletinsFieldBuilder() { - if (bulletinsBuilder_ == null) { - bulletinsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.InternalMessages.Bulletin, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder, fi.hsl.common.transitdata.proto.InternalMessages.BulletinOrBuilder>( - bulletins_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - bulletins_ = null; - } - return bulletinsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.ServiceAlert) - } + return bulletinsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public int getBulletinsCount() { + if (bulletinsBuilder_ == null) { + return bulletins_.size(); + } else { + return bulletinsBuilder_.getCount(); + } + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin getBulletins(int index) { + if (bulletinsBuilder_ == null) { + return bulletins_.get(index); + } else { + return bulletinsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public Builder setBulletins(int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin value) { + if (bulletinsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBulletinsIsMutable(); + bulletins_.set(index, value); + onChanged(); + } else { + bulletinsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public Builder setBulletins(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder builderForValue) { + if (bulletinsBuilder_ == null) { + ensureBulletinsIsMutable(); + bulletins_.set(index, builderForValue.build()); + onChanged(); + } else { + bulletinsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public Builder addBulletins(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin value) { + if (bulletinsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBulletinsIsMutable(); + bulletins_.add(value); + onChanged(); + } else { + bulletinsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public Builder addBulletins(int index, fi.hsl.common.transitdata.proto.InternalMessages.Bulletin value) { + if (bulletinsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBulletinsIsMutable(); + bulletins_.add(index, value); + onChanged(); + } else { + bulletinsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public Builder addBulletins( + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder builderForValue) { + if (bulletinsBuilder_ == null) { + ensureBulletinsIsMutable(); + bulletins_.add(builderForValue.build()); + onChanged(); + } else { + bulletinsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public Builder addBulletins(int index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder builderForValue) { + if (bulletinsBuilder_ == null) { + ensureBulletinsIsMutable(); + bulletins_.add(index, builderForValue.build()); + onChanged(); + } else { + bulletinsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public Builder addAllBulletins( + java.lang.Iterable values) { + if (bulletinsBuilder_ == null) { + ensureBulletinsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bulletins_); + onChanged(); + } else { + bulletinsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public Builder clearBulletins() { + if (bulletinsBuilder_ == null) { + bulletins_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + bulletinsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public Builder removeBulletins(int index) { + if (bulletinsBuilder_ == null) { + ensureBulletinsIsMutable(); + bulletins_.remove(index); + onChanged(); + } else { + bulletinsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder getBulletinsBuilder(int index) { + return getBulletinsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.BulletinOrBuilder getBulletinsOrBuilder(int index) { + if (bulletinsBuilder_ == null) { + return bulletins_.get(index); + } else { + return bulletinsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public java.util.List getBulletinsOrBuilderList() { + if (bulletinsBuilder_ != null) { + return bulletinsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bulletins_); + } + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder addBulletinsBuilder() { + return getBulletinsFieldBuilder() + .addBuilder(fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.getDefaultInstance()); + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.Builder addBulletinsBuilder(int index) { + return getBulletinsFieldBuilder().addBuilder(index, + fi.hsl.common.transitdata.proto.InternalMessages.Bulletin.getDefaultInstance()); + } + /** + * repeated .proto.Bulletin bulletins = 2; + */ + public java.util.List getBulletinsBuilderList() { + return getBulletinsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getBulletinsFieldBuilder() { + if (bulletinsBuilder_ == null) { + bulletinsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + bulletins_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + bulletins_ = null; + } + return bulletinsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(class_scope:proto.ServiceAlert) - private static final fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert(); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(builder_scope:proto.ServiceAlert) + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceAlert parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:proto.ServiceAlert) + private static final fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceAlert parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_TripInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_TripInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_JourneyPattern_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_JourneyPattern_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_JourneyPattern_Stop_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_JourneyPattern_Stop_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_StopCancellations_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_StopCancellations_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_StopCancellations_StopCancellation_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_StopCancellations_StopCancellation_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_TripCancellation_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_TripCancellation_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_StopEstimate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_StopEstimate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_Bulletin_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_Bulletin_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_Bulletin_AffectedEntity_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_Bulletin_AffectedEntity_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_Bulletin_Translation_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_Bulletin_Translation_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_ServiceAlert_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_ServiceAlert_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027internal-messages.proto\022\005proto\"\351\001\n\010Tri" + - "pInfo\022\017\n\007trip_id\030\001 \002(\t\022\025\n\roperating_day\030" + - "\002 \002(\t\022\020\n\010route_id\030\003 \002(\t\022\024\n\014direction_id\030" + - "\004 \002(\r\022\022\n\nstart_time\030\005 \002(\t\022>\n\rschedule_ty" + - "pe\030\006 \001(\0162\034.proto.TripInfo.ScheduleType:\t" + - "SCHEDULED\"9\n\014ScheduleType\022\r\n\tSCHEDULED\020\001" + - "\022\t\n\005ADDED\020\002\022\017\n\013UNSCHEDULED\020\003\"\247\001\n\016Journey" + - "Pattern\022\032\n\022journey_pattern_id\030\001 \002(\t\022)\n\005s" + - "tops\030\002 \003(\0132\032.proto.JourneyPattern.Stop\022\036" + - "\n\005trips\030\003 \003(\0132\017.proto.TripInfo\032.\n\004Stop\022\017" + - "\n\007stop_id\030\001 \002(\t\022\025\n\rstop_sequence\030\002 \002(\r\"\265" + - "\003\n\021StopCancellations\022E\n\022stop_cancellatio" + - "ns\030\001 \003(\0132).proto.StopCancellations.StopC" + - "ancellation\0228\n\031affected_journey_patterns" + - "\030\002 \003(\0132\025.proto.JourneyPattern\032\324\001\n\020StopCa" + - "ncellation\022-\n\005cause\030\001 \002(\0162\036.proto.StopCa" + - "ncellations.Cause\022\017\n\007stop_id\030\002 \002(\t\022\031\n\021va" + - "lid_from_unix_s\030\003 \001(\003\022\027\n\017valid_to_unix_s" + - "\030\004 \001(\003\022$\n\034affected_journey_pattern_ids\030\005" + - " \003(\t\022&\n\raffected_trip\030\006 \001(\0132\017.proto.Trip" + - "Info\"H\n\005Cause\022\017\n\013CLOSED_STOP\020\000\022\032\n\026JOURNE" + - "Y_PATTERN_DETOUR\020\001\022\022\n\016JOURNEY_DETOUR\020\002\"\230" + - "\021\n\020TripCancellation\022\030\n\rSchemaVersion\030\001 \002" + - "(\005:\0011\022\017\n\007trip_id\030\002 \001(\t\022\020\n\010route_id\030\003 \001(\t" + - "\022\024\n\014direction_id\030\004 \001(\r\022\022\n\nstart_time\030\005 \001" + - "(\t\022\022\n\nstart_date\030\006 \001(\t\022.\n\006status\030\007 \002(\0162\036" + - ".proto.TripCancellation.Status\022H\n\024deviat" + - "ion_cases_type\030\010 \001(\0162*.proto.TripCancell" + - "ation.DeviationCasesType\022P\n\030affected_dep" + - "artures_type\030\t \001(\0162..proto.TripCancellat" + - "ion.AffectedDeparturesType\022\r\n\005title\030\n \001(" + - "\t\022\023\n\013description\030\013 \001(\t\022!\n\010category\030\014 \001(\016" + - "2\017.proto.Category\0229\n\014sub_category\030\r \001(\0162" + - "#.proto.TripCancellation.SubCategory\022\031\n\021" + - "deviation_case_id\030\016 \001(\003\"#\n\006Status\022\013\n\007RUN" + - "NING\020\000\022\014\n\010CANCELED\020\001\"\360\001\n\022DeviationCasesT" + - "ype\022\024\n\020CANCEL_DEPARTURE\020\000\022\n\n\006DETOUR\020\001\022\026\n" + - "\022SKIPPED_STOP_CALLS\020\002\022\023\n\017EARLY_DEPARTURE" + - "\020\003\022%\n!EARLY_DEPARTURE_FROM_TIMING_POINT\020" + - "\004\022\022\n\016LATE_DEPARTURE\020\005\022!\n\035DEPARTURED_AFTE" + - "R_NEXT_JOURNEY\020\006\022\036\n\032BLOCK_FIRST_DEPARTUR" + - "E_LATE\020\007\022\r\n\tTIS_ERROR\020\010\"\213\001\n\026AffectedDepa" + - "rturesType\022\033\n\027CANCEL_ENTIRE_DEPARTURE\020\000\022" + - "\033\n\027CANCEL_STOPS_FROM_START\020\001\022\034\n\030CANCEL_S" + - "TOPS_FROM_MIDDLE\020\002\022\031\n\025CANCEL_STOPS_FROM_" + - "END\020\003\"\371\t\n\013SubCategory\022\025\n\021BREAK_MALFUNCTI" + - "ON\020\000\022\017\n\013OUT_OF_FUEL\020\001\022\021\n\rFLUID_LEAKAGE\020\002" + - "\022\030\n\024ELECTRIC_MALFUNCTION\020\003\022\026\n\022ENGINE_MAL" + - "FUNCTION\020\004\022\025\n\021OTHER_MALFUNCTION\020\005\022\r\n\tOWN" + - "_FAULT\020\006\022\022\n\016OPPOSITE_FAULT\020\007\022\021\n\rFAULT_UN" + - "KNOWN\020\010\022\022\n\016STAFF_SHORTAGE\020\t\022\036\n\032ND_OPERAT" + - "OR_PLANNING_ERROR\020\n\022\017\n\013DRIVER_LATE\020\013\022)\n%" + - "INSUFFICIENT_INSTRUCTIONS_BY_OPERATOR\020\014\022" + - "*\n&INSUFFICIENT_INSTRUCTIONS_BY_AUTHORIT" + - "Y\020\r\022\030\n\024NO_VEHICLE_AVAILABLE\020\016\022\025\n\021ASSAULT" + - "_ON_DRIVER\020\017\022\030\n\024ASSAULT_ON_PASSENGER\020\020\022\026" + - "\n\022ASSAULT_ON_VEHICLE\020\021\022\030\n\024PASSED_OUT_PAS" + - "SENGER\020\022\022\021\n\rOTHER_ASSAULT\020\023\022\032\n\026UNDRIVEAB" + - "LE_CONDITIONS\020\024\022\034\n\030STUCK_CAUSED_BY_SLIPP" + - "ERY\020\025\022 \n\034CONGESTION_CAUSED_BY_WEATHER\020\026\022" + - "\022\n\016SLIPPERY_TRACK\020\027\022\020\n\014ROAD_BLOCKED\020\030\022(\n" + - "$VEHICLE_OFF_THE_ROAD_BY_DRIVER_ERROR\020\031\022" + - "(\n$VEHICLE_OFF_THE_ROAD_BY_OTHER_REASON\020" + - "\032\022\026\n\022MISSPARKED_VEHICLE\020\033\022\034\n\030CONGESTION_" + - "REASON_UKNOWN\020\034\022!\n\035CONGESTION_CAUSED_BY_" + - "ACCIDENT\020\035\022\022\n\016DRIVER_SEIZURE\020\036\022\025\n\021PASSEN" + - "GER_SEIZURE\020\037\022\025\n\021PASSENGER_INJURED\020 \022\021\n\r" + - "OTHER_SEIZURE\020!\022\020\n\014DEVICE_ERROR\020\"\022\031\n\025OPE" + - "RATOR_DEVICE_ERROR\020#\022\037\n\033WRONG_INFORMATIO" + - "N_IN_DEVICE\020$\022\034\n\030ITS_SYSTEM_NOT_INSTALLE" + - "D\020%\022\016\n\nUSER_ERROR\020&\022\017\n\013FALSE_ALARM\020\'\022\023\n\017" + - "OTHER_ITS_ERROR\020(\022\020\n\014DRIVER_ERROR\020)\022\031\n\025I" + - "NSUFFICIENT_CAPASITY\020*\022 \n\034OPERATOR_PERSO" + - "NNEL_ON_STRIKE\020+\022\020\n\014OTHER_STRIKE\020,\022\031\n\025OT" + - "HER_OPERATOR_REASON\020-\022\021\n\rUNKNOWN_CAUSE\020." + - "\022\024\n\020DOOR_MALFUNCTION\020/\022\035\n\031OPERATOR_CHARG" + - "ING_SERVICE\0200\022\032\n\026OTHER_CHARGING_SERVICE\020" + - "1\"\320\003\n\014StopEstimate\022\030\n\rSchemaVersion\030\001 \002(" + - "\005:\0011\022\"\n\ttrip_info\030\002 \002(\0132\017.proto.TripInfo" + - "\022\017\n\007stop_id\030\003 \002(\t\022\025\n\rstop_sequence\030\004 \002(\r" + - "\022*\n\006status\030\005 \002(\0162\032.proto.StopEstimate.St" + - "atus\022&\n\004type\030\006 \002(\0162\030.proto.StopEstimate." + - "Type\022\035\n\025estimated_time_utc_ms\030\007 \001(\003\022\035\n\025s" + - "cheduled_time_utc_ms\030\010 \001(\003\022\034\n\024last_modif" + - "ied_utc_ms\030\t \002(\003\022\034\n\robserved_time\030\n \001(\010:" + - "\005false\022\030\n\020targeted_stop_id\030\013 \001(\t\022\033\n\014is_v" + - "ia_point\030\014 \001(\010:\005false\"1\n\006Status\022\r\n\tSCHED" + - "ULED\020\000\022\013\n\007SKIPPED\020\001\022\013\n\007NO_DATA\020\002\"\"\n\004Type" + - "\022\013\n\007ARRIVAL\020\000\022\r\n\tDEPARTURE\020\001\"\344\007\n\010Bulleti" + - "n\022\023\n\013bulletin_id\030\001 \001(\t\022!\n\010category\030\002 \001(\016" + - "2\017.proto.Category\022\034\n\024last_modified_utc_m" + - "s\030\003 \002(\003\022\031\n\021valid_from_utc_ms\030\004 \002(\003\022\027\n\017va" + - "lid_to_utc_ms\030\005 \002(\003\022\032\n\022affects_all_route" + - "s\030\006 \001(\010\022\031\n\021affects_all_stops\030\007 \001(\010\0227\n\017af" + - "fected_routes\030\010 \003(\0132\036.proto.Bulletin.Aff" + - "ectedEntity\0226\n\016affected_stops\030\t \003(\0132\036.pr" + - "oto.Bulletin.AffectedEntity\022&\n\006impact\030\n " + - "\001(\0162\026.proto.Bulletin.Impact\022*\n\010priority\030" + - "\013 \001(\0162\030.proto.Bulletin.Priority\022+\n\006title" + - "s\030\014 \003(\0132\033.proto.Bulletin.Translation\0221\n\014" + - "descriptions\030\r \003(\0132\033.proto.Bulletin.Tran" + - "slation\022)\n\004urls\030\016 \003(\0132\033.proto.Bulletin.T" + - "ranslation\022\033\n\014display_only\030\017 \001(\010:\005false\032" + - "#\n\016AffectedEntity\022\021\n\tentity_id\030\001 \002(\t\032-\n\013" + - "Translation\022\014\n\004text\030\001 \002(\t\022\020\n\010language\030\002 " + - "\001(\t\"\246\002\n\006Impact\022\r\n\tCANCELLED\020\000\022\013\n\007DELAYED" + - "\020\001\022\026\n\022DEVIATING_SCHEDULE\020\002\022\024\n\020DISRUPTION" + - "_ROUTE\020\003\022\030\n\024IRREGULAR_DEPARTURES\020\004\022\027\n\023PO" + - "SSIBLE_DEVIATIONS\020\005\022\024\n\020POSSIBLY_DELAYED\020" + - "\006\022\025\n\021REDUCED_TRANSPORT\020\007\022\027\n\023RETURNING_TO" + - "_NORMAL\020\010\022 \n\034VENDING_MACHINE_OUT_OF_ORDE" + - "R\020\t\022\010\n\004NULL\020\n\022\t\n\005OTHER\020\013\022\025\n\021NO_TRAFFIC_I" + - "MPACT\020\014\022\013\n\007UNKNOWN\020\r\"-\n\010Priority\022\010\n\004INFO" + - "\020\000\022\013\n\007WARNING\020\001\022\n\n\006SEVERE\020\002\"L\n\014ServiceAl" + - "ert\022\030\n\rSchemaVersion\030\001 \002(\005:\0011\022\"\n\tbulleti" + - "ns\030\002 \003(\0132\017.proto.Bulletin*\230\005\n\010Category\022\025" + - "\n\021VEHICLE_BREAKDOWN\020\000\022\014\n\010ACCIDENT\020\001\022\r\n\tN" + - "O_DRIVER\020\002\022\013\n\007ASSAULT\020\003\022\013\n\007WEATHER\020\004\022\030\n\024" + - "VEHICLE_OFF_THE_ROAD\020\005\022\013\n\007SEIZURE\020\006\022\024\n\020I" + - "TS_SYSTEM_ERROR\020\007\022\026\n\022OTHER_DRIVER_ERROR\020" + - "\010\022\027\n\023TOO_MANY_PASSENGERS\020\t\022\n\n\006STRIKE\020\n\022\t" + - "\n\005OTHER\020\013\022\026\n\022EARLIER_DISRUPTION\020\014\022\031\n\025NO_" + - "TRAFFIC_DISRUPTION\020\r\022\021\n\rTRACK_BLOCKED\020\016\022" + - "\021\n\rSTAFF_DEFICIT\020\017\022\017\n\013DISTURBANCE\020\020\022\023\n\017V" + - "EHICLE_DEFICIT\020\021\022\017\n\013ROAD_CLOSED\020\022\022\017\n\013ROA" + - "D_TRENCH\020\023\022\025\n\021TRACK_MAINTENANCE\020\024\022\024\n\020TRA" + - "FFIC_ACCIDENT\020\025\022\017\n\013TRAFFIC_JAM\020\026\022\024\n\020MEDI" + - "CAL_INCIDENT\020\027\022\026\n\022WEATHER_CONDITIONS\020\030\022\025" + - "\n\021TECHNICAL_FAILURE\020\031\022\010\n\004TEST\020\032\022\024\n\020ROAD_" + - "MAINTENANCE\020\033\022\022\n\016SWITCH_FAILURE\020\034\022\017\n\013STA" + - "TE_VISIT\020\035\022\021\n\rPOWER_FAILURE\020\036\022\025\n\021MISPARK" + - "ED_VEHICLE\020\037\022\020\n\014PUBLIC_EVENT\020 \022\024\n\020CHARGI" + - "NG_SERVICE\020!B3\n\037fi.hsl.common.transitdat" + - "a.protoB\020InternalMessages" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_proto_TripInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_proto_TripInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_TripInfo_descriptor, - new java.lang.String[] { "TripId", "OperatingDay", "RouteId", "DirectionId", "StartTime", "ScheduleType", }); - internal_static_proto_JourneyPattern_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_proto_JourneyPattern_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_JourneyPattern_descriptor, - new java.lang.String[] { "JourneyPatternId", "Stops", "Trips", }); - internal_static_proto_JourneyPattern_Stop_descriptor = - internal_static_proto_JourneyPattern_descriptor.getNestedTypes().get(0); - internal_static_proto_JourneyPattern_Stop_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_JourneyPattern_Stop_descriptor, - new java.lang.String[] { "StopId", "StopSequence", }); - internal_static_proto_StopCancellations_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_proto_StopCancellations_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_StopCancellations_descriptor, - new java.lang.String[] { "StopCancellations", "AffectedJourneyPatterns", }); - internal_static_proto_StopCancellations_StopCancellation_descriptor = - internal_static_proto_StopCancellations_descriptor.getNestedTypes().get(0); - internal_static_proto_StopCancellations_StopCancellation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_StopCancellations_StopCancellation_descriptor, - new java.lang.String[] { "Cause", "StopId", "ValidFromUnixS", "ValidToUnixS", "AffectedJourneyPatternIds", "AffectedTrip", }); - internal_static_proto_TripCancellation_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_proto_TripCancellation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_TripCancellation_descriptor, - new java.lang.String[] { "SchemaVersion", "TripId", "RouteId", "DirectionId", "StartTime", "StartDate", "Status", "DeviationCasesType", "AffectedDeparturesType", "Title", "Description", "Category", "SubCategory", "DeviationCaseId", }); - internal_static_proto_StopEstimate_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_proto_StopEstimate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_StopEstimate_descriptor, - new java.lang.String[] { "SchemaVersion", "TripInfo", "StopId", "StopSequence", "Status", "Type", "EstimatedTimeUtcMs", "ScheduledTimeUtcMs", "LastModifiedUtcMs", "ObservedTime", "TargetedStopId", "IsViaPoint", }); - internal_static_proto_Bulletin_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_proto_Bulletin_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_Bulletin_descriptor, - new java.lang.String[] { "BulletinId", "Category", "LastModifiedUtcMs", "ValidFromUtcMs", "ValidToUtcMs", "AffectsAllRoutes", "AffectsAllStops", "AffectedRoutes", "AffectedStops", "Impact", "Priority", "Titles", "Descriptions", "Urls", "DisplayOnly", }); - internal_static_proto_Bulletin_AffectedEntity_descriptor = - internal_static_proto_Bulletin_descriptor.getNestedTypes().get(0); - internal_static_proto_Bulletin_AffectedEntity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_Bulletin_AffectedEntity_descriptor, - new java.lang.String[] { "EntityId", }); - internal_static_proto_Bulletin_Translation_descriptor = - internal_static_proto_Bulletin_descriptor.getNestedTypes().get(1); - internal_static_proto_Bulletin_Translation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_Bulletin_Translation_descriptor, - new java.lang.String[] { "Text", "Language", }); - internal_static_proto_ServiceAlert_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_proto_ServiceAlert_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_ServiceAlert_descriptor, - new java.lang.String[] { "SchemaVersion", "Bulletins", }); - } - - // @@protoc_insertion_point(outer_class_scope) + @java.lang.Override + public fi.hsl.common.transitdata.proto.InternalMessages.ServiceAlert getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_TripInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_TripInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_JourneyPattern_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_JourneyPattern_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_JourneyPattern_Stop_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_JourneyPattern_Stop_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_StopCancellations_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_StopCancellations_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_StopCancellations_StopCancellation_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_StopCancellations_StopCancellation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_TripCancellation_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_TripCancellation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_StopEstimate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_StopEstimate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_Bulletin_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_Bulletin_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_Bulletin_AffectedEntity_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_Bulletin_AffectedEntity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_Bulletin_Translation_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_Bulletin_Translation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_ServiceAlert_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_ServiceAlert_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = {"\n\027internal-messages.proto\022\005proto\"\351\001\n\010Tri" + + "pInfo\022\017\n\007trip_id\030\001 \002(\t\022\025\n\roperating_day\030" + + "\002 \002(\t\022\020\n\010route_id\030\003 \002(\t\022\024\n\014direction_id\030" + + "\004 \002(\r\022\022\n\nstart_time\030\005 \002(\t\022>\n\rschedule_ty" + + "pe\030\006 \001(\0162\034.proto.TripInfo.ScheduleType:\t" + + "SCHEDULED\"9\n\014ScheduleType\022\r\n\tSCHEDULED\020\001" + + "\022\t\n\005ADDED\020\002\022\017\n\013UNSCHEDULED\020\003\"\247\001\n\016Journey" + + "Pattern\022\032\n\022journey_pattern_id\030\001 \002(\t\022)\n\005s" + + "tops\030\002 \003(\0132\032.proto.JourneyPattern.Stop\022\036" + + "\n\005trips\030\003 \003(\0132\017.proto.TripInfo\032.\n\004Stop\022\017" + + "\n\007stop_id\030\001 \002(\t\022\025\n\rstop_sequence\030\002 \002(\r\"\265" + + "\003\n\021StopCancellations\022E\n\022stop_cancellatio" + + "ns\030\001 \003(\0132).proto.StopCancellations.StopC" + + "ancellation\0228\n\031affected_journey_patterns" + + "\030\002 \003(\0132\025.proto.JourneyPattern\032\324\001\n\020StopCa" + + "ncellation\022-\n\005cause\030\001 \002(\0162\036.proto.StopCa" + + "ncellations.Cause\022\017\n\007stop_id\030\002 \002(\t\022\031\n\021va" + + "lid_from_unix_s\030\003 \001(\003\022\027\n\017valid_to_unix_s" + + "\030\004 \001(\003\022$\n\034affected_journey_pattern_ids\030\005" + + " \003(\t\022&\n\raffected_trip\030\006 \001(\0132\017.proto.Trip" + + "Info\"H\n\005Cause\022\017\n\013CLOSED_STOP\020\000\022\032\n\026JOURNE" + + "Y_PATTERN_DETOUR\020\001\022\022\n\016JOURNEY_DETOUR\020\002\"\230" + + "\021\n\020TripCancellation\022\030\n\rSchemaVersion\030\001 \002" + + "(\005:\0011\022\017\n\007trip_id\030\002 \001(\t\022\020\n\010route_id\030\003 \001(\t" + + "\022\024\n\014direction_id\030\004 \001(\r\022\022\n\nstart_time\030\005 \001" + + "(\t\022\022\n\nstart_date\030\006 \001(\t\022.\n\006status\030\007 \002(\0162\036" + + ".proto.TripCancellation.Status\022H\n\024deviat" + + "ion_cases_type\030\010 \001(\0162*.proto.TripCancell" + + "ation.DeviationCasesType\022P\n\030affected_dep" + + "artures_type\030\t \001(\0162..proto.TripCancellat" + + "ion.AffectedDeparturesType\022\r\n\005title\030\n \001(" + + "\t\022\023\n\013description\030\013 \001(\t\022!\n\010category\030\014 \001(\016" + + "2\017.proto.Category\0229\n\014sub_category\030\r \001(\0162" + + "#.proto.TripCancellation.SubCategory\022\031\n\021" + + "deviation_case_id\030\016 \001(\003\"#\n\006Status\022\013\n\007RUN" + + "NING\020\000\022\014\n\010CANCELED\020\001\"\360\001\n\022DeviationCasesT" + + "ype\022\024\n\020CANCEL_DEPARTURE\020\000\022\n\n\006DETOUR\020\001\022\026\n" + + "\022SKIPPED_STOP_CALLS\020\002\022\023\n\017EARLY_DEPARTURE" + + "\020\003\022%\n!EARLY_DEPARTURE_FROM_TIMING_POINT\020" + + "\004\022\022\n\016LATE_DEPARTURE\020\005\022!\n\035DEPARTURED_AFTE" + + "R_NEXT_JOURNEY\020\006\022\036\n\032BLOCK_FIRST_DEPARTUR" + + "E_LATE\020\007\022\r\n\tTIS_ERROR\020\010\"\213\001\n\026AffectedDepa" + + "rturesType\022\033\n\027CANCEL_ENTIRE_DEPARTURE\020\000\022" + + "\033\n\027CANCEL_STOPS_FROM_START\020\001\022\034\n\030CANCEL_S" + + "TOPS_FROM_MIDDLE\020\002\022\031\n\025CANCEL_STOPS_FROM_" + + "END\020\003\"\371\t\n\013SubCategory\022\025\n\021BREAK_MALFUNCTI" + + "ON\020\000\022\017\n\013OUT_OF_FUEL\020\001\022\021\n\rFLUID_LEAKAGE\020\002" + + "\022\030\n\024ELECTRIC_MALFUNCTION\020\003\022\026\n\022ENGINE_MAL" + + "FUNCTION\020\004\022\025\n\021OTHER_MALFUNCTION\020\005\022\r\n\tOWN" + + "_FAULT\020\006\022\022\n\016OPPOSITE_FAULT\020\007\022\021\n\rFAULT_UN" + + "KNOWN\020\010\022\022\n\016STAFF_SHORTAGE\020\t\022\036\n\032ND_OPERAT" + + "OR_PLANNING_ERROR\020\n\022\017\n\013DRIVER_LATE\020\013\022)\n%" + + "INSUFFICIENT_INSTRUCTIONS_BY_OPERATOR\020\014\022" + "*\n&INSUFFICIENT_INSTRUCTIONS_BY_AUTHORIT" + + "Y\020\r\022\030\n\024NO_VEHICLE_AVAILABLE\020\016\022\025\n\021ASSAULT" + + "_ON_DRIVER\020\017\022\030\n\024ASSAULT_ON_PASSENGER\020\020\022\026" + + "\n\022ASSAULT_ON_VEHICLE\020\021\022\030\n\024PASSED_OUT_PAS" + + "SENGER\020\022\022\021\n\rOTHER_ASSAULT\020\023\022\032\n\026UNDRIVEAB" + + "LE_CONDITIONS\020\024\022\034\n\030STUCK_CAUSED_BY_SLIPP" + + "ERY\020\025\022 \n\034CONGESTION_CAUSED_BY_WEATHER\020\026\022" + + "\022\n\016SLIPPERY_TRACK\020\027\022\020\n\014ROAD_BLOCKED\020\030\022(\n" + + "$VEHICLE_OFF_THE_ROAD_BY_DRIVER_ERROR\020\031\022" + "(\n$VEHICLE_OFF_THE_ROAD_BY_OTHER_REASON\020" + + "\032\022\026\n\022MISSPARKED_VEHICLE\020\033\022\034\n\030CONGESTION_" + + "REASON_UKNOWN\020\034\022!\n\035CONGESTION_CAUSED_BY_" + + "ACCIDENT\020\035\022\022\n\016DRIVER_SEIZURE\020\036\022\025\n\021PASSEN" + + "GER_SEIZURE\020\037\022\025\n\021PASSENGER_INJURED\020 \022\021\n\r" + + "OTHER_SEIZURE\020!\022\020\n\014DEVICE_ERROR\020\"\022\031\n\025OPE" + + "RATOR_DEVICE_ERROR\020#\022\037\n\033WRONG_INFORMATIO" + + "N_IN_DEVICE\020$\022\034\n\030ITS_SYSTEM_NOT_INSTALLE" + + "D\020%\022\016\n\nUSER_ERROR\020&\022\017\n\013FALSE_ALARM\020\'\022\023\n\017" + + "OTHER_ITS_ERROR\020(\022\020\n\014DRIVER_ERROR\020)\022\031\n\025I" + + "NSUFFICIENT_CAPASITY\020*\022 \n\034OPERATOR_PERSO" + + "NNEL_ON_STRIKE\020+\022\020\n\014OTHER_STRIKE\020,\022\031\n\025OT" + + "HER_OPERATOR_REASON\020-\022\021\n\rUNKNOWN_CAUSE\020." + + "\022\024\n\020DOOR_MALFUNCTION\020/\022\035\n\031OPERATOR_CHARG" + + "ING_SERVICE\0200\022\032\n\026OTHER_CHARGING_SERVICE\020" + + "1\"\320\003\n\014StopEstimate\022\030\n\rSchemaVersion\030\001 \002(" + + "\005:\0011\022\"\n\ttrip_info\030\002 \002(\0132\017.proto.TripInfo" + + "\022\017\n\007stop_id\030\003 \002(\t\022\025\n\rstop_sequence\030\004 \002(\r" + + "\022*\n\006status\030\005 \002(\0162\032.proto.StopEstimate.St" + + "atus\022&\n\004type\030\006 \002(\0162\030.proto.StopEstimate." + + "Type\022\035\n\025estimated_time_utc_ms\030\007 \001(\003\022\035\n\025s" + + "cheduled_time_utc_ms\030\010 \001(\003\022\034\n\024last_modif" + + "ied_utc_ms\030\t \002(\003\022\034\n\robserved_time\030\n \001(\010:" + + "\005false\022\030\n\020targeted_stop_id\030\013 \001(\t\022\033\n\014is_v" + + "ia_point\030\014 \001(\010:\005false\"1\n\006Status\022\r\n\tSCHED" + + "ULED\020\000\022\013\n\007SKIPPED\020\001\022\013\n\007NO_DATA\020\002\"\"\n\004Type" + + "\022\013\n\007ARRIVAL\020\000\022\r\n\tDEPARTURE\020\001\"\344\007\n\010Bulleti" + + "n\022\023\n\013bulletin_id\030\001 \001(\t\022!\n\010category\030\002 \001(\016" + + "2\017.proto.Category\022\034\n\024last_modified_utc_m" + + "s\030\003 \002(\003\022\031\n\021valid_from_utc_ms\030\004 \002(\003\022\027\n\017va" + + "lid_to_utc_ms\030\005 \002(\003\022\032\n\022affects_all_route" + + "s\030\006 \001(\010\022\031\n\021affects_all_stops\030\007 \001(\010\0227\n\017af" + + "fected_routes\030\010 \003(\0132\036.proto.Bulletin.Aff" + + "ectedEntity\0226\n\016affected_stops\030\t \003(\0132\036.pr" + + "oto.Bulletin.AffectedEntity\022&\n\006impact\030\n " + + "\001(\0162\026.proto.Bulletin.Impact\022*\n\010priority\030" + + "\013 \001(\0162\030.proto.Bulletin.Priority\022+\n\006title" + + "s\030\014 \003(\0132\033.proto.Bulletin.Translation\0221\n\014" + + "descriptions\030\r \003(\0132\033.proto.Bulletin.Tran" + + "slation\022)\n\004urls\030\016 \003(\0132\033.proto.Bulletin.T" + + "ranslation\022\033\n\014display_only\030\017 \001(\010:\005false\032" + + "#\n\016AffectedEntity\022\021\n\tentity_id\030\001 \002(\t\032-\n\013" + + "Translation\022\014\n\004text\030\001 \002(\t\022\020\n\010language\030\002 " + + "\001(\t\"\246\002\n\006Impact\022\r\n\tCANCELLED\020\000\022\013\n\007DELAYED" + + "\020\001\022\026\n\022DEVIATING_SCHEDULE\020\002\022\024\n\020DISRUPTION" + + "_ROUTE\020\003\022\030\n\024IRREGULAR_DEPARTURES\020\004\022\027\n\023PO" + + "SSIBLE_DEVIATIONS\020\005\022\024\n\020POSSIBLY_DELAYED\020" + + "\006\022\025\n\021REDUCED_TRANSPORT\020\007\022\027\n\023RETURNING_TO" + + "_NORMAL\020\010\022 \n\034VENDING_MACHINE_OUT_OF_ORDE" + + "R\020\t\022\010\n\004NULL\020\n\022\t\n\005OTHER\020\013\022\025\n\021NO_TRAFFIC_I" + + "MPACT\020\014\022\013\n\007UNKNOWN\020\r\"-\n\010Priority\022\010\n\004INFO" + + "\020\000\022\013\n\007WARNING\020\001\022\n\n\006SEVERE\020\002\"L\n\014ServiceAl" + + "ert\022\030\n\rSchemaVersion\030\001 \002(\005:\0011\022\"\n\tbulleti" + + "ns\030\002 \003(\0132\017.proto.Bulletin*\230\005\n\010Category\022\025" + + "\n\021VEHICLE_BREAKDOWN\020\000\022\014\n\010ACCIDENT\020\001\022\r\n\tN" + + "O_DRIVER\020\002\022\013\n\007ASSAULT\020\003\022\013\n\007WEATHER\020\004\022\030\n\024" + + "VEHICLE_OFF_THE_ROAD\020\005\022\013\n\007SEIZURE\020\006\022\024\n\020I" + + "TS_SYSTEM_ERROR\020\007\022\026\n\022OTHER_DRIVER_ERROR\020" + + "\010\022\027\n\023TOO_MANY_PASSENGERS\020\t\022\n\n\006STRIKE\020\n\022\t" + + "\n\005OTHER\020\013\022\026\n\022EARLIER_DISRUPTION\020\014\022\031\n\025NO_" + + "TRAFFIC_DISRUPTION\020\r\022\021\n\rTRACK_BLOCKED\020\016\022" + + "\021\n\rSTAFF_DEFICIT\020\017\022\017\n\013DISTURBANCE\020\020\022\023\n\017V" + + "EHICLE_DEFICIT\020\021\022\017\n\013ROAD_CLOSED\020\022\022\017\n\013ROA" + + "D_TRENCH\020\023\022\025\n\021TRACK_MAINTENANCE\020\024\022\024\n\020TRA" + + "FFIC_ACCIDENT\020\025\022\017\n\013TRAFFIC_JAM\020\026\022\024\n\020MEDI" + + "CAL_INCIDENT\020\027\022\026\n\022WEATHER_CONDITIONS\020\030\022\025" + + "\n\021TECHNICAL_FAILURE\020\031\022\010\n\004TEST\020\032\022\024\n\020ROAD_" + + "MAINTENANCE\020\033\022\022\n\016SWITCH_FAILURE\020\034\022\017\n\013STA" + + "TE_VISIT\020\035\022\021\n\rPOWER_FAILURE\020\036\022\025\n\021MISPARK" + + "ED_VEHICLE\020\037\022\020\n\014PUBLIC_EVENT\020 \022\024\n\020CHARGI" + + "NG_SERVICE\020!B3\n\037fi.hsl.common.transitdat" + "a.protoB\020InternalMessages"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[]{}); + internal_static_proto_TripInfo_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_proto_TripInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_TripInfo_descriptor, new java.lang.String[]{"TripId", "OperatingDay", "RouteId", + "DirectionId", "StartTime", "ScheduleType",}); + internal_static_proto_JourneyPattern_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_proto_JourneyPattern_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_JourneyPattern_descriptor, + new java.lang.String[]{"JourneyPatternId", "Stops", "Trips",}); + internal_static_proto_JourneyPattern_Stop_descriptor = internal_static_proto_JourneyPattern_descriptor + .getNestedTypes().get(0); + internal_static_proto_JourneyPattern_Stop_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_JourneyPattern_Stop_descriptor, + new java.lang.String[]{"StopId", "StopSequence",}); + internal_static_proto_StopCancellations_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_proto_StopCancellations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StopCancellations_descriptor, + new java.lang.String[]{"StopCancellations", "AffectedJourneyPatterns",}); + internal_static_proto_StopCancellations_StopCancellation_descriptor = internal_static_proto_StopCancellations_descriptor + .getNestedTypes().get(0); + internal_static_proto_StopCancellations_StopCancellation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StopCancellations_StopCancellation_descriptor, new java.lang.String[]{"Cause", + "StopId", "ValidFromUnixS", "ValidToUnixS", "AffectedJourneyPatternIds", "AffectedTrip",}); + internal_static_proto_TripCancellation_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_proto_TripCancellation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_TripCancellation_descriptor, + new java.lang.String[]{"SchemaVersion", "TripId", "RouteId", "DirectionId", "StartTime", "StartDate", + "Status", "DeviationCasesType", "AffectedDeparturesType", "Title", "Description", "Category", + "SubCategory", "DeviationCaseId",}); + internal_static_proto_StopEstimate_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_proto_StopEstimate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_StopEstimate_descriptor, + new java.lang.String[]{"SchemaVersion", "TripInfo", "StopId", "StopSequence", "Status", "Type", + "EstimatedTimeUtcMs", "ScheduledTimeUtcMs", "LastModifiedUtcMs", "ObservedTime", + "TargetedStopId", "IsViaPoint",}); + internal_static_proto_Bulletin_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_proto_Bulletin_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Bulletin_descriptor, + new java.lang.String[]{"BulletinId", "Category", "LastModifiedUtcMs", "ValidFromUtcMs", "ValidToUtcMs", + "AffectsAllRoutes", "AffectsAllStops", "AffectedRoutes", "AffectedStops", "Impact", "Priority", + "Titles", "Descriptions", "Urls", "DisplayOnly",}); + internal_static_proto_Bulletin_AffectedEntity_descriptor = internal_static_proto_Bulletin_descriptor + .getNestedTypes().get(0); + internal_static_proto_Bulletin_AffectedEntity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Bulletin_AffectedEntity_descriptor, new java.lang.String[]{"EntityId",}); + internal_static_proto_Bulletin_Translation_descriptor = internal_static_proto_Bulletin_descriptor + .getNestedTypes().get(1); + internal_static_proto_Bulletin_Translation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Bulletin_Translation_descriptor, new java.lang.String[]{"Text", "Language",}); + internal_static_proto_ServiceAlert_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_proto_ServiceAlert_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ServiceAlert_descriptor, new java.lang.String[]{"SchemaVersion", "Bulletins",}); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/fi/hsl/common/transitdata/proto/MetroAtsProtos.java b/src/main/java/fi/hsl/common/transitdata/proto/MetroAtsProtos.java index 90ebf632..4834e037 100644 --- a/src/main/java/fi/hsl/common/transitdata/proto/MetroAtsProtos.java +++ b/src/main/java/fi/hsl/common/transitdata/proto/MetroAtsProtos.java @@ -4,5801 +4,5627 @@ package fi.hsl.common.transitdata.proto; public final class MetroAtsProtos { - private MetroAtsProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code proto.MetroTrainType} - */ - public enum MetroTrainType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * M = 0; - */ - M(0), - /** - * T = 1; - */ - T(1), - ; - - /** - * M = 0; - */ - public static final int M_VALUE = 0; - /** - * T = 1; - */ - public static final int T_VALUE = 1; + private MetroAtsProtos() { + } + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code proto.MetroTrainType} + */ + public enum MetroTrainType implements com.google.protobuf.ProtocolMessageEnum { + /** + * M = 0; + */ + M(0), + /** + * T = 1; + */ + T(1),; + + /** + * M = 0; + */ + public static final int M_VALUE = 0; + /** + * T = 1; + */ + public static final int T_VALUE = 1; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MetroTrainType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MetroTrainType forNumber(int value) { + switch (value) { + case 0 : + return M; + case 1 : + return T; + default : + return null; + } + } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public MetroTrainType findValueByNumber(int number) { + return MetroTrainType.forNumber(number); + } + }; - public final int getNumber() { - return value; - } + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.MetroAtsProtos.getDescriptor().getEnumTypes().get(0); + } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MetroTrainType valueOf(int value) { - return forNumber(value); - } + private static final MetroTrainType[] VALUES = values(); - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MetroTrainType forNumber(int value) { - switch (value) { - case 0: return M; - case 1: return T; - default: return null; - } - } + public static MetroTrainType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MetroTrainType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.MetroTrainType) + } + + /** + * Protobuf enum {@code proto.MetroProgress} + */ + public enum MetroProgress implements com.google.protobuf.ProtocolMessageEnum { + /** + * SCHEDULED = 0; + */ + SCHEDULED(0), + /** + * INPROGRESS = 1; + */ + INPROGRESS(1), + /** + * COMPLETED = 2; + */ + COMPLETED(2), + /** + * CANCELLED = 3; + */ + CANCELLED(3),; + + /** + * SCHEDULED = 0; + */ + public static final int SCHEDULED_VALUE = 0; + /** + * INPROGRESS = 1; + */ + public static final int INPROGRESS_VALUE = 1; + /** + * COMPLETED = 2; + */ + public static final int COMPLETED_VALUE = 2; + /** + * CANCELLED = 3; + */ + public static final int CANCELLED_VALUE = 3; + + public final int getNumber() { + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MetroProgress valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MetroProgress forNumber(int value) { + switch (value) { + case 0 : + return SCHEDULED; + case 1 : + return INPROGRESS; + case 2 : + return COMPLETED; + case 3 : + return CANCELLED; + default : + return null; + } + } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MetroTrainType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MetroTrainType findValueByNumber(int number) { - return MetroTrainType.forNumber(number); + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + public MetroProgress findValueByNumber(int number) { + return MetroProgress.forNumber(number); } - }; + }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.MetroAtsProtos.getDescriptor().getEnumTypes().get(0); - } + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.MetroAtsProtos.getDescriptor().getEnumTypes().get(1); + } - private static final MetroTrainType[] VALUES = values(); + private static final MetroProgress[] VALUES = values(); - public static MetroTrainType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; + public static MetroProgress valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MetroProgress(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:proto.MetroProgress) + } + + public interface MetroStopEstimateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.MetroStopEstimate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Fields from mqtt-pulsar-gateway
+         * 
+ * + * required string station = 1; + * @return Whether the station field is set. + */ + boolean hasStation(); + /** + *
+         * Fields from mqtt-pulsar-gateway
+         * 
+ * + * required string station = 1; + * @return The station. + */ + java.lang.String getStation(); + /** + *
+         * Fields from mqtt-pulsar-gateway
+         * 
+ * + * required string station = 1; + * @return The bytes for station. + */ + com.google.protobuf.ByteString getStationBytes(); + + /** + * required string platform = 2; + * @return Whether the platform field is set. + */ + boolean hasPlatform(); + /** + * required string platform = 2; + * @return The platform. + */ + java.lang.String getPlatform(); + /** + * required string platform = 2; + * @return The bytes for platform. + */ + com.google.protobuf.ByteString getPlatformBytes(); + + /** + * required string arrival_time_planned = 3; + * @return Whether the arrivalTimePlanned field is set. + */ + boolean hasArrivalTimePlanned(); + /** + * required string arrival_time_planned = 3; + * @return The arrivalTimePlanned. + */ + java.lang.String getArrivalTimePlanned(); + /** + * required string arrival_time_planned = 3; + * @return The bytes for arrivalTimePlanned. + */ + com.google.protobuf.ByteString getArrivalTimePlannedBytes(); + + /** + * optional string arrival_time_forecast = 4; + * @return Whether the arrivalTimeForecast field is set. + */ + boolean hasArrivalTimeForecast(); + /** + * optional string arrival_time_forecast = 4; + * @return The arrivalTimeForecast. + */ + java.lang.String getArrivalTimeForecast(); + /** + * optional string arrival_time_forecast = 4; + * @return The bytes for arrivalTimeForecast. + */ + com.google.protobuf.ByteString getArrivalTimeForecastBytes(); + + /** + * optional string arrival_time_measured = 5; + * @return Whether the arrivalTimeMeasured field is set. + */ + boolean hasArrivalTimeMeasured(); + /** + * optional string arrival_time_measured = 5; + * @return The arrivalTimeMeasured. + */ + java.lang.String getArrivalTimeMeasured(); + /** + * optional string arrival_time_measured = 5; + * @return The bytes for arrivalTimeMeasured. + */ + com.google.protobuf.ByteString getArrivalTimeMeasuredBytes(); + + /** + * required string departure_time_planned = 6; + * @return Whether the departureTimePlanned field is set. + */ + boolean hasDepartureTimePlanned(); + /** + * required string departure_time_planned = 6; + * @return The departureTimePlanned. + */ + java.lang.String getDepartureTimePlanned(); + /** + * required string departure_time_planned = 6; + * @return The bytes for departureTimePlanned. + */ + com.google.protobuf.ByteString getDepartureTimePlannedBytes(); + + /** + * optional string departure_time_forecast = 7; + * @return Whether the departureTimeForecast field is set. + */ + boolean hasDepartureTimeForecast(); + /** + * optional string departure_time_forecast = 7; + * @return The departureTimeForecast. + */ + java.lang.String getDepartureTimeForecast(); + /** + * optional string departure_time_forecast = 7; + * @return The bytes for departureTimeForecast. + */ + com.google.protobuf.ByteString getDepartureTimeForecastBytes(); + + /** + * optional string departure_time_measured = 8; + * @return Whether the departureTimeMeasured field is set. + */ + boolean hasDepartureTimeMeasured(); + /** + * optional string departure_time_measured = 8; + * @return The departureTimeMeasured. + */ + java.lang.String getDepartureTimeMeasured(); + /** + * optional string departure_time_measured = 8; + * @return The bytes for departureTimeMeasured. + */ + com.google.protobuf.ByteString getDepartureTimeMeasuredBytes(); + + /** + * required string source = 9; + * @return Whether the source field is set. + */ + boolean hasSource(); + /** + * required string source = 9; + * @return The source. + */ + java.lang.String getSource(); + /** + * required string source = 9; + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); + + /** + * required string stop_number = 10; + * @return Whether the stopNumber field is set. + */ + boolean hasStopNumber(); + /** + * required string stop_number = 10; + * @return The stopNumber. + */ + java.lang.String getStopNumber(); + /** + * required string stop_number = 10; + * @return The bytes for stopNumber. + */ + com.google.protobuf.ByteString getStopNumberBytes(); + + /** + * optional .proto.MetroProgress row_progress = 11; + * @return Whether the rowProgress field is set. + */ + boolean hasRowProgress(); + /** + * optional .proto.MetroProgress row_progress = 11; + * @return The rowProgress. + */ + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress getRowProgress(); } + /** + * Protobuf type {@code proto.MetroStopEstimate} + */ + public static final class MetroStopEstimate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.MetroStopEstimate) + MetroStopEstimateOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetroStopEstimate.newBuilder() to construct. + private MetroStopEstimate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MetroStopEstimate() { + station_ = ""; + platform_ = ""; + arrivalTimePlanned_ = ""; + arrivalTimeForecast_ = ""; + arrivalTimeMeasured_ = ""; + departureTimePlanned_ = ""; + departureTimeForecast_ = ""; + departureTimeMeasured_ = ""; + source_ = ""; + stopNumber_ = ""; + rowProgress_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetroStopEstimate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroStopEstimate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroStopEstimate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.class, + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder.class); + } + + private int bitField0_; + public static final int STATION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object station_ = ""; + /** + *
+         * Fields from mqtt-pulsar-gateway
+         * 
+ * + * required string station = 1; + * @return Whether the station field is set. + */ + @java.lang.Override + public boolean hasStation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Fields from mqtt-pulsar-gateway
+         * 
+ * + * required string station = 1; + * @return The station. + */ + @java.lang.Override + public java.lang.String getStation() { + java.lang.Object ref = station_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + station_ = s; + } + return s; + } + } + /** + *
+         * Fields from mqtt-pulsar-gateway
+         * 
+ * + * required string station = 1; + * @return The bytes for station. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStationBytes() { + java.lang.Object ref = station_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + station_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private final int value; - - private MetroTrainType(int value) { - this.value = value; - } + public static final int PLATFORM_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object platform_ = ""; + /** + * required string platform = 2; + * @return Whether the platform field is set. + */ + @java.lang.Override + public boolean hasPlatform() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required string platform = 2; + * @return The platform. + */ + @java.lang.Override + public java.lang.String getPlatform() { + java.lang.Object ref = platform_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + platform_ = s; + } + return s; + } + } + /** + * required string platform = 2; + * @return The bytes for platform. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlatformBytes() { + java.lang.Object ref = platform_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + platform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(enum_scope:proto.MetroTrainType) - } + public static final int ARRIVAL_TIME_PLANNED_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object arrivalTimePlanned_ = ""; + /** + * required string arrival_time_planned = 3; + * @return Whether the arrivalTimePlanned field is set. + */ + @java.lang.Override + public boolean hasArrivalTimePlanned() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required string arrival_time_planned = 3; + * @return The arrivalTimePlanned. + */ + @java.lang.Override + public java.lang.String getArrivalTimePlanned() { + java.lang.Object ref = arrivalTimePlanned_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + arrivalTimePlanned_ = s; + } + return s; + } + } + /** + * required string arrival_time_planned = 3; + * @return The bytes for arrivalTimePlanned. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArrivalTimePlannedBytes() { + java.lang.Object ref = arrivalTimePlanned_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + arrivalTimePlanned_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * Protobuf enum {@code proto.MetroProgress} - */ - public enum MetroProgress - implements com.google.protobuf.ProtocolMessageEnum { - /** - * SCHEDULED = 0; - */ - SCHEDULED(0), - /** - * INPROGRESS = 1; - */ - INPROGRESS(1), - /** - * COMPLETED = 2; - */ - COMPLETED(2), - /** - * CANCELLED = 3; - */ - CANCELLED(3), - ; + public static final int ARRIVAL_TIME_FORECAST_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object arrivalTimeForecast_ = ""; + /** + * optional string arrival_time_forecast = 4; + * @return Whether the arrivalTimeForecast field is set. + */ + @java.lang.Override + public boolean hasArrivalTimeForecast() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string arrival_time_forecast = 4; + * @return The arrivalTimeForecast. + */ + @java.lang.Override + public java.lang.String getArrivalTimeForecast() { + java.lang.Object ref = arrivalTimeForecast_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + arrivalTimeForecast_ = s; + } + return s; + } + } + /** + * optional string arrival_time_forecast = 4; + * @return The bytes for arrivalTimeForecast. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArrivalTimeForecastBytes() { + java.lang.Object ref = arrivalTimeForecast_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + arrivalTimeForecast_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * SCHEDULED = 0; - */ - public static final int SCHEDULED_VALUE = 0; - /** - * INPROGRESS = 1; - */ - public static final int INPROGRESS_VALUE = 1; - /** - * COMPLETED = 2; - */ - public static final int COMPLETED_VALUE = 2; - /** - * CANCELLED = 3; - */ - public static final int CANCELLED_VALUE = 3; + public static final int ARRIVAL_TIME_MEASURED_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object arrivalTimeMeasured_ = ""; + /** + * optional string arrival_time_measured = 5; + * @return Whether the arrivalTimeMeasured field is set. + */ + @java.lang.Override + public boolean hasArrivalTimeMeasured() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string arrival_time_measured = 5; + * @return The arrivalTimeMeasured. + */ + @java.lang.Override + public java.lang.String getArrivalTimeMeasured() { + java.lang.Object ref = arrivalTimeMeasured_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + arrivalTimeMeasured_ = s; + } + return s; + } + } + /** + * optional string arrival_time_measured = 5; + * @return The bytes for arrivalTimeMeasured. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArrivalTimeMeasuredBytes() { + java.lang.Object ref = arrivalTimeMeasured_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + arrivalTimeMeasured_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int DEPARTURE_TIME_PLANNED_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object departureTimePlanned_ = ""; + /** + * required string departure_time_planned = 6; + * @return Whether the departureTimePlanned field is set. + */ + @java.lang.Override + public boolean hasDepartureTimePlanned() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * required string departure_time_planned = 6; + * @return The departureTimePlanned. + */ + @java.lang.Override + public java.lang.String getDepartureTimePlanned() { + java.lang.Object ref = departureTimePlanned_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + departureTimePlanned_ = s; + } + return s; + } + } + /** + * required string departure_time_planned = 6; + * @return The bytes for departureTimePlanned. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDepartureTimePlannedBytes() { + java.lang.Object ref = departureTimePlanned_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + departureTimePlanned_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public final int getNumber() { - return value; - } + public static final int DEPARTURE_TIME_FORECAST_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object departureTimeForecast_ = ""; + /** + * optional string departure_time_forecast = 7; + * @return Whether the departureTimeForecast field is set. + */ + @java.lang.Override + public boolean hasDepartureTimeForecast() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional string departure_time_forecast = 7; + * @return The departureTimeForecast. + */ + @java.lang.Override + public java.lang.String getDepartureTimeForecast() { + java.lang.Object ref = departureTimeForecast_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + departureTimeForecast_ = s; + } + return s; + } + } + /** + * optional string departure_time_forecast = 7; + * @return The bytes for departureTimeForecast. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDepartureTimeForecastBytes() { + java.lang.Object ref = departureTimeForecast_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + departureTimeForecast_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MetroProgress valueOf(int value) { - return forNumber(value); - } + public static final int DEPARTURE_TIME_MEASURED_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile java.lang.Object departureTimeMeasured_ = ""; + /** + * optional string departure_time_measured = 8; + * @return Whether the departureTimeMeasured field is set. + */ + @java.lang.Override + public boolean hasDepartureTimeMeasured() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional string departure_time_measured = 8; + * @return The departureTimeMeasured. + */ + @java.lang.Override + public java.lang.String getDepartureTimeMeasured() { + java.lang.Object ref = departureTimeMeasured_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + departureTimeMeasured_ = s; + } + return s; + } + } + /** + * optional string departure_time_measured = 8; + * @return The bytes for departureTimeMeasured. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDepartureTimeMeasuredBytes() { + java.lang.Object ref = departureTimeMeasured_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + departureTimeMeasured_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MetroProgress forNumber(int value) { - switch (value) { - case 0: return SCHEDULED; - case 1: return INPROGRESS; - case 2: return COMPLETED; - case 3: return CANCELLED; - default: return null; - } - } + public static final int SOURCE_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + /** + * required string source = 9; + * @return Whether the source field is set. + */ + @java.lang.Override + public boolean hasSource() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * required string source = 9; + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + source_ = s; + } + return s; + } + } + /** + * required string source = 9; + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MetroProgress> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MetroProgress findValueByNumber(int number) { - return MetroProgress.forNumber(number); + public static final int STOP_NUMBER_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object stopNumber_ = ""; + /** + * required string stop_number = 10; + * @return Whether the stopNumber field is set. + */ + @java.lang.Override + public boolean hasStopNumber() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * required string stop_number = 10; + * @return The stopNumber. + */ + @java.lang.Override + public java.lang.String getStopNumber() { + java.lang.Object ref = stopNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopNumber_ = s; + } + return s; + } + } + /** + * required string stop_number = 10; + * @return The bytes for stopNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStopNumberBytes() { + java.lang.Object ref = stopNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stopNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - }; + } - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.MetroAtsProtos.getDescriptor().getEnumTypes().get(1); - } + public static final int ROW_PROGRESS_FIELD_NUMBER = 11; + private int rowProgress_ = 0; + /** + * optional .proto.MetroProgress row_progress = 11; + * @return Whether the rowProgress field is set. + */ + @java.lang.Override + public boolean hasRowProgress() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional .proto.MetroProgress row_progress = 11; + * @return The rowProgress. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress getRowProgress() { + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress result = fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress + .forNumber(rowProgress_); + return result == null ? fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress.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 (!hasStation()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlatform()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasArrivalTimePlanned()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasDepartureTimePlanned()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasSource()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStopNumber()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } - private static final MetroProgress[] VALUES = values(); + @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, station_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, platform_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, arrivalTimePlanned_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, arrivalTimeForecast_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, arrivalTimeMeasured_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, departureTimePlanned_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, departureTimeForecast_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, departureTimeMeasured_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, source_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, stopNumber_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeEnum(11, rowProgress_); + } + getUnknownFields().writeTo(output); + } - public static MetroProgress valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - private final int value; + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, station_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, platform_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, arrivalTimePlanned_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, arrivalTimeForecast_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, arrivalTimeMeasured_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, departureTimePlanned_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, departureTimeForecast_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, departureTimeMeasured_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, source_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, stopNumber_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, rowProgress_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private MetroProgress(int value) { - this.value = value; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate other = (fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate) obj; - // @@protoc_insertion_point(enum_scope:proto.MetroProgress) - } + if (hasStation() != other.hasStation()) + return false; + if (hasStation()) { + if (!getStation().equals(other.getStation())) + return false; + } + if (hasPlatform() != other.hasPlatform()) + return false; + if (hasPlatform()) { + if (!getPlatform().equals(other.getPlatform())) + return false; + } + if (hasArrivalTimePlanned() != other.hasArrivalTimePlanned()) + return false; + if (hasArrivalTimePlanned()) { + if (!getArrivalTimePlanned().equals(other.getArrivalTimePlanned())) + return false; + } + if (hasArrivalTimeForecast() != other.hasArrivalTimeForecast()) + return false; + if (hasArrivalTimeForecast()) { + if (!getArrivalTimeForecast().equals(other.getArrivalTimeForecast())) + return false; + } + if (hasArrivalTimeMeasured() != other.hasArrivalTimeMeasured()) + return false; + if (hasArrivalTimeMeasured()) { + if (!getArrivalTimeMeasured().equals(other.getArrivalTimeMeasured())) + return false; + } + if (hasDepartureTimePlanned() != other.hasDepartureTimePlanned()) + return false; + if (hasDepartureTimePlanned()) { + if (!getDepartureTimePlanned().equals(other.getDepartureTimePlanned())) + return false; + } + if (hasDepartureTimeForecast() != other.hasDepartureTimeForecast()) + return false; + if (hasDepartureTimeForecast()) { + if (!getDepartureTimeForecast().equals(other.getDepartureTimeForecast())) + return false; + } + if (hasDepartureTimeMeasured() != other.hasDepartureTimeMeasured()) + return false; + if (hasDepartureTimeMeasured()) { + if (!getDepartureTimeMeasured().equals(other.getDepartureTimeMeasured())) + return false; + } + if (hasSource() != other.hasSource()) + return false; + if (hasSource()) { + if (!getSource().equals(other.getSource())) + return false; + } + if (hasStopNumber() != other.hasStopNumber()) + return false; + if (hasStopNumber()) { + if (!getStopNumber().equals(other.getStopNumber())) + return false; + } + if (hasRowProgress() != other.hasRowProgress()) + return false; + if (hasRowProgress()) { + if (rowProgress_ != other.rowProgress_) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } - public interface MetroStopEstimateOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.MetroStopEstimate) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStation()) { + hash = (37 * hash) + STATION_FIELD_NUMBER; + hash = (53 * hash) + getStation().hashCode(); + } + if (hasPlatform()) { + hash = (37 * hash) + PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + getPlatform().hashCode(); + } + if (hasArrivalTimePlanned()) { + hash = (37 * hash) + ARRIVAL_TIME_PLANNED_FIELD_NUMBER; + hash = (53 * hash) + getArrivalTimePlanned().hashCode(); + } + if (hasArrivalTimeForecast()) { + hash = (37 * hash) + ARRIVAL_TIME_FORECAST_FIELD_NUMBER; + hash = (53 * hash) + getArrivalTimeForecast().hashCode(); + } + if (hasArrivalTimeMeasured()) { + hash = (37 * hash) + ARRIVAL_TIME_MEASURED_FIELD_NUMBER; + hash = (53 * hash) + getArrivalTimeMeasured().hashCode(); + } + if (hasDepartureTimePlanned()) { + hash = (37 * hash) + DEPARTURE_TIME_PLANNED_FIELD_NUMBER; + hash = (53 * hash) + getDepartureTimePlanned().hashCode(); + } + if (hasDepartureTimeForecast()) { + hash = (37 * hash) + DEPARTURE_TIME_FORECAST_FIELD_NUMBER; + hash = (53 * hash) + getDepartureTimeForecast().hashCode(); + } + if (hasDepartureTimeMeasured()) { + hash = (37 * hash) + DEPARTURE_TIME_MEASURED_FIELD_NUMBER; + hash = (53 * hash) + getDepartureTimeMeasured().hashCode(); + } + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + if (hasStopNumber()) { + hash = (37 * hash) + STOP_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getStopNumber().hashCode(); + } + if (hasRowProgress()) { + hash = (37 * hash) + ROW_PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + rowProgress_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.MetroStopEstimate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.MetroStopEstimate) + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroStopEstimate_descriptor; + } - /** - *
-     * Fields from mqtt-pulsar-gateway
-     * 
- * - * required string station = 1; - * @return Whether the station field is set. - */ - boolean hasStation(); - /** - *
-     * Fields from mqtt-pulsar-gateway
-     * 
- * - * required string station = 1; - * @return The station. - */ - java.lang.String getStation(); - /** - *
-     * Fields from mqtt-pulsar-gateway
-     * 
- * - * required string station = 1; - * @return The bytes for station. - */ - com.google.protobuf.ByteString - getStationBytes(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroStopEstimate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.class, + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder.class); + } - /** - * required string platform = 2; - * @return Whether the platform field is set. - */ - boolean hasPlatform(); - /** - * required string platform = 2; - * @return The platform. - */ - java.lang.String getPlatform(); - /** - * required string platform = 2; - * @return The bytes for platform. - */ - com.google.protobuf.ByteString - getPlatformBytes(); + // Construct using fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.newBuilder() + private Builder() { - /** - * required string arrival_time_planned = 3; - * @return Whether the arrivalTimePlanned field is set. - */ - boolean hasArrivalTimePlanned(); - /** - * required string arrival_time_planned = 3; - * @return The arrivalTimePlanned. - */ - java.lang.String getArrivalTimePlanned(); - /** - * required string arrival_time_planned = 3; - * @return The bytes for arrivalTimePlanned. - */ - com.google.protobuf.ByteString - getArrivalTimePlannedBytes(); + } - /** - * optional string arrival_time_forecast = 4; - * @return Whether the arrivalTimeForecast field is set. - */ - boolean hasArrivalTimeForecast(); - /** - * optional string arrival_time_forecast = 4; - * @return The arrivalTimeForecast. - */ - java.lang.String getArrivalTimeForecast(); - /** - * optional string arrival_time_forecast = 4; - * @return The bytes for arrivalTimeForecast. - */ - com.google.protobuf.ByteString - getArrivalTimeForecastBytes(); + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - /** - * optional string arrival_time_measured = 5; - * @return Whether the arrivalTimeMeasured field is set. - */ - boolean hasArrivalTimeMeasured(); - /** - * optional string arrival_time_measured = 5; - * @return The arrivalTimeMeasured. - */ - java.lang.String getArrivalTimeMeasured(); - /** - * optional string arrival_time_measured = 5; - * @return The bytes for arrivalTimeMeasured. - */ - com.google.protobuf.ByteString - getArrivalTimeMeasuredBytes(); + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + station_ = ""; + platform_ = ""; + arrivalTimePlanned_ = ""; + arrivalTimeForecast_ = ""; + arrivalTimeMeasured_ = ""; + departureTimePlanned_ = ""; + departureTimeForecast_ = ""; + departureTimeMeasured_ = ""; + source_ = ""; + stopNumber_ = ""; + rowProgress_ = 0; + return this; + } - /** - * required string departure_time_planned = 6; - * @return Whether the departureTimePlanned field is set. - */ - boolean hasDepartureTimePlanned(); - /** - * required string departure_time_planned = 6; - * @return The departureTimePlanned. - */ - java.lang.String getDepartureTimePlanned(); - /** - * required string departure_time_planned = 6; - * @return The bytes for departureTimePlanned. - */ - com.google.protobuf.ByteString - getDepartureTimePlannedBytes(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroStopEstimate_descriptor; + } - /** - * optional string departure_time_forecast = 7; - * @return Whether the departureTimeForecast field is set. - */ - boolean hasDepartureTimeForecast(); - /** - * optional string departure_time_forecast = 7; - * @return The departureTimeForecast. - */ - java.lang.String getDepartureTimeForecast(); - /** - * optional string departure_time_forecast = 7; - * @return The bytes for departureTimeForecast. - */ - com.google.protobuf.ByteString - getDepartureTimeForecastBytes(); + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.getDefaultInstance(); + } - /** - * optional string departure_time_measured = 8; - * @return Whether the departureTimeMeasured field is set. - */ - boolean hasDepartureTimeMeasured(); - /** - * optional string departure_time_measured = 8; - * @return The departureTimeMeasured. - */ - java.lang.String getDepartureTimeMeasured(); - /** - * optional string departure_time_measured = 8; - * @return The bytes for departureTimeMeasured. - */ - com.google.protobuf.ByteString - getDepartureTimeMeasuredBytes(); + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate build() { + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * required string source = 9; - * @return Whether the source field is set. - */ - boolean hasSource(); - /** - * required string source = 9; - * @return The source. - */ - java.lang.String getSource(); - /** - * required string source = 9; - * @return The bytes for source. - */ - com.google.protobuf.ByteString - getSourceBytes(); - - /** - * required string stop_number = 10; - * @return Whether the stopNumber field is set. - */ - boolean hasStopNumber(); - /** - * required string stop_number = 10; - * @return The stopNumber. - */ - java.lang.String getStopNumber(); - /** - * required string stop_number = 10; - * @return The bytes for stopNumber. - */ - com.google.protobuf.ByteString - getStopNumberBytes(); - - /** - * optional .proto.MetroProgress row_progress = 11; - * @return Whether the rowProgress field is set. - */ - boolean hasRowProgress(); - /** - * optional .proto.MetroProgress row_progress = 11; - * @return The rowProgress. - */ - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress getRowProgress(); - } - /** - * Protobuf type {@code proto.MetroStopEstimate} - */ - public static final class MetroStopEstimate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.MetroStopEstimate) - MetroStopEstimateOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetroStopEstimate.newBuilder() to construct. - private MetroStopEstimate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MetroStopEstimate() { - station_ = ""; - platform_ = ""; - arrivalTimePlanned_ = ""; - arrivalTimeForecast_ = ""; - arrivalTimeMeasured_ = ""; - departureTimePlanned_ = ""; - departureTimeForecast_ = ""; - departureTimeMeasured_ = ""; - source_ = ""; - stopNumber_ = ""; - rowProgress_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MetroStopEstimate(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroStopEstimate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroStopEstimate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.class, fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder.class); - } - - private int bitField0_; - public static final int STATION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object station_ = ""; - /** - *
-     * Fields from mqtt-pulsar-gateway
-     * 
- * - * required string station = 1; - * @return Whether the station field is set. - */ - @java.lang.Override - public boolean hasStation() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Fields from mqtt-pulsar-gateway
-     * 
- * - * required string station = 1; - * @return The station. - */ - @java.lang.Override - public java.lang.String getStation() { - java.lang.Object ref = station_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - station_ = s; - } - return s; - } - } - /** - *
-     * Fields from mqtt-pulsar-gateway
-     * 
- * - * required string station = 1; - * @return The bytes for station. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStationBytes() { - java.lang.Object ref = station_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - station_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PLATFORM_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object platform_ = ""; - /** - * required string platform = 2; - * @return Whether the platform field is set. - */ - @java.lang.Override - public boolean hasPlatform() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required string platform = 2; - * @return The platform. - */ - @java.lang.Override - public java.lang.String getPlatform() { - java.lang.Object ref = platform_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - platform_ = s; - } - return s; - } - } - /** - * required string platform = 2; - * @return The bytes for platform. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPlatformBytes() { - java.lang.Object ref = platform_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - platform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARRIVAL_TIME_PLANNED_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object arrivalTimePlanned_ = ""; - /** - * required string arrival_time_planned = 3; - * @return Whether the arrivalTimePlanned field is set. - */ - @java.lang.Override - public boolean hasArrivalTimePlanned() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required string arrival_time_planned = 3; - * @return The arrivalTimePlanned. - */ - @java.lang.Override - public java.lang.String getArrivalTimePlanned() { - java.lang.Object ref = arrivalTimePlanned_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - arrivalTimePlanned_ = s; - } - return s; - } - } - /** - * required string arrival_time_planned = 3; - * @return The bytes for arrivalTimePlanned. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getArrivalTimePlannedBytes() { - java.lang.Object ref = arrivalTimePlanned_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - arrivalTimePlanned_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARRIVAL_TIME_FORECAST_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object arrivalTimeForecast_ = ""; - /** - * optional string arrival_time_forecast = 4; - * @return Whether the arrivalTimeForecast field is set. - */ - @java.lang.Override - public boolean hasArrivalTimeForecast() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional string arrival_time_forecast = 4; - * @return The arrivalTimeForecast. - */ - @java.lang.Override - public java.lang.String getArrivalTimeForecast() { - java.lang.Object ref = arrivalTimeForecast_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - arrivalTimeForecast_ = s; - } - return s; - } - } - /** - * optional string arrival_time_forecast = 4; - * @return The bytes for arrivalTimeForecast. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getArrivalTimeForecastBytes() { - java.lang.Object ref = arrivalTimeForecast_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - arrivalTimeForecast_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARRIVAL_TIME_MEASURED_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object arrivalTimeMeasured_ = ""; - /** - * optional string arrival_time_measured = 5; - * @return Whether the arrivalTimeMeasured field is set. - */ - @java.lang.Override - public boolean hasArrivalTimeMeasured() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional string arrival_time_measured = 5; - * @return The arrivalTimeMeasured. - */ - @java.lang.Override - public java.lang.String getArrivalTimeMeasured() { - java.lang.Object ref = arrivalTimeMeasured_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - arrivalTimeMeasured_ = s; - } - return s; - } - } - /** - * optional string arrival_time_measured = 5; - * @return The bytes for arrivalTimeMeasured. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getArrivalTimeMeasuredBytes() { - java.lang.Object ref = arrivalTimeMeasured_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - arrivalTimeMeasured_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPARTURE_TIME_PLANNED_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object departureTimePlanned_ = ""; - /** - * required string departure_time_planned = 6; - * @return Whether the departureTimePlanned field is set. - */ - @java.lang.Override - public boolean hasDepartureTimePlanned() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * required string departure_time_planned = 6; - * @return The departureTimePlanned. - */ - @java.lang.Override - public java.lang.String getDepartureTimePlanned() { - java.lang.Object ref = departureTimePlanned_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - departureTimePlanned_ = s; - } - return s; - } - } - /** - * required string departure_time_planned = 6; - * @return The bytes for departureTimePlanned. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDepartureTimePlannedBytes() { - java.lang.Object ref = departureTimePlanned_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - departureTimePlanned_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPARTURE_TIME_FORECAST_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private volatile java.lang.Object departureTimeForecast_ = ""; - /** - * optional string departure_time_forecast = 7; - * @return Whether the departureTimeForecast field is set. - */ - @java.lang.Override - public boolean hasDepartureTimeForecast() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * optional string departure_time_forecast = 7; - * @return The departureTimeForecast. - */ - @java.lang.Override - public java.lang.String getDepartureTimeForecast() { - java.lang.Object ref = departureTimeForecast_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - departureTimeForecast_ = s; - } - return s; - } - } - /** - * optional string departure_time_forecast = 7; - * @return The bytes for departureTimeForecast. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDepartureTimeForecastBytes() { - java.lang.Object ref = departureTimeForecast_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - departureTimeForecast_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPARTURE_TIME_MEASURED_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private volatile java.lang.Object departureTimeMeasured_ = ""; - /** - * optional string departure_time_measured = 8; - * @return Whether the departureTimeMeasured field is set. - */ - @java.lang.Override - public boolean hasDepartureTimeMeasured() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional string departure_time_measured = 8; - * @return The departureTimeMeasured. - */ - @java.lang.Override - public java.lang.String getDepartureTimeMeasured() { - java.lang.Object ref = departureTimeMeasured_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - departureTimeMeasured_ = s; - } - return s; - } - } - /** - * optional string departure_time_measured = 8; - * @return The bytes for departureTimeMeasured. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDepartureTimeMeasuredBytes() { - java.lang.Object ref = departureTimeMeasured_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - departureTimeMeasured_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SOURCE_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private volatile java.lang.Object source_ = ""; - /** - * required string source = 9; - * @return Whether the source field is set. - */ - @java.lang.Override - public boolean hasSource() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * required string source = 9; - * @return The source. - */ - @java.lang.Override - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - source_ = s; - } - return s; - } - } - /** - * required string source = 9; - * @return The bytes for source. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STOP_NUMBER_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private volatile java.lang.Object stopNumber_ = ""; - /** - * required string stop_number = 10; - * @return Whether the stopNumber field is set. - */ - @java.lang.Override - public boolean hasStopNumber() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * required string stop_number = 10; - * @return The stopNumber. - */ - @java.lang.Override - public java.lang.String getStopNumber() { - java.lang.Object ref = stopNumber_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopNumber_ = s; - } - return s; - } - } - /** - * required string stop_number = 10; - * @return The bytes for stopNumber. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStopNumberBytes() { - java.lang.Object ref = stopNumber_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROW_PROGRESS_FIELD_NUMBER = 11; - private int rowProgress_ = 0; - /** - * optional .proto.MetroProgress row_progress = 11; - * @return Whether the rowProgress field is set. - */ - @java.lang.Override public boolean hasRowProgress() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * optional .proto.MetroProgress row_progress = 11; - * @return The rowProgress. - */ - @java.lang.Override public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress getRowProgress() { - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress result = fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress.forNumber(rowProgress_); - return result == null ? fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress.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 (!hasStation()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlatform()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasArrivalTimePlanned()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasDepartureTimePlanned()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasSource()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStopNumber()) { - 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, station_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, platform_); - } - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, arrivalTimePlanned_); - } - if (((bitField0_ & 0x00000008) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, arrivalTimeForecast_); - } - if (((bitField0_ & 0x00000010) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, arrivalTimeMeasured_); - } - if (((bitField0_ & 0x00000020) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, departureTimePlanned_); - } - if (((bitField0_ & 0x00000040) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, departureTimeForecast_); - } - if (((bitField0_ & 0x00000080) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, departureTimeMeasured_); - } - if (((bitField0_ & 0x00000100) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, source_); - } - if (((bitField0_ & 0x00000200) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, stopNumber_); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeEnum(11, rowProgress_); - } - 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, station_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, platform_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, arrivalTimePlanned_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, arrivalTimeForecast_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, arrivalTimeMeasured_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, departureTimePlanned_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, departureTimeForecast_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, departureTimeMeasured_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, source_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, stopNumber_); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, rowProgress_); - } - 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 fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate other = (fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate) obj; - - if (hasStation() != other.hasStation()) return false; - if (hasStation()) { - if (!getStation() - .equals(other.getStation())) return false; - } - if (hasPlatform() != other.hasPlatform()) return false; - if (hasPlatform()) { - if (!getPlatform() - .equals(other.getPlatform())) return false; - } - if (hasArrivalTimePlanned() != other.hasArrivalTimePlanned()) return false; - if (hasArrivalTimePlanned()) { - if (!getArrivalTimePlanned() - .equals(other.getArrivalTimePlanned())) return false; - } - if (hasArrivalTimeForecast() != other.hasArrivalTimeForecast()) return false; - if (hasArrivalTimeForecast()) { - if (!getArrivalTimeForecast() - .equals(other.getArrivalTimeForecast())) return false; - } - if (hasArrivalTimeMeasured() != other.hasArrivalTimeMeasured()) return false; - if (hasArrivalTimeMeasured()) { - if (!getArrivalTimeMeasured() - .equals(other.getArrivalTimeMeasured())) return false; - } - if (hasDepartureTimePlanned() != other.hasDepartureTimePlanned()) return false; - if (hasDepartureTimePlanned()) { - if (!getDepartureTimePlanned() - .equals(other.getDepartureTimePlanned())) return false; - } - if (hasDepartureTimeForecast() != other.hasDepartureTimeForecast()) return false; - if (hasDepartureTimeForecast()) { - if (!getDepartureTimeForecast() - .equals(other.getDepartureTimeForecast())) return false; - } - if (hasDepartureTimeMeasured() != other.hasDepartureTimeMeasured()) return false; - if (hasDepartureTimeMeasured()) { - if (!getDepartureTimeMeasured() - .equals(other.getDepartureTimeMeasured())) return false; - } - if (hasSource() != other.hasSource()) return false; - if (hasSource()) { - if (!getSource() - .equals(other.getSource())) return false; - } - if (hasStopNumber() != other.hasStopNumber()) return false; - if (hasStopNumber()) { - if (!getStopNumber() - .equals(other.getStopNumber())) return false; - } - if (hasRowProgress() != other.hasRowProgress()) return false; - if (hasRowProgress()) { - if (rowProgress_ != other.rowProgress_) 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 (hasStation()) { - hash = (37 * hash) + STATION_FIELD_NUMBER; - hash = (53 * hash) + getStation().hashCode(); - } - if (hasPlatform()) { - hash = (37 * hash) + PLATFORM_FIELD_NUMBER; - hash = (53 * hash) + getPlatform().hashCode(); - } - if (hasArrivalTimePlanned()) { - hash = (37 * hash) + ARRIVAL_TIME_PLANNED_FIELD_NUMBER; - hash = (53 * hash) + getArrivalTimePlanned().hashCode(); - } - if (hasArrivalTimeForecast()) { - hash = (37 * hash) + ARRIVAL_TIME_FORECAST_FIELD_NUMBER; - hash = (53 * hash) + getArrivalTimeForecast().hashCode(); - } - if (hasArrivalTimeMeasured()) { - hash = (37 * hash) + ARRIVAL_TIME_MEASURED_FIELD_NUMBER; - hash = (53 * hash) + getArrivalTimeMeasured().hashCode(); - } - if (hasDepartureTimePlanned()) { - hash = (37 * hash) + DEPARTURE_TIME_PLANNED_FIELD_NUMBER; - hash = (53 * hash) + getDepartureTimePlanned().hashCode(); - } - if (hasDepartureTimeForecast()) { - hash = (37 * hash) + DEPARTURE_TIME_FORECAST_FIELD_NUMBER; - hash = (53 * hash) + getDepartureTimeForecast().hashCode(); - } - if (hasDepartureTimeMeasured()) { - hash = (37 * hash) + DEPARTURE_TIME_MEASURED_FIELD_NUMBER; - hash = (53 * hash) + getDepartureTimeMeasured().hashCode(); - } - if (hasSource()) { - hash = (37 * hash) + SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getSource().hashCode(); - } - if (hasStopNumber()) { - hash = (37 * hash) + STOP_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getStopNumber().hashCode(); - } - if (hasRowProgress()) { - hash = (37 * hash) + ROW_PROGRESS_FIELD_NUMBER; - hash = (53 * hash) + rowProgress_; - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate buildPartial() { + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate result = new fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + private void buildPartial0(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.station_ = station_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.platform_ = platform_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.arrivalTimePlanned_ = arrivalTimePlanned_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.arrivalTimeForecast_ = arrivalTimeForecast_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.arrivalTimeMeasured_ = arrivalTimeMeasured_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.departureTimePlanned_ = departureTimePlanned_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.departureTimeForecast_ = departureTimeForecast_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.departureTimeMeasured_ = departureTimeMeasured_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.source_ = source_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.stopNumber_ = stopNumber_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.rowProgress_ = rowProgress_; + to_bitField0_ |= 0x00000400; + } + result.bitField0_ |= to_bitField0_; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.MetroStopEstimate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.MetroStopEstimate) - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroStopEstimate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroStopEstimate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.class, fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder.class); - } - - // Construct using fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - station_ = ""; - platform_ = ""; - arrivalTimePlanned_ = ""; - arrivalTimeForecast_ = ""; - arrivalTimeMeasured_ = ""; - departureTimePlanned_ = ""; - departureTimeForecast_ = ""; - departureTimeMeasured_ = ""; - source_ = ""; - stopNumber_ = ""; - rowProgress_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroStopEstimate_descriptor; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate build() { - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate buildPartial() { - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate result = new fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.station_ = station_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.platform_ = platform_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.arrivalTimePlanned_ = arrivalTimePlanned_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.arrivalTimeForecast_ = arrivalTimeForecast_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.arrivalTimeMeasured_ = arrivalTimeMeasured_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.departureTimePlanned_ = departureTimePlanned_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.departureTimeForecast_ = departureTimeForecast_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.departureTimeMeasured_ = departureTimeMeasured_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.source_ = source_; - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.stopNumber_ = stopNumber_; - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.rowProgress_ = rowProgress_; - to_bitField0_ |= 0x00000400; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate) { - return mergeFrom((fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate other) { - if (other == fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.getDefaultInstance()) return this; - if (other.hasStation()) { - station_ = other.station_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasPlatform()) { - platform_ = other.platform_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasArrivalTimePlanned()) { - arrivalTimePlanned_ = other.arrivalTimePlanned_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasArrivalTimeForecast()) { - arrivalTimeForecast_ = other.arrivalTimeForecast_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasArrivalTimeMeasured()) { - arrivalTimeMeasured_ = other.arrivalTimeMeasured_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.hasDepartureTimePlanned()) { - departureTimePlanned_ = other.departureTimePlanned_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.hasDepartureTimeForecast()) { - departureTimeForecast_ = other.departureTimeForecast_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (other.hasDepartureTimeMeasured()) { - departureTimeMeasured_ = other.departureTimeMeasured_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (other.hasSource()) { - source_ = other.source_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (other.hasStopNumber()) { - stopNumber_ = other.stopNumber_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (other.hasRowProgress()) { - setRowProgress(other.getRowProgress()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasStation()) { - return false; - } - if (!hasPlatform()) { - return false; - } - if (!hasArrivalTimePlanned()) { - return false; - } - if (!hasDepartureTimePlanned()) { - return false; - } - if (!hasSource()) { - return false; - } - if (!hasStopNumber()) { - 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: { - station_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - platform_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - arrivalTimePlanned_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - arrivalTimeForecast_ = input.readBytes(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - arrivalTimeMeasured_ = input.readBytes(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - departureTimePlanned_ = input.readBytes(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - departureTimeForecast_ = input.readBytes(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - departureTimeMeasured_ = input.readBytes(); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: { - source_ = input.readBytes(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: { - stopNumber_ = input.readBytes(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 88: { - int tmpRaw = input.readEnum(); - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress tmpValue = - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(11, tmpRaw); + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate) { + return mergeFrom((fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate) other); } else { - rowProgress_ = tmpRaw; - bitField0_ |= 0x00000400; - } - break; - } // case 88 - 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 station_ = ""; - /** - *
-       * Fields from mqtt-pulsar-gateway
-       * 
- * - * required string station = 1; - * @return Whether the station field is set. - */ - public boolean hasStation() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Fields from mqtt-pulsar-gateway
-       * 
- * - * required string station = 1; - * @return The station. - */ - public java.lang.String getStation() { - java.lang.Object ref = station_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - station_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Fields from mqtt-pulsar-gateway
-       * 
- * - * required string station = 1; - * @return The bytes for station. - */ - public com.google.protobuf.ByteString - getStationBytes() { - java.lang.Object ref = station_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - station_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Fields from mqtt-pulsar-gateway
-       * 
- * - * required string station = 1; - * @param value The station to set. - * @return This builder for chaining. - */ - public Builder setStation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - station_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Fields from mqtt-pulsar-gateway
-       * 
- * - * required string station = 1; - * @return This builder for chaining. - */ - public Builder clearStation() { - station_ = getDefaultInstance().getStation(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Fields from mqtt-pulsar-gateway
-       * 
- * - * required string station = 1; - * @param value The bytes for station to set. - * @return This builder for chaining. - */ - public Builder setStationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - station_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object platform_ = ""; - /** - * required string platform = 2; - * @return Whether the platform field is set. - */ - public boolean hasPlatform() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required string platform = 2; - * @return The platform. - */ - public java.lang.String getPlatform() { - java.lang.Object ref = platform_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - platform_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string platform = 2; - * @return The bytes for platform. - */ - public com.google.protobuf.ByteString - getPlatformBytes() { - java.lang.Object ref = platform_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - platform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string platform = 2; - * @param value The platform to set. - * @return This builder for chaining. - */ - public Builder setPlatform( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - platform_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * required string platform = 2; - * @return This builder for chaining. - */ - public Builder clearPlatform() { - platform_ = getDefaultInstance().getPlatform(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * required string platform = 2; - * @param value The bytes for platform to set. - * @return This builder for chaining. - */ - public Builder setPlatformBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - platform_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object arrivalTimePlanned_ = ""; - /** - * required string arrival_time_planned = 3; - * @return Whether the arrivalTimePlanned field is set. - */ - public boolean hasArrivalTimePlanned() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required string arrival_time_planned = 3; - * @return The arrivalTimePlanned. - */ - public java.lang.String getArrivalTimePlanned() { - java.lang.Object ref = arrivalTimePlanned_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - arrivalTimePlanned_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string arrival_time_planned = 3; - * @return The bytes for arrivalTimePlanned. - */ - public com.google.protobuf.ByteString - getArrivalTimePlannedBytes() { - java.lang.Object ref = arrivalTimePlanned_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - arrivalTimePlanned_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string arrival_time_planned = 3; - * @param value The arrivalTimePlanned to set. - * @return This builder for chaining. - */ - public Builder setArrivalTimePlanned( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - arrivalTimePlanned_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required string arrival_time_planned = 3; - * @return This builder for chaining. - */ - public Builder clearArrivalTimePlanned() { - arrivalTimePlanned_ = getDefaultInstance().getArrivalTimePlanned(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * required string arrival_time_planned = 3; - * @param value The bytes for arrivalTimePlanned to set. - * @return This builder for chaining. - */ - public Builder setArrivalTimePlannedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - arrivalTimePlanned_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object arrivalTimeForecast_ = ""; - /** - * optional string arrival_time_forecast = 4; - * @return Whether the arrivalTimeForecast field is set. - */ - public boolean hasArrivalTimeForecast() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional string arrival_time_forecast = 4; - * @return The arrivalTimeForecast. - */ - public java.lang.String getArrivalTimeForecast() { - java.lang.Object ref = arrivalTimeForecast_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - arrivalTimeForecast_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string arrival_time_forecast = 4; - * @return The bytes for arrivalTimeForecast. - */ - public com.google.protobuf.ByteString - getArrivalTimeForecastBytes() { - java.lang.Object ref = arrivalTimeForecast_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - arrivalTimeForecast_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string arrival_time_forecast = 4; - * @param value The arrivalTimeForecast to set. - * @return This builder for chaining. - */ - public Builder setArrivalTimeForecast( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - arrivalTimeForecast_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * optional string arrival_time_forecast = 4; - * @return This builder for chaining. - */ - public Builder clearArrivalTimeForecast() { - arrivalTimeForecast_ = getDefaultInstance().getArrivalTimeForecast(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * optional string arrival_time_forecast = 4; - * @param value The bytes for arrivalTimeForecast to set. - * @return This builder for chaining. - */ - public Builder setArrivalTimeForecastBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - arrivalTimeForecast_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object arrivalTimeMeasured_ = ""; - /** - * optional string arrival_time_measured = 5; - * @return Whether the arrivalTimeMeasured field is set. - */ - public boolean hasArrivalTimeMeasured() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional string arrival_time_measured = 5; - * @return The arrivalTimeMeasured. - */ - public java.lang.String getArrivalTimeMeasured() { - java.lang.Object ref = arrivalTimeMeasured_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - arrivalTimeMeasured_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string arrival_time_measured = 5; - * @return The bytes for arrivalTimeMeasured. - */ - public com.google.protobuf.ByteString - getArrivalTimeMeasuredBytes() { - java.lang.Object ref = arrivalTimeMeasured_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - arrivalTimeMeasured_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string arrival_time_measured = 5; - * @param value The arrivalTimeMeasured to set. - * @return This builder for chaining. - */ - public Builder setArrivalTimeMeasured( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - arrivalTimeMeasured_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * optional string arrival_time_measured = 5; - * @return This builder for chaining. - */ - public Builder clearArrivalTimeMeasured() { - arrivalTimeMeasured_ = getDefaultInstance().getArrivalTimeMeasured(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * optional string arrival_time_measured = 5; - * @param value The bytes for arrivalTimeMeasured to set. - * @return This builder for chaining. - */ - public Builder setArrivalTimeMeasuredBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - arrivalTimeMeasured_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object departureTimePlanned_ = ""; - /** - * required string departure_time_planned = 6; - * @return Whether the departureTimePlanned field is set. - */ - public boolean hasDepartureTimePlanned() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * required string departure_time_planned = 6; - * @return The departureTimePlanned. - */ - public java.lang.String getDepartureTimePlanned() { - java.lang.Object ref = departureTimePlanned_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - departureTimePlanned_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string departure_time_planned = 6; - * @return The bytes for departureTimePlanned. - */ - public com.google.protobuf.ByteString - getDepartureTimePlannedBytes() { - java.lang.Object ref = departureTimePlanned_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - departureTimePlanned_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string departure_time_planned = 6; - * @param value The departureTimePlanned to set. - * @return This builder for chaining. - */ - public Builder setDepartureTimePlanned( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - departureTimePlanned_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * required string departure_time_planned = 6; - * @return This builder for chaining. - */ - public Builder clearDepartureTimePlanned() { - departureTimePlanned_ = getDefaultInstance().getDepartureTimePlanned(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * required string departure_time_planned = 6; - * @param value The bytes for departureTimePlanned to set. - * @return This builder for chaining. - */ - public Builder setDepartureTimePlannedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - departureTimePlanned_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private java.lang.Object departureTimeForecast_ = ""; - /** - * optional string departure_time_forecast = 7; - * @return Whether the departureTimeForecast field is set. - */ - public boolean hasDepartureTimeForecast() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * optional string departure_time_forecast = 7; - * @return The departureTimeForecast. - */ - public java.lang.String getDepartureTimeForecast() { - java.lang.Object ref = departureTimeForecast_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - departureTimeForecast_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string departure_time_forecast = 7; - * @return The bytes for departureTimeForecast. - */ - public com.google.protobuf.ByteString - getDepartureTimeForecastBytes() { - java.lang.Object ref = departureTimeForecast_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - departureTimeForecast_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string departure_time_forecast = 7; - * @param value The departureTimeForecast to set. - * @return This builder for chaining. - */ - public Builder setDepartureTimeForecast( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - departureTimeForecast_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * optional string departure_time_forecast = 7; - * @return This builder for chaining. - */ - public Builder clearDepartureTimeForecast() { - departureTimeForecast_ = getDefaultInstance().getDepartureTimeForecast(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * optional string departure_time_forecast = 7; - * @param value The bytes for departureTimeForecast to set. - * @return This builder for chaining. - */ - public Builder setDepartureTimeForecastBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - departureTimeForecast_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private java.lang.Object departureTimeMeasured_ = ""; - /** - * optional string departure_time_measured = 8; - * @return Whether the departureTimeMeasured field is set. - */ - public boolean hasDepartureTimeMeasured() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional string departure_time_measured = 8; - * @return The departureTimeMeasured. - */ - public java.lang.String getDepartureTimeMeasured() { - java.lang.Object ref = departureTimeMeasured_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - departureTimeMeasured_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string departure_time_measured = 8; - * @return The bytes for departureTimeMeasured. - */ - public com.google.protobuf.ByteString - getDepartureTimeMeasuredBytes() { - java.lang.Object ref = departureTimeMeasured_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - departureTimeMeasured_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string departure_time_measured = 8; - * @param value The departureTimeMeasured to set. - * @return This builder for chaining. - */ - public Builder setDepartureTimeMeasured( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - departureTimeMeasured_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * optional string departure_time_measured = 8; - * @return This builder for chaining. - */ - public Builder clearDepartureTimeMeasured() { - departureTimeMeasured_ = getDefaultInstance().getDepartureTimeMeasured(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - * optional string departure_time_measured = 8; - * @param value The bytes for departureTimeMeasured to set. - * @return This builder for chaining. - */ - public Builder setDepartureTimeMeasuredBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - departureTimeMeasured_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private java.lang.Object source_ = ""; - /** - * required string source = 9; - * @return Whether the source field is set. - */ - public boolean hasSource() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * required string source = 9; - * @return The source. - */ - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - source_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string source = 9; - * @return The bytes for source. - */ - public com.google.protobuf.ByteString - getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string source = 9; - * @param value The source to set. - * @return This builder for chaining. - */ - public Builder setSource( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - source_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * required string source = 9; - * @return This builder for chaining. - */ - public Builder clearSource() { - source_ = getDefaultInstance().getSource(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - * required string source = 9; - * @param value The bytes for source to set. - * @return This builder for chaining. - */ - public Builder setSourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - source_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private java.lang.Object stopNumber_ = ""; - /** - * required string stop_number = 10; - * @return Whether the stopNumber field is set. - */ - public boolean hasStopNumber() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * required string stop_number = 10; - * @return The stopNumber. - */ - public java.lang.String getStopNumber() { - java.lang.Object ref = stopNumber_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopNumber_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string stop_number = 10; - * @return The bytes for stopNumber. - */ - public com.google.protobuf.ByteString - getStopNumberBytes() { - java.lang.Object ref = stopNumber_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string stop_number = 10; - * @param value The stopNumber to set. - * @return This builder for chaining. - */ - public Builder setStopNumber( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - stopNumber_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * required string stop_number = 10; - * @return This builder for chaining. - */ - public Builder clearStopNumber() { - stopNumber_ = getDefaultInstance().getStopNumber(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } - /** - * required string stop_number = 10; - * @param value The bytes for stopNumber to set. - * @return This builder for chaining. - */ - public Builder setStopNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - stopNumber_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - - private int rowProgress_ = 0; - /** - * optional .proto.MetroProgress row_progress = 11; - * @return Whether the rowProgress field is set. - */ - @java.lang.Override public boolean hasRowProgress() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * optional .proto.MetroProgress row_progress = 11; - * @return The rowProgress. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress getRowProgress() { - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress result = fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress.forNumber(rowProgress_); - return result == null ? fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress.SCHEDULED : result; - } - /** - * optional .proto.MetroProgress row_progress = 11; - * @param value The rowProgress to set. - * @return This builder for chaining. - */ - public Builder setRowProgress(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - rowProgress_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .proto.MetroProgress row_progress = 11; - * @return This builder for chaining. - */ - public Builder clearRowProgress() { - bitField0_ = (bitField0_ & ~0x00000400); - rowProgress_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.MetroStopEstimate) - } - - // @@protoc_insertion_point(class_scope:proto.MetroStopEstimate) - private static final fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate(); - } + super.mergeFrom(other); + return this; + } + } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public Builder mergeFrom(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate other) { + if (other == fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.getDefaultInstance()) + return this; + if (other.hasStation()) { + station_ = other.station_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPlatform()) { + platform_ = other.platform_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasArrivalTimePlanned()) { + arrivalTimePlanned_ = other.arrivalTimePlanned_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasArrivalTimeForecast()) { + arrivalTimeForecast_ = other.arrivalTimeForecast_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasArrivalTimeMeasured()) { + arrivalTimeMeasured_ = other.arrivalTimeMeasured_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasDepartureTimePlanned()) { + departureTimePlanned_ = other.departureTimePlanned_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasDepartureTimeForecast()) { + departureTimeForecast_ = other.departureTimeForecast_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasDepartureTimeMeasured()) { + departureTimeMeasured_ = other.departureTimeMeasured_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasSource()) { + source_ = other.source_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasStopNumber()) { + stopNumber_ = other.stopNumber_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasRowProgress()) { + setRowProgress(other.getRowProgress()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetroStopEstimate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public final boolean isInitialized() { + if (!hasStation()) { + return false; + } + if (!hasPlatform()) { + return false; + } + if (!hasArrivalTimePlanned()) { + return false; + } + if (!hasDepartureTimePlanned()) { + return false; + } + if (!hasSource()) { + return false; + } + if (!hasStopNumber()) { + return false; + } + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @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 : { + station_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18 : { + platform_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26 : { + arrivalTimePlanned_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34 : { + arrivalTimeForecast_ = input.readBytes(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42 : { + arrivalTimeMeasured_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50 : { + departureTimePlanned_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58 : { + departureTimeForecast_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66 : { + departureTimeMeasured_ = input.readBytes(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74 : { + source_ = input.readBytes(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82 : { + stopNumber_ = input.readBytes(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress tmpValue = fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(11, tmpRaw); + } else { + rowProgress_ = tmpRaw; + bitField0_ |= 0x00000400; + } + break; + } // case 88 + 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 station_ = ""; + /** + *
+             * Fields from mqtt-pulsar-gateway
+             * 
+ * + * required string station = 1; + * @return Whether the station field is set. + */ + public boolean hasStation() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Fields from mqtt-pulsar-gateway
+             * 
+ * + * required string station = 1; + * @return The station. + */ + public java.lang.String getStation() { + java.lang.Object ref = station_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + station_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * Fields from mqtt-pulsar-gateway
+             * 
+ * + * required string station = 1; + * @return The bytes for station. + */ + public com.google.protobuf.ByteString getStationBytes() { + java.lang.Object ref = station_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + station_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * Fields from mqtt-pulsar-gateway
+             * 
+ * + * required string station = 1; + * @param value The station to set. + * @return This builder for chaining. + */ + public Builder setStation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + station_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Fields from mqtt-pulsar-gateway
+             * 
+ * + * required string station = 1; + * @return This builder for chaining. + */ + public Builder clearStation() { + station_ = getDefaultInstance().getStation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+             * Fields from mqtt-pulsar-gateway
+             * 
+ * + * required string station = 1; + * @param value The bytes for station to set. + * @return This builder for chaining. + */ + public Builder setStationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + station_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - @java.lang.Override - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private java.lang.Object platform_ = ""; + /** + * required string platform = 2; + * @return Whether the platform field is set. + */ + public boolean hasPlatform() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required string platform = 2; + * @return The platform. + */ + public java.lang.String getPlatform() { + java.lang.Object ref = platform_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + platform_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string platform = 2; + * @return The bytes for platform. + */ + public com.google.protobuf.ByteString getPlatformBytes() { + java.lang.Object ref = platform_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + platform_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string platform = 2; + * @param value The platform to set. + * @return This builder for chaining. + */ + public Builder setPlatform(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + platform_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required string platform = 2; + * @return This builder for chaining. + */ + public Builder clearPlatform() { + platform_ = getDefaultInstance().getPlatform(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * required string platform = 2; + * @param value The bytes for platform to set. + * @return This builder for chaining. + */ + public Builder setPlatformBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + platform_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - } + private java.lang.Object arrivalTimePlanned_ = ""; + /** + * required string arrival_time_planned = 3; + * @return Whether the arrivalTimePlanned field is set. + */ + public boolean hasArrivalTimePlanned() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required string arrival_time_planned = 3; + * @return The arrivalTimePlanned. + */ + public java.lang.String getArrivalTimePlanned() { + java.lang.Object ref = arrivalTimePlanned_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + arrivalTimePlanned_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string arrival_time_planned = 3; + * @return The bytes for arrivalTimePlanned. + */ + public com.google.protobuf.ByteString getArrivalTimePlannedBytes() { + java.lang.Object ref = arrivalTimePlanned_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + arrivalTimePlanned_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string arrival_time_planned = 3; + * @param value The arrivalTimePlanned to set. + * @return This builder for chaining. + */ + public Builder setArrivalTimePlanned(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + arrivalTimePlanned_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required string arrival_time_planned = 3; + * @return This builder for chaining. + */ + public Builder clearArrivalTimePlanned() { + arrivalTimePlanned_ = getDefaultInstance().getArrivalTimePlanned(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * required string arrival_time_planned = 3; + * @param value The bytes for arrivalTimePlanned to set. + * @return This builder for chaining. + */ + public Builder setArrivalTimePlannedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + arrivalTimePlanned_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - public interface MetroEstimateOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.MetroEstimate) - com.google.protobuf.MessageOrBuilder { + private java.lang.Object arrivalTimeForecast_ = ""; + /** + * optional string arrival_time_forecast = 4; + * @return Whether the arrivalTimeForecast field is set. + */ + public boolean hasArrivalTimeForecast() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string arrival_time_forecast = 4; + * @return The arrivalTimeForecast. + */ + public java.lang.String getArrivalTimeForecast() { + java.lang.Object ref = arrivalTimeForecast_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + arrivalTimeForecast_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string arrival_time_forecast = 4; + * @return The bytes for arrivalTimeForecast. + */ + public com.google.protobuf.ByteString getArrivalTimeForecastBytes() { + java.lang.Object ref = arrivalTimeForecast_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + arrivalTimeForecast_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string arrival_time_forecast = 4; + * @param value The arrivalTimeForecast to set. + * @return This builder for chaining. + */ + public Builder setArrivalTimeForecast(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + arrivalTimeForecast_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional string arrival_time_forecast = 4; + * @return This builder for chaining. + */ + public Builder clearArrivalTimeForecast() { + arrivalTimeForecast_ = getDefaultInstance().getArrivalTimeForecast(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * optional string arrival_time_forecast = 4; + * @param value The bytes for arrivalTimeForecast to set. + * @return This builder for chaining. + */ + public Builder setArrivalTimeForecastBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + arrivalTimeForecast_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - /** - *
-     * Fields from mqtt-pulsar-gateway
-     * 
- * - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - boolean hasSchemaVersion(); - /** - *
-     * Fields from mqtt-pulsar-gateway
-     * 
- * - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - int getSchemaVersion(); + private java.lang.Object arrivalTimeMeasured_ = ""; + /** + * optional string arrival_time_measured = 5; + * @return Whether the arrivalTimeMeasured field is set. + */ + public boolean hasArrivalTimeMeasured() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string arrival_time_measured = 5; + * @return The arrivalTimeMeasured. + */ + public java.lang.String getArrivalTimeMeasured() { + java.lang.Object ref = arrivalTimeMeasured_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + arrivalTimeMeasured_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string arrival_time_measured = 5; + * @return The bytes for arrivalTimeMeasured. + */ + public com.google.protobuf.ByteString getArrivalTimeMeasuredBytes() { + java.lang.Object ref = arrivalTimeMeasured_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + arrivalTimeMeasured_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string arrival_time_measured = 5; + * @param value The arrivalTimeMeasured to set. + * @return This builder for chaining. + */ + public Builder setArrivalTimeMeasured(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + arrivalTimeMeasured_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional string arrival_time_measured = 5; + * @return This builder for chaining. + */ + public Builder clearArrivalTimeMeasured() { + arrivalTimeMeasured_ = getDefaultInstance().getArrivalTimeMeasured(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * optional string arrival_time_measured = 5; + * @param value The bytes for arrivalTimeMeasured to set. + * @return This builder for chaining. + */ + public Builder setArrivalTimeMeasuredBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + arrivalTimeMeasured_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - java.util.List - getMetroRowsList(); - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate getMetroRows(int index); - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - int getMetroRowsCount(); - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - java.util.List - getMetroRowsOrBuilderList(); - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimateOrBuilder getMetroRowsOrBuilder( - int index); + private java.lang.Object departureTimePlanned_ = ""; + /** + * required string departure_time_planned = 6; + * @return Whether the departureTimePlanned field is set. + */ + public boolean hasDepartureTimePlanned() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * required string departure_time_planned = 6; + * @return The departureTimePlanned. + */ + public java.lang.String getDepartureTimePlanned() { + java.lang.Object ref = departureTimePlanned_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + departureTimePlanned_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string departure_time_planned = 6; + * @return The bytes for departureTimePlanned. + */ + public com.google.protobuf.ByteString getDepartureTimePlannedBytes() { + java.lang.Object ref = departureTimePlanned_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + departureTimePlanned_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string departure_time_planned = 6; + * @param value The departureTimePlanned to set. + * @return This builder for chaining. + */ + public Builder setDepartureTimePlanned(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + departureTimePlanned_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * required string departure_time_planned = 6; + * @return This builder for chaining. + */ + public Builder clearDepartureTimePlanned() { + departureTimePlanned_ = getDefaultInstance().getDepartureTimePlanned(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * required string departure_time_planned = 6; + * @param value The bytes for departureTimePlanned to set. + * @return This builder for chaining. + */ + public Builder setDepartureTimePlannedBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + departureTimePlanned_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } - /** - * required .proto.MetroTrainType train_type = 3; - * @return Whether the trainType field is set. - */ - boolean hasTrainType(); - /** - * required .proto.MetroTrainType train_type = 3; - * @return The trainType. - */ - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType getTrainType(); + private java.lang.Object departureTimeForecast_ = ""; + /** + * optional string departure_time_forecast = 7; + * @return Whether the departureTimeForecast field is set. + */ + public boolean hasDepartureTimeForecast() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional string departure_time_forecast = 7; + * @return The departureTimeForecast. + */ + public java.lang.String getDepartureTimeForecast() { + java.lang.Object ref = departureTimeForecast_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + departureTimeForecast_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string departure_time_forecast = 7; + * @return The bytes for departureTimeForecast. + */ + public com.google.protobuf.ByteString getDepartureTimeForecastBytes() { + java.lang.Object ref = departureTimeForecast_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + departureTimeForecast_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string departure_time_forecast = 7; + * @param value The departureTimeForecast to set. + * @return This builder for chaining. + */ + public Builder setDepartureTimeForecast(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + departureTimeForecast_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional string departure_time_forecast = 7; + * @return This builder for chaining. + */ + public Builder clearDepartureTimeForecast() { + departureTimeForecast_ = getDefaultInstance().getDepartureTimeForecast(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * optional string departure_time_forecast = 7; + * @param value The bytes for departureTimeForecast to set. + * @return This builder for chaining. + */ + public Builder setDepartureTimeForecastBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + departureTimeForecast_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } - /** - * required .proto.MetroProgress journey_sectionprogress = 4; - * @return Whether the journeySectionprogress field is set. - */ - boolean hasJourneySectionprogress(); - /** - * required .proto.MetroProgress journey_sectionprogress = 4; - * @return The journeySectionprogress. - */ - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress getJourneySectionprogress(); + private java.lang.Object departureTimeMeasured_ = ""; + /** + * optional string departure_time_measured = 8; + * @return Whether the departureTimeMeasured field is set. + */ + public boolean hasDepartureTimeMeasured() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional string departure_time_measured = 8; + * @return The departureTimeMeasured. + */ + public java.lang.String getDepartureTimeMeasured() { + java.lang.Object ref = departureTimeMeasured_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + departureTimeMeasured_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string departure_time_measured = 8; + * @return The bytes for departureTimeMeasured. + */ + public com.google.protobuf.ByteString getDepartureTimeMeasuredBytes() { + java.lang.Object ref = departureTimeMeasured_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + departureTimeMeasured_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string departure_time_measured = 8; + * @param value The departureTimeMeasured to set. + * @return This builder for chaining. + */ + public Builder setDepartureTimeMeasured(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + departureTimeMeasured_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional string departure_time_measured = 8; + * @return This builder for chaining. + */ + public Builder clearDepartureTimeMeasured() { + departureTimeMeasured_ = getDefaultInstance().getDepartureTimeMeasured(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * optional string departure_time_measured = 8; + * @param value The bytes for departureTimeMeasured to set. + * @return This builder for chaining. + */ + public Builder setDepartureTimeMeasuredBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + departureTimeMeasured_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } - /** - * required string begin_time = 5; - * @return Whether the beginTime field is set. - */ - boolean hasBeginTime(); - /** - * required string begin_time = 5; - * @return The beginTime. - */ - java.lang.String getBeginTime(); - /** - * required string begin_time = 5; - * @return The bytes for beginTime. - */ - com.google.protobuf.ByteString - getBeginTimeBytes(); + private java.lang.Object source_ = ""; + /** + * required string source = 9; + * @return Whether the source field is set. + */ + public boolean hasSource() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * required string source = 9; + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string source = 9; + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string source = 9; + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * required string source = 9; + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * required string source = 9; + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } - /** - * required string end_time = 6; - * @return Whether the endTime field is set. - */ - boolean hasEndTime(); - /** - * required string end_time = 6; - * @return The endTime. - */ - java.lang.String getEndTime(); - /** - * required string end_time = 6; - * @return The bytes for endTime. - */ - com.google.protobuf.ByteString - getEndTimeBytes(); + private java.lang.Object stopNumber_ = ""; + /** + * required string stop_number = 10; + * @return Whether the stopNumber field is set. + */ + public boolean hasStopNumber() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * required string stop_number = 10; + * @return The stopNumber. + */ + public java.lang.String getStopNumber() { + java.lang.Object ref = stopNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopNumber_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string stop_number = 10; + * @return The bytes for stopNumber. + */ + public com.google.protobuf.ByteString getStopNumberBytes() { + java.lang.Object ref = stopNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + stopNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string stop_number = 10; + * @param value The stopNumber to set. + * @return This builder for chaining. + */ + public Builder setStopNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + stopNumber_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * required string stop_number = 10; + * @return This builder for chaining. + */ + public Builder clearStopNumber() { + stopNumber_ = getDefaultInstance().getStopNumber(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * required string stop_number = 10; + * @param value The bytes for stopNumber to set. + * @return This builder for chaining. + */ + public Builder setStopNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + stopNumber_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } - /** - * required string start_stop_short_name = 7; - * @return Whether the startStopShortName field is set. - */ - boolean hasStartStopShortName(); - /** - * required string start_stop_short_name = 7; - * @return The startStopShortName. - */ - java.lang.String getStartStopShortName(); - /** - * required string start_stop_short_name = 7; - * @return The bytes for startStopShortName. - */ - com.google.protobuf.ByteString - getStartStopShortNameBytes(); + private int rowProgress_ = 0; + /** + * optional .proto.MetroProgress row_progress = 11; + * @return Whether the rowProgress field is set. + */ + @java.lang.Override + public boolean hasRowProgress() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional .proto.MetroProgress row_progress = 11; + * @return The rowProgress. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress getRowProgress() { + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress result = fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress + .forNumber(rowProgress_); + return result == null ? fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress.SCHEDULED : result; + } + /** + * optional .proto.MetroProgress row_progress = 11; + * @param value The rowProgress to set. + * @return This builder for chaining. + */ + public Builder setRowProgress(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + rowProgress_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .proto.MetroProgress row_progress = 11; + * @return This builder for chaining. + */ + public Builder clearRowProgress() { + bitField0_ = (bitField0_ & ~0x00000400); + rowProgress_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - /** - *
-     * Fields from redis
-     * 
- * - * optional string operating_day = 8; - * @return Whether the operatingDay field is set. - */ - boolean hasOperatingDay(); - /** - *
-     * Fields from redis
-     * 
- * - * optional string operating_day = 8; - * @return The operatingDay. - */ - java.lang.String getOperatingDay(); - /** - *
-     * Fields from redis
-     * 
- * - * optional string operating_day = 8; - * @return The bytes for operatingDay. - */ - com.google.protobuf.ByteString - getOperatingDayBytes(); + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - /** - * optional string start_stop_number = 9; - * @return Whether the startStopNumber field is set. - */ - boolean hasStartStopNumber(); - /** - * optional string start_stop_number = 9; - * @return The startStopNumber. - */ - java.lang.String getStartStopNumber(); - /** - * optional string start_stop_number = 9; - * @return The bytes for startStopNumber. - */ - com.google.protobuf.ByteString - getStartStopNumberBytes(); + // @@protoc_insertion_point(builder_scope:proto.MetroStopEstimate) + } - /** - * optional string start_time = 10; - * @return Whether the startTime field is set. - */ - boolean hasStartTime(); - /** - * optional string start_time = 10; - * @return The startTime. - */ - java.lang.String getStartTime(); - /** - * optional string start_time = 10; - * @return The bytes for startTime. - */ - com.google.protobuf.ByteString - getStartTimeBytes(); + // @@protoc_insertion_point(class_scope:proto.MetroStopEstimate) + private static final fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate(); + } - /** - * optional string dvj_id = 11; - * @return Whether the dvjId field is set. - */ - boolean hasDvjId(); - /** - * optional string dvj_id = 11; - * @return The dvjId. - */ - java.lang.String getDvjId(); - /** - * optional string dvj_id = 11; - * @return The bytes for dvjId. - */ - com.google.protobuf.ByteString - getDvjIdBytes(); + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetroStopEstimate parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MetroEstimateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.MetroEstimate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Fields from mqtt-pulsar-gateway
+         * 
+ * + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + boolean hasSchemaVersion(); + /** + *
+         * Fields from mqtt-pulsar-gateway
+         * 
+ * + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + int getSchemaVersion(); + + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + java.util.List getMetroRowsList(); + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate getMetroRows(int index); + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + int getMetroRowsCount(); + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + java.util.List getMetroRowsOrBuilderList(); + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimateOrBuilder getMetroRowsOrBuilder(int index); + + /** + * required .proto.MetroTrainType train_type = 3; + * @return Whether the trainType field is set. + */ + boolean hasTrainType(); + /** + * required .proto.MetroTrainType train_type = 3; + * @return The trainType. + */ + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType getTrainType(); + + /** + * required .proto.MetroProgress journey_sectionprogress = 4; + * @return Whether the journeySectionprogress field is set. + */ + boolean hasJourneySectionprogress(); + /** + * required .proto.MetroProgress journey_sectionprogress = 4; + * @return The journeySectionprogress. + */ + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress getJourneySectionprogress(); + + /** + * required string begin_time = 5; + * @return Whether the beginTime field is set. + */ + boolean hasBeginTime(); + /** + * required string begin_time = 5; + * @return The beginTime. + */ + java.lang.String getBeginTime(); + /** + * required string begin_time = 5; + * @return The bytes for beginTime. + */ + com.google.protobuf.ByteString getBeginTimeBytes(); + + /** + * required string end_time = 6; + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * required string end_time = 6; + * @return The endTime. + */ + java.lang.String getEndTime(); + /** + * required string end_time = 6; + * @return The bytes for endTime. + */ + com.google.protobuf.ByteString getEndTimeBytes(); + + /** + * required string start_stop_short_name = 7; + * @return Whether the startStopShortName field is set. + */ + boolean hasStartStopShortName(); + /** + * required string start_stop_short_name = 7; + * @return The startStopShortName. + */ + java.lang.String getStartStopShortName(); + /** + * required string start_stop_short_name = 7; + * @return The bytes for startStopShortName. + */ + com.google.protobuf.ByteString getStartStopShortNameBytes(); + + /** + *
+         * Fields from redis
+         * 
+ * + * optional string operating_day = 8; + * @return Whether the operatingDay field is set. + */ + boolean hasOperatingDay(); + /** + *
+         * Fields from redis
+         * 
+ * + * optional string operating_day = 8; + * @return The operatingDay. + */ + java.lang.String getOperatingDay(); + /** + *
+         * Fields from redis
+         * 
+ * + * optional string operating_day = 8; + * @return The bytes for operatingDay. + */ + com.google.protobuf.ByteString getOperatingDayBytes(); + + /** + * optional string start_stop_number = 9; + * @return Whether the startStopNumber field is set. + */ + boolean hasStartStopNumber(); + /** + * optional string start_stop_number = 9; + * @return The startStopNumber. + */ + java.lang.String getStartStopNumber(); + /** + * optional string start_stop_number = 9; + * @return The bytes for startStopNumber. + */ + com.google.protobuf.ByteString getStartStopNumberBytes(); + + /** + * optional string start_time = 10; + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * optional string start_time = 10; + * @return The startTime. + */ + java.lang.String getStartTime(); + /** + * optional string start_time = 10; + * @return The bytes for startTime. + */ + com.google.protobuf.ByteString getStartTimeBytes(); + + /** + * optional string dvj_id = 11; + * @return Whether the dvjId field is set. + */ + boolean hasDvjId(); + /** + * optional string dvj_id = 11; + * @return The dvjId. + */ + java.lang.String getDvjId(); + /** + * optional string dvj_id = 11; + * @return The bytes for dvjId. + */ + com.google.protobuf.ByteString getDvjIdBytes(); + + /** + * optional string route_name = 12; + * @return Whether the routeName field is set. + */ + boolean hasRouteName(); + /** + * optional string route_name = 12; + * @return The routeName. + */ + java.lang.String getRouteName(); + /** + * optional string route_name = 12; + * @return The bytes for routeName. + */ + com.google.protobuf.ByteString getRouteNameBytes(); + + /** + * optional string start_datetime = 13; + * @return Whether the startDatetime field is set. + */ + boolean hasStartDatetime(); + /** + * optional string start_datetime = 13; + * @return The startDatetime. + */ + java.lang.String getStartDatetime(); + /** + * optional string start_datetime = 13; + * @return The bytes for startDatetime. + */ + com.google.protobuf.ByteString getStartDatetimeBytes(); + + /** + * optional string direction = 14; + * @return Whether the direction field is set. + */ + boolean hasDirection(); + /** + * optional string direction = 14; + * @return The direction. + */ + java.lang.String getDirection(); + /** + * optional string direction = 14; + * @return The bytes for direction. + */ + com.google.protobuf.ByteString getDirectionBytes(); + + /** + *
+         * Is the metro trip is present in the static schedule?
+         * 
+ * + * optional bool scheduled = 15; + * @return Whether the scheduled field is set. + */ + boolean hasScheduled(); + /** + *
+         * Is the metro trip is present in the static schedule?
+         * 
+ * + * optional bool scheduled = 15; + * @return The scheduled. + */ + boolean getScheduled(); + } /** - * optional string route_name = 12; - * @return Whether the routeName field is set. - */ - boolean hasRouteName(); - /** - * optional string route_name = 12; - * @return The routeName. - */ - java.lang.String getRouteName(); - /** - * optional string route_name = 12; - * @return The bytes for routeName. + * Protobuf type {@code proto.MetroEstimate} */ - com.google.protobuf.ByteString - getRouteNameBytes(); + public static final class MetroEstimate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.MetroEstimate) + MetroEstimateOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetroEstimate.newBuilder() to construct. + private MetroEstimate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MetroEstimate() { + schemaVersion_ = 1; + metroRows_ = java.util.Collections.emptyList(); + trainType_ = 0; + journeySectionprogress_ = 0; + beginTime_ = ""; + endTime_ = ""; + startStopShortName_ = ""; + operatingDay_ = ""; + startStopNumber_ = ""; + startTime_ = ""; + dvjId_ = ""; + routeName_ = ""; + startDatetime_ = ""; + direction_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetroEstimate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroEstimate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroEstimate_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate.class, + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate.Builder.class); + } + + private int bitField0_; + public static final int SCHEMAVERSION_FIELD_NUMBER = 1; + private int schemaVersion_ = 1; + /** + *
+         * Fields from mqtt-pulsar-gateway
+         * 
+ * + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Fields from mqtt-pulsar-gateway
+         * 
+ * + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + + public static final int METRO_ROWS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List metroRows_; + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + @java.lang.Override + public java.util.List getMetroRowsList() { + return metroRows_; + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + @java.lang.Override + public java.util.List getMetroRowsOrBuilderList() { + return metroRows_; + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + @java.lang.Override + public int getMetroRowsCount() { + return metroRows_.size(); + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate getMetroRows(int index) { + return metroRows_.get(index); + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimateOrBuilder getMetroRowsOrBuilder( + int index) { + return metroRows_.get(index); + } + + public static final int TRAIN_TYPE_FIELD_NUMBER = 3; + private int trainType_ = 0; + /** + * required .proto.MetroTrainType train_type = 3; + * @return Whether the trainType field is set. + */ + @java.lang.Override + public boolean hasTrainType() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required .proto.MetroTrainType train_type = 3; + * @return The trainType. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType getTrainType() { + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType result = fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType + .forNumber(trainType_); + return result == null ? fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType.M : result; + } + + public static final int JOURNEY_SECTIONPROGRESS_FIELD_NUMBER = 4; + private int journeySectionprogress_ = 0; + /** + * required .proto.MetroProgress journey_sectionprogress = 4; + * @return Whether the journeySectionprogress field is set. + */ + @java.lang.Override + public boolean hasJourneySectionprogress() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required .proto.MetroProgress journey_sectionprogress = 4; + * @return The journeySectionprogress. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress getJourneySectionprogress() { + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress result = fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress + .forNumber(journeySectionprogress_); + return result == null ? fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress.SCHEDULED : result; + } + + public static final int BEGIN_TIME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object beginTime_ = ""; + /** + * required string begin_time = 5; + * @return Whether the beginTime field is set. + */ + @java.lang.Override + public boolean hasBeginTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * required string begin_time = 5; + * @return The beginTime. + */ + @java.lang.Override + public java.lang.String getBeginTime() { + java.lang.Object ref = beginTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + beginTime_ = s; + } + return s; + } + } + /** + * required string begin_time = 5; + * @return The bytes for beginTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBeginTimeBytes() { + java.lang.Object ref = beginTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + beginTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * optional string start_datetime = 13; - * @return Whether the startDatetime field is set. - */ - boolean hasStartDatetime(); - /** - * optional string start_datetime = 13; - * @return The startDatetime. - */ - java.lang.String getStartDatetime(); - /** - * optional string start_datetime = 13; - * @return The bytes for startDatetime. - */ - com.google.protobuf.ByteString - getStartDatetimeBytes(); + public static final int END_TIME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object endTime_ = ""; + /** + * required string end_time = 6; + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * required string end_time = 6; + * @return The endTime. + */ + @java.lang.Override + public java.lang.String getEndTime() { + java.lang.Object ref = endTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + endTime_ = s; + } + return s; + } + } + /** + * required string end_time = 6; + * @return The bytes for endTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndTimeBytes() { + java.lang.Object ref = endTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * optional string direction = 14; - * @return Whether the direction field is set. - */ - boolean hasDirection(); - /** - * optional string direction = 14; - * @return The direction. - */ - java.lang.String getDirection(); - /** - * optional string direction = 14; - * @return The bytes for direction. - */ - com.google.protobuf.ByteString - getDirectionBytes(); + public static final int START_STOP_SHORT_NAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object startStopShortName_ = ""; + /** + * required string start_stop_short_name = 7; + * @return Whether the startStopShortName field is set. + */ + @java.lang.Override + public boolean hasStartStopShortName() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * required string start_stop_short_name = 7; + * @return The startStopShortName. + */ + @java.lang.Override + public java.lang.String getStartStopShortName() { + java.lang.Object ref = startStopShortName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startStopShortName_ = s; + } + return s; + } + } + /** + * required string start_stop_short_name = 7; + * @return The bytes for startStopShortName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartStopShortNameBytes() { + java.lang.Object ref = startStopShortName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startStopShortName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - *
-     * Is the metro trip is present in the static schedule?
-     * 
- * - * optional bool scheduled = 15; - * @return Whether the scheduled field is set. - */ - boolean hasScheduled(); - /** - *
-     * Is the metro trip is present in the static schedule?
-     * 
- * - * optional bool scheduled = 15; - * @return The scheduled. - */ - boolean getScheduled(); - } - /** - * Protobuf type {@code proto.MetroEstimate} - */ - public static final class MetroEstimate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.MetroEstimate) - MetroEstimateOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetroEstimate.newBuilder() to construct. - private MetroEstimate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MetroEstimate() { - schemaVersion_ = 1; - metroRows_ = java.util.Collections.emptyList(); - trainType_ = 0; - journeySectionprogress_ = 0; - beginTime_ = ""; - endTime_ = ""; - startStopShortName_ = ""; - operatingDay_ = ""; - startStopNumber_ = ""; - startTime_ = ""; - dvjId_ = ""; - routeName_ = ""; - startDatetime_ = ""; - direction_ = ""; - } + public static final int OPERATING_DAY_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile java.lang.Object operatingDay_ = ""; + /** + *
+         * Fields from redis
+         * 
+ * + * optional string operating_day = 8; + * @return Whether the operatingDay field is set. + */ + @java.lang.Override + public boolean hasOperatingDay() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+         * Fields from redis
+         * 
+ * + * optional string operating_day = 8; + * @return The operatingDay. + */ + @java.lang.Override + public java.lang.String getOperatingDay() { + java.lang.Object ref = operatingDay_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + operatingDay_ = s; + } + return s; + } + } + /** + *
+         * Fields from redis
+         * 
+ * + * optional string operating_day = 8; + * @return The bytes for operatingDay. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperatingDayBytes() { + java.lang.Object ref = operatingDay_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operatingDay_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MetroEstimate(); - } + public static final int START_STOP_NUMBER_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object startStopNumber_ = ""; + /** + * optional string start_stop_number = 9; + * @return Whether the startStopNumber field is set. + */ + @java.lang.Override + public boolean hasStartStopNumber() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional string start_stop_number = 9; + * @return The startStopNumber. + */ + @java.lang.Override + public java.lang.String getStartStopNumber() { + java.lang.Object ref = startStopNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startStopNumber_ = s; + } + return s; + } + } + /** + * optional string start_stop_number = 9; + * @return The bytes for startStopNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartStopNumberBytes() { + java.lang.Object ref = startStopNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startStopNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroEstimate_descriptor; - } + public static final int START_TIME_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object startTime_ = ""; + /** + * optional string start_time = 10; + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional string start_time = 10; + * @return The startTime. + */ + @java.lang.Override + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startTime_ = s; + } + return s; + } + } + /** + * optional string start_time = 10; + * @return The bytes for startTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroEstimate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate.class, fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate.Builder.class); - } + public static final int DVJ_ID_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object dvjId_ = ""; + /** + * optional string dvj_id = 11; + * @return Whether the dvjId field is set. + */ + @java.lang.Override + public boolean hasDvjId() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional string dvj_id = 11; + * @return The dvjId. + */ + @java.lang.Override + public java.lang.String getDvjId() { + java.lang.Object ref = dvjId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + dvjId_ = s; + } + return s; + } + } + /** + * optional string dvj_id = 11; + * @return The bytes for dvjId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDvjIdBytes() { + java.lang.Object ref = dvjId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dvjId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private int bitField0_; - public static final int SCHEMAVERSION_FIELD_NUMBER = 1; - private int schemaVersion_ = 1; - /** - *
-     * Fields from mqtt-pulsar-gateway
-     * 
- * - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Fields from mqtt-pulsar-gateway
-     * 
- * - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } + public static final int ROUTE_NAME_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object routeName_ = ""; + /** + * optional string route_name = 12; + * @return Whether the routeName field is set. + */ + @java.lang.Override + public boolean hasRouteName() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional string route_name = 12; + * @return The routeName. + */ + @java.lang.Override + public java.lang.String getRouteName() { + java.lang.Object ref = routeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + routeName_ = s; + } + return s; + } + } + /** + * optional string route_name = 12; + * @return The bytes for routeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRouteNameBytes() { + java.lang.Object ref = routeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int METRO_ROWS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List metroRows_; - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - @java.lang.Override - public java.util.List getMetroRowsList() { - return metroRows_; - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - @java.lang.Override - public java.util.List - getMetroRowsOrBuilderList() { - return metroRows_; - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - @java.lang.Override - public int getMetroRowsCount() { - return metroRows_.size(); - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate getMetroRows(int index) { - return metroRows_.get(index); - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimateOrBuilder getMetroRowsOrBuilder( - int index) { - return metroRows_.get(index); - } + public static final int START_DATETIME_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private volatile java.lang.Object startDatetime_ = ""; + /** + * optional string start_datetime = 13; + * @return Whether the startDatetime field is set. + */ + @java.lang.Override + public boolean hasStartDatetime() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional string start_datetime = 13; + * @return The startDatetime. + */ + @java.lang.Override + public java.lang.String getStartDatetime() { + java.lang.Object ref = startDatetime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startDatetime_ = s; + } + return s; + } + } + /** + * optional string start_datetime = 13; + * @return The bytes for startDatetime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartDatetimeBytes() { + java.lang.Object ref = startDatetime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startDatetime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int TRAIN_TYPE_FIELD_NUMBER = 3; - private int trainType_ = 0; - /** - * required .proto.MetroTrainType train_type = 3; - * @return Whether the trainType field is set. - */ - @java.lang.Override public boolean hasTrainType() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required .proto.MetroTrainType train_type = 3; - * @return The trainType. - */ - @java.lang.Override public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType getTrainType() { - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType result = fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType.forNumber(trainType_); - return result == null ? fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType.M : result; - } + public static final int DIRECTION_FIELD_NUMBER = 14; + @SuppressWarnings("serial") + private volatile java.lang.Object direction_ = ""; + /** + * optional string direction = 14; + * @return Whether the direction field is set. + */ + @java.lang.Override + public boolean hasDirection() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional string direction = 14; + * @return The direction. + */ + @java.lang.Override + public java.lang.String getDirection() { + java.lang.Object ref = direction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + direction_ = s; + } + return s; + } + } + /** + * optional string direction = 14; + * @return The bytes for direction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDirectionBytes() { + java.lang.Object ref = direction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + direction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEDULED_FIELD_NUMBER = 15; + private boolean scheduled_ = false; + /** + *
+         * Is the metro trip is present in the static schedule?
+         * 
+ * + * optional bool scheduled = 15; + * @return Whether the scheduled field is set. + */ + @java.lang.Override + public boolean hasScheduled() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + *
+         * Is the metro trip is present in the static schedule?
+         * 
+ * + * optional bool scheduled = 15; + * @return The scheduled. + */ + @java.lang.Override + public boolean getScheduled() { + return scheduled_; + } + + 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 (!hasSchemaVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTrainType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasJourneySectionprogress()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasBeginTime()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasEndTime()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStartStopShortName()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getMetroRowsCount(); i++) { + if (!getMetroRows(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } - public static final int JOURNEY_SECTIONPROGRESS_FIELD_NUMBER = 4; - private int journeySectionprogress_ = 0; - /** - * required .proto.MetroProgress journey_sectionprogress = 4; - * @return Whether the journeySectionprogress field is set. - */ - @java.lang.Override public boolean hasJourneySectionprogress() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required .proto.MetroProgress journey_sectionprogress = 4; - * @return The journeySectionprogress. - */ - @java.lang.Override public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress getJourneySectionprogress() { - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress result = fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress.forNumber(journeySectionprogress_); - return result == null ? fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress.SCHEDULED : result; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, schemaVersion_); + } + for (int i = 0; i < metroRows_.size(); i++) { + output.writeMessage(2, metroRows_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(3, trainType_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(4, journeySectionprogress_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, beginTime_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, endTime_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, startStopShortName_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, operatingDay_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, startStopNumber_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, startTime_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, dvjId_); + } + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, routeName_); + } + if (((bitField0_ & 0x00000800) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, startDatetime_); + } + if (((bitField0_ & 0x00001000) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, direction_); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeBool(15, scheduled_); + } + getUnknownFields().writeTo(output); + } - public static final int BEGIN_TIME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object beginTime_ = ""; - /** - * required string begin_time = 5; - * @return Whether the beginTime field is set. - */ - @java.lang.Override - public boolean hasBeginTime() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required string begin_time = 5; - * @return The beginTime. - */ - @java.lang.Override - public java.lang.String getBeginTime() { - java.lang.Object ref = beginTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - beginTime_ = s; - } - return s; - } - } - /** - * required string begin_time = 5; - * @return The bytes for beginTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBeginTimeBytes() { - java.lang.Object ref = beginTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - beginTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; - public static final int END_TIME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object endTime_ = ""; - /** - * required string end_time = 6; - * @return Whether the endTime field is set. - */ - @java.lang.Override - public boolean hasEndTime() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required string end_time = 6; - * @return The endTime. - */ - @java.lang.Override - public java.lang.String getEndTime() { - java.lang.Object ref = endTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - endTime_ = s; - } - return s; - } - } - /** - * required string end_time = 6; - * @return The bytes for endTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEndTimeBytes() { - java.lang.Object ref = endTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - endTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, schemaVersion_); + } + for (int i = 0; i < metroRows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metroRows_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, trainType_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, journeySectionprogress_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, beginTime_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, endTime_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, startStopShortName_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, operatingDay_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, startStopNumber_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, startTime_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, dvjId_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, routeName_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, startDatetime_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, direction_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, scheduled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static final int START_STOP_SHORT_NAME_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private volatile java.lang.Object startStopShortName_ = ""; - /** - * required string start_stop_short_name = 7; - * @return Whether the startStopShortName field is set. - */ - @java.lang.Override - public boolean hasStartStopShortName() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * required string start_stop_short_name = 7; - * @return The startStopShortName. - */ - @java.lang.Override - public java.lang.String getStartStopShortName() { - java.lang.Object ref = startStopShortName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startStopShortName_ = s; - } - return s; - } - } - /** - * required string start_stop_short_name = 7; - * @return The bytes for startStopShortName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartStopShortNameBytes() { - java.lang.Object ref = startStopShortName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startStopShortName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate other = (fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate) obj; - public static final int OPERATING_DAY_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private volatile java.lang.Object operatingDay_ = ""; - /** - *
-     * Fields from redis
-     * 
- * - * optional string operating_day = 8; - * @return Whether the operatingDay field is set. - */ - @java.lang.Override - public boolean hasOperatingDay() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * Fields from redis
-     * 
- * - * optional string operating_day = 8; - * @return The operatingDay. - */ - @java.lang.Override - public java.lang.String getOperatingDay() { - java.lang.Object ref = operatingDay_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - operatingDay_ = s; - } - return s; - } - } - /** - *
-     * Fields from redis
-     * 
- * - * optional string operating_day = 8; - * @return The bytes for operatingDay. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOperatingDayBytes() { - java.lang.Object ref = operatingDay_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operatingDay_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + if (hasSchemaVersion() != other.hasSchemaVersion()) + return false; + if (hasSchemaVersion()) { + if (getSchemaVersion() != other.getSchemaVersion()) + return false; + } + if (!getMetroRowsList().equals(other.getMetroRowsList())) + return false; + if (hasTrainType() != other.hasTrainType()) + return false; + if (hasTrainType()) { + if (trainType_ != other.trainType_) + return false; + } + if (hasJourneySectionprogress() != other.hasJourneySectionprogress()) + return false; + if (hasJourneySectionprogress()) { + if (journeySectionprogress_ != other.journeySectionprogress_) + return false; + } + if (hasBeginTime() != other.hasBeginTime()) + return false; + if (hasBeginTime()) { + if (!getBeginTime().equals(other.getBeginTime())) + return false; + } + if (hasEndTime() != other.hasEndTime()) + return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) + return false; + } + if (hasStartStopShortName() != other.hasStartStopShortName()) + return false; + if (hasStartStopShortName()) { + if (!getStartStopShortName().equals(other.getStartStopShortName())) + return false; + } + if (hasOperatingDay() != other.hasOperatingDay()) + return false; + if (hasOperatingDay()) { + if (!getOperatingDay().equals(other.getOperatingDay())) + return false; + } + if (hasStartStopNumber() != other.hasStartStopNumber()) + return false; + if (hasStartStopNumber()) { + if (!getStartStopNumber().equals(other.getStartStopNumber())) + return false; + } + if (hasStartTime() != other.hasStartTime()) + return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) + return false; + } + if (hasDvjId() != other.hasDvjId()) + return false; + if (hasDvjId()) { + if (!getDvjId().equals(other.getDvjId())) + return false; + } + if (hasRouteName() != other.hasRouteName()) + return false; + if (hasRouteName()) { + if (!getRouteName().equals(other.getRouteName())) + return false; + } + if (hasStartDatetime() != other.hasStartDatetime()) + return false; + if (hasStartDatetime()) { + if (!getStartDatetime().equals(other.getStartDatetime())) + return false; + } + if (hasDirection() != other.hasDirection()) + return false; + if (hasDirection()) { + if (!getDirection().equals(other.getDirection())) + return false; + } + if (hasScheduled() != other.hasScheduled()) + return false; + if (hasScheduled()) { + if (getScheduled() != other.getScheduled()) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } - public static final int START_STOP_NUMBER_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private volatile java.lang.Object startStopNumber_ = ""; - /** - * optional string start_stop_number = 9; - * @return Whether the startStopNumber field is set. - */ - @java.lang.Override - public boolean hasStartStopNumber() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional string start_stop_number = 9; - * @return The startStopNumber. - */ - @java.lang.Override - public java.lang.String getStartStopNumber() { - java.lang.Object ref = startStopNumber_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startStopNumber_ = s; - } - return s; - } - } - /** - * optional string start_stop_number = 9; - * @return The bytes for startStopNumber. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartStopNumberBytes() { - java.lang.Object ref = startStopNumber_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startStopNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSchemaVersion()) { + hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion(); + } + if (getMetroRowsCount() > 0) { + hash = (37 * hash) + METRO_ROWS_FIELD_NUMBER; + hash = (53 * hash) + getMetroRowsList().hashCode(); + } + if (hasTrainType()) { + hash = (37 * hash) + TRAIN_TYPE_FIELD_NUMBER; + hash = (53 * hash) + trainType_; + } + if (hasJourneySectionprogress()) { + hash = (37 * hash) + JOURNEY_SECTIONPROGRESS_FIELD_NUMBER; + hash = (53 * hash) + journeySectionprogress_; + } + if (hasBeginTime()) { + hash = (37 * hash) + BEGIN_TIME_FIELD_NUMBER; + hash = (53 * hash) + getBeginTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (hasStartStopShortName()) { + hash = (37 * hash) + START_STOP_SHORT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getStartStopShortName().hashCode(); + } + if (hasOperatingDay()) { + hash = (37 * hash) + OPERATING_DAY_FIELD_NUMBER; + hash = (53 * hash) + getOperatingDay().hashCode(); + } + if (hasStartStopNumber()) { + hash = (37 * hash) + START_STOP_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getStartStopNumber().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasDvjId()) { + hash = (37 * hash) + DVJ_ID_FIELD_NUMBER; + hash = (53 * hash) + getDvjId().hashCode(); + } + if (hasRouteName()) { + hash = (37 * hash) + ROUTE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getRouteName().hashCode(); + } + if (hasStartDatetime()) { + hash = (37 * hash) + START_DATETIME_FIELD_NUMBER; + hash = (53 * hash) + getStartDatetime().hashCode(); + } + if (hasDirection()) { + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + getDirection().hashCode(); + } + if (hasScheduled()) { + hash = (37 * hash) + SCHEDULED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getScheduled()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.MetroEstimate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.MetroEstimate) + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroEstimate_descriptor; + } - public static final int START_TIME_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private volatile java.lang.Object startTime_ = ""; - /** - * optional string start_time = 10; - * @return Whether the startTime field is set. - */ - @java.lang.Override - public boolean hasStartTime() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * optional string start_time = 10; - * @return The startTime. - */ - @java.lang.Override - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startTime_ = s; - } - return s; - } - } - /** - * optional string start_time = 10; - * @return The bytes for startTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroEstimate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate.class, + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate.Builder.class); + } - public static final int DVJ_ID_FIELD_NUMBER = 11; - @SuppressWarnings("serial") - private volatile java.lang.Object dvjId_ = ""; - /** - * optional string dvj_id = 11; - * @return Whether the dvjId field is set. - */ - @java.lang.Override - public boolean hasDvjId() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * optional string dvj_id = 11; - * @return The dvjId. - */ - @java.lang.Override - public java.lang.String getDvjId() { - java.lang.Object ref = dvjId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - dvjId_ = s; - } - return s; - } - } - /** - * optional string dvj_id = 11; - * @return The bytes for dvjId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDvjIdBytes() { - java.lang.Object ref = dvjId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dvjId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + // Construct using fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate.newBuilder() + private Builder() { - public static final int ROUTE_NAME_FIELD_NUMBER = 12; - @SuppressWarnings("serial") - private volatile java.lang.Object routeName_ = ""; - /** - * optional string route_name = 12; - * @return Whether the routeName field is set. - */ - @java.lang.Override - public boolean hasRouteName() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * optional string route_name = 12; - * @return The routeName. - */ - @java.lang.Override - public java.lang.String getRouteName() { - java.lang.Object ref = routeName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - routeName_ = s; - } - return s; - } - } - /** - * optional string route_name = 12; - * @return The bytes for routeName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRouteNameBytes() { - java.lang.Object ref = routeName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + } - public static final int START_DATETIME_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private volatile java.lang.Object startDatetime_ = ""; - /** - * optional string start_datetime = 13; - * @return Whether the startDatetime field is set. - */ - @java.lang.Override - public boolean hasStartDatetime() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * optional string start_datetime = 13; - * @return The startDatetime. - */ - @java.lang.Override - public java.lang.String getStartDatetime() { - java.lang.Object ref = startDatetime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startDatetime_ = s; - } - return s; - } - } - /** - * optional string start_datetime = 13; - * @return The bytes for startDatetime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartDatetimeBytes() { - java.lang.Object ref = startDatetime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startDatetime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); - public static final int DIRECTION_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private volatile java.lang.Object direction_ = ""; - /** - * optional string direction = 14; - * @return Whether the direction field is set. - */ - @java.lang.Override - public boolean hasDirection() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * optional string direction = 14; - * @return The direction. - */ - @java.lang.Override - public java.lang.String getDirection() { - java.lang.Object ref = direction_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - direction_ = s; - } - return s; - } - } - /** - * optional string direction = 14; - * @return The bytes for direction. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDirectionBytes() { - java.lang.Object ref = direction_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - direction_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schemaVersion_ = 1; + if (metroRowsBuilder_ == null) { + metroRows_ = java.util.Collections.emptyList(); + } else { + metroRows_ = null; + metroRowsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + trainType_ = 0; + journeySectionprogress_ = 0; + beginTime_ = ""; + endTime_ = ""; + startStopShortName_ = ""; + operatingDay_ = ""; + startStopNumber_ = ""; + startTime_ = ""; + dvjId_ = ""; + routeName_ = ""; + startDatetime_ = ""; + direction_ = ""; + scheduled_ = false; + return this; + } - public static final int SCHEDULED_FIELD_NUMBER = 15; - private boolean scheduled_ = false; - /** - *
-     * Is the metro trip is present in the static schedule?
-     * 
- * - * optional bool scheduled = 15; - * @return Whether the scheduled field is set. - */ - @java.lang.Override - public boolean hasScheduled() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - *
-     * Is the metro trip is present in the static schedule?
-     * 
- * - * optional bool scheduled = 15; - * @return The scheduled. - */ - @java.lang.Override - public boolean getScheduled() { - return scheduled_; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroEstimate_descriptor; + } - 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 (!hasSchemaVersion()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTrainType()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasJourneySectionprogress()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasBeginTime()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasEndTime()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStartStopShortName()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getMetroRowsCount(); i++) { - if (!getMetroRows(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate.getDefaultInstance(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, schemaVersion_); - } - for (int i = 0; i < metroRows_.size(); i++) { - output.writeMessage(2, metroRows_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(3, trainType_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeEnum(4, journeySectionprogress_); - } - if (((bitField0_ & 0x00000008) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, beginTime_); - } - if (((bitField0_ & 0x00000010) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, endTime_); - } - if (((bitField0_ & 0x00000020) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, startStopShortName_); - } - if (((bitField0_ & 0x00000040) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, operatingDay_); - } - if (((bitField0_ & 0x00000080) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, startStopNumber_); - } - if (((bitField0_ & 0x00000100) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, startTime_); - } - if (((bitField0_ & 0x00000200) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, dvjId_); - } - if (((bitField0_ & 0x00000400) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, routeName_); - } - if (((bitField0_ & 0x00000800) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, startDatetime_); - } - if (((bitField0_ & 0x00001000) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, direction_); - } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeBool(15, scheduled_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate build() { + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @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, schemaVersion_); - } - for (int i = 0; i < metroRows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, metroRows_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, trainType_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, journeySectionprogress_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, beginTime_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, endTime_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, startStopShortName_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, operatingDay_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, startStopNumber_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, startTime_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, dvjId_); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, routeName_); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, startDatetime_); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, direction_); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, scheduled_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate buildPartial() { + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate result = new fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate other = (fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate) obj; - - if (hasSchemaVersion() != other.hasSchemaVersion()) return false; - if (hasSchemaVersion()) { - if (getSchemaVersion() - != other.getSchemaVersion()) return false; - } - if (!getMetroRowsList() - .equals(other.getMetroRowsList())) return false; - if (hasTrainType() != other.hasTrainType()) return false; - if (hasTrainType()) { - if (trainType_ != other.trainType_) return false; - } - if (hasJourneySectionprogress() != other.hasJourneySectionprogress()) return false; - if (hasJourneySectionprogress()) { - if (journeySectionprogress_ != other.journeySectionprogress_) return false; - } - if (hasBeginTime() != other.hasBeginTime()) return false; - if (hasBeginTime()) { - if (!getBeginTime() - .equals(other.getBeginTime())) return false; - } - if (hasEndTime() != other.hasEndTime()) return false; - if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (hasStartStopShortName() != other.hasStartStopShortName()) return false; - if (hasStartStopShortName()) { - if (!getStartStopShortName() - .equals(other.getStartStopShortName())) return false; - } - if (hasOperatingDay() != other.hasOperatingDay()) return false; - if (hasOperatingDay()) { - if (!getOperatingDay() - .equals(other.getOperatingDay())) return false; - } - if (hasStartStopNumber() != other.hasStartStopNumber()) return false; - if (hasStartStopNumber()) { - if (!getStartStopNumber() - .equals(other.getStartStopNumber())) return false; - } - if (hasStartTime() != other.hasStartTime()) return false; - if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; - } - if (hasDvjId() != other.hasDvjId()) return false; - if (hasDvjId()) { - if (!getDvjId() - .equals(other.getDvjId())) return false; - } - if (hasRouteName() != other.hasRouteName()) return false; - if (hasRouteName()) { - if (!getRouteName() - .equals(other.getRouteName())) return false; - } - if (hasStartDatetime() != other.hasStartDatetime()) return false; - if (hasStartDatetime()) { - if (!getStartDatetime() - .equals(other.getStartDatetime())) return false; - } - if (hasDirection() != other.hasDirection()) return false; - if (hasDirection()) { - if (!getDirection() - .equals(other.getDirection())) return false; - } - if (hasScheduled() != other.hasScheduled()) return false; - if (hasScheduled()) { - if (getScheduled() - != other.getScheduled()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private void buildPartialRepeatedFields( + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate result) { + if (metroRowsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + metroRows_ = java.util.Collections.unmodifiableList(metroRows_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.metroRows_ = metroRows_; + } else { + result.metroRows_ = metroRowsBuilder_.build(); + } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSchemaVersion()) { - hash = (37 * hash) + SCHEMAVERSION_FIELD_NUMBER; - hash = (53 * hash) + getSchemaVersion(); - } - if (getMetroRowsCount() > 0) { - hash = (37 * hash) + METRO_ROWS_FIELD_NUMBER; - hash = (53 * hash) + getMetroRowsList().hashCode(); - } - if (hasTrainType()) { - hash = (37 * hash) + TRAIN_TYPE_FIELD_NUMBER; - hash = (53 * hash) + trainType_; - } - if (hasJourneySectionprogress()) { - hash = (37 * hash) + JOURNEY_SECTIONPROGRESS_FIELD_NUMBER; - hash = (53 * hash) + journeySectionprogress_; - } - if (hasBeginTime()) { - hash = (37 * hash) + BEGIN_TIME_FIELD_NUMBER; - hash = (53 * hash) + getBeginTime().hashCode(); - } - if (hasEndTime()) { - hash = (37 * hash) + END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime().hashCode(); - } - if (hasStartStopShortName()) { - hash = (37 * hash) + START_STOP_SHORT_NAME_FIELD_NUMBER; - hash = (53 * hash) + getStartStopShortName().hashCode(); - } - if (hasOperatingDay()) { - hash = (37 * hash) + OPERATING_DAY_FIELD_NUMBER; - hash = (53 * hash) + getOperatingDay().hashCode(); - } - if (hasStartStopNumber()) { - hash = (37 * hash) + START_STOP_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getStartStopNumber().hashCode(); - } - if (hasStartTime()) { - hash = (37 * hash) + START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStartTime().hashCode(); - } - if (hasDvjId()) { - hash = (37 * hash) + DVJ_ID_FIELD_NUMBER; - hash = (53 * hash) + getDvjId().hashCode(); - } - if (hasRouteName()) { - hash = (37 * hash) + ROUTE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getRouteName().hashCode(); - } - if (hasStartDatetime()) { - hash = (37 * hash) + START_DATETIME_FIELD_NUMBER; - hash = (53 * hash) + getStartDatetime().hashCode(); - } - if (hasDirection()) { - hash = (37 * hash) + DIRECTION_FIELD_NUMBER; - hash = (53 * hash) + getDirection().hashCode(); - } - if (hasScheduled()) { - hash = (37 * hash) + SCHEDULED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getScheduled()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + private void buildPartial0(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schemaVersion_ = schemaVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trainType_ = trainType_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.journeySectionprogress_ = journeySectionprogress_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.beginTime_ = beginTime_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.endTime_ = endTime_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.startStopShortName_ = startStopShortName_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.operatingDay_ = operatingDay_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.startStopNumber_ = startStopNumber_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.startTime_ = startTime_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.dvjId_ = dvjId_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.routeName_ = routeName_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.startDatetime_ = startDatetime_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.direction_ = direction_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.scheduled_ = scheduled_; + to_bitField0_ |= 0x00002000; + } + result.bitField0_ |= to_bitField0_; + } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate) { + return mergeFrom((fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public Builder mergeFrom(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate other) { + if (other == fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate.getDefaultInstance()) + return this; + if (other.hasSchemaVersion()) { + setSchemaVersion(other.getSchemaVersion()); + } + if (metroRowsBuilder_ == null) { + if (!other.metroRows_.isEmpty()) { + if (metroRows_.isEmpty()) { + metroRows_ = other.metroRows_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMetroRowsIsMutable(); + metroRows_.addAll(other.metroRows_); + } + onChanged(); + } + } else { + if (!other.metroRows_.isEmpty()) { + if (metroRowsBuilder_.isEmpty()) { + metroRowsBuilder_.dispose(); + metroRowsBuilder_ = null; + metroRows_ = other.metroRows_; + bitField0_ = (bitField0_ & ~0x00000002); + metroRowsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetroRowsFieldBuilder() + : null; + } else { + metroRowsBuilder_.addAllMessages(other.metroRows_); + } + } + } + if (other.hasTrainType()) { + setTrainType(other.getTrainType()); + } + if (other.hasJourneySectionprogress()) { + setJourneySectionprogress(other.getJourneySectionprogress()); + } + if (other.hasBeginTime()) { + beginTime_ = other.beginTime_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasEndTime()) { + endTime_ = other.endTime_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasStartStopShortName()) { + startStopShortName_ = other.startStopShortName_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasOperatingDay()) { + operatingDay_ = other.operatingDay_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasStartStopNumber()) { + startStopNumber_ = other.startStopNumber_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasStartTime()) { + startTime_ = other.startTime_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasDvjId()) { + dvjId_ = other.dvjId_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasRouteName()) { + routeName_ = other.routeName_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.hasStartDatetime()) { + startDatetime_ = other.startDatetime_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.hasDirection()) { + direction_ = other.direction_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (other.hasScheduled()) { + setScheduled(other.getScheduled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasSchemaVersion()) { + return false; + } + if (!hasTrainType()) { + return false; + } + if (!hasJourneySectionprogress()) { + return false; + } + if (!hasBeginTime()) { + return false; + } + if (!hasEndTime()) { + return false; + } + if (!hasStartStopShortName()) { + return false; + } + for (int i = 0; i < getMetroRowsCount(); i++) { + if (!getMetroRows(i).isInitialized()) { + return false; + } + } + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.MetroEstimate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.MetroEstimate) - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroEstimate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroEstimate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate.class, fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate.Builder.class); - } - - // Construct using fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - schemaVersion_ = 1; - if (metroRowsBuilder_ == null) { - metroRows_ = java.util.Collections.emptyList(); - } else { - metroRows_ = null; - metroRowsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - trainType_ = 0; - journeySectionprogress_ = 0; - beginTime_ = ""; - endTime_ = ""; - startStopShortName_ = ""; - operatingDay_ = ""; - startStopNumber_ = ""; - startTime_ = ""; - dvjId_ = ""; - routeName_ = ""; - startDatetime_ = ""; - direction_ = ""; - scheduled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.MetroAtsProtos.internal_static_proto_MetroEstimate_descriptor; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate build() { - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate buildPartial() { - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate result = new fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate result) { - if (metroRowsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metroRows_ = java.util.Collections.unmodifiableList(metroRows_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metroRows_ = metroRows_; - } else { - result.metroRows_ = metroRowsBuilder_.build(); - } - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.schemaVersion_ = schemaVersion_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.trainType_ = trainType_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.journeySectionprogress_ = journeySectionprogress_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.beginTime_ = beginTime_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.endTime_ = endTime_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.startStopShortName_ = startStopShortName_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.operatingDay_ = operatingDay_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.startStopNumber_ = startStopNumber_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.startTime_ = startTime_; - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.dvjId_ = dvjId_; - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.routeName_ = routeName_; - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.startDatetime_ = startDatetime_; - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.direction_ = direction_; - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.scheduled_ = scheduled_; - to_bitField0_ |= 0x00002000; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate) { - return mergeFrom((fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate other) { - if (other == fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate.getDefaultInstance()) return this; - if (other.hasSchemaVersion()) { - setSchemaVersion(other.getSchemaVersion()); - } - if (metroRowsBuilder_ == null) { - if (!other.metroRows_.isEmpty()) { - if (metroRows_.isEmpty()) { - metroRows_ = other.metroRows_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetroRowsIsMutable(); - metroRows_.addAll(other.metroRows_); - } - onChanged(); - } - } else { - if (!other.metroRows_.isEmpty()) { - if (metroRowsBuilder_.isEmpty()) { - metroRowsBuilder_.dispose(); - metroRowsBuilder_ = null; - metroRows_ = other.metroRows_; - bitField0_ = (bitField0_ & ~0x00000002); - metroRowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetroRowsFieldBuilder() : null; - } else { - metroRowsBuilder_.addAllMessages(other.metroRows_); - } - } - } - if (other.hasTrainType()) { - setTrainType(other.getTrainType()); - } - if (other.hasJourneySectionprogress()) { - setJourneySectionprogress(other.getJourneySectionprogress()); - } - if (other.hasBeginTime()) { - beginTime_ = other.beginTime_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.hasEndTime()) { - endTime_ = other.endTime_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.hasStartStopShortName()) { - startStopShortName_ = other.startStopShortName_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (other.hasOperatingDay()) { - operatingDay_ = other.operatingDay_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (other.hasStartStopNumber()) { - startStopNumber_ = other.startStopNumber_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (other.hasStartTime()) { - startTime_ = other.startTime_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (other.hasDvjId()) { - dvjId_ = other.dvjId_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (other.hasRouteName()) { - routeName_ = other.routeName_; - bitField0_ |= 0x00000800; - onChanged(); - } - if (other.hasStartDatetime()) { - startDatetime_ = other.startDatetime_; - bitField0_ |= 0x00001000; - onChanged(); - } - if (other.hasDirection()) { - direction_ = other.direction_; - bitField0_ |= 0x00002000; - onChanged(); - } - if (other.hasScheduled()) { - setScheduled(other.getScheduled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSchemaVersion()) { - return false; - } - if (!hasTrainType()) { - return false; - } - if (!hasJourneySectionprogress()) { - return false; - } - if (!hasBeginTime()) { - return false; - } - if (!hasEndTime()) { - return false; - } - if (!hasStartStopShortName()) { - return false; - } - for (int i = 0; i < getMetroRowsCount(); i++) { - if (!getMetroRows(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 8: { - schemaVersion_ = input.readInt32(); + @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 : { + schemaVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18 : { + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate m = input.readMessage( + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.PARSER, + extensionRegistry); + if (metroRowsBuilder_ == null) { + ensureMetroRowsIsMutable(); + metroRows_.add(m); + } else { + metroRowsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType tmpValue = fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(3, tmpRaw); + } else { + trainType_ = tmpRaw; + bitField0_ |= 0x00000004; + } + break; + } // case 24 + case 32 : { + int tmpRaw = input.readEnum(); + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress tmpValue = fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress + .forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(4, tmpRaw); + } else { + journeySectionprogress_ = tmpRaw; + bitField0_ |= 0x00000008; + } + break; + } // case 32 + case 42 : { + beginTime_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50 : { + endTime_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58 : { + startStopShortName_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66 : { + operatingDay_ = input.readBytes(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74 : { + startStopNumber_ = input.readBytes(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82 : { + startTime_ = input.readBytes(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90 : { + dvjId_ = input.readBytes(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98 : { + routeName_ = input.readBytes(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106 : { + startDatetime_ = input.readBytes(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114 : { + direction_ = input.readBytes(); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 120 : { + scheduled_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 120 + 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 schemaVersion_ = 1; + /** + *
+             * Fields from mqtt-pulsar-gateway
+             * 
+ * + * required int32 SchemaVersion = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Fields from mqtt-pulsar-gateway
+             * 
+ * + * required int32 SchemaVersion = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + /** + *
+             * Fields from mqtt-pulsar-gateway
+             * 
+ * + * required int32 SchemaVersion = 1 [default = 1]; + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(int value) { + + schemaVersion_ = value; bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate m = - input.readMessage( - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.PARSER, - extensionRegistry); + onChanged(); + return this; + } + /** + *
+             * Fields from mqtt-pulsar-gateway
+             * 
+ * + * required int32 SchemaVersion = 1 [default = 1]; + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + schemaVersion_ = 1; + onChanged(); + return this; + } + + private java.util.List metroRows_ = java.util.Collections + .emptyList(); + private void ensureMetroRowsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + metroRows_ = new java.util.ArrayList( + metroRows_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 metroRowsBuilder_; + + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public java.util.List getMetroRowsList() { + if (metroRowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metroRows_); + } else { + return metroRowsBuilder_.getMessageList(); + } + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public int getMetroRowsCount() { + if (metroRowsBuilder_ == null) { + return metroRows_.size(); + } else { + return metroRowsBuilder_.getCount(); + } + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate getMetroRows(int index) { + if (metroRowsBuilder_ == null) { + return metroRows_.get(index); + } else { + return metroRowsBuilder_.getMessage(index); + } + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public Builder setMetroRows(int index, + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate value) { + if (metroRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetroRowsIsMutable(); + metroRows_.set(index, value); + onChanged(); + } else { + metroRowsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public Builder setMetroRows(int index, + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder builderForValue) { + if (metroRowsBuilder_ == null) { + ensureMetroRowsIsMutable(); + metroRows_.set(index, builderForValue.build()); + onChanged(); + } else { + metroRowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public Builder addMetroRows(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate value) { + if (metroRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetroRowsIsMutable(); + metroRows_.add(value); + onChanged(); + } else { + metroRowsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public Builder addMetroRows(int index, + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate value) { + if (metroRowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetroRowsIsMutable(); + metroRows_.add(index, value); + onChanged(); + } else { + metroRowsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public Builder addMetroRows( + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder builderForValue) { + if (metroRowsBuilder_ == null) { + ensureMetroRowsIsMutable(); + metroRows_.add(builderForValue.build()); + onChanged(); + } else { + metroRowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public Builder addMetroRows(int index, + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder builderForValue) { + if (metroRowsBuilder_ == null) { + ensureMetroRowsIsMutable(); + metroRows_.add(index, builderForValue.build()); + onChanged(); + } else { + metroRowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public Builder addAllMetroRows( + java.lang.Iterable values) { + if (metroRowsBuilder_ == null) { + ensureMetroRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metroRows_); + onChanged(); + } else { + metroRowsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public Builder clearMetroRows() { + if (metroRowsBuilder_ == null) { + metroRows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + metroRowsBuilder_.clear(); + } + return this; + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public Builder removeMetroRows(int index) { + if (metroRowsBuilder_ == null) { + ensureMetroRowsIsMutable(); + metroRows_.remove(index); + onChanged(); + } else { + metroRowsBuilder_.remove(index); + } + return this; + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder getMetroRowsBuilder( + int index) { + return getMetroRowsFieldBuilder().getBuilder(index); + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimateOrBuilder getMetroRowsOrBuilder( + int index) { if (metroRowsBuilder_ == null) { - ensureMetroRowsIsMutable(); - metroRows_.add(m); + return metroRows_.get(index); + } else { + return metroRowsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public java.util.List getMetroRowsOrBuilderList() { + if (metroRowsBuilder_ != null) { + return metroRowsBuilder_.getMessageOrBuilderList(); } else { - metroRowsBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: { - int tmpRaw = input.readEnum(); - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType tmpValue = - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(3, tmpRaw); + return java.util.Collections.unmodifiableList(metroRows_); + } + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder addMetroRowsBuilder() { + return getMetroRowsFieldBuilder().addBuilder( + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.getDefaultInstance()); + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder addMetroRowsBuilder( + int index) { + return getMetroRowsFieldBuilder().addBuilder(index, + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.getDefaultInstance()); + } + /** + * repeated .proto.MetroStopEstimate metro_rows = 2; + */ + public java.util.List getMetroRowsBuilderList() { + return getMetroRowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3 getMetroRowsFieldBuilder() { + if (metroRowsBuilder_ == null) { + metroRowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3( + metroRows_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + metroRows_ = null; + } + return metroRowsBuilder_; + } + + private int trainType_ = 0; + /** + * required .proto.MetroTrainType train_type = 3; + * @return Whether the trainType field is set. + */ + @java.lang.Override + public boolean hasTrainType() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required .proto.MetroTrainType train_type = 3; + * @return The trainType. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType getTrainType() { + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType result = fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType + .forNumber(trainType_); + return result == null ? fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType.M : result; + } + /** + * required .proto.MetroTrainType train_type = 3; + * @param value The trainType to set. + * @return This builder for chaining. + */ + public Builder setTrainType(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + trainType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * required .proto.MetroTrainType train_type = 3; + * @return This builder for chaining. + */ + public Builder clearTrainType() { + bitField0_ = (bitField0_ & ~0x00000004); + trainType_ = 0; + onChanged(); + return this; + } + + private int journeySectionprogress_ = 0; + /** + * required .proto.MetroProgress journey_sectionprogress = 4; + * @return Whether the journeySectionprogress field is set. + */ + @java.lang.Override + public boolean hasJourneySectionprogress() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * required .proto.MetroProgress journey_sectionprogress = 4; + * @return The journeySectionprogress. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress getJourneySectionprogress() { + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress result = fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress + .forNumber(journeySectionprogress_); + return result == null ? fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress.SCHEDULED : result; + } + /** + * required .proto.MetroProgress journey_sectionprogress = 4; + * @param value The journeySectionprogress to set. + * @return This builder for chaining. + */ + public Builder setJourneySectionprogress( + fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + journeySectionprogress_ = value.getNumber(); + onChanged(); + return this; + } + /** + * required .proto.MetroProgress journey_sectionprogress = 4; + * @return This builder for chaining. + */ + public Builder clearJourneySectionprogress() { + bitField0_ = (bitField0_ & ~0x00000008); + journeySectionprogress_ = 0; + onChanged(); + return this; + } + + private java.lang.Object beginTime_ = ""; + /** + * required string begin_time = 5; + * @return Whether the beginTime field is set. + */ + public boolean hasBeginTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * required string begin_time = 5; + * @return The beginTime. + */ + public java.lang.String getBeginTime() { + java.lang.Object ref = beginTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + beginTime_ = s; + } + return s; } else { - trainType_ = tmpRaw; - bitField0_ |= 0x00000004; - } - break; - } // case 24 - case 32: { - int tmpRaw = input.readEnum(); - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress tmpValue = - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress.forNumber(tmpRaw); - if (tmpValue == null) { - mergeUnknownVarintField(4, tmpRaw); + return (java.lang.String) ref; + } + } + /** + * required string begin_time = 5; + * @return The bytes for beginTime. + */ + public com.google.protobuf.ByteString getBeginTimeBytes() { + java.lang.Object ref = beginTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + beginTime_ = b; + return b; } else { - journeySectionprogress_ = tmpRaw; - bitField0_ |= 0x00000008; + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string begin_time = 5; + * @param value The beginTime to set. + * @return This builder for chaining. + */ + public Builder setBeginTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + beginTime_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * required string begin_time = 5; + * @return This builder for chaining. + */ + public Builder clearBeginTime() { + beginTime_ = getDefaultInstance().getBeginTime(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * required string begin_time = 5; + * @param value The bytes for beginTime to set. + * @return This builder for chaining. + */ + public Builder setBeginTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - break; - } // case 32 - case 42: { - beginTime_ = input.readBytes(); + beginTime_ = value; bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - endTime_ = input.readBytes(); + onChanged(); + return this; + } + + private java.lang.Object endTime_ = ""; + /** + * required string end_time = 6; + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * required string end_time = 6; + * @return The endTime. + */ + public java.lang.String getEndTime() { + java.lang.Object ref = endTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + endTime_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string end_time = 6; + * @return The bytes for endTime. + */ + public com.google.protobuf.ByteString getEndTimeBytes() { + java.lang.Object ref = endTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + endTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string end_time = 6; + * @param value The endTime to set. + * @return This builder for chaining. + */ + public Builder setEndTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * required string end_time = 6; + * @return This builder for chaining. + */ + public Builder clearEndTime() { + endTime_ = getDefaultInstance().getEndTime(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * required string end_time = 6; + * @param value The bytes for endTime to set. + * @return This builder for chaining. + */ + public Builder setEndTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - startStopShortName_ = input.readBytes(); + onChanged(); + return this; + } + + private java.lang.Object startStopShortName_ = ""; + /** + * required string start_stop_short_name = 7; + * @return Whether the startStopShortName field is set. + */ + public boolean hasStartStopShortName() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * required string start_stop_short_name = 7; + * @return The startStopShortName. + */ + public java.lang.String getStartStopShortName() { + java.lang.Object ref = startStopShortName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startStopShortName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string start_stop_short_name = 7; + * @return The bytes for startStopShortName. + */ + public com.google.protobuf.ByteString getStartStopShortNameBytes() { + java.lang.Object ref = startStopShortName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + startStopShortName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string start_stop_short_name = 7; + * @param value The startStopShortName to set. + * @return This builder for chaining. + */ + public Builder setStartStopShortName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + startStopShortName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * required string start_stop_short_name = 7; + * @return This builder for chaining. + */ + public Builder clearStartStopShortName() { + startStopShortName_ = getDefaultInstance().getStartStopShortName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * required string start_stop_short_name = 7; + * @param value The bytes for startStopShortName to set. + * @return This builder for chaining. + */ + public Builder setStartStopShortNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + startStopShortName_ = value; bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - operatingDay_ = input.readBytes(); + onChanged(); + return this; + } + + private java.lang.Object operatingDay_ = ""; + /** + *
+             * Fields from redis
+             * 
+ * + * optional string operating_day = 8; + * @return Whether the operatingDay field is set. + */ + public boolean hasOperatingDay() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+             * Fields from redis
+             * 
+ * + * optional string operating_day = 8; + * @return The operatingDay. + */ + public java.lang.String getOperatingDay() { + java.lang.Object ref = operatingDay_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + operatingDay_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             * Fields from redis
+             * 
+ * + * optional string operating_day = 8; + * @return The bytes for operatingDay. + */ + public com.google.protobuf.ByteString getOperatingDayBytes() { + java.lang.Object ref = operatingDay_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + operatingDay_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             * Fields from redis
+             * 
+ * + * optional string operating_day = 8; + * @param value The operatingDay to set. + * @return This builder for chaining. + */ + public Builder setOperatingDay(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + operatingDay_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+             * Fields from redis
+             * 
+ * + * optional string operating_day = 8; + * @return This builder for chaining. + */ + public Builder clearOperatingDay() { + operatingDay_ = getDefaultInstance().getOperatingDay(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+             * Fields from redis
+             * 
+ * + * optional string operating_day = 8; + * @param value The bytes for operatingDay to set. + * @return This builder for chaining. + */ + public Builder setOperatingDayBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + operatingDay_ = value; bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: { - startStopNumber_ = input.readBytes(); + onChanged(); + return this; + } + + private java.lang.Object startStopNumber_ = ""; + /** + * optional string start_stop_number = 9; + * @return Whether the startStopNumber field is set. + */ + public boolean hasStartStopNumber() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional string start_stop_number = 9; + * @return The startStopNumber. + */ + public java.lang.String getStartStopNumber() { + java.lang.Object ref = startStopNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startStopNumber_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string start_stop_number = 9; + * @return The bytes for startStopNumber. + */ + public com.google.protobuf.ByteString getStartStopNumberBytes() { + java.lang.Object ref = startStopNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + startStopNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string start_stop_number = 9; + * @param value The startStopNumber to set. + * @return This builder for chaining. + */ + public Builder setStartStopNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + startStopNumber_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * optional string start_stop_number = 9; + * @return This builder for chaining. + */ + public Builder clearStartStopNumber() { + startStopNumber_ = getDefaultInstance().getStartStopNumber(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * optional string start_stop_number = 9; + * @param value The bytes for startStopNumber to set. + * @return This builder for chaining. + */ + public Builder setStartStopNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + startStopNumber_ = value; bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: { - startTime_ = input.readBytes(); + onChanged(); + return this; + } + + private java.lang.Object startTime_ = ""; + /** + * optional string start_time = 10; + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional string start_time = 10; + * @return The startTime. + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startTime_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string start_time = 10; + * @return The bytes for startTime. + */ + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string start_time = 10; + * @param value The startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * optional string start_time = 10; + * @return This builder for chaining. + */ + public Builder clearStartTime() { + startTime_ = getDefaultInstance().getStartTime(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * optional string start_time = 10; + * @param value The bytes for startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: { - dvjId_ = input.readBytes(); + onChanged(); + return this; + } + + private java.lang.Object dvjId_ = ""; + /** + * optional string dvj_id = 11; + * @return Whether the dvjId field is set. + */ + public boolean hasDvjId() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional string dvj_id = 11; + * @return The dvjId. + */ + public java.lang.String getDvjId() { + java.lang.Object ref = dvjId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + dvjId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string dvj_id = 11; + * @return The bytes for dvjId. + */ + public com.google.protobuf.ByteString getDvjIdBytes() { + java.lang.Object ref = dvjId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + dvjId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string dvj_id = 11; + * @param value The dvjId to set. + * @return This builder for chaining. + */ + public Builder setDvjId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dvjId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * optional string dvj_id = 11; + * @return This builder for chaining. + */ + public Builder clearDvjId() { + dvjId_ = getDefaultInstance().getDvjId(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * optional string dvj_id = 11; + * @param value The bytes for dvjId to set. + * @return This builder for chaining. + */ + public Builder setDvjIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + dvjId_ = value; bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: { - routeName_ = input.readBytes(); + onChanged(); + return this; + } + + private java.lang.Object routeName_ = ""; + /** + * optional string route_name = 12; + * @return Whether the routeName field is set. + */ + public boolean hasRouteName() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional string route_name = 12; + * @return The routeName. + */ + public java.lang.String getRouteName() { + java.lang.Object ref = routeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + routeName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string route_name = 12; + * @return The bytes for routeName. + */ + public com.google.protobuf.ByteString getRouteNameBytes() { + java.lang.Object ref = routeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + routeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string route_name = 12; + * @param value The routeName to set. + * @return This builder for chaining. + */ + public Builder setRouteName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + routeName_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * optional string route_name = 12; + * @return This builder for chaining. + */ + public Builder clearRouteName() { + routeName_ = getDefaultInstance().getRouteName(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * optional string route_name = 12; + * @param value The bytes for routeName to set. + * @return This builder for chaining. + */ + public Builder setRouteNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + routeName_ = value; bitField0_ |= 0x00000800; - break; - } // case 98 - case 106: { - startDatetime_ = input.readBytes(); + onChanged(); + return this; + } + + private java.lang.Object startDatetime_ = ""; + /** + * optional string start_datetime = 13; + * @return Whether the startDatetime field is set. + */ + public boolean hasStartDatetime() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional string start_datetime = 13; + * @return The startDatetime. + */ + public java.lang.String getStartDatetime() { + java.lang.Object ref = startDatetime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startDatetime_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string start_datetime = 13; + * @return The bytes for startDatetime. + */ + public com.google.protobuf.ByteString getStartDatetimeBytes() { + java.lang.Object ref = startDatetime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + startDatetime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string start_datetime = 13; + * @param value The startDatetime to set. + * @return This builder for chaining. + */ + public Builder setStartDatetime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + startDatetime_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * optional string start_datetime = 13; + * @return This builder for chaining. + */ + public Builder clearStartDatetime() { + startDatetime_ = getDefaultInstance().getStartDatetime(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * optional string start_datetime = 13; + * @param value The bytes for startDatetime to set. + * @return This builder for chaining. + */ + public Builder setStartDatetimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + startDatetime_ = value; bitField0_ |= 0x00001000; - break; - } // case 106 - case 114: { - direction_ = input.readBytes(); + onChanged(); + return this; + } + + private java.lang.Object direction_ = ""; + /** + * optional string direction = 14; + * @return Whether the direction field is set. + */ + public boolean hasDirection() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * optional string direction = 14; + * @return The direction. + */ + public java.lang.String getDirection() { + java.lang.Object ref = direction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + direction_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string direction = 14; + * @return The bytes for direction. + */ + public com.google.protobuf.ByteString getDirectionBytes() { + java.lang.Object ref = direction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + direction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string direction = 14; + * @param value The direction to set. + * @return This builder for chaining. + */ + public Builder setDirection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + direction_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * optional string direction = 14; + * @return This builder for chaining. + */ + public Builder clearDirection() { + direction_ = getDefaultInstance().getDirection(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + /** + * optional string direction = 14; + * @param value The bytes for direction to set. + * @return This builder for chaining. + */ + public Builder setDirectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + direction_ = value; bitField0_ |= 0x00002000; - break; - } // case 114 - case 120: { - scheduled_ = input.readBool(); + onChanged(); + return this; + } + + private boolean scheduled_; + /** + *
+             * Is the metro trip is present in the static schedule?
+             * 
+ * + * optional bool scheduled = 15; + * @return Whether the scheduled field is set. + */ + @java.lang.Override + public boolean hasScheduled() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + *
+             * Is the metro trip is present in the static schedule?
+             * 
+ * + * optional bool scheduled = 15; + * @return The scheduled. + */ + @java.lang.Override + public boolean getScheduled() { + return scheduled_; + } + /** + *
+             * Is the metro trip is present in the static schedule?
+             * 
+ * + * optional bool scheduled = 15; + * @param value The scheduled to set. + * @return This builder for chaining. + */ + public Builder setScheduled(boolean value) { + + scheduled_ = value; bitField0_ |= 0x00004000; - break; - } // case 120 - 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 schemaVersion_ = 1; - /** - *
-       * Fields from mqtt-pulsar-gateway
-       * 
- * - * required int32 SchemaVersion = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Fields from mqtt-pulsar-gateway
-       * 
- * - * required int32 SchemaVersion = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - /** - *
-       * Fields from mqtt-pulsar-gateway
-       * 
- * - * required int32 SchemaVersion = 1 [default = 1]; - * @param value The schemaVersion to set. - * @return This builder for chaining. - */ - public Builder setSchemaVersion(int value) { - - schemaVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Fields from mqtt-pulsar-gateway
-       * 
- * - * required int32 SchemaVersion = 1 [default = 1]; - * @return This builder for chaining. - */ - public Builder clearSchemaVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - schemaVersion_ = 1; - onChanged(); - return this; - } - - private java.util.List metroRows_ = - java.util.Collections.emptyList(); - private void ensureMetroRowsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metroRows_ = new java.util.ArrayList(metroRows_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate, fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder, fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimateOrBuilder> metroRowsBuilder_; - - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public java.util.List getMetroRowsList() { - if (metroRowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metroRows_); - } else { - return metroRowsBuilder_.getMessageList(); - } - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public int getMetroRowsCount() { - if (metroRowsBuilder_ == null) { - return metroRows_.size(); - } else { - return metroRowsBuilder_.getCount(); - } - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate getMetroRows(int index) { - if (metroRowsBuilder_ == null) { - return metroRows_.get(index); - } else { - return metroRowsBuilder_.getMessage(index); - } - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public Builder setMetroRows( - int index, fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate value) { - if (metroRowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetroRowsIsMutable(); - metroRows_.set(index, value); - onChanged(); - } else { - metroRowsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public Builder setMetroRows( - int index, fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder builderForValue) { - if (metroRowsBuilder_ == null) { - ensureMetroRowsIsMutable(); - metroRows_.set(index, builderForValue.build()); - onChanged(); - } else { - metroRowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public Builder addMetroRows(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate value) { - if (metroRowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetroRowsIsMutable(); - metroRows_.add(value); - onChanged(); - } else { - metroRowsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public Builder addMetroRows( - int index, fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate value) { - if (metroRowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetroRowsIsMutable(); - metroRows_.add(index, value); - onChanged(); - } else { - metroRowsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public Builder addMetroRows( - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder builderForValue) { - if (metroRowsBuilder_ == null) { - ensureMetroRowsIsMutable(); - metroRows_.add(builderForValue.build()); - onChanged(); - } else { - metroRowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public Builder addMetroRows( - int index, fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder builderForValue) { - if (metroRowsBuilder_ == null) { - ensureMetroRowsIsMutable(); - metroRows_.add(index, builderForValue.build()); - onChanged(); - } else { - metroRowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public Builder addAllMetroRows( - java.lang.Iterable values) { - if (metroRowsBuilder_ == null) { - ensureMetroRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metroRows_); - onChanged(); - } else { - metroRowsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public Builder clearMetroRows() { - if (metroRowsBuilder_ == null) { - metroRows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metroRowsBuilder_.clear(); - } - return this; - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public Builder removeMetroRows(int index) { - if (metroRowsBuilder_ == null) { - ensureMetroRowsIsMutable(); - metroRows_.remove(index); - onChanged(); - } else { - metroRowsBuilder_.remove(index); - } - return this; - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder getMetroRowsBuilder( - int index) { - return getMetroRowsFieldBuilder().getBuilder(index); - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimateOrBuilder getMetroRowsOrBuilder( - int index) { - if (metroRowsBuilder_ == null) { - return metroRows_.get(index); } else { - return metroRowsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public java.util.List - getMetroRowsOrBuilderList() { - if (metroRowsBuilder_ != null) { - return metroRowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metroRows_); - } - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder addMetroRowsBuilder() { - return getMetroRowsFieldBuilder().addBuilder( - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.getDefaultInstance()); - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder addMetroRowsBuilder( - int index) { - return getMetroRowsFieldBuilder().addBuilder( - index, fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.getDefaultInstance()); - } - /** - * repeated .proto.MetroStopEstimate metro_rows = 2; - */ - public java.util.List - getMetroRowsBuilderList() { - return getMetroRowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate, fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder, fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimateOrBuilder> - getMetroRowsFieldBuilder() { - if (metroRowsBuilder_ == null) { - metroRowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate, fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimate.Builder, fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroStopEstimateOrBuilder>( - metroRows_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - metroRows_ = null; - } - return metroRowsBuilder_; - } - - private int trainType_ = 0; - /** - * required .proto.MetroTrainType train_type = 3; - * @return Whether the trainType field is set. - */ - @java.lang.Override public boolean hasTrainType() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required .proto.MetroTrainType train_type = 3; - * @return The trainType. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType getTrainType() { - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType result = fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType.forNumber(trainType_); - return result == null ? fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType.M : result; - } - /** - * required .proto.MetroTrainType train_type = 3; - * @param value The trainType to set. - * @return This builder for chaining. - */ - public Builder setTrainType(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroTrainType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - trainType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .proto.MetroTrainType train_type = 3; - * @return This builder for chaining. - */ - public Builder clearTrainType() { - bitField0_ = (bitField0_ & ~0x00000004); - trainType_ = 0; - onChanged(); - return this; - } - - private int journeySectionprogress_ = 0; - /** - * required .proto.MetroProgress journey_sectionprogress = 4; - * @return Whether the journeySectionprogress field is set. - */ - @java.lang.Override public boolean hasJourneySectionprogress() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required .proto.MetroProgress journey_sectionprogress = 4; - * @return The journeySectionprogress. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress getJourneySectionprogress() { - fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress result = fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress.forNumber(journeySectionprogress_); - return result == null ? fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress.SCHEDULED : result; - } - /** - * required .proto.MetroProgress journey_sectionprogress = 4; - * @param value The journeySectionprogress to set. - * @return This builder for chaining. - */ - public Builder setJourneySectionprogress(fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroProgress value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - journeySectionprogress_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .proto.MetroProgress journey_sectionprogress = 4; - * @return This builder for chaining. - */ - public Builder clearJourneySectionprogress() { - bitField0_ = (bitField0_ & ~0x00000008); - journeySectionprogress_ = 0; - onChanged(); - return this; - } - - private java.lang.Object beginTime_ = ""; - /** - * required string begin_time = 5; - * @return Whether the beginTime field is set. - */ - public boolean hasBeginTime() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required string begin_time = 5; - * @return The beginTime. - */ - public java.lang.String getBeginTime() { - java.lang.Object ref = beginTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - beginTime_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string begin_time = 5; - * @return The bytes for beginTime. - */ - public com.google.protobuf.ByteString - getBeginTimeBytes() { - java.lang.Object ref = beginTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - beginTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string begin_time = 5; - * @param value The beginTime to set. - * @return This builder for chaining. - */ - public Builder setBeginTime( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - beginTime_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * required string begin_time = 5; - * @return This builder for chaining. - */ - public Builder clearBeginTime() { - beginTime_ = getDefaultInstance().getBeginTime(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * required string begin_time = 5; - * @param value The bytes for beginTime to set. - * @return This builder for chaining. - */ - public Builder setBeginTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - beginTime_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object endTime_ = ""; - /** - * required string end_time = 6; - * @return Whether the endTime field is set. - */ - public boolean hasEndTime() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * required string end_time = 6; - * @return The endTime. - */ - public java.lang.String getEndTime() { - java.lang.Object ref = endTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - endTime_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string end_time = 6; - * @return The bytes for endTime. - */ - public com.google.protobuf.ByteString - getEndTimeBytes() { - java.lang.Object ref = endTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - endTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string end_time = 6; - * @param value The endTime to set. - * @return This builder for chaining. - */ - public Builder setEndTime( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - endTime_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * required string end_time = 6; - * @return This builder for chaining. - */ - public Builder clearEndTime() { - endTime_ = getDefaultInstance().getEndTime(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * required string end_time = 6; - * @param value The bytes for endTime to set. - * @return This builder for chaining. - */ - public Builder setEndTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - endTime_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private java.lang.Object startStopShortName_ = ""; - /** - * required string start_stop_short_name = 7; - * @return Whether the startStopShortName field is set. - */ - public boolean hasStartStopShortName() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * required string start_stop_short_name = 7; - * @return The startStopShortName. - */ - public java.lang.String getStartStopShortName() { - java.lang.Object ref = startStopShortName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startStopShortName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string start_stop_short_name = 7; - * @return The bytes for startStopShortName. - */ - public com.google.protobuf.ByteString - getStartStopShortNameBytes() { - java.lang.Object ref = startStopShortName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startStopShortName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string start_stop_short_name = 7; - * @param value The startStopShortName to set. - * @return This builder for chaining. - */ - public Builder setStartStopShortName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - startStopShortName_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * required string start_stop_short_name = 7; - * @return This builder for chaining. - */ - public Builder clearStartStopShortName() { - startStopShortName_ = getDefaultInstance().getStartStopShortName(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * required string start_stop_short_name = 7; - * @param value The bytes for startStopShortName to set. - * @return This builder for chaining. - */ - public Builder setStartStopShortNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - startStopShortName_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private java.lang.Object operatingDay_ = ""; - /** - *
-       * Fields from redis
-       * 
- * - * optional string operating_day = 8; - * @return Whether the operatingDay field is set. - */ - public boolean hasOperatingDay() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-       * Fields from redis
-       * 
- * - * optional string operating_day = 8; - * @return The operatingDay. - */ - public java.lang.String getOperatingDay() { - java.lang.Object ref = operatingDay_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - operatingDay_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Fields from redis
-       * 
- * - * optional string operating_day = 8; - * @return The bytes for operatingDay. - */ - public com.google.protobuf.ByteString - getOperatingDayBytes() { - java.lang.Object ref = operatingDay_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operatingDay_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Fields from redis
-       * 
- * - * optional string operating_day = 8; - * @param value The operatingDay to set. - * @return This builder for chaining. - */ - public Builder setOperatingDay( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - operatingDay_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-       * Fields from redis
-       * 
- * - * optional string operating_day = 8; - * @return This builder for chaining. - */ - public Builder clearOperatingDay() { - operatingDay_ = getDefaultInstance().getOperatingDay(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - *
-       * Fields from redis
-       * 
- * - * optional string operating_day = 8; - * @param value The bytes for operatingDay to set. - * @return This builder for chaining. - */ - public Builder setOperatingDayBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - operatingDay_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private java.lang.Object startStopNumber_ = ""; - /** - * optional string start_stop_number = 9; - * @return Whether the startStopNumber field is set. - */ - public boolean hasStartStopNumber() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * optional string start_stop_number = 9; - * @return The startStopNumber. - */ - public java.lang.String getStartStopNumber() { - java.lang.Object ref = startStopNumber_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startStopNumber_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string start_stop_number = 9; - * @return The bytes for startStopNumber. - */ - public com.google.protobuf.ByteString - getStartStopNumberBytes() { - java.lang.Object ref = startStopNumber_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startStopNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string start_stop_number = 9; - * @param value The startStopNumber to set. - * @return This builder for chaining. - */ - public Builder setStartStopNumber( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - startStopNumber_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * optional string start_stop_number = 9; - * @return This builder for chaining. - */ - public Builder clearStartStopNumber() { - startStopNumber_ = getDefaultInstance().getStartStopNumber(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - * optional string start_stop_number = 9; - * @param value The bytes for startStopNumber to set. - * @return This builder for chaining. - */ - public Builder setStartStopNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - startStopNumber_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private java.lang.Object startTime_ = ""; - /** - * optional string start_time = 10; - * @return Whether the startTime field is set. - */ - public boolean hasStartTime() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * optional string start_time = 10; - * @return The startTime. - */ - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startTime_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string start_time = 10; - * @return The bytes for startTime. - */ - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string start_time = 10; - * @param value The startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTime( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - startTime_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * optional string start_time = 10; - * @return This builder for chaining. - */ - public Builder clearStartTime() { - startTime_ = getDefaultInstance().getStartTime(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } - /** - * optional string start_time = 10; - * @param value The bytes for startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - startTime_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - - private java.lang.Object dvjId_ = ""; - /** - * optional string dvj_id = 11; - * @return Whether the dvjId field is set. - */ - public boolean hasDvjId() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * optional string dvj_id = 11; - * @return The dvjId. - */ - public java.lang.String getDvjId() { - java.lang.Object ref = dvjId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - dvjId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string dvj_id = 11; - * @return The bytes for dvjId. - */ - public com.google.protobuf.ByteString - getDvjIdBytes() { - java.lang.Object ref = dvjId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dvjId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string dvj_id = 11; - * @param value The dvjId to set. - * @return This builder for chaining. - */ - public Builder setDvjId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - dvjId_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * optional string dvj_id = 11; - * @return This builder for chaining. - */ - public Builder clearDvjId() { - dvjId_ = getDefaultInstance().getDvjId(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - return this; - } - /** - * optional string dvj_id = 11; - * @param value The bytes for dvjId to set. - * @return This builder for chaining. - */ - public Builder setDvjIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - dvjId_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - private java.lang.Object routeName_ = ""; - /** - * optional string route_name = 12; - * @return Whether the routeName field is set. - */ - public boolean hasRouteName() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * optional string route_name = 12; - * @return The routeName. - */ - public java.lang.String getRouteName() { - java.lang.Object ref = routeName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - routeName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string route_name = 12; - * @return The bytes for routeName. - */ - public com.google.protobuf.ByteString - getRouteNameBytes() { - java.lang.Object ref = routeName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string route_name = 12; - * @param value The routeName to set. - * @return This builder for chaining. - */ - public Builder setRouteName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - routeName_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * optional string route_name = 12; - * @return This builder for chaining. - */ - public Builder clearRouteName() { - routeName_ = getDefaultInstance().getRouteName(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - return this; - } - /** - * optional string route_name = 12; - * @param value The bytes for routeName to set. - * @return This builder for chaining. - */ - public Builder setRouteNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - routeName_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - - private java.lang.Object startDatetime_ = ""; - /** - * optional string start_datetime = 13; - * @return Whether the startDatetime field is set. - */ - public boolean hasStartDatetime() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * optional string start_datetime = 13; - * @return The startDatetime. - */ - public java.lang.String getStartDatetime() { - java.lang.Object ref = startDatetime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startDatetime_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string start_datetime = 13; - * @return The bytes for startDatetime. - */ - public com.google.protobuf.ByteString - getStartDatetimeBytes() { - java.lang.Object ref = startDatetime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startDatetime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string start_datetime = 13; - * @param value The startDatetime to set. - * @return This builder for chaining. - */ - public Builder setStartDatetime( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - startDatetime_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * optional string start_datetime = 13; - * @return This builder for chaining. - */ - public Builder clearStartDatetime() { - startDatetime_ = getDefaultInstance().getStartDatetime(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - return this; - } - /** - * optional string start_datetime = 13; - * @param value The bytes for startDatetime to set. - * @return This builder for chaining. - */ - public Builder setStartDatetimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - startDatetime_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - private java.lang.Object direction_ = ""; - /** - * optional string direction = 14; - * @return Whether the direction field is set. - */ - public boolean hasDirection() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * optional string direction = 14; - * @return The direction. - */ - public java.lang.String getDirection() { - java.lang.Object ref = direction_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - direction_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string direction = 14; - * @return The bytes for direction. - */ - public com.google.protobuf.ByteString - getDirectionBytes() { - java.lang.Object ref = direction_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - direction_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string direction = 14; - * @param value The direction to set. - * @return This builder for chaining. - */ - public Builder setDirection( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - direction_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * optional string direction = 14; - * @return This builder for chaining. - */ - public Builder clearDirection() { - direction_ = getDefaultInstance().getDirection(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - return this; - } - /** - * optional string direction = 14; - * @param value The bytes for direction to set. - * @return This builder for chaining. - */ - public Builder setDirectionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - direction_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - - private boolean scheduled_ ; - /** - *
-       * Is the metro trip is present in the static schedule?
-       * 
- * - * optional bool scheduled = 15; - * @return Whether the scheduled field is set. - */ - @java.lang.Override - public boolean hasScheduled() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - *
-       * Is the metro trip is present in the static schedule?
-       * 
- * - * optional bool scheduled = 15; - * @return The scheduled. - */ - @java.lang.Override - public boolean getScheduled() { - return scheduled_; - } - /** - *
-       * Is the metro trip is present in the static schedule?
-       * 
- * - * optional bool scheduled = 15; - * @param value The scheduled to set. - * @return This builder for chaining. - */ - public Builder setScheduled(boolean value) { - - scheduled_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - *
-       * Is the metro trip is present in the static schedule?
-       * 
- * - * optional bool scheduled = 15; - * @return This builder for chaining. - */ - public Builder clearScheduled() { - bitField0_ = (bitField0_ & ~0x00004000); - scheduled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.MetroEstimate) - } + onChanged(); + return this; + } + /** + *
+             * Is the metro trip is present in the static schedule?
+             * 
+ * + * optional bool scheduled = 15; + * @return This builder for chaining. + */ + public Builder clearScheduled() { + bitField0_ = (bitField0_ & ~0x00004000); + scheduled_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - // @@protoc_insertion_point(class_scope:proto.MetroEstimate) - private static final fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate(); - } + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate getDefaultInstance() { - return DEFAULT_INSTANCE; - } + // @@protoc_insertion_point(builder_scope:proto.MetroEstimate) + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetroEstimate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:proto.MetroEstimate) + private static final fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetroEstimate parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public fi.hsl.common.transitdata.proto.MetroAtsProtos.MetroEstimate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_MetroStopEstimate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_MetroStopEstimate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_MetroEstimate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_MetroEstimate_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017metro-ats.proto\022\005proto\"\305\002\n\021MetroStopEs" + - "timate\022\017\n\007station\030\001 \002(\t\022\020\n\010platform\030\002 \002(" + - "\t\022\034\n\024arrival_time_planned\030\003 \002(\t\022\035\n\025arriv" + - "al_time_forecast\030\004 \001(\t\022\035\n\025arrival_time_m" + - "easured\030\005 \001(\t\022\036\n\026departure_time_planned\030" + - "\006 \002(\t\022\037\n\027departure_time_forecast\030\007 \001(\t\022\037" + - "\n\027departure_time_measured\030\010 \001(\t\022\016\n\006sourc" + - "e\030\t \002(\t\022\023\n\013stop_number\030\n \002(\t\022*\n\014row_prog" + - "ress\030\013 \001(\0162\024.proto.MetroProgress\"\246\003\n\rMet" + - "roEstimate\022\030\n\rSchemaVersion\030\001 \002(\005:\0011\022,\n\n" + - "metro_rows\030\002 \003(\0132\030.proto.MetroStopEstima" + - "te\022)\n\ntrain_type\030\003 \002(\0162\025.proto.MetroTrai" + - "nType\0225\n\027journey_sectionprogress\030\004 \002(\0162\024" + - ".proto.MetroProgress\022\022\n\nbegin_time\030\005 \002(\t" + - "\022\020\n\010end_time\030\006 \002(\t\022\035\n\025start_stop_short_n" + - "ame\030\007 \002(\t\022\025\n\roperating_day\030\010 \001(\t\022\031\n\021star" + - "t_stop_number\030\t \001(\t\022\022\n\nstart_time\030\n \001(\t\022" + - "\016\n\006dvj_id\030\013 \001(\t\022\022\n\nroute_name\030\014 \001(\t\022\026\n\016s" + - "tart_datetime\030\r \001(\t\022\021\n\tdirection\030\016 \001(\t\022\021" + - "\n\tscheduled\030\017 \001(\010*\036\n\016MetroTrainType\022\005\n\001M" + - "\020\000\022\005\n\001T\020\001*L\n\rMetroProgress\022\r\n\tSCHEDULED\020" + - "\000\022\016\n\nINPROGRESS\020\001\022\r\n\tCOMPLETED\020\002\022\r\n\tCANC" + - "ELLED\020\003B1\n\037fi.hsl.common.transitdata.pro" + - "toB\016MetroAtsProtos" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_proto_MetroStopEstimate_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_proto_MetroStopEstimate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_MetroStopEstimate_descriptor, - new java.lang.String[] { "Station", "Platform", "ArrivalTimePlanned", "ArrivalTimeForecast", "ArrivalTimeMeasured", "DepartureTimePlanned", "DepartureTimeForecast", "DepartureTimeMeasured", "Source", "StopNumber", "RowProgress", }); - internal_static_proto_MetroEstimate_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_proto_MetroEstimate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_MetroEstimate_descriptor, - new java.lang.String[] { "SchemaVersion", "MetroRows", "TrainType", "JourneySectionprogress", "BeginTime", "EndTime", "StartStopShortName", "OperatingDay", "StartStopNumber", "StartTime", "DvjId", "RouteName", "StartDatetime", "Direction", "Scheduled", }); - } - - // @@protoc_insertion_point(outer_class_scope) + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_MetroStopEstimate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_MetroStopEstimate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_MetroEstimate_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_MetroEstimate_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = {"\n\017metro-ats.proto\022\005proto\"\305\002\n\021MetroStopEs" + + "timate\022\017\n\007station\030\001 \002(\t\022\020\n\010platform\030\002 \002(" + + "\t\022\034\n\024arrival_time_planned\030\003 \002(\t\022\035\n\025arriv" + + "al_time_forecast\030\004 \001(\t\022\035\n\025arrival_time_m" + + "easured\030\005 \001(\t\022\036\n\026departure_time_planned\030" + + "\006 \002(\t\022\037\n\027departure_time_forecast\030\007 \001(\t\022\037" + + "\n\027departure_time_measured\030\010 \001(\t\022\016\n\006sourc" + + "e\030\t \002(\t\022\023\n\013stop_number\030\n \002(\t\022*\n\014row_prog" + + "ress\030\013 \001(\0162\024.proto.MetroProgress\"\246\003\n\rMet" + + "roEstimate\022\030\n\rSchemaVersion\030\001 \002(\005:\0011\022,\n\n" + + "metro_rows\030\002 \003(\0132\030.proto.MetroStopEstima" + + "te\022)\n\ntrain_type\030\003 \002(\0162\025.proto.MetroTrai" + + "nType\0225\n\027journey_sectionprogress\030\004 \002(\0162\024" + + ".proto.MetroProgress\022\022\n\nbegin_time\030\005 \002(\t" + + "\022\020\n\010end_time\030\006 \002(\t\022\035\n\025start_stop_short_n" + + "ame\030\007 \002(\t\022\025\n\roperating_day\030\010 \001(\t\022\031\n\021star" + + "t_stop_number\030\t \001(\t\022\022\n\nstart_time\030\n \001(\t\022" + + "\016\n\006dvj_id\030\013 \001(\t\022\022\n\nroute_name\030\014 \001(\t\022\026\n\016s" + + "tart_datetime\030\r \001(\t\022\021\n\tdirection\030\016 \001(\t\022\021" + + "\n\tscheduled\030\017 \001(\010*\036\n\016MetroTrainType\022\005\n\001M" + + "\020\000\022\005\n\001T\020\001*L\n\rMetroProgress\022\r\n\tSCHEDULED\020" + + "\000\022\016\n\nINPROGRESS\020\001\022\r\n\tCOMPLETED\020\002\022\r\n\tCANC" + + "ELLED\020\003B1\n\037fi.hsl.common.transitdata.pro" + "toB\016MetroAtsProtos"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[]{}); + internal_static_proto_MetroStopEstimate_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_proto_MetroStopEstimate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MetroStopEstimate_descriptor, + new java.lang.String[]{"Station", "Platform", "ArrivalTimePlanned", "ArrivalTimeForecast", + "ArrivalTimeMeasured", "DepartureTimePlanned", "DepartureTimeForecast", "DepartureTimeMeasured", + "Source", "StopNumber", "RowProgress",}); + internal_static_proto_MetroEstimate_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_proto_MetroEstimate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_MetroEstimate_descriptor, + new java.lang.String[]{"SchemaVersion", "MetroRows", "TrainType", "JourneySectionprogress", "BeginTime", + "EndTime", "StartStopShortName", "OperatingDay", "StartStopNumber", "StartTime", "DvjId", + "RouteName", "StartDatetime", "Direction", "Scheduled",}); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/main/java/fi/hsl/common/transitdata/proto/PubtransTableProtos.java b/src/main/java/fi/hsl/common/transitdata/proto/PubtransTableProtos.java index 0ab95be2..4f9b6d74 100644 --- a/src/main/java/fi/hsl/common/transitdata/proto/PubtransTableProtos.java +++ b/src/main/java/fi/hsl/common/transitdata/proto/PubtransTableProtos.java @@ -4,6219 +4,6042 @@ package fi.hsl.common.transitdata.proto; public final class PubtransTableProtos { - private PubtransTableProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CommonOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.Common) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Remember to bump up the version when updating the schema!
-     * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - boolean hasSchemaVersion(); - /** - *
-     * Remember to bump up the version when updating the schema!
-     * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return The schemaVersion. - */ - int getSchemaVersion(); - - /** - * required int64 id = 2; - * @return Whether the id field is set. - */ - boolean hasId(); - /** - * required int64 id = 2; - * @return The id. - */ - long getId(); - - /** - * required int64 is_on_dated_vehicle_journey_id = 3; - * @return Whether the isOnDatedVehicleJourneyId field is set. - */ - boolean hasIsOnDatedVehicleJourneyId(); - /** - * required int64 is_on_dated_vehicle_journey_id = 3; - * @return The isOnDatedVehicleJourneyId. - */ - long getIsOnDatedVehicleJourneyId(); - - /** - * optional int64 is_on_monitored_vehicle_journey_id = 4; - * @return Whether the isOnMonitoredVehicleJourneyId field is set. - */ - boolean hasIsOnMonitoredVehicleJourneyId(); - /** - * optional int64 is_on_monitored_vehicle_journey_id = 4; - * @return The isOnMonitoredVehicleJourneyId. - */ - long getIsOnMonitoredVehicleJourneyId(); - - /** - * required int32 journey_pattern_sequence_number = 5; - * @return Whether the journeyPatternSequenceNumber field is set. - */ - boolean hasJourneyPatternSequenceNumber(); - /** - * required int32 journey_pattern_sequence_number = 5; - * @return The journeyPatternSequenceNumber. - */ - int getJourneyPatternSequenceNumber(); - - /** - * required int64 is_timetabled_at_journey_pattern_point_gid = 6; - * @return Whether the isTimetabledAtJourneyPatternPointGid field is set. - */ - boolean hasIsTimetabledAtJourneyPatternPointGid(); - /** - * required int64 is_timetabled_at_journey_pattern_point_gid = 6; - * @return The isTimetabledAtJourneyPatternPointGid. - */ - long getIsTimetabledAtJourneyPatternPointGid(); - - /** - * required int32 visit_count_number = 7; - * @return Whether the visitCountNumber field is set. - */ - boolean hasVisitCountNumber(); - /** - * required int32 visit_count_number = 7; - * @return The visitCountNumber. - */ - int getVisitCountNumber(); - - /** - * optional int64 is_targeted_at_journey_pattern_point_gid = 8; - * @return Whether the isTargetedAtJourneyPatternPointGid field is set. - */ - boolean hasIsTargetedAtJourneyPatternPointGid(); - /** - * optional int64 is_targeted_at_journey_pattern_point_gid = 8; - * @return The isTargetedAtJourneyPatternPointGid. - */ - long getIsTargetedAtJourneyPatternPointGid(); - - /** - * optional int64 was_observed_at_journey_pattern_point_gid = 9; - * @return Whether the wasObservedAtJourneyPatternPointGid field is set. - */ - boolean hasWasObservedAtJourneyPatternPointGid(); - /** - * optional int64 was_observed_at_journey_pattern_point_gid = 9; - * @return The wasObservedAtJourneyPatternPointGid. - */ - long getWasObservedAtJourneyPatternPointGid(); - - /** - *
-     *All timestamps are defined in UTC epochs in milliseconds
-     * 
- * - * optional int64 timetabled_latest_utc_date_time_ms = 10; - * @return Whether the timetabledLatestUtcDateTimeMs field is set. - */ - boolean hasTimetabledLatestUtcDateTimeMs(); - /** - *
-     *All timestamps are defined in UTC epochs in milliseconds
-     * 
- * - * optional int64 timetabled_latest_utc_date_time_ms = 10; - * @return The timetabledLatestUtcDateTimeMs. - */ - long getTimetabledLatestUtcDateTimeMs(); - - /** - * optional int64 target_utc_date_time_ms = 11; - * @return Whether the targetUtcDateTimeMs field is set. - */ - boolean hasTargetUtcDateTimeMs(); - /** - * optional int64 target_utc_date_time_ms = 11; - * @return The targetUtcDateTimeMs. - */ - long getTargetUtcDateTimeMs(); - - /** - * optional int64 estimated_utc_date_time_ms = 12; - * @return Whether the estimatedUtcDateTimeMs field is set. - */ - boolean hasEstimatedUtcDateTimeMs(); - /** - * optional int64 estimated_utc_date_time_ms = 12; - * @return The estimatedUtcDateTimeMs. - */ - long getEstimatedUtcDateTimeMs(); - - /** - * optional int64 observed_utc_date_time_ms = 13; - * @return Whether the observedUtcDateTimeMs field is set. - */ - boolean hasObservedUtcDateTimeMs(); - /** - * optional int64 observed_utc_date_time_ms = 13; - * @return The observedUtcDateTimeMs. - */ - long getObservedUtcDateTimeMs(); - - /** - * required int64 state = 14; - * @return Whether the state field is set. - */ - boolean hasState(); - /** - * required int64 state = 14; - * @return The state. - */ - long getState(); - - /** - * required int64 type = 15; - * @return Whether the type field is set. - */ - boolean hasType(); - /** - * required int64 type = 15; - * @return The type. - */ - long getType(); - - /** - * required bool is_valid_yes_no = 16; - * @return Whether the isValidYesNo field is set. - */ - boolean hasIsValidYesNo(); - /** - * required bool is_valid_yes_no = 16; - * @return The isValidYesNo. - */ - boolean getIsValidYesNo(); - - /** - * required int64 last_modified_utc_date_time_ms = 17; - * @return Whether the lastModifiedUtcDateTimeMs field is set. - */ - boolean hasLastModifiedUtcDateTimeMs(); - /** - * required int64 last_modified_utc_date_time_ms = 17; - * @return The lastModifiedUtcDateTimeMs. - */ - long getLastModifiedUtcDateTimeMs(); - } - /** - * Protobuf type {@code proto.Common} - */ - public static final class Common extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.Common) - CommonOrBuilder { - private static final long serialVersionUID = 0L; - // Use Common.newBuilder() to construct. - private Common(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Common() { - schemaVersion_ = 1; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Common(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_Common_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_Common_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.class, fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder.class); - } - - private int bitField0_; - public static final int SCHEMA_VERSION_FIELD_NUMBER = 1; - private int schemaVersion_ = 1; - /** - *
-     * Remember to bump up the version when updating the schema!
-     * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Remember to bump up the version when updating the schema!
-     * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - - public static final int ID_FIELD_NUMBER = 2; - private long id_ = 0L; - /** - * required int64 id = 2; - * @return Whether the id field is set. - */ - @java.lang.Override - public boolean hasId() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required int64 id = 2; - * @return The id. - */ - @java.lang.Override - public long getId() { - return id_; - } - - public static final int IS_ON_DATED_VEHICLE_JOURNEY_ID_FIELD_NUMBER = 3; - private long isOnDatedVehicleJourneyId_ = 0L; - /** - * required int64 is_on_dated_vehicle_journey_id = 3; - * @return Whether the isOnDatedVehicleJourneyId field is set. - */ - @java.lang.Override - public boolean hasIsOnDatedVehicleJourneyId() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required int64 is_on_dated_vehicle_journey_id = 3; - * @return The isOnDatedVehicleJourneyId. - */ - @java.lang.Override - public long getIsOnDatedVehicleJourneyId() { - return isOnDatedVehicleJourneyId_; - } - - public static final int IS_ON_MONITORED_VEHICLE_JOURNEY_ID_FIELD_NUMBER = 4; - private long isOnMonitoredVehicleJourneyId_ = 0L; - /** - * optional int64 is_on_monitored_vehicle_journey_id = 4; - * @return Whether the isOnMonitoredVehicleJourneyId field is set. - */ - @java.lang.Override - public boolean hasIsOnMonitoredVehicleJourneyId() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional int64 is_on_monitored_vehicle_journey_id = 4; - * @return The isOnMonitoredVehicleJourneyId. - */ - @java.lang.Override - public long getIsOnMonitoredVehicleJourneyId() { - return isOnMonitoredVehicleJourneyId_; - } - - public static final int JOURNEY_PATTERN_SEQUENCE_NUMBER_FIELD_NUMBER = 5; - private int journeyPatternSequenceNumber_ = 0; - /** - * required int32 journey_pattern_sequence_number = 5; - * @return Whether the journeyPatternSequenceNumber field is set. - */ - @java.lang.Override - public boolean hasJourneyPatternSequenceNumber() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required int32 journey_pattern_sequence_number = 5; - * @return The journeyPatternSequenceNumber. - */ - @java.lang.Override - public int getJourneyPatternSequenceNumber() { - return journeyPatternSequenceNumber_; - } - - public static final int IS_TIMETABLED_AT_JOURNEY_PATTERN_POINT_GID_FIELD_NUMBER = 6; - private long isTimetabledAtJourneyPatternPointGid_ = 0L; - /** - * required int64 is_timetabled_at_journey_pattern_point_gid = 6; - * @return Whether the isTimetabledAtJourneyPatternPointGid field is set. - */ - @java.lang.Override - public boolean hasIsTimetabledAtJourneyPatternPointGid() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * required int64 is_timetabled_at_journey_pattern_point_gid = 6; - * @return The isTimetabledAtJourneyPatternPointGid. - */ - @java.lang.Override - public long getIsTimetabledAtJourneyPatternPointGid() { - return isTimetabledAtJourneyPatternPointGid_; - } - - public static final int VISIT_COUNT_NUMBER_FIELD_NUMBER = 7; - private int visitCountNumber_ = 0; - /** - * required int32 visit_count_number = 7; - * @return Whether the visitCountNumber field is set. - */ - @java.lang.Override - public boolean hasVisitCountNumber() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * required int32 visit_count_number = 7; - * @return The visitCountNumber. - */ - @java.lang.Override - public int getVisitCountNumber() { - return visitCountNumber_; - } - - public static final int IS_TARGETED_AT_JOURNEY_PATTERN_POINT_GID_FIELD_NUMBER = 8; - private long isTargetedAtJourneyPatternPointGid_ = 0L; - /** - * optional int64 is_targeted_at_journey_pattern_point_gid = 8; - * @return Whether the isTargetedAtJourneyPatternPointGid field is set. - */ - @java.lang.Override - public boolean hasIsTargetedAtJourneyPatternPointGid() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional int64 is_targeted_at_journey_pattern_point_gid = 8; - * @return The isTargetedAtJourneyPatternPointGid. - */ - @java.lang.Override - public long getIsTargetedAtJourneyPatternPointGid() { - return isTargetedAtJourneyPatternPointGid_; - } - - public static final int WAS_OBSERVED_AT_JOURNEY_PATTERN_POINT_GID_FIELD_NUMBER = 9; - private long wasObservedAtJourneyPatternPointGid_ = 0L; - /** - * optional int64 was_observed_at_journey_pattern_point_gid = 9; - * @return Whether the wasObservedAtJourneyPatternPointGid field is set. - */ - @java.lang.Override - public boolean hasWasObservedAtJourneyPatternPointGid() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * optional int64 was_observed_at_journey_pattern_point_gid = 9; - * @return The wasObservedAtJourneyPatternPointGid. - */ - @java.lang.Override - public long getWasObservedAtJourneyPatternPointGid() { - return wasObservedAtJourneyPatternPointGid_; - } - - public static final int TIMETABLED_LATEST_UTC_DATE_TIME_MS_FIELD_NUMBER = 10; - private long timetabledLatestUtcDateTimeMs_ = 0L; - /** - *
-     *All timestamps are defined in UTC epochs in milliseconds
-     * 
- * - * optional int64 timetabled_latest_utc_date_time_ms = 10; - * @return Whether the timetabledLatestUtcDateTimeMs field is set. - */ - @java.lang.Override - public boolean hasTimetabledLatestUtcDateTimeMs() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - *
-     *All timestamps are defined in UTC epochs in milliseconds
-     * 
- * - * optional int64 timetabled_latest_utc_date_time_ms = 10; - * @return The timetabledLatestUtcDateTimeMs. - */ - @java.lang.Override - public long getTimetabledLatestUtcDateTimeMs() { - return timetabledLatestUtcDateTimeMs_; - } - - public static final int TARGET_UTC_DATE_TIME_MS_FIELD_NUMBER = 11; - private long targetUtcDateTimeMs_ = 0L; - /** - * optional int64 target_utc_date_time_ms = 11; - * @return Whether the targetUtcDateTimeMs field is set. - */ - @java.lang.Override - public boolean hasTargetUtcDateTimeMs() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * optional int64 target_utc_date_time_ms = 11; - * @return The targetUtcDateTimeMs. - */ - @java.lang.Override - public long getTargetUtcDateTimeMs() { - return targetUtcDateTimeMs_; - } - - public static final int ESTIMATED_UTC_DATE_TIME_MS_FIELD_NUMBER = 12; - private long estimatedUtcDateTimeMs_ = 0L; - /** - * optional int64 estimated_utc_date_time_ms = 12; - * @return Whether the estimatedUtcDateTimeMs field is set. - */ - @java.lang.Override - public boolean hasEstimatedUtcDateTimeMs() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * optional int64 estimated_utc_date_time_ms = 12; - * @return The estimatedUtcDateTimeMs. - */ - @java.lang.Override - public long getEstimatedUtcDateTimeMs() { - return estimatedUtcDateTimeMs_; - } - - public static final int OBSERVED_UTC_DATE_TIME_MS_FIELD_NUMBER = 13; - private long observedUtcDateTimeMs_ = 0L; - /** - * optional int64 observed_utc_date_time_ms = 13; - * @return Whether the observedUtcDateTimeMs field is set. - */ - @java.lang.Override - public boolean hasObservedUtcDateTimeMs() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * optional int64 observed_utc_date_time_ms = 13; - * @return The observedUtcDateTimeMs. - */ - @java.lang.Override - public long getObservedUtcDateTimeMs() { - return observedUtcDateTimeMs_; - } - - public static final int STATE_FIELD_NUMBER = 14; - private long state_ = 0L; - /** - * required int64 state = 14; - * @return Whether the state field is set. - */ - @java.lang.Override - public boolean hasState() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * required int64 state = 14; - * @return The state. - */ - @java.lang.Override - public long getState() { - return state_; - } - - public static final int TYPE_FIELD_NUMBER = 15; - private long type_ = 0L; - /** - * required int64 type = 15; - * @return Whether the type field is set. - */ - @java.lang.Override - public boolean hasType() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * required int64 type = 15; - * @return The type. - */ - @java.lang.Override - public long getType() { - return type_; - } - - public static final int IS_VALID_YES_NO_FIELD_NUMBER = 16; - private boolean isValidYesNo_ = false; - /** - * required bool is_valid_yes_no = 16; - * @return Whether the isValidYesNo field is set. - */ - @java.lang.Override - public boolean hasIsValidYesNo() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * required bool is_valid_yes_no = 16; - * @return The isValidYesNo. - */ - @java.lang.Override - public boolean getIsValidYesNo() { - return isValidYesNo_; - } - - public static final int LAST_MODIFIED_UTC_DATE_TIME_MS_FIELD_NUMBER = 17; - private long lastModifiedUtcDateTimeMs_ = 0L; - /** - * required int64 last_modified_utc_date_time_ms = 17; - * @return Whether the lastModifiedUtcDateTimeMs field is set. - */ - @java.lang.Override - public boolean hasLastModifiedUtcDateTimeMs() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * required int64 last_modified_utc_date_time_ms = 17; - * @return The lastModifiedUtcDateTimeMs. - */ - @java.lang.Override - public long getLastModifiedUtcDateTimeMs() { - return lastModifiedUtcDateTimeMs_; - } - - 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 (!hasSchemaVersion()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasIsOnDatedVehicleJourneyId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasJourneyPatternSequenceNumber()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasIsTimetabledAtJourneyPatternPointGid()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasVisitCountNumber()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasState()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasType()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasIsValidYesNo()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasLastModifiedUtcDateTimeMs()) { - 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.writeInt32(1, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt64(2, id_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeInt64(3, isOnDatedVehicleJourneyId_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeInt64(4, isOnMonitoredVehicleJourneyId_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeInt32(5, journeyPatternSequenceNumber_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeInt64(6, isTimetabledAtJourneyPatternPointGid_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeInt32(7, visitCountNumber_); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeInt64(8, isTargetedAtJourneyPatternPointGid_); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeInt64(9, wasObservedAtJourneyPatternPointGid_); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeInt64(10, timetabledLatestUtcDateTimeMs_); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeInt64(11, targetUtcDateTimeMs_); - } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeInt64(12, estimatedUtcDateTimeMs_); - } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeInt64(13, observedUtcDateTimeMs_); - } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeInt64(14, state_); - } - if (((bitField0_ & 0x00004000) != 0)) { - output.writeInt64(15, type_); - } - if (((bitField0_ & 0x00008000) != 0)) { - output.writeBool(16, isValidYesNo_); - } - if (((bitField0_ & 0x00010000) != 0)) { - output.writeInt64(17, lastModifiedUtcDateTimeMs_); - } - 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, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, id_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, isOnDatedVehicleJourneyId_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, isOnMonitoredVehicleJourneyId_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, journeyPatternSequenceNumber_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, isTimetabledAtJourneyPatternPointGid_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, visitCountNumber_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, isTargetedAtJourneyPatternPointGid_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, wasObservedAtJourneyPatternPointGid_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, timetabledLatestUtcDateTimeMs_); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(11, targetUtcDateTimeMs_); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(12, estimatedUtcDateTimeMs_); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(13, observedUtcDateTimeMs_); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(14, state_); - } - if (((bitField0_ & 0x00004000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(15, type_); - } - if (((bitField0_ & 0x00008000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, isValidYesNo_); - } - if (((bitField0_ & 0x00010000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(17, lastModifiedUtcDateTimeMs_); - } - 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 fi.hsl.common.transitdata.proto.PubtransTableProtos.Common)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common other = (fi.hsl.common.transitdata.proto.PubtransTableProtos.Common) obj; - - if (hasSchemaVersion() != other.hasSchemaVersion()) return false; - if (hasSchemaVersion()) { - if (getSchemaVersion() - != other.getSchemaVersion()) return false; - } - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (getId() - != other.getId()) return false; - } - if (hasIsOnDatedVehicleJourneyId() != other.hasIsOnDatedVehicleJourneyId()) return false; - if (hasIsOnDatedVehicleJourneyId()) { - if (getIsOnDatedVehicleJourneyId() - != other.getIsOnDatedVehicleJourneyId()) return false; - } - if (hasIsOnMonitoredVehicleJourneyId() != other.hasIsOnMonitoredVehicleJourneyId()) return false; - if (hasIsOnMonitoredVehicleJourneyId()) { - if (getIsOnMonitoredVehicleJourneyId() - != other.getIsOnMonitoredVehicleJourneyId()) return false; - } - if (hasJourneyPatternSequenceNumber() != other.hasJourneyPatternSequenceNumber()) return false; - if (hasJourneyPatternSequenceNumber()) { - if (getJourneyPatternSequenceNumber() - != other.getJourneyPatternSequenceNumber()) return false; - } - if (hasIsTimetabledAtJourneyPatternPointGid() != other.hasIsTimetabledAtJourneyPatternPointGid()) return false; - if (hasIsTimetabledAtJourneyPatternPointGid()) { - if (getIsTimetabledAtJourneyPatternPointGid() - != other.getIsTimetabledAtJourneyPatternPointGid()) return false; - } - if (hasVisitCountNumber() != other.hasVisitCountNumber()) return false; - if (hasVisitCountNumber()) { - if (getVisitCountNumber() - != other.getVisitCountNumber()) return false; - } - if (hasIsTargetedAtJourneyPatternPointGid() != other.hasIsTargetedAtJourneyPatternPointGid()) return false; - if (hasIsTargetedAtJourneyPatternPointGid()) { - if (getIsTargetedAtJourneyPatternPointGid() - != other.getIsTargetedAtJourneyPatternPointGid()) return false; - } - if (hasWasObservedAtJourneyPatternPointGid() != other.hasWasObservedAtJourneyPatternPointGid()) return false; - if (hasWasObservedAtJourneyPatternPointGid()) { - if (getWasObservedAtJourneyPatternPointGid() - != other.getWasObservedAtJourneyPatternPointGid()) return false; - } - if (hasTimetabledLatestUtcDateTimeMs() != other.hasTimetabledLatestUtcDateTimeMs()) return false; - if (hasTimetabledLatestUtcDateTimeMs()) { - if (getTimetabledLatestUtcDateTimeMs() - != other.getTimetabledLatestUtcDateTimeMs()) return false; - } - if (hasTargetUtcDateTimeMs() != other.hasTargetUtcDateTimeMs()) return false; - if (hasTargetUtcDateTimeMs()) { - if (getTargetUtcDateTimeMs() - != other.getTargetUtcDateTimeMs()) return false; - } - if (hasEstimatedUtcDateTimeMs() != other.hasEstimatedUtcDateTimeMs()) return false; - if (hasEstimatedUtcDateTimeMs()) { - if (getEstimatedUtcDateTimeMs() - != other.getEstimatedUtcDateTimeMs()) return false; - } - if (hasObservedUtcDateTimeMs() != other.hasObservedUtcDateTimeMs()) return false; - if (hasObservedUtcDateTimeMs()) { - if (getObservedUtcDateTimeMs() - != other.getObservedUtcDateTimeMs()) return false; - } - if (hasState() != other.hasState()) return false; - if (hasState()) { - if (getState() - != other.getState()) return false; - } - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (getType() - != other.getType()) return false; - } - if (hasIsValidYesNo() != other.hasIsValidYesNo()) return false; - if (hasIsValidYesNo()) { - if (getIsValidYesNo() - != other.getIsValidYesNo()) return false; - } - if (hasLastModifiedUtcDateTimeMs() != other.hasLastModifiedUtcDateTimeMs()) return false; - if (hasLastModifiedUtcDateTimeMs()) { - if (getLastModifiedUtcDateTimeMs() - != other.getLastModifiedUtcDateTimeMs()) 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 (hasSchemaVersion()) { - hash = (37 * hash) + SCHEMA_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getSchemaVersion(); - } - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getId()); - } - if (hasIsOnDatedVehicleJourneyId()) { - hash = (37 * hash) + IS_ON_DATED_VEHICLE_JOURNEY_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIsOnDatedVehicleJourneyId()); - } - if (hasIsOnMonitoredVehicleJourneyId()) { - hash = (37 * hash) + IS_ON_MONITORED_VEHICLE_JOURNEY_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIsOnMonitoredVehicleJourneyId()); - } - if (hasJourneyPatternSequenceNumber()) { - hash = (37 * hash) + JOURNEY_PATTERN_SEQUENCE_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getJourneyPatternSequenceNumber(); - } - if (hasIsTimetabledAtJourneyPatternPointGid()) { - hash = (37 * hash) + IS_TIMETABLED_AT_JOURNEY_PATTERN_POINT_GID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIsTimetabledAtJourneyPatternPointGid()); - } - if (hasVisitCountNumber()) { - hash = (37 * hash) + VISIT_COUNT_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getVisitCountNumber(); - } - if (hasIsTargetedAtJourneyPatternPointGid()) { - hash = (37 * hash) + IS_TARGETED_AT_JOURNEY_PATTERN_POINT_GID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIsTargetedAtJourneyPatternPointGid()); - } - if (hasWasObservedAtJourneyPatternPointGid()) { - hash = (37 * hash) + WAS_OBSERVED_AT_JOURNEY_PATTERN_POINT_GID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getWasObservedAtJourneyPatternPointGid()); - } - if (hasTimetabledLatestUtcDateTimeMs()) { - hash = (37 * hash) + TIMETABLED_LATEST_UTC_DATE_TIME_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimetabledLatestUtcDateTimeMs()); - } - if (hasTargetUtcDateTimeMs()) { - hash = (37 * hash) + TARGET_UTC_DATE_TIME_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTargetUtcDateTimeMs()); - } - if (hasEstimatedUtcDateTimeMs()) { - hash = (37 * hash) + ESTIMATED_UTC_DATE_TIME_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEstimatedUtcDateTimeMs()); - } - if (hasObservedUtcDateTimeMs()) { - hash = (37 * hash) + OBSERVED_UTC_DATE_TIME_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getObservedUtcDateTimeMs()); - } - if (hasState()) { - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getState()); - } - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getType()); - } - if (hasIsValidYesNo()) { - hash = (37 * hash) + IS_VALID_YES_NO_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsValidYesNo()); - } - if (hasLastModifiedUtcDateTimeMs()) { - hash = (37 * hash) + LAST_MODIFIED_UTC_DATE_TIME_MS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLastModifiedUtcDateTimeMs()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.PubtransTableProtos.Common prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + private PubtransTableProtos() { + } + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface CommonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.Common) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Remember to bump up the version when updating the schema!
+         * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + boolean hasSchemaVersion(); + /** + *
+         * Remember to bump up the version when updating the schema!
+         * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return The schemaVersion. + */ + int getSchemaVersion(); + + /** + * required int64 id = 2; + * @return Whether the id field is set. + */ + boolean hasId(); + /** + * required int64 id = 2; + * @return The id. + */ + long getId(); + + /** + * required int64 is_on_dated_vehicle_journey_id = 3; + * @return Whether the isOnDatedVehicleJourneyId field is set. + */ + boolean hasIsOnDatedVehicleJourneyId(); + /** + * required int64 is_on_dated_vehicle_journey_id = 3; + * @return The isOnDatedVehicleJourneyId. + */ + long getIsOnDatedVehicleJourneyId(); + + /** + * optional int64 is_on_monitored_vehicle_journey_id = 4; + * @return Whether the isOnMonitoredVehicleJourneyId field is set. + */ + boolean hasIsOnMonitoredVehicleJourneyId(); + /** + * optional int64 is_on_monitored_vehicle_journey_id = 4; + * @return The isOnMonitoredVehicleJourneyId. + */ + long getIsOnMonitoredVehicleJourneyId(); + + /** + * required int32 journey_pattern_sequence_number = 5; + * @return Whether the journeyPatternSequenceNumber field is set. + */ + boolean hasJourneyPatternSequenceNumber(); + /** + * required int32 journey_pattern_sequence_number = 5; + * @return The journeyPatternSequenceNumber. + */ + int getJourneyPatternSequenceNumber(); + + /** + * required int64 is_timetabled_at_journey_pattern_point_gid = 6; + * @return Whether the isTimetabledAtJourneyPatternPointGid field is set. + */ + boolean hasIsTimetabledAtJourneyPatternPointGid(); + /** + * required int64 is_timetabled_at_journey_pattern_point_gid = 6; + * @return The isTimetabledAtJourneyPatternPointGid. + */ + long getIsTimetabledAtJourneyPatternPointGid(); + + /** + * required int32 visit_count_number = 7; + * @return Whether the visitCountNumber field is set. + */ + boolean hasVisitCountNumber(); + /** + * required int32 visit_count_number = 7; + * @return The visitCountNumber. + */ + int getVisitCountNumber(); + + /** + * optional int64 is_targeted_at_journey_pattern_point_gid = 8; + * @return Whether the isTargetedAtJourneyPatternPointGid field is set. + */ + boolean hasIsTargetedAtJourneyPatternPointGid(); + /** + * optional int64 is_targeted_at_journey_pattern_point_gid = 8; + * @return The isTargetedAtJourneyPatternPointGid. + */ + long getIsTargetedAtJourneyPatternPointGid(); + + /** + * optional int64 was_observed_at_journey_pattern_point_gid = 9; + * @return Whether the wasObservedAtJourneyPatternPointGid field is set. + */ + boolean hasWasObservedAtJourneyPatternPointGid(); + /** + * optional int64 was_observed_at_journey_pattern_point_gid = 9; + * @return The wasObservedAtJourneyPatternPointGid. + */ + long getWasObservedAtJourneyPatternPointGid(); + + /** + *
+         *All timestamps are defined in UTC epochs in milliseconds
+         * 
+ * + * optional int64 timetabled_latest_utc_date_time_ms = 10; + * @return Whether the timetabledLatestUtcDateTimeMs field is set. + */ + boolean hasTimetabledLatestUtcDateTimeMs(); + /** + *
+         *All timestamps are defined in UTC epochs in milliseconds
+         * 
+ * + * optional int64 timetabled_latest_utc_date_time_ms = 10; + * @return The timetabledLatestUtcDateTimeMs. + */ + long getTimetabledLatestUtcDateTimeMs(); + + /** + * optional int64 target_utc_date_time_ms = 11; + * @return Whether the targetUtcDateTimeMs field is set. + */ + boolean hasTargetUtcDateTimeMs(); + /** + * optional int64 target_utc_date_time_ms = 11; + * @return The targetUtcDateTimeMs. + */ + long getTargetUtcDateTimeMs(); + + /** + * optional int64 estimated_utc_date_time_ms = 12; + * @return Whether the estimatedUtcDateTimeMs field is set. + */ + boolean hasEstimatedUtcDateTimeMs(); + /** + * optional int64 estimated_utc_date_time_ms = 12; + * @return The estimatedUtcDateTimeMs. + */ + long getEstimatedUtcDateTimeMs(); + + /** + * optional int64 observed_utc_date_time_ms = 13; + * @return Whether the observedUtcDateTimeMs field is set. + */ + boolean hasObservedUtcDateTimeMs(); + /** + * optional int64 observed_utc_date_time_ms = 13; + * @return The observedUtcDateTimeMs. + */ + long getObservedUtcDateTimeMs(); + + /** + * required int64 state = 14; + * @return Whether the state field is set. + */ + boolean hasState(); + /** + * required int64 state = 14; + * @return The state. + */ + long getState(); + + /** + * required int64 type = 15; + * @return Whether the type field is set. + */ + boolean hasType(); + /** + * required int64 type = 15; + * @return The type. + */ + long getType(); + + /** + * required bool is_valid_yes_no = 16; + * @return Whether the isValidYesNo field is set. + */ + boolean hasIsValidYesNo(); + /** + * required bool is_valid_yes_no = 16; + * @return The isValidYesNo. + */ + boolean getIsValidYesNo(); + + /** + * required int64 last_modified_utc_date_time_ms = 17; + * @return Whether the lastModifiedUtcDateTimeMs field is set. + */ + boolean hasLastModifiedUtcDateTimeMs(); + /** + * required int64 last_modified_utc_date_time_ms = 17; + * @return The lastModifiedUtcDateTimeMs. + */ + long getLastModifiedUtcDateTimeMs(); } /** * Protobuf type {@code proto.Common} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.Common) - fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_Common_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_Common_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.class, fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder.class); - } - - // Construct using fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - schemaVersion_ = 1; - id_ = 0L; - isOnDatedVehicleJourneyId_ = 0L; - isOnMonitoredVehicleJourneyId_ = 0L; - journeyPatternSequenceNumber_ = 0; - isTimetabledAtJourneyPatternPointGid_ = 0L; - visitCountNumber_ = 0; - isTargetedAtJourneyPatternPointGid_ = 0L; - wasObservedAtJourneyPatternPointGid_ = 0L; - timetabledLatestUtcDateTimeMs_ = 0L; - targetUtcDateTimeMs_ = 0L; - estimatedUtcDateTimeMs_ = 0L; - observedUtcDateTimeMs_ = 0L; - state_ = 0L; - type_ = 0L; - isValidYesNo_ = false; - lastModifiedUtcDateTimeMs_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_Common_descriptor; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common build() { - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common buildPartial() { - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common result = new fi.hsl.common.transitdata.proto.PubtransTableProtos.Common(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.PubtransTableProtos.Common result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.schemaVersion_ = schemaVersion_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.id_ = id_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.isOnDatedVehicleJourneyId_ = isOnDatedVehicleJourneyId_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.isOnMonitoredVehicleJourneyId_ = isOnMonitoredVehicleJourneyId_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.journeyPatternSequenceNumber_ = journeyPatternSequenceNumber_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.isTimetabledAtJourneyPatternPointGid_ = isTimetabledAtJourneyPatternPointGid_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.visitCountNumber_ = visitCountNumber_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.isTargetedAtJourneyPatternPointGid_ = isTargetedAtJourneyPatternPointGid_; - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.wasObservedAtJourneyPatternPointGid_ = wasObservedAtJourneyPatternPointGid_; - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.timetabledLatestUtcDateTimeMs_ = timetabledLatestUtcDateTimeMs_; - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.targetUtcDateTimeMs_ = targetUtcDateTimeMs_; - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.estimatedUtcDateTimeMs_ = estimatedUtcDateTimeMs_; - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.observedUtcDateTimeMs_ = observedUtcDateTimeMs_; - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.state_ = state_; - to_bitField0_ |= 0x00002000; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.type_ = type_; - to_bitField0_ |= 0x00004000; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.isValidYesNo_ = isValidYesNo_; - to_bitField0_ |= 0x00008000; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.lastModifiedUtcDateTimeMs_ = lastModifiedUtcDateTimeMs_; - to_bitField0_ |= 0x00010000; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.PubtransTableProtos.Common) { - return mergeFrom((fi.hsl.common.transitdata.proto.PubtransTableProtos.Common)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.PubtransTableProtos.Common other) { - if (other == fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance()) return this; - if (other.hasSchemaVersion()) { - setSchemaVersion(other.getSchemaVersion()); - } - if (other.hasId()) { - setId(other.getId()); - } - if (other.hasIsOnDatedVehicleJourneyId()) { - setIsOnDatedVehicleJourneyId(other.getIsOnDatedVehicleJourneyId()); - } - if (other.hasIsOnMonitoredVehicleJourneyId()) { - setIsOnMonitoredVehicleJourneyId(other.getIsOnMonitoredVehicleJourneyId()); - } - if (other.hasJourneyPatternSequenceNumber()) { - setJourneyPatternSequenceNumber(other.getJourneyPatternSequenceNumber()); - } - if (other.hasIsTimetabledAtJourneyPatternPointGid()) { - setIsTimetabledAtJourneyPatternPointGid(other.getIsTimetabledAtJourneyPatternPointGid()); - } - if (other.hasVisitCountNumber()) { - setVisitCountNumber(other.getVisitCountNumber()); - } - if (other.hasIsTargetedAtJourneyPatternPointGid()) { - setIsTargetedAtJourneyPatternPointGid(other.getIsTargetedAtJourneyPatternPointGid()); - } - if (other.hasWasObservedAtJourneyPatternPointGid()) { - setWasObservedAtJourneyPatternPointGid(other.getWasObservedAtJourneyPatternPointGid()); - } - if (other.hasTimetabledLatestUtcDateTimeMs()) { - setTimetabledLatestUtcDateTimeMs(other.getTimetabledLatestUtcDateTimeMs()); - } - if (other.hasTargetUtcDateTimeMs()) { - setTargetUtcDateTimeMs(other.getTargetUtcDateTimeMs()); - } - if (other.hasEstimatedUtcDateTimeMs()) { - setEstimatedUtcDateTimeMs(other.getEstimatedUtcDateTimeMs()); - } - if (other.hasObservedUtcDateTimeMs()) { - setObservedUtcDateTimeMs(other.getObservedUtcDateTimeMs()); - } - if (other.hasState()) { - setState(other.getState()); - } - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasIsValidYesNo()) { - setIsValidYesNo(other.getIsValidYesNo()); - } - if (other.hasLastModifiedUtcDateTimeMs()) { - setLastModifiedUtcDateTimeMs(other.getLastModifiedUtcDateTimeMs()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSchemaVersion()) { - return false; - } - if (!hasId()) { - return false; - } - if (!hasIsOnDatedVehicleJourneyId()) { - return false; - } - if (!hasJourneyPatternSequenceNumber()) { - return false; - } - if (!hasIsTimetabledAtJourneyPatternPointGid()) { - return false; - } - if (!hasVisitCountNumber()) { - return false; - } - if (!hasState()) { - return false; - } - if (!hasType()) { - return false; - } - if (!hasIsValidYesNo()) { - return false; - } - if (!hasLastModifiedUtcDateTimeMs()) { - 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(); + public static final class Common extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.Common) + CommonOrBuilder { + private static final long serialVersionUID = 0L; + // Use Common.newBuilder() to construct. + private Common(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Common() { + schemaVersion_ = 1; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Common(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_Common_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_Common_fieldAccessorTable + .ensureFieldAccessorsInitialized(fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.class, + fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder.class); + } + + private int bitField0_; + public static final int SCHEMA_VERSION_FIELD_NUMBER = 1; + private int schemaVersion_ = 1; + /** + *
+         * Remember to bump up the version when updating the schema!
+         * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Remember to bump up the version when updating the schema!
+         * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + + public static final int ID_FIELD_NUMBER = 2; + private long id_ = 0L; + /** + * required int64 id = 2; + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required int64 id = 2; + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + + public static final int IS_ON_DATED_VEHICLE_JOURNEY_ID_FIELD_NUMBER = 3; + private long isOnDatedVehicleJourneyId_ = 0L; + /** + * required int64 is_on_dated_vehicle_journey_id = 3; + * @return Whether the isOnDatedVehicleJourneyId field is set. + */ + @java.lang.Override + public boolean hasIsOnDatedVehicleJourneyId() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required int64 is_on_dated_vehicle_journey_id = 3; + * @return The isOnDatedVehicleJourneyId. + */ + @java.lang.Override + public long getIsOnDatedVehicleJourneyId() { + return isOnDatedVehicleJourneyId_; + } + + public static final int IS_ON_MONITORED_VEHICLE_JOURNEY_ID_FIELD_NUMBER = 4; + private long isOnMonitoredVehicleJourneyId_ = 0L; + /** + * optional int64 is_on_monitored_vehicle_journey_id = 4; + * @return Whether the isOnMonitoredVehicleJourneyId field is set. + */ + @java.lang.Override + public boolean hasIsOnMonitoredVehicleJourneyId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int64 is_on_monitored_vehicle_journey_id = 4; + * @return The isOnMonitoredVehicleJourneyId. + */ + @java.lang.Override + public long getIsOnMonitoredVehicleJourneyId() { + return isOnMonitoredVehicleJourneyId_; + } + + public static final int JOURNEY_PATTERN_SEQUENCE_NUMBER_FIELD_NUMBER = 5; + private int journeyPatternSequenceNumber_ = 0; + /** + * required int32 journey_pattern_sequence_number = 5; + * @return Whether the journeyPatternSequenceNumber field is set. + */ + @java.lang.Override + public boolean hasJourneyPatternSequenceNumber() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * required int32 journey_pattern_sequence_number = 5; + * @return The journeyPatternSequenceNumber. + */ + @java.lang.Override + public int getJourneyPatternSequenceNumber() { + return journeyPatternSequenceNumber_; + } + + public static final int IS_TIMETABLED_AT_JOURNEY_PATTERN_POINT_GID_FIELD_NUMBER = 6; + private long isTimetabledAtJourneyPatternPointGid_ = 0L; + /** + * required int64 is_timetabled_at_journey_pattern_point_gid = 6; + * @return Whether the isTimetabledAtJourneyPatternPointGid field is set. + */ + @java.lang.Override + public boolean hasIsTimetabledAtJourneyPatternPointGid() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * required int64 is_timetabled_at_journey_pattern_point_gid = 6; + * @return The isTimetabledAtJourneyPatternPointGid. + */ + @java.lang.Override + public long getIsTimetabledAtJourneyPatternPointGid() { + return isTimetabledAtJourneyPatternPointGid_; + } + + public static final int VISIT_COUNT_NUMBER_FIELD_NUMBER = 7; + private int visitCountNumber_ = 0; + /** + * required int32 visit_count_number = 7; + * @return Whether the visitCountNumber field is set. + */ + @java.lang.Override + public boolean hasVisitCountNumber() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * required int32 visit_count_number = 7; + * @return The visitCountNumber. + */ + @java.lang.Override + public int getVisitCountNumber() { + return visitCountNumber_; + } + + public static final int IS_TARGETED_AT_JOURNEY_PATTERN_POINT_GID_FIELD_NUMBER = 8; + private long isTargetedAtJourneyPatternPointGid_ = 0L; + /** + * optional int64 is_targeted_at_journey_pattern_point_gid = 8; + * @return Whether the isTargetedAtJourneyPatternPointGid field is set. + */ + @java.lang.Override + public boolean hasIsTargetedAtJourneyPatternPointGid() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional int64 is_targeted_at_journey_pattern_point_gid = 8; + * @return The isTargetedAtJourneyPatternPointGid. + */ + @java.lang.Override + public long getIsTargetedAtJourneyPatternPointGid() { + return isTargetedAtJourneyPatternPointGid_; + } + + public static final int WAS_OBSERVED_AT_JOURNEY_PATTERN_POINT_GID_FIELD_NUMBER = 9; + private long wasObservedAtJourneyPatternPointGid_ = 0L; + /** + * optional int64 was_observed_at_journey_pattern_point_gid = 9; + * @return Whether the wasObservedAtJourneyPatternPointGid field is set. + */ + @java.lang.Override + public boolean hasWasObservedAtJourneyPatternPointGid() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional int64 was_observed_at_journey_pattern_point_gid = 9; + * @return The wasObservedAtJourneyPatternPointGid. + */ + @java.lang.Override + public long getWasObservedAtJourneyPatternPointGid() { + return wasObservedAtJourneyPatternPointGid_; + } + + public static final int TIMETABLED_LATEST_UTC_DATE_TIME_MS_FIELD_NUMBER = 10; + private long timetabledLatestUtcDateTimeMs_ = 0L; + /** + *
+         *All timestamps are defined in UTC epochs in milliseconds
+         * 
+ * + * optional int64 timetabled_latest_utc_date_time_ms = 10; + * @return Whether the timetabledLatestUtcDateTimeMs field is set. + */ + @java.lang.Override + public boolean hasTimetabledLatestUtcDateTimeMs() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+         *All timestamps are defined in UTC epochs in milliseconds
+         * 
+ * + * optional int64 timetabled_latest_utc_date_time_ms = 10; + * @return The timetabledLatestUtcDateTimeMs. + */ + @java.lang.Override + public long getTimetabledLatestUtcDateTimeMs() { + return timetabledLatestUtcDateTimeMs_; + } + + public static final int TARGET_UTC_DATE_TIME_MS_FIELD_NUMBER = 11; + private long targetUtcDateTimeMs_ = 0L; + /** + * optional int64 target_utc_date_time_ms = 11; + * @return Whether the targetUtcDateTimeMs field is set. + */ + @java.lang.Override + public boolean hasTargetUtcDateTimeMs() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional int64 target_utc_date_time_ms = 11; + * @return The targetUtcDateTimeMs. + */ + @java.lang.Override + public long getTargetUtcDateTimeMs() { + return targetUtcDateTimeMs_; + } + + public static final int ESTIMATED_UTC_DATE_TIME_MS_FIELD_NUMBER = 12; + private long estimatedUtcDateTimeMs_ = 0L; + /** + * optional int64 estimated_utc_date_time_ms = 12; + * @return Whether the estimatedUtcDateTimeMs field is set. + */ + @java.lang.Override + public boolean hasEstimatedUtcDateTimeMs() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional int64 estimated_utc_date_time_ms = 12; + * @return The estimatedUtcDateTimeMs. + */ + @java.lang.Override + public long getEstimatedUtcDateTimeMs() { + return estimatedUtcDateTimeMs_; + } + + public static final int OBSERVED_UTC_DATE_TIME_MS_FIELD_NUMBER = 13; + private long observedUtcDateTimeMs_ = 0L; + /** + * optional int64 observed_utc_date_time_ms = 13; + * @return Whether the observedUtcDateTimeMs field is set. + */ + @java.lang.Override + public boolean hasObservedUtcDateTimeMs() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional int64 observed_utc_date_time_ms = 13; + * @return The observedUtcDateTimeMs. + */ + @java.lang.Override + public long getObservedUtcDateTimeMs() { + return observedUtcDateTimeMs_; + } + + public static final int STATE_FIELD_NUMBER = 14; + private long state_ = 0L; + /** + * required int64 state = 14; + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * required int64 state = 14; + * @return The state. + */ + @java.lang.Override + public long getState() { + return state_; + } + + public static final int TYPE_FIELD_NUMBER = 15; + private long type_ = 0L; + /** + * required int64 type = 15; + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * required int64 type = 15; + * @return The type. + */ + @java.lang.Override + public long getType() { + return type_; + } + + public static final int IS_VALID_YES_NO_FIELD_NUMBER = 16; + private boolean isValidYesNo_ = false; + /** + * required bool is_valid_yes_no = 16; + * @return Whether the isValidYesNo field is set. + */ + @java.lang.Override + public boolean hasIsValidYesNo() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * required bool is_valid_yes_no = 16; + * @return The isValidYesNo. + */ + @java.lang.Override + public boolean getIsValidYesNo() { + return isValidYesNo_; + } + + public static final int LAST_MODIFIED_UTC_DATE_TIME_MS_FIELD_NUMBER = 17; + private long lastModifiedUtcDateTimeMs_ = 0L; + /** + * required int64 last_modified_utc_date_time_ms = 17; + * @return Whether the lastModifiedUtcDateTimeMs field is set. + */ + @java.lang.Override + public boolean hasLastModifiedUtcDateTimeMs() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * required int64 last_modified_utc_date_time_ms = 17; + * @return The lastModifiedUtcDateTimeMs. + */ + @java.lang.Override + public long getLastModifiedUtcDateTimeMs() { + return lastModifiedUtcDateTimeMs_; + } + + 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 (!hasSchemaVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasIsOnDatedVehicleJourneyId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasJourneyPatternSequenceNumber()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasIsTimetabledAtJourneyPatternPointGid()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasVisitCountNumber()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasState()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasIsValidYesNo()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasLastModifiedUtcDateTimeMs()) { + 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.writeInt32(1, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(2, id_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, isOnDatedVehicleJourneyId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(4, isOnMonitoredVehicleJourneyId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt32(5, journeyPatternSequenceNumber_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeInt64(6, isTimetabledAtJourneyPatternPointGid_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeInt32(7, visitCountNumber_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeInt64(8, isTargetedAtJourneyPatternPointGid_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeInt64(9, wasObservedAtJourneyPatternPointGid_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeInt64(10, timetabledLatestUtcDateTimeMs_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeInt64(11, targetUtcDateTimeMs_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeInt64(12, estimatedUtcDateTimeMs_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeInt64(13, observedUtcDateTimeMs_); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeInt64(14, state_); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeInt64(15, type_); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeBool(16, isValidYesNo_); + } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeInt64(17, lastModifiedUtcDateTimeMs_); + } + 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, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, id_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, isOnDatedVehicleJourneyId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, isOnMonitoredVehicleJourneyId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, journeyPatternSequenceNumber_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, + isTimetabledAtJourneyPatternPointGid_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, visitCountNumber_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, isTargetedAtJourneyPatternPointGid_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, wasObservedAtJourneyPatternPointGid_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, timetabledLatestUtcDateTimeMs_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, targetUtcDateTimeMs_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, estimatedUtcDateTimeMs_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, observedUtcDateTimeMs_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, state_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(15, type_); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, isValidYesNo_); + } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(17, lastModifiedUtcDateTimeMs_); + } + 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 fi.hsl.common.transitdata.proto.PubtransTableProtos.Common)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.PubtransTableProtos.Common other = (fi.hsl.common.transitdata.proto.PubtransTableProtos.Common) obj; + + if (hasSchemaVersion() != other.hasSchemaVersion()) + return false; + if (hasSchemaVersion()) { + if (getSchemaVersion() != other.getSchemaVersion()) + return false; + } + if (hasId() != other.hasId()) + return false; + if (hasId()) { + if (getId() != other.getId()) + return false; + } + if (hasIsOnDatedVehicleJourneyId() != other.hasIsOnDatedVehicleJourneyId()) + return false; + if (hasIsOnDatedVehicleJourneyId()) { + if (getIsOnDatedVehicleJourneyId() != other.getIsOnDatedVehicleJourneyId()) + return false; + } + if (hasIsOnMonitoredVehicleJourneyId() != other.hasIsOnMonitoredVehicleJourneyId()) + return false; + if (hasIsOnMonitoredVehicleJourneyId()) { + if (getIsOnMonitoredVehicleJourneyId() != other.getIsOnMonitoredVehicleJourneyId()) + return false; + } + if (hasJourneyPatternSequenceNumber() != other.hasJourneyPatternSequenceNumber()) + return false; + if (hasJourneyPatternSequenceNumber()) { + if (getJourneyPatternSequenceNumber() != other.getJourneyPatternSequenceNumber()) + return false; + } + if (hasIsTimetabledAtJourneyPatternPointGid() != other.hasIsTimetabledAtJourneyPatternPointGid()) + return false; + if (hasIsTimetabledAtJourneyPatternPointGid()) { + if (getIsTimetabledAtJourneyPatternPointGid() != other.getIsTimetabledAtJourneyPatternPointGid()) + return false; + } + if (hasVisitCountNumber() != other.hasVisitCountNumber()) + return false; + if (hasVisitCountNumber()) { + if (getVisitCountNumber() != other.getVisitCountNumber()) + return false; + } + if (hasIsTargetedAtJourneyPatternPointGid() != other.hasIsTargetedAtJourneyPatternPointGid()) + return false; + if (hasIsTargetedAtJourneyPatternPointGid()) { + if (getIsTargetedAtJourneyPatternPointGid() != other.getIsTargetedAtJourneyPatternPointGid()) + return false; + } + if (hasWasObservedAtJourneyPatternPointGid() != other.hasWasObservedAtJourneyPatternPointGid()) + return false; + if (hasWasObservedAtJourneyPatternPointGid()) { + if (getWasObservedAtJourneyPatternPointGid() != other.getWasObservedAtJourneyPatternPointGid()) + return false; + } + if (hasTimetabledLatestUtcDateTimeMs() != other.hasTimetabledLatestUtcDateTimeMs()) + return false; + if (hasTimetabledLatestUtcDateTimeMs()) { + if (getTimetabledLatestUtcDateTimeMs() != other.getTimetabledLatestUtcDateTimeMs()) + return false; + } + if (hasTargetUtcDateTimeMs() != other.hasTargetUtcDateTimeMs()) + return false; + if (hasTargetUtcDateTimeMs()) { + if (getTargetUtcDateTimeMs() != other.getTargetUtcDateTimeMs()) + return false; + } + if (hasEstimatedUtcDateTimeMs() != other.hasEstimatedUtcDateTimeMs()) + return false; + if (hasEstimatedUtcDateTimeMs()) { + if (getEstimatedUtcDateTimeMs() != other.getEstimatedUtcDateTimeMs()) + return false; + } + if (hasObservedUtcDateTimeMs() != other.hasObservedUtcDateTimeMs()) + return false; + if (hasObservedUtcDateTimeMs()) { + if (getObservedUtcDateTimeMs() != other.getObservedUtcDateTimeMs()) + return false; + } + if (hasState() != other.hasState()) + return false; + if (hasState()) { + if (getState() != other.getState()) + return false; + } + if (hasType() != other.hasType()) + return false; + if (hasType()) { + if (getType() != other.getType()) + return false; + } + if (hasIsValidYesNo() != other.hasIsValidYesNo()) + return false; + if (hasIsValidYesNo()) { + if (getIsValidYesNo() != other.getIsValidYesNo()) + return false; + } + if (hasLastModifiedUtcDateTimeMs() != other.hasLastModifiedUtcDateTimeMs()) + return false; + if (hasLastModifiedUtcDateTimeMs()) { + if (getLastModifiedUtcDateTimeMs() != other.getLastModifiedUtcDateTimeMs()) + 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 (hasSchemaVersion()) { + hash = (37 * hash) + SCHEMA_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion(); + } + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId()); + } + if (hasIsOnDatedVehicleJourneyId()) { + hash = (37 * hash) + IS_ON_DATED_VEHICLE_JOURNEY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIsOnDatedVehicleJourneyId()); + } + if (hasIsOnMonitoredVehicleJourneyId()) { + hash = (37 * hash) + IS_ON_MONITORED_VEHICLE_JOURNEY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIsOnMonitoredVehicleJourneyId()); + } + if (hasJourneyPatternSequenceNumber()) { + hash = (37 * hash) + JOURNEY_PATTERN_SEQUENCE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getJourneyPatternSequenceNumber(); + } + if (hasIsTimetabledAtJourneyPatternPointGid()) { + hash = (37 * hash) + IS_TIMETABLED_AT_JOURNEY_PATTERN_POINT_GID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIsTimetabledAtJourneyPatternPointGid()); + } + if (hasVisitCountNumber()) { + hash = (37 * hash) + VISIT_COUNT_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getVisitCountNumber(); + } + if (hasIsTargetedAtJourneyPatternPointGid()) { + hash = (37 * hash) + IS_TARGETED_AT_JOURNEY_PATTERN_POINT_GID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIsTargetedAtJourneyPatternPointGid()); + } + if (hasWasObservedAtJourneyPatternPointGid()) { + hash = (37 * hash) + WAS_OBSERVED_AT_JOURNEY_PATTERN_POINT_GID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWasObservedAtJourneyPatternPointGid()); + } + if (hasTimetabledLatestUtcDateTimeMs()) { + hash = (37 * hash) + TIMETABLED_LATEST_UTC_DATE_TIME_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimetabledLatestUtcDateTimeMs()); + } + if (hasTargetUtcDateTimeMs()) { + hash = (37 * hash) + TARGET_UTC_DATE_TIME_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTargetUtcDateTimeMs()); + } + if (hasEstimatedUtcDateTimeMs()) { + hash = (37 * hash) + ESTIMATED_UTC_DATE_TIME_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEstimatedUtcDateTimeMs()); + } + if (hasObservedUtcDateTimeMs()) { + hash = (37 * hash) + OBSERVED_UTC_DATE_TIME_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObservedUtcDateTimeMs()); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getState()); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getType()); + } + if (hasIsValidYesNo()) { + hash = (37 * hash) + IS_VALID_YES_NO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsValidYesNo()); + } + if (hasLastModifiedUtcDateTimeMs()) { + hash = (37 * hash) + LAST_MODIFIED_UTC_DATE_TIME_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLastModifiedUtcDateTimeMs()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - schemaVersion_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - id_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - isOnDatedVehicleJourneyId_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - isOnMonitoredVehicleJourneyId_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - journeyPatternSequenceNumber_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - isTimetabledAtJourneyPatternPointGid_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - visitCountNumber_ = input.readInt32(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - isTargetedAtJourneyPatternPointGid_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - wasObservedAtJourneyPatternPointGid_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 80: { - timetabledLatestUtcDateTimeMs_ = input.readInt64(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 88: { - targetUtcDateTimeMs_ = input.readInt64(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 96: { - estimatedUtcDateTimeMs_ = input.readInt64(); - bitField0_ |= 0x00000800; - break; - } // case 96 - case 104: { - observedUtcDateTimeMs_ = input.readInt64(); - bitField0_ |= 0x00001000; - break; - } // case 104 - case 112: { - state_ = input.readInt64(); - bitField0_ |= 0x00002000; - break; - } // case 112 - case 120: { - type_ = input.readInt64(); - bitField0_ |= 0x00004000; - break; - } // case 120 - case 128: { - isValidYesNo_ = input.readBool(); - bitField0_ |= 0x00008000; - break; - } // case 128 - case 136: { - lastModifiedUtcDateTimeMs_ = input.readInt64(); - bitField0_ |= 0x00010000; - break; - } // case 136 - 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 schemaVersion_ = 1; - /** - *
-       * Remember to bump up the version when updating the schema!
-       * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Remember to bump up the version when updating the schema!
-       * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - /** - *
-       * Remember to bump up the version when updating the schema!
-       * 
- * - * required int32 schema_version = 1 [default = 1]; - * @param value The schemaVersion to set. - * @return This builder for chaining. - */ - public Builder setSchemaVersion(int value) { - - schemaVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Remember to bump up the version when updating the schema!
-       * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return This builder for chaining. - */ - public Builder clearSchemaVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - schemaVersion_ = 1; - onChanged(); - return this; - } - - private long id_ ; - /** - * required int64 id = 2; - * @return Whether the id field is set. - */ - @java.lang.Override - public boolean hasId() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required int64 id = 2; - * @return The id. - */ - @java.lang.Override - public long getId() { - return id_; - } - /** - * required int64 id = 2; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(long value) { - - id_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * required int64 id = 2; - * @return This builder for chaining. - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000002); - id_ = 0L; - onChanged(); - return this; - } - - private long isOnDatedVehicleJourneyId_ ; - /** - * required int64 is_on_dated_vehicle_journey_id = 3; - * @return Whether the isOnDatedVehicleJourneyId field is set. - */ - @java.lang.Override - public boolean hasIsOnDatedVehicleJourneyId() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required int64 is_on_dated_vehicle_journey_id = 3; - * @return The isOnDatedVehicleJourneyId. - */ - @java.lang.Override - public long getIsOnDatedVehicleJourneyId() { - return isOnDatedVehicleJourneyId_; - } - /** - * required int64 is_on_dated_vehicle_journey_id = 3; - * @param value The isOnDatedVehicleJourneyId to set. - * @return This builder for chaining. - */ - public Builder setIsOnDatedVehicleJourneyId(long value) { - - isOnDatedVehicleJourneyId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required int64 is_on_dated_vehicle_journey_id = 3; - * @return This builder for chaining. - */ - public Builder clearIsOnDatedVehicleJourneyId() { - bitField0_ = (bitField0_ & ~0x00000004); - isOnDatedVehicleJourneyId_ = 0L; - onChanged(); - return this; - } - - private long isOnMonitoredVehicleJourneyId_ ; - /** - * optional int64 is_on_monitored_vehicle_journey_id = 4; - * @return Whether the isOnMonitoredVehicleJourneyId field is set. - */ - @java.lang.Override - public boolean hasIsOnMonitoredVehicleJourneyId() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional int64 is_on_monitored_vehicle_journey_id = 4; - * @return The isOnMonitoredVehicleJourneyId. - */ - @java.lang.Override - public long getIsOnMonitoredVehicleJourneyId() { - return isOnMonitoredVehicleJourneyId_; - } - /** - * optional int64 is_on_monitored_vehicle_journey_id = 4; - * @param value The isOnMonitoredVehicleJourneyId to set. - * @return This builder for chaining. - */ - public Builder setIsOnMonitoredVehicleJourneyId(long value) { - - isOnMonitoredVehicleJourneyId_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * optional int64 is_on_monitored_vehicle_journey_id = 4; - * @return This builder for chaining. - */ - public Builder clearIsOnMonitoredVehicleJourneyId() { - bitField0_ = (bitField0_ & ~0x00000008); - isOnMonitoredVehicleJourneyId_ = 0L; - onChanged(); - return this; - } - - private int journeyPatternSequenceNumber_ ; - /** - * required int32 journey_pattern_sequence_number = 5; - * @return Whether the journeyPatternSequenceNumber field is set. - */ - @java.lang.Override - public boolean hasJourneyPatternSequenceNumber() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required int32 journey_pattern_sequence_number = 5; - * @return The journeyPatternSequenceNumber. - */ - @java.lang.Override - public int getJourneyPatternSequenceNumber() { - return journeyPatternSequenceNumber_; - } - /** - * required int32 journey_pattern_sequence_number = 5; - * @param value The journeyPatternSequenceNumber to set. - * @return This builder for chaining. - */ - public Builder setJourneyPatternSequenceNumber(int value) { - - journeyPatternSequenceNumber_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * required int32 journey_pattern_sequence_number = 5; - * @return This builder for chaining. - */ - public Builder clearJourneyPatternSequenceNumber() { - bitField0_ = (bitField0_ & ~0x00000010); - journeyPatternSequenceNumber_ = 0; - onChanged(); - return this; - } - - private long isTimetabledAtJourneyPatternPointGid_ ; - /** - * required int64 is_timetabled_at_journey_pattern_point_gid = 6; - * @return Whether the isTimetabledAtJourneyPatternPointGid field is set. - */ - @java.lang.Override - public boolean hasIsTimetabledAtJourneyPatternPointGid() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * required int64 is_timetabled_at_journey_pattern_point_gid = 6; - * @return The isTimetabledAtJourneyPatternPointGid. - */ - @java.lang.Override - public long getIsTimetabledAtJourneyPatternPointGid() { - return isTimetabledAtJourneyPatternPointGid_; - } - /** - * required int64 is_timetabled_at_journey_pattern_point_gid = 6; - * @param value The isTimetabledAtJourneyPatternPointGid to set. - * @return This builder for chaining. - */ - public Builder setIsTimetabledAtJourneyPatternPointGid(long value) { - - isTimetabledAtJourneyPatternPointGid_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * required int64 is_timetabled_at_journey_pattern_point_gid = 6; - * @return This builder for chaining. - */ - public Builder clearIsTimetabledAtJourneyPatternPointGid() { - bitField0_ = (bitField0_ & ~0x00000020); - isTimetabledAtJourneyPatternPointGid_ = 0L; - onChanged(); - return this; - } - - private int visitCountNumber_ ; - /** - * required int32 visit_count_number = 7; - * @return Whether the visitCountNumber field is set. - */ - @java.lang.Override - public boolean hasVisitCountNumber() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * required int32 visit_count_number = 7; - * @return The visitCountNumber. - */ - @java.lang.Override - public int getVisitCountNumber() { - return visitCountNumber_; - } - /** - * required int32 visit_count_number = 7; - * @param value The visitCountNumber to set. - * @return This builder for chaining. - */ - public Builder setVisitCountNumber(int value) { - - visitCountNumber_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * required int32 visit_count_number = 7; - * @return This builder for chaining. - */ - public Builder clearVisitCountNumber() { - bitField0_ = (bitField0_ & ~0x00000040); - visitCountNumber_ = 0; - onChanged(); - return this; - } - - private long isTargetedAtJourneyPatternPointGid_ ; - /** - * optional int64 is_targeted_at_journey_pattern_point_gid = 8; - * @return Whether the isTargetedAtJourneyPatternPointGid field is set. - */ - @java.lang.Override - public boolean hasIsTargetedAtJourneyPatternPointGid() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional int64 is_targeted_at_journey_pattern_point_gid = 8; - * @return The isTargetedAtJourneyPatternPointGid. - */ - @java.lang.Override - public long getIsTargetedAtJourneyPatternPointGid() { - return isTargetedAtJourneyPatternPointGid_; - } - /** - * optional int64 is_targeted_at_journey_pattern_point_gid = 8; - * @param value The isTargetedAtJourneyPatternPointGid to set. - * @return This builder for chaining. - */ - public Builder setIsTargetedAtJourneyPatternPointGid(long value) { - - isTargetedAtJourneyPatternPointGid_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * optional int64 is_targeted_at_journey_pattern_point_gid = 8; - * @return This builder for chaining. - */ - public Builder clearIsTargetedAtJourneyPatternPointGid() { - bitField0_ = (bitField0_ & ~0x00000080); - isTargetedAtJourneyPatternPointGid_ = 0L; - onChanged(); - return this; - } - - private long wasObservedAtJourneyPatternPointGid_ ; - /** - * optional int64 was_observed_at_journey_pattern_point_gid = 9; - * @return Whether the wasObservedAtJourneyPatternPointGid field is set. - */ - @java.lang.Override - public boolean hasWasObservedAtJourneyPatternPointGid() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * optional int64 was_observed_at_journey_pattern_point_gid = 9; - * @return The wasObservedAtJourneyPatternPointGid. - */ - @java.lang.Override - public long getWasObservedAtJourneyPatternPointGid() { - return wasObservedAtJourneyPatternPointGid_; - } - /** - * optional int64 was_observed_at_journey_pattern_point_gid = 9; - * @param value The wasObservedAtJourneyPatternPointGid to set. - * @return This builder for chaining. - */ - public Builder setWasObservedAtJourneyPatternPointGid(long value) { - - wasObservedAtJourneyPatternPointGid_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * optional int64 was_observed_at_journey_pattern_point_gid = 9; - * @return This builder for chaining. - */ - public Builder clearWasObservedAtJourneyPatternPointGid() { - bitField0_ = (bitField0_ & ~0x00000100); - wasObservedAtJourneyPatternPointGid_ = 0L; - onChanged(); - return this; - } - - private long timetabledLatestUtcDateTimeMs_ ; - /** - *
-       *All timestamps are defined in UTC epochs in milliseconds
-       * 
- * - * optional int64 timetabled_latest_utc_date_time_ms = 10; - * @return Whether the timetabledLatestUtcDateTimeMs field is set. - */ - @java.lang.Override - public boolean hasTimetabledLatestUtcDateTimeMs() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - *
-       *All timestamps are defined in UTC epochs in milliseconds
-       * 
- * - * optional int64 timetabled_latest_utc_date_time_ms = 10; - * @return The timetabledLatestUtcDateTimeMs. - */ - @java.lang.Override - public long getTimetabledLatestUtcDateTimeMs() { - return timetabledLatestUtcDateTimeMs_; - } - /** - *
-       *All timestamps are defined in UTC epochs in milliseconds
-       * 
- * - * optional int64 timetabled_latest_utc_date_time_ms = 10; - * @param value The timetabledLatestUtcDateTimeMs to set. - * @return This builder for chaining. - */ - public Builder setTimetabledLatestUtcDateTimeMs(long value) { - - timetabledLatestUtcDateTimeMs_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - *
-       *All timestamps are defined in UTC epochs in milliseconds
-       * 
- * - * optional int64 timetabled_latest_utc_date_time_ms = 10; - * @return This builder for chaining. - */ - public Builder clearTimetabledLatestUtcDateTimeMs() { - bitField0_ = (bitField0_ & ~0x00000200); - timetabledLatestUtcDateTimeMs_ = 0L; - onChanged(); - return this; - } - - private long targetUtcDateTimeMs_ ; - /** - * optional int64 target_utc_date_time_ms = 11; - * @return Whether the targetUtcDateTimeMs field is set. - */ - @java.lang.Override - public boolean hasTargetUtcDateTimeMs() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * optional int64 target_utc_date_time_ms = 11; - * @return The targetUtcDateTimeMs. - */ - @java.lang.Override - public long getTargetUtcDateTimeMs() { - return targetUtcDateTimeMs_; - } - /** - * optional int64 target_utc_date_time_ms = 11; - * @param value The targetUtcDateTimeMs to set. - * @return This builder for chaining. - */ - public Builder setTargetUtcDateTimeMs(long value) { - - targetUtcDateTimeMs_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * optional int64 target_utc_date_time_ms = 11; - * @return This builder for chaining. - */ - public Builder clearTargetUtcDateTimeMs() { - bitField0_ = (bitField0_ & ~0x00000400); - targetUtcDateTimeMs_ = 0L; - onChanged(); - return this; - } - - private long estimatedUtcDateTimeMs_ ; - /** - * optional int64 estimated_utc_date_time_ms = 12; - * @return Whether the estimatedUtcDateTimeMs field is set. - */ - @java.lang.Override - public boolean hasEstimatedUtcDateTimeMs() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - * optional int64 estimated_utc_date_time_ms = 12; - * @return The estimatedUtcDateTimeMs. - */ - @java.lang.Override - public long getEstimatedUtcDateTimeMs() { - return estimatedUtcDateTimeMs_; - } - /** - * optional int64 estimated_utc_date_time_ms = 12; - * @param value The estimatedUtcDateTimeMs to set. - * @return This builder for chaining. - */ - public Builder setEstimatedUtcDateTimeMs(long value) { - - estimatedUtcDateTimeMs_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * optional int64 estimated_utc_date_time_ms = 12; - * @return This builder for chaining. - */ - public Builder clearEstimatedUtcDateTimeMs() { - bitField0_ = (bitField0_ & ~0x00000800); - estimatedUtcDateTimeMs_ = 0L; - onChanged(); - return this; - } - - private long observedUtcDateTimeMs_ ; - /** - * optional int64 observed_utc_date_time_ms = 13; - * @return Whether the observedUtcDateTimeMs field is set. - */ - @java.lang.Override - public boolean hasObservedUtcDateTimeMs() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * optional int64 observed_utc_date_time_ms = 13; - * @return The observedUtcDateTimeMs. - */ - @java.lang.Override - public long getObservedUtcDateTimeMs() { - return observedUtcDateTimeMs_; - } - /** - * optional int64 observed_utc_date_time_ms = 13; - * @param value The observedUtcDateTimeMs to set. - * @return This builder for chaining. - */ - public Builder setObservedUtcDateTimeMs(long value) { - - observedUtcDateTimeMs_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * optional int64 observed_utc_date_time_ms = 13; - * @return This builder for chaining. - */ - public Builder clearObservedUtcDateTimeMs() { - bitField0_ = (bitField0_ & ~0x00001000); - observedUtcDateTimeMs_ = 0L; - onChanged(); - return this; - } - - private long state_ ; - /** - * required int64 state = 14; - * @return Whether the state field is set. - */ - @java.lang.Override - public boolean hasState() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * required int64 state = 14; - * @return The state. - */ - @java.lang.Override - public long getState() { - return state_; - } - /** - * required int64 state = 14; - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(long value) { - - state_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * required int64 state = 14; - * @return This builder for chaining. - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00002000); - state_ = 0L; - onChanged(); - return this; - } - - private long type_ ; - /** - * required int64 type = 15; - * @return Whether the type field is set. - */ - @java.lang.Override - public boolean hasType() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * required int64 type = 15; - * @return The type. - */ - @java.lang.Override - public long getType() { - return type_; - } - /** - * required int64 type = 15; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(long value) { - - type_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * required int64 type = 15; - * @return This builder for chaining. - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00004000); - type_ = 0L; - onChanged(); - return this; - } - - private boolean isValidYesNo_ ; - /** - * required bool is_valid_yes_no = 16; - * @return Whether the isValidYesNo field is set. - */ - @java.lang.Override - public boolean hasIsValidYesNo() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * required bool is_valid_yes_no = 16; - * @return The isValidYesNo. - */ - @java.lang.Override - public boolean getIsValidYesNo() { - return isValidYesNo_; - } - /** - * required bool is_valid_yes_no = 16; - * @param value The isValidYesNo to set. - * @return This builder for chaining. - */ - public Builder setIsValidYesNo(boolean value) { - - isValidYesNo_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * required bool is_valid_yes_no = 16; - * @return This builder for chaining. - */ - public Builder clearIsValidYesNo() { - bitField0_ = (bitField0_ & ~0x00008000); - isValidYesNo_ = false; - onChanged(); - return this; - } - - private long lastModifiedUtcDateTimeMs_ ; - /** - * required int64 last_modified_utc_date_time_ms = 17; - * @return Whether the lastModifiedUtcDateTimeMs field is set. - */ - @java.lang.Override - public boolean hasLastModifiedUtcDateTimeMs() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * required int64 last_modified_utc_date_time_ms = 17; - * @return The lastModifiedUtcDateTimeMs. - */ - @java.lang.Override - public long getLastModifiedUtcDateTimeMs() { - return lastModifiedUtcDateTimeMs_; - } - /** - * required int64 last_modified_utc_date_time_ms = 17; - * @param value The lastModifiedUtcDateTimeMs to set. - * @return This builder for chaining. - */ - public Builder setLastModifiedUtcDateTimeMs(long value) { - - lastModifiedUtcDateTimeMs_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * required int64 last_modified_utc_date_time_ms = 17; - * @return This builder for chaining. - */ - public Builder clearLastModifiedUtcDateTimeMs() { - bitField0_ = (bitField0_ & ~0x00010000); - lastModifiedUtcDateTimeMs_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.Common) - } - - // @@protoc_insertion_point(class_scope:proto.Common) - private static final fi.hsl.common.transitdata.proto.PubtransTableProtos.Common DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.PubtransTableProtos.Common(); - } - - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Common parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DOITripInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.DOITripInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * All fields in JORE-format
-     * 
- * - * required int64 dvj_id = 1; - * @return Whether the dvjId field is set. - */ - boolean hasDvjId(); - /** - *
-     * All fields in JORE-format
-     * 
- * - * required int64 dvj_id = 1; - * @return The dvjId. - */ - long getDvjId(); - - /** - * required string operating_day = 2; - * @return Whether the operatingDay field is set. - */ - boolean hasOperatingDay(); - /** - * required string operating_day = 2; - * @return The operatingDay. - */ - java.lang.String getOperatingDay(); - /** - * required string operating_day = 2; - * @return The bytes for operatingDay. - */ - com.google.protobuf.ByteString - getOperatingDayBytes(); - - /** - * required string route_id = 3; - * @return Whether the routeId field is set. - */ - boolean hasRouteId(); - /** - * required string route_id = 3; - * @return The routeId. - */ - java.lang.String getRouteId(); - /** - * required string route_id = 3; - * @return The bytes for routeId. - */ - com.google.protobuf.ByteString - getRouteIdBytes(); - - /** - * required uint32 direction_id = 4; - * @return Whether the directionId field is set. - */ - boolean hasDirectionId(); - /** - * required uint32 direction_id = 4; - * @return The directionId. - */ - int getDirectionId(); - - /** - * required string start_time = 5; - * @return Whether the startTime field is set. - */ - boolean hasStartTime(); - /** - * required string start_time = 5; - * @return The startTime. - */ - java.lang.String getStartTime(); - /** - * required string start_time = 5; - * @return The bytes for startTime. - */ - com.google.protobuf.ByteString - getStartTimeBytes(); - - /** - *
-     *These fields are used for stop ID of the stop estimate
-     * 
- * - * required string stop_id = 6; - * @return Whether the stopId field is set. - */ - boolean hasStopId(); - /** - *
-     *These fields are used for stop ID of the stop estimate
-     * 
- * - * required string stop_id = 6; - * @return The stopId. - */ - java.lang.String getStopId(); - /** - *
-     *These fields are used for stop ID of the stop estimate
-     * 
- * - * required string stop_id = 6; - * @return The bytes for stopId. - */ - com.google.protobuf.ByteString - getStopIdBytes(); - - /** - * optional string targeted_stop_id = 7; - * @return Whether the targetedStopId field is set. - */ - boolean hasTargetedStopId(); - /** - * optional string targeted_stop_id = 7; - * @return The targetedStopId. - */ - java.lang.String getTargetedStopId(); - /** - * optional string targeted_stop_id = 7; - * @return The bytes for targetedStopId. - */ - com.google.protobuf.ByteString - getTargetedStopIdBytes(); - } - /** - * Protobuf type {@code proto.DOITripInfo} - */ - public static final class DOITripInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.DOITripInfo) - DOITripInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use DOITripInfo.newBuilder() to construct. - private DOITripInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DOITripInfo() { - operatingDay_ = ""; - routeId_ = ""; - startTime_ = ""; - stopId_ = ""; - targetedStopId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DOITripInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_DOITripInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_DOITripInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.class, fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder.class); - } - - private int bitField0_; - public static final int DVJ_ID_FIELD_NUMBER = 1; - private long dvjId_ = 0L; - /** - *
-     * All fields in JORE-format
-     * 
- * - * required int64 dvj_id = 1; - * @return Whether the dvjId field is set. - */ - @java.lang.Override - public boolean hasDvjId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * All fields in JORE-format
-     * 
- * - * required int64 dvj_id = 1; - * @return The dvjId. - */ - @java.lang.Override - public long getDvjId() { - return dvjId_; - } - - public static final int OPERATING_DAY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object operatingDay_ = ""; - /** - * required string operating_day = 2; - * @return Whether the operatingDay field is set. - */ - @java.lang.Override - public boolean hasOperatingDay() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required string operating_day = 2; - * @return The operatingDay. - */ - @java.lang.Override - public java.lang.String getOperatingDay() { - java.lang.Object ref = operatingDay_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - operatingDay_ = s; - } - return s; - } - } - /** - * required string operating_day = 2; - * @return The bytes for operatingDay. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOperatingDayBytes() { - java.lang.Object ref = operatingDay_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operatingDay_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROUTE_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object routeId_ = ""; - /** - * required string route_id = 3; - * @return Whether the routeId field is set. - */ - @java.lang.Override - public boolean hasRouteId() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required string route_id = 3; - * @return The routeId. - */ - @java.lang.Override - public java.lang.String getRouteId() { - java.lang.Object ref = routeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - routeId_ = s; - } - return s; - } - } - /** - * required string route_id = 3; - * @return The bytes for routeId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRouteIdBytes() { - java.lang.Object ref = routeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIRECTION_ID_FIELD_NUMBER = 4; - private int directionId_ = 0; - /** - * required uint32 direction_id = 4; - * @return Whether the directionId field is set. - */ - @java.lang.Override - public boolean hasDirectionId() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required uint32 direction_id = 4; - * @return The directionId. - */ - @java.lang.Override - public int getDirectionId() { - return directionId_; - } - - public static final int START_TIME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object startTime_ = ""; - /** - * required string start_time = 5; - * @return Whether the startTime field is set. - */ - @java.lang.Override - public boolean hasStartTime() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required string start_time = 5; - * @return The startTime. - */ - @java.lang.Override - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startTime_ = s; - } - return s; - } - } - /** - * required string start_time = 5; - * @return The bytes for startTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STOP_ID_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object stopId_ = ""; - /** - *
-     *These fields are used for stop ID of the stop estimate
-     * 
- * - * required string stop_id = 6; - * @return Whether the stopId field is set. - */ - @java.lang.Override - public boolean hasStopId() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     *These fields are used for stop ID of the stop estimate
-     * 
- * - * required string stop_id = 6; - * @return The stopId. - */ - @java.lang.Override - public java.lang.String getStopId() { - java.lang.Object ref = stopId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopId_ = s; - } - return s; - } - } - /** - *
-     *These fields are used for stop ID of the stop estimate
-     * 
- * - * required string stop_id = 6; - * @return The bytes for stopId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStopIdBytes() { - java.lang.Object ref = stopId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGETED_STOP_ID_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private volatile java.lang.Object targetedStopId_ = ""; - /** - * optional string targeted_stop_id = 7; - * @return Whether the targetedStopId field is set. - */ - @java.lang.Override - public boolean hasTargetedStopId() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * optional string targeted_stop_id = 7; - * @return The targetedStopId. - */ - @java.lang.Override - public java.lang.String getTargetedStopId() { - java.lang.Object ref = targetedStopId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - targetedStopId_ = s; - } - return s; - } - } - /** - * optional string targeted_stop_id = 7; - * @return The bytes for targetedStopId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTargetedStopIdBytes() { - java.lang.Object ref = targetedStopId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetedStopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!hasDvjId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasOperatingDay()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasRouteId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasDirectionId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStartTime()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStopId()) { - 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.writeInt64(1, dvjId_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operatingDay_); - } - if (((bitField0_ & 0x00000004) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, routeId_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeUInt32(4, directionId_); - } - if (((bitField0_ & 0x00000010) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, startTime_); - } - if (((bitField0_ & 0x00000020) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, stopId_); - } - if (((bitField0_ & 0x00000040) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetedStopId_); - } - 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 - .computeInt64Size(1, dvjId_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operatingDay_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, routeId_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, directionId_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, startTime_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, stopId_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, targetedStopId_); - } - 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 fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo other = (fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo) obj; - - if (hasDvjId() != other.hasDvjId()) return false; - if (hasDvjId()) { - if (getDvjId() - != other.getDvjId()) return false; - } - if (hasOperatingDay() != other.hasOperatingDay()) return false; - if (hasOperatingDay()) { - if (!getOperatingDay() - .equals(other.getOperatingDay())) 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 (hasStopId() != other.hasStopId()) return false; - if (hasStopId()) { - if (!getStopId() - .equals(other.getStopId())) return false; - } - if (hasTargetedStopId() != other.hasTargetedStopId()) return false; - if (hasTargetedStopId()) { - if (!getTargetedStopId() - .equals(other.getTargetedStopId())) 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 (hasDvjId()) { - hash = (37 * hash) + DVJ_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDvjId()); - } - if (hasOperatingDay()) { - hash = (37 * hash) + OPERATING_DAY_FIELD_NUMBER; - hash = (53 * hash) + getOperatingDay().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 (hasStopId()) { - hash = (37 * hash) + STOP_ID_FIELD_NUMBER; - hash = (53 * hash) + getStopId().hashCode(); - } - if (hasTargetedStopId()) { - hash = (37 * hash) + TARGETED_STOP_ID_FIELD_NUMBER; - hash = (53 * hash) + getTargetedStopId().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.DOITripInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.DOITripInfo) - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_DOITripInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_DOITripInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.class, fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder.class); - } - - // Construct using fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dvjId_ = 0L; - operatingDay_ = ""; - routeId_ = ""; - directionId_ = 0; - startTime_ = ""; - stopId_ = ""; - targetedStopId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_DOITripInfo_descriptor; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo build() { - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo buildPartial() { - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo result = new fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dvjId_ = dvjId_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.operatingDay_ = operatingDay_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.routeId_ = routeId_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.directionId_ = directionId_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.startTime_ = startTime_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.stopId_ = stopId_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.targetedStopId_ = targetedStopId_; - to_bitField0_ |= 0x00000040; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo) { - return mergeFrom((fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo other) { - if (other == fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance()) return this; - if (other.hasDvjId()) { - setDvjId(other.getDvjId()); - } - if (other.hasOperatingDay()) { - operatingDay_ = other.operatingDay_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasRouteId()) { - routeId_ = other.routeId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasDirectionId()) { - setDirectionId(other.getDirectionId()); - } - if (other.hasStartTime()) { - startTime_ = other.startTime_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.hasStopId()) { - stopId_ = other.stopId_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.hasTargetedStopId()) { - targetedStopId_ = other.targetedStopId_; - bitField0_ |= 0x00000040; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasDvjId()) { - return false; - } - if (!hasOperatingDay()) { - return false; - } - if (!hasRouteId()) { - return false; - } - if (!hasDirectionId()) { - return false; - } - if (!hasStartTime()) { - return false; - } - if (!hasStopId()) { - 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: { - dvjId_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - operatingDay_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - routeId_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - directionId_ = input.readUInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - startTime_ = input.readBytes(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - stopId_ = input.readBytes(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - targetedStopId_ = input.readBytes(); - bitField0_ |= 0x00000040; - break; - } // case 58 - 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 dvjId_ ; - /** - *
-       * All fields in JORE-format
-       * 
- * - * required int64 dvj_id = 1; - * @return Whether the dvjId field is set. - */ - @java.lang.Override - public boolean hasDvjId() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * All fields in JORE-format
-       * 
- * - * required int64 dvj_id = 1; - * @return The dvjId. - */ - @java.lang.Override - public long getDvjId() { - return dvjId_; - } - /** - *
-       * All fields in JORE-format
-       * 
- * - * required int64 dvj_id = 1; - * @param value The dvjId to set. - * @return This builder for chaining. - */ - public Builder setDvjId(long value) { - - dvjId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * All fields in JORE-format
-       * 
- * - * required int64 dvj_id = 1; - * @return This builder for chaining. - */ - public Builder clearDvjId() { - bitField0_ = (bitField0_ & ~0x00000001); - dvjId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object operatingDay_ = ""; - /** - * required string operating_day = 2; - * @return Whether the operatingDay field is set. - */ - public boolean hasOperatingDay() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required string operating_day = 2; - * @return The operatingDay. - */ - public java.lang.String getOperatingDay() { - java.lang.Object ref = operatingDay_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - operatingDay_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string operating_day = 2; - * @return The bytes for operatingDay. - */ - public com.google.protobuf.ByteString - getOperatingDayBytes() { - java.lang.Object ref = operatingDay_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - operatingDay_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string operating_day = 2; - * @param value The operatingDay to set. - * @return This builder for chaining. - */ - public Builder setOperatingDay( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - operatingDay_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * required string operating_day = 2; - * @return This builder for chaining. - */ - public Builder clearOperatingDay() { - operatingDay_ = getDefaultInstance().getOperatingDay(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * required string operating_day = 2; - * @param value The bytes for operatingDay to set. - * @return This builder for chaining. - */ - public Builder setOperatingDayBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - operatingDay_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object routeId_ = ""; - /** - * required string route_id = 3; - * @return Whether the routeId field is set. - */ - public boolean hasRouteId() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required string route_id = 3; - * @return The routeId. - */ - public java.lang.String getRouteId() { - java.lang.Object ref = routeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - routeId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string route_id = 3; - * @return The bytes for routeId. - */ - public com.google.protobuf.ByteString - getRouteIdBytes() { - java.lang.Object ref = routeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string route_id = 3; - * @param value The routeId to set. - * @return This builder for chaining. - */ - public Builder setRouteId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - routeId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required string route_id = 3; - * @return This builder for chaining. - */ - public Builder clearRouteId() { - routeId_ = getDefaultInstance().getRouteId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * required string route_id = 3; - * @param value The bytes for routeId to set. - * @return This builder for chaining. - */ - public Builder setRouteIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - routeId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private int directionId_ ; - /** - * required uint32 direction_id = 4; - * @return Whether the directionId field is set. - */ - @java.lang.Override - public boolean hasDirectionId() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * required uint32 direction_id = 4; - * @return The directionId. - */ - @java.lang.Override - public int getDirectionId() { - return directionId_; - } - /** - * required uint32 direction_id = 4; - * @param value The directionId to set. - * @return This builder for chaining. - */ - public Builder setDirectionId(int value) { - - directionId_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * required uint32 direction_id = 4; - * @return This builder for chaining. - */ - public Builder clearDirectionId() { - bitField0_ = (bitField0_ & ~0x00000008); - directionId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object startTime_ = ""; - /** - * required string start_time = 5; - * @return Whether the startTime field is set. - */ - public boolean hasStartTime() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * required string start_time = 5; - * @return The startTime. - */ - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startTime_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string start_time = 5; - * @return The bytes for startTime. - */ - public com.google.protobuf.ByteString - getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string start_time = 5; - * @param value The startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTime( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - startTime_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * required string start_time = 5; - * @return This builder for chaining. - */ - public Builder clearStartTime() { - startTime_ = getDefaultInstance().getStartTime(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * required string start_time = 5; - * @param value The bytes for startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - startTime_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object stopId_ = ""; - /** - *
-       *These fields are used for stop ID of the stop estimate
-       * 
- * - * required string stop_id = 6; - * @return Whether the stopId field is set. - */ - public boolean hasStopId() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-       *These fields are used for stop ID of the stop estimate
-       * 
- * - * required string stop_id = 6; - * @return The stopId. - */ - public java.lang.String getStopId() { - java.lang.Object ref = stopId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stopId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *These fields are used for stop ID of the stop estimate
-       * 
- * - * required string stop_id = 6; - * @return The bytes for stopId. - */ - public com.google.protobuf.ByteString - getStopIdBytes() { - java.lang.Object ref = stopId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *These fields are used for stop ID of the stop estimate
-       * 
- * - * required string stop_id = 6; - * @param value The stopId to set. - * @return This builder for chaining. - */ - public Builder setStopId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - stopId_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-       *These fields are used for stop ID of the stop estimate
-       * 
- * - * required string stop_id = 6; - * @return This builder for chaining. - */ - public Builder clearStopId() { - stopId_ = getDefaultInstance().getStopId(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - *
-       *These fields are used for stop ID of the stop estimate
-       * 
- * - * required string stop_id = 6; - * @param value The bytes for stopId to set. - * @return This builder for chaining. - */ - public Builder setStopIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - stopId_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private java.lang.Object targetedStopId_ = ""; - /** - * optional string targeted_stop_id = 7; - * @return Whether the targetedStopId field is set. - */ - public boolean hasTargetedStopId() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * optional string targeted_stop_id = 7; - * @return The targetedStopId. - */ - public java.lang.String getTargetedStopId() { - java.lang.Object ref = targetedStopId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - targetedStopId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string targeted_stop_id = 7; - * @return The bytes for targetedStopId. - */ - public com.google.protobuf.ByteString - getTargetedStopIdBytes() { - java.lang.Object ref = targetedStopId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetedStopId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string targeted_stop_id = 7; - * @param value The targetedStopId to set. - * @return This builder for chaining. - */ - public Builder setTargetedStopId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - targetedStopId_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * optional string targeted_stop_id = 7; - * @return This builder for chaining. - */ - public Builder clearTargetedStopId() { - targetedStopId_ = getDefaultInstance().getTargetedStopId(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * optional string targeted_stop_id = 7; - * @param value The bytes for targetedStopId to set. - * @return This builder for chaining. - */ - public Builder setTargetedStopIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - targetedStopId_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.DOITripInfo) - } - - // @@protoc_insertion_point(class_scope:proto.DOITripInfo) - private static final fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo(); - } - - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DOITripInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ROIArrivalOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.ROIArrival) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Remember to bump up the version when updating the schema!
-     * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - boolean hasSchemaVersion(); - /** - *
-     * Remember to bump up the version when updating the schema!
-     * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return The schemaVersion. - */ - int getSchemaVersion(); - - /** - * required .proto.Common common = 2; - * @return Whether the common field is set. - */ - boolean hasCommon(); - /** - * required .proto.Common common = 2; - * @return The common. - */ - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getCommon(); - /** - * required .proto.Common common = 2; - */ - fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder getCommonOrBuilder(); - - /** - * required .proto.DOITripInfo trip_info = 3; - * @return Whether the tripInfo field is set. - */ - boolean hasTripInfo(); - /** - * required .proto.DOITripInfo trip_info = 3; - * @return The tripInfo. - */ - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getTripInfo(); - /** - * required .proto.DOITripInfo trip_info = 3; - */ - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder getTripInfoOrBuilder(); - } - /** - * Protobuf type {@code proto.ROIArrival} - */ - public static final class ROIArrival extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.ROIArrival) - ROIArrivalOrBuilder { - private static final long serialVersionUID = 0L; - // Use ROIArrival.newBuilder() to construct. - private ROIArrival(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ROIArrival() { - schemaVersion_ = 1; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ROIArrival(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIArrival_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIArrival_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival.class, fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival.Builder.class); - } - - private int bitField0_; - public static final int SCHEMA_VERSION_FIELD_NUMBER = 1; - private int schemaVersion_ = 1; - /** - *
-     * Remember to bump up the version when updating the schema!
-     * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Remember to bump up the version when updating the schema!
-     * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - - public static final int COMMON_FIELD_NUMBER = 2; - private fi.hsl.common.transitdata.proto.PubtransTableProtos.Common common_; - /** - * required .proto.Common common = 2; - * @return Whether the common field is set. - */ - @java.lang.Override - public boolean hasCommon() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required .proto.Common common = 2; - * @return The common. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getCommon() { - return common_ == null ? fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() : common_; - } - /** - * required .proto.Common common = 2; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder getCommonOrBuilder() { - return common_ == null ? fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() : common_; - } - - public static final int TRIP_INFO_FIELD_NUMBER = 3; - private fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo tripInfo_; - /** - * required .proto.DOITripInfo trip_info = 3; - * @return Whether the tripInfo field is set. - */ - @java.lang.Override - public boolean hasTripInfo() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required .proto.DOITripInfo trip_info = 3; - * @return The tripInfo. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getTripInfo() { - return tripInfo_ == null ? fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() : tripInfo_; - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder getTripInfoOrBuilder() { - return tripInfo_ == null ? fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() : tripInfo_; - } - - 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 (!hasSchemaVersion()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasCommon()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTripInfo()) { - memoizedIsInitialized = 0; - return false; - } - if (!getCommon().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - if (!getTripInfo().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.writeInt32(1, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getCommon()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getTripInfo()); - } - 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, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCommon()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTripInfo()); - } - 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 fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival other = (fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival) obj; - - if (hasSchemaVersion() != other.hasSchemaVersion()) return false; - if (hasSchemaVersion()) { - if (getSchemaVersion() - != other.getSchemaVersion()) return false; - } - if (hasCommon() != other.hasCommon()) return false; - if (hasCommon()) { - if (!getCommon() - .equals(other.getCommon())) return false; - } - if (hasTripInfo() != other.hasTripInfo()) return false; - if (hasTripInfo()) { - if (!getTripInfo() - .equals(other.getTripInfo())) 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 (hasSchemaVersion()) { - hash = (37 * hash) + SCHEMA_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getSchemaVersion(); - } - if (hasCommon()) { - hash = (37 * hash) + COMMON_FIELD_NUMBER; - hash = (53 * hash) + getCommon().hashCode(); - } - if (hasTripInfo()) { - hash = (37 * hash) + TRIP_INFO_FIELD_NUMBER; - hash = (53 * hash) + getTripInfo().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code proto.ROIArrival} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.ROIArrival) - fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrivalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIArrival_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIArrival_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival.class, fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival.Builder.class); - } - - // Construct using fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCommonFieldBuilder(); - getTripInfoFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - schemaVersion_ = 1; - common_ = null; - if (commonBuilder_ != null) { - commonBuilder_.dispose(); - commonBuilder_ = null; - } - tripInfo_ = null; - if (tripInfoBuilder_ != null) { - tripInfoBuilder_.dispose(); - tripInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIArrival_descriptor; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival build() { - fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival buildPartial() { - fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival result = new fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.schemaVersion_ = schemaVersion_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.common_ = commonBuilder_ == null - ? common_ - : commonBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.tripInfo_ = tripInfoBuilder_ == null - ? tripInfo_ - : tripInfoBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival) { - return mergeFrom((fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival other) { - if (other == fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival.getDefaultInstance()) return this; - if (other.hasSchemaVersion()) { - setSchemaVersion(other.getSchemaVersion()); - } - if (other.hasCommon()) { - mergeCommon(other.getCommon()); - } - if (other.hasTripInfo()) { - mergeTripInfo(other.getTripInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSchemaVersion()) { - return false; - } - if (!hasCommon()) { - return false; - } - if (!hasTripInfo()) { - return false; - } - if (!getCommon().isInitialized()) { - return false; - } - if (!getTripInfo().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: { - schemaVersion_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getCommonFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getTripInfoFieldBuilder().getBuilder(), - extensionRegistry); - 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 int schemaVersion_ = 1; - /** - *
-       * Remember to bump up the version when updating the schema!
-       * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Remember to bump up the version when updating the schema!
-       * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - /** - *
-       * Remember to bump up the version when updating the schema!
-       * 
- * - * required int32 schema_version = 1 [default = 1]; - * @param value The schemaVersion to set. - * @return This builder for chaining. - */ - public Builder setSchemaVersion(int value) { - - schemaVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Remember to bump up the version when updating the schema!
-       * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return This builder for chaining. - */ - public Builder clearSchemaVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - schemaVersion_ = 1; - onChanged(); - return this; - } - - private fi.hsl.common.transitdata.proto.PubtransTableProtos.Common common_; - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common, fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder, fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder> commonBuilder_; - /** - * required .proto.Common common = 2; - * @return Whether the common field is set. - */ - public boolean hasCommon() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required .proto.Common common = 2; - * @return The common. - */ - public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getCommon() { - if (commonBuilder_ == null) { - return common_ == null ? fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() : common_; - } else { - return commonBuilder_.getMessage(); - } - } - /** - * required .proto.Common common = 2; - */ - public Builder setCommon(fi.hsl.common.transitdata.proto.PubtransTableProtos.Common value) { - if (commonBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - common_ = value; - } else { - commonBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * required .proto.Common common = 2; - */ - public Builder setCommon( - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder builderForValue) { - if (commonBuilder_ == null) { - common_ = builderForValue.build(); - } else { - commonBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * required .proto.Common common = 2; - */ - public Builder mergeCommon(fi.hsl.common.transitdata.proto.PubtransTableProtos.Common value) { - if (commonBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - common_ != null && - common_ != fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance()) { - getCommonBuilder().mergeFrom(value); - } else { - common_ = value; - } - } else { - commonBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * required .proto.Common common = 2; - */ - public Builder clearCommon() { - bitField0_ = (bitField0_ & ~0x00000002); - common_ = null; - if (commonBuilder_ != null) { - commonBuilder_.dispose(); - commonBuilder_ = null; - } - onChanged(); - return this; - } - /** - * required .proto.Common common = 2; - */ - public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder getCommonBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getCommonFieldBuilder().getBuilder(); - } - /** - * required .proto.Common common = 2; - */ - public fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder getCommonOrBuilder() { - if (commonBuilder_ != null) { - return commonBuilder_.getMessageOrBuilder(); - } else { - return common_ == null ? - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() : common_; - } - } - /** - * required .proto.Common common = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common, fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder, fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder> - getCommonFieldBuilder() { - if (commonBuilder_ == null) { - commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common, fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder, fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder>( - getCommon(), - getParentForChildren(), - isClean()); - common_ = null; - } - return commonBuilder_; - } - - private fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo tripInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo, fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder, fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder> tripInfoBuilder_; - /** - * required .proto.DOITripInfo trip_info = 3; - * @return Whether the tripInfo field is set. - */ - public boolean hasTripInfo() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required .proto.DOITripInfo trip_info = 3; - * @return The tripInfo. - */ - public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getTripInfo() { - if (tripInfoBuilder_ == null) { - return tripInfo_ == null ? fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() : tripInfo_; - } else { - return tripInfoBuilder_.getMessage(); - } - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - public Builder setTripInfo(fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo value) { - if (tripInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tripInfo_ = value; - } else { - tripInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - public Builder setTripInfo( - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder builderForValue) { - if (tripInfoBuilder_ == null) { - tripInfo_ = builderForValue.build(); - } else { - tripInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - public Builder mergeTripInfo(fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo value) { - if (tripInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - tripInfo_ != null && - tripInfo_ != fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance()) { - getTripInfoBuilder().mergeFrom(value); - } else { - tripInfo_ = value; - } - } else { - tripInfoBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - public Builder clearTripInfo() { - bitField0_ = (bitField0_ & ~0x00000004); - tripInfo_ = null; - if (tripInfoBuilder_ != null) { - tripInfoBuilder_.dispose(); - tripInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder getTripInfoBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getTripInfoFieldBuilder().getBuilder(); - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder getTripInfoOrBuilder() { - if (tripInfoBuilder_ != null) { - return tripInfoBuilder_.getMessageOrBuilder(); - } else { - return tripInfo_ == null ? - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() : tripInfo_; - } - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo, fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder, fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder> - getTripInfoFieldBuilder() { - if (tripInfoBuilder_ == null) { - tripInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo, fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder, fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder>( - getTripInfo(), - getParentForChildren(), - isClean()); - tripInfo_ = null; - } - return tripInfoBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.ROIArrival) - } - - // @@protoc_insertion_point(class_scope:proto.ROIArrival) - private static final fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival(); - } - - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ROIArrival parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ROIDepartureOrBuilder extends - // @@protoc_insertion_point(interface_extends:proto.ROIDeparture) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Remember to bump up the version when updating the schema!
-     * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - boolean hasSchemaVersion(); - /** - *
-     * Remember to bump up the version when updating the schema!
-     * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return The schemaVersion. - */ - int getSchemaVersion(); - - /** - * required .proto.Common common = 2; - * @return Whether the common field is set. - */ - boolean hasCommon(); - /** - * required .proto.Common common = 2; - * @return The common. - */ - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getCommon(); - /** - * required .proto.Common common = 2; - */ - fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder getCommonOrBuilder(); - - /** - * required .proto.DOITripInfo trip_info = 3; - * @return Whether the tripInfo field is set. - */ - boolean hasTripInfo(); - /** - * required .proto.DOITripInfo trip_info = 3; - * @return The tripInfo. - */ - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getTripInfo(); - /** - * required .proto.DOITripInfo trip_info = 3; - */ - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder getTripInfoOrBuilder(); - - /** - * optional int64 has_destination_display_id = 4; - * @return Whether the hasDestinationDisplayId field is set. - */ - boolean hasHasDestinationDisplayId(); - /** - * optional int64 has_destination_display_id = 4; - * @return The hasDestinationDisplayId. - */ - long getHasDestinationDisplayId(); - - /** - * optional int64 has_destination_stop_area_gid = 5; - * @return Whether the hasDestinationStopAreaGid field is set. - */ - boolean hasHasDestinationStopAreaGid(); - /** - * optional int64 has_destination_stop_area_gid = 5; - * @return The hasDestinationStopAreaGid. - */ - long getHasDestinationStopAreaGid(); - - /** - * optional int64 has_service_requirement_id = 6; - * @return Whether the hasServiceRequirementId field is set. - */ - boolean hasHasServiceRequirementId(); - /** - * optional int64 has_service_requirement_id = 6; - * @return The hasServiceRequirementId. - */ - long getHasServiceRequirementId(); - } - /** - * Protobuf type {@code proto.ROIDeparture} - */ - public static final class ROIDeparture extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:proto.ROIDeparture) - ROIDepartureOrBuilder { - private static final long serialVersionUID = 0L; - // Use ROIDeparture.newBuilder() to construct. - private ROIDeparture(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ROIDeparture() { - schemaVersion_ = 1; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ROIDeparture(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIDeparture_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIDeparture_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture.class, fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture.Builder.class); - } - - private int bitField0_; - public static final int SCHEMA_VERSION_FIELD_NUMBER = 1; - private int schemaVersion_ = 1; - /** - *
-     * Remember to bump up the version when updating the schema!
-     * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Remember to bump up the version when updating the schema!
-     * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - - public static final int COMMON_FIELD_NUMBER = 2; - private fi.hsl.common.transitdata.proto.PubtransTableProtos.Common common_; - /** - * required .proto.Common common = 2; - * @return Whether the common field is set. - */ - @java.lang.Override - public boolean hasCommon() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required .proto.Common common = 2; - * @return The common. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getCommon() { - return common_ == null ? fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() : common_; - } - /** - * required .proto.Common common = 2; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder getCommonOrBuilder() { - return common_ == null ? fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() : common_; - } - - public static final int TRIP_INFO_FIELD_NUMBER = 3; - private fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo tripInfo_; - /** - * required .proto.DOITripInfo trip_info = 3; - * @return Whether the tripInfo field is set. - */ - @java.lang.Override - public boolean hasTripInfo() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required .proto.DOITripInfo trip_info = 3; - * @return The tripInfo. - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getTripInfo() { - return tripInfo_ == null ? fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() : tripInfo_; - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder getTripInfoOrBuilder() { - return tripInfo_ == null ? fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() : tripInfo_; - } - - public static final int HAS_DESTINATION_DISPLAY_ID_FIELD_NUMBER = 4; - private long hasDestinationDisplayId_ = 0L; - /** - * optional int64 has_destination_display_id = 4; - * @return Whether the hasDestinationDisplayId field is set. - */ - @java.lang.Override - public boolean hasHasDestinationDisplayId() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional int64 has_destination_display_id = 4; - * @return The hasDestinationDisplayId. - */ - @java.lang.Override - public long getHasDestinationDisplayId() { - return hasDestinationDisplayId_; - } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.transitdata.proto.PubtransTableProtos.Common prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.Common} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.Common) + fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_Common_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_Common_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.class, + fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder.class); + } + + // Construct using fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schemaVersion_ = 1; + id_ = 0L; + isOnDatedVehicleJourneyId_ = 0L; + isOnMonitoredVehicleJourneyId_ = 0L; + journeyPatternSequenceNumber_ = 0; + isTimetabledAtJourneyPatternPointGid_ = 0L; + visitCountNumber_ = 0; + isTargetedAtJourneyPatternPointGid_ = 0L; + wasObservedAtJourneyPatternPointGid_ = 0L; + timetabledLatestUtcDateTimeMs_ = 0L; + targetUtcDateTimeMs_ = 0L; + estimatedUtcDateTimeMs_ = 0L; + observedUtcDateTimeMs_ = 0L; + state_ = 0L; + type_ = 0L; + isValidYesNo_ = false; + lastModifiedUtcDateTimeMs_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_Common_descriptor; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common build() { + fi.hsl.common.transitdata.proto.PubtransTableProtos.Common result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common buildPartial() { + fi.hsl.common.transitdata.proto.PubtransTableProtos.Common result = new fi.hsl.common.transitdata.proto.PubtransTableProtos.Common( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(fi.hsl.common.transitdata.proto.PubtransTableProtos.Common result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schemaVersion_ = schemaVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isOnDatedVehicleJourneyId_ = isOnDatedVehicleJourneyId_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.isOnMonitoredVehicleJourneyId_ = isOnMonitoredVehicleJourneyId_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.journeyPatternSequenceNumber_ = journeyPatternSequenceNumber_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.isTimetabledAtJourneyPatternPointGid_ = isTimetabledAtJourneyPatternPointGid_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.visitCountNumber_ = visitCountNumber_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.isTargetedAtJourneyPatternPointGid_ = isTargetedAtJourneyPatternPointGid_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.wasObservedAtJourneyPatternPointGid_ = wasObservedAtJourneyPatternPointGid_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.timetabledLatestUtcDateTimeMs_ = timetabledLatestUtcDateTimeMs_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.targetUtcDateTimeMs_ = targetUtcDateTimeMs_; + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.estimatedUtcDateTimeMs_ = estimatedUtcDateTimeMs_; + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.observedUtcDateTimeMs_ = observedUtcDateTimeMs_; + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.state_ = state_; + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.type_ = type_; + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.isValidYesNo_ = isValidYesNo_; + to_bitField0_ |= 0x00008000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.lastModifiedUtcDateTimeMs_ = lastModifiedUtcDateTimeMs_; + to_bitField0_ |= 0x00010000; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.PubtransTableProtos.Common) { + return mergeFrom((fi.hsl.common.transitdata.proto.PubtransTableProtos.Common) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int HAS_DESTINATION_STOP_AREA_GID_FIELD_NUMBER = 5; - private long hasDestinationStopAreaGid_ = 0L; - /** - * optional int64 has_destination_stop_area_gid = 5; - * @return Whether the hasDestinationStopAreaGid field is set. - */ - @java.lang.Override - public boolean hasHasDestinationStopAreaGid() { - return ((bitField0_ & 0x00000010) != 0); + public Builder mergeFrom(fi.hsl.common.transitdata.proto.PubtransTableProtos.Common other) { + if (other == fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance()) + return this; + if (other.hasSchemaVersion()) { + setSchemaVersion(other.getSchemaVersion()); + } + if (other.hasId()) { + setId(other.getId()); + } + if (other.hasIsOnDatedVehicleJourneyId()) { + setIsOnDatedVehicleJourneyId(other.getIsOnDatedVehicleJourneyId()); + } + if (other.hasIsOnMonitoredVehicleJourneyId()) { + setIsOnMonitoredVehicleJourneyId(other.getIsOnMonitoredVehicleJourneyId()); + } + if (other.hasJourneyPatternSequenceNumber()) { + setJourneyPatternSequenceNumber(other.getJourneyPatternSequenceNumber()); + } + if (other.hasIsTimetabledAtJourneyPatternPointGid()) { + setIsTimetabledAtJourneyPatternPointGid(other.getIsTimetabledAtJourneyPatternPointGid()); + } + if (other.hasVisitCountNumber()) { + setVisitCountNumber(other.getVisitCountNumber()); + } + if (other.hasIsTargetedAtJourneyPatternPointGid()) { + setIsTargetedAtJourneyPatternPointGid(other.getIsTargetedAtJourneyPatternPointGid()); + } + if (other.hasWasObservedAtJourneyPatternPointGid()) { + setWasObservedAtJourneyPatternPointGid(other.getWasObservedAtJourneyPatternPointGid()); + } + if (other.hasTimetabledLatestUtcDateTimeMs()) { + setTimetabledLatestUtcDateTimeMs(other.getTimetabledLatestUtcDateTimeMs()); + } + if (other.hasTargetUtcDateTimeMs()) { + setTargetUtcDateTimeMs(other.getTargetUtcDateTimeMs()); + } + if (other.hasEstimatedUtcDateTimeMs()) { + setEstimatedUtcDateTimeMs(other.getEstimatedUtcDateTimeMs()); + } + if (other.hasObservedUtcDateTimeMs()) { + setObservedUtcDateTimeMs(other.getObservedUtcDateTimeMs()); + } + if (other.hasState()) { + setState(other.getState()); + } + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasIsValidYesNo()) { + setIsValidYesNo(other.getIsValidYesNo()); + } + if (other.hasLastModifiedUtcDateTimeMs()) { + setLastModifiedUtcDateTimeMs(other.getLastModifiedUtcDateTimeMs()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasSchemaVersion()) { + return false; + } + if (!hasId()) { + return false; + } + if (!hasIsOnDatedVehicleJourneyId()) { + return false; + } + if (!hasJourneyPatternSequenceNumber()) { + return false; + } + if (!hasIsTimetabledAtJourneyPatternPointGid()) { + return false; + } + if (!hasVisitCountNumber()) { + return false; + } + if (!hasState()) { + return false; + } + if (!hasType()) { + return false; + } + if (!hasIsValidYesNo()) { + return false; + } + if (!hasLastModifiedUtcDateTimeMs()) { + 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 : { + schemaVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16 : { + id_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24 : { + isOnDatedVehicleJourneyId_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32 : { + isOnMonitoredVehicleJourneyId_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40 : { + journeyPatternSequenceNumber_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48 : { + isTimetabledAtJourneyPatternPointGid_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56 : { + visitCountNumber_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64 : { + isTargetedAtJourneyPatternPointGid_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72 : { + wasObservedAtJourneyPatternPointGid_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80 : { + timetabledLatestUtcDateTimeMs_ = input.readInt64(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88 : { + targetUtcDateTimeMs_ = input.readInt64(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96 : { + estimatedUtcDateTimeMs_ = input.readInt64(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104 : { + observedUtcDateTimeMs_ = input.readInt64(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 112 : { + state_ = input.readInt64(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 120 : { + type_ = input.readInt64(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 128 : { + isValidYesNo_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 128 + case 136 : { + lastModifiedUtcDateTimeMs_ = input.readInt64(); + bitField0_ |= 0x00010000; + break; + } // case 136 + 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 schemaVersion_ = 1; + /** + *
+             * Remember to bump up the version when updating the schema!
+             * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Remember to bump up the version when updating the schema!
+             * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + /** + *
+             * Remember to bump up the version when updating the schema!
+             * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(int value) { + + schemaVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Remember to bump up the version when updating the schema!
+             * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + schemaVersion_ = 1; + onChanged(); + return this; + } + + private long id_; + /** + * required int64 id = 2; + * @return Whether the id field is set. + */ + @java.lang.Override + public boolean hasId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required int64 id = 2; + * @return The id. + */ + @java.lang.Override + public long getId() { + return id_; + } + /** + * required int64 id = 2; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(long value) { + + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required int64 id = 2; + * @return This builder for chaining. + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000002); + id_ = 0L; + onChanged(); + return this; + } + + private long isOnDatedVehicleJourneyId_; + /** + * required int64 is_on_dated_vehicle_journey_id = 3; + * @return Whether the isOnDatedVehicleJourneyId field is set. + */ + @java.lang.Override + public boolean hasIsOnDatedVehicleJourneyId() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required int64 is_on_dated_vehicle_journey_id = 3; + * @return The isOnDatedVehicleJourneyId. + */ + @java.lang.Override + public long getIsOnDatedVehicleJourneyId() { + return isOnDatedVehicleJourneyId_; + } + /** + * required int64 is_on_dated_vehicle_journey_id = 3; + * @param value The isOnDatedVehicleJourneyId to set. + * @return This builder for chaining. + */ + public Builder setIsOnDatedVehicleJourneyId(long value) { + + isOnDatedVehicleJourneyId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required int64 is_on_dated_vehicle_journey_id = 3; + * @return This builder for chaining. + */ + public Builder clearIsOnDatedVehicleJourneyId() { + bitField0_ = (bitField0_ & ~0x00000004); + isOnDatedVehicleJourneyId_ = 0L; + onChanged(); + return this; + } + + private long isOnMonitoredVehicleJourneyId_; + /** + * optional int64 is_on_monitored_vehicle_journey_id = 4; + * @return Whether the isOnMonitoredVehicleJourneyId field is set. + */ + @java.lang.Override + public boolean hasIsOnMonitoredVehicleJourneyId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int64 is_on_monitored_vehicle_journey_id = 4; + * @return The isOnMonitoredVehicleJourneyId. + */ + @java.lang.Override + public long getIsOnMonitoredVehicleJourneyId() { + return isOnMonitoredVehicleJourneyId_; + } + /** + * optional int64 is_on_monitored_vehicle_journey_id = 4; + * @param value The isOnMonitoredVehicleJourneyId to set. + * @return This builder for chaining. + */ + public Builder setIsOnMonitoredVehicleJourneyId(long value) { + + isOnMonitoredVehicleJourneyId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional int64 is_on_monitored_vehicle_journey_id = 4; + * @return This builder for chaining. + */ + public Builder clearIsOnMonitoredVehicleJourneyId() { + bitField0_ = (bitField0_ & ~0x00000008); + isOnMonitoredVehicleJourneyId_ = 0L; + onChanged(); + return this; + } + + private int journeyPatternSequenceNumber_; + /** + * required int32 journey_pattern_sequence_number = 5; + * @return Whether the journeyPatternSequenceNumber field is set. + */ + @java.lang.Override + public boolean hasJourneyPatternSequenceNumber() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * required int32 journey_pattern_sequence_number = 5; + * @return The journeyPatternSequenceNumber. + */ + @java.lang.Override + public int getJourneyPatternSequenceNumber() { + return journeyPatternSequenceNumber_; + } + /** + * required int32 journey_pattern_sequence_number = 5; + * @param value The journeyPatternSequenceNumber to set. + * @return This builder for chaining. + */ + public Builder setJourneyPatternSequenceNumber(int value) { + + journeyPatternSequenceNumber_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * required int32 journey_pattern_sequence_number = 5; + * @return This builder for chaining. + */ + public Builder clearJourneyPatternSequenceNumber() { + bitField0_ = (bitField0_ & ~0x00000010); + journeyPatternSequenceNumber_ = 0; + onChanged(); + return this; + } + + private long isTimetabledAtJourneyPatternPointGid_; + /** + * required int64 is_timetabled_at_journey_pattern_point_gid = 6; + * @return Whether the isTimetabledAtJourneyPatternPointGid field is set. + */ + @java.lang.Override + public boolean hasIsTimetabledAtJourneyPatternPointGid() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * required int64 is_timetabled_at_journey_pattern_point_gid = 6; + * @return The isTimetabledAtJourneyPatternPointGid. + */ + @java.lang.Override + public long getIsTimetabledAtJourneyPatternPointGid() { + return isTimetabledAtJourneyPatternPointGid_; + } + /** + * required int64 is_timetabled_at_journey_pattern_point_gid = 6; + * @param value The isTimetabledAtJourneyPatternPointGid to set. + * @return This builder for chaining. + */ + public Builder setIsTimetabledAtJourneyPatternPointGid(long value) { + + isTimetabledAtJourneyPatternPointGid_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * required int64 is_timetabled_at_journey_pattern_point_gid = 6; + * @return This builder for chaining. + */ + public Builder clearIsTimetabledAtJourneyPatternPointGid() { + bitField0_ = (bitField0_ & ~0x00000020); + isTimetabledAtJourneyPatternPointGid_ = 0L; + onChanged(); + return this; + } + + private int visitCountNumber_; + /** + * required int32 visit_count_number = 7; + * @return Whether the visitCountNumber field is set. + */ + @java.lang.Override + public boolean hasVisitCountNumber() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * required int32 visit_count_number = 7; + * @return The visitCountNumber. + */ + @java.lang.Override + public int getVisitCountNumber() { + return visitCountNumber_; + } + /** + * required int32 visit_count_number = 7; + * @param value The visitCountNumber to set. + * @return This builder for chaining. + */ + public Builder setVisitCountNumber(int value) { + + visitCountNumber_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * required int32 visit_count_number = 7; + * @return This builder for chaining. + */ + public Builder clearVisitCountNumber() { + bitField0_ = (bitField0_ & ~0x00000040); + visitCountNumber_ = 0; + onChanged(); + return this; + } + + private long isTargetedAtJourneyPatternPointGid_; + /** + * optional int64 is_targeted_at_journey_pattern_point_gid = 8; + * @return Whether the isTargetedAtJourneyPatternPointGid field is set. + */ + @java.lang.Override + public boolean hasIsTargetedAtJourneyPatternPointGid() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional int64 is_targeted_at_journey_pattern_point_gid = 8; + * @return The isTargetedAtJourneyPatternPointGid. + */ + @java.lang.Override + public long getIsTargetedAtJourneyPatternPointGid() { + return isTargetedAtJourneyPatternPointGid_; + } + /** + * optional int64 is_targeted_at_journey_pattern_point_gid = 8; + * @param value The isTargetedAtJourneyPatternPointGid to set. + * @return This builder for chaining. + */ + public Builder setIsTargetedAtJourneyPatternPointGid(long value) { + + isTargetedAtJourneyPatternPointGid_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional int64 is_targeted_at_journey_pattern_point_gid = 8; + * @return This builder for chaining. + */ + public Builder clearIsTargetedAtJourneyPatternPointGid() { + bitField0_ = (bitField0_ & ~0x00000080); + isTargetedAtJourneyPatternPointGid_ = 0L; + onChanged(); + return this; + } + + private long wasObservedAtJourneyPatternPointGid_; + /** + * optional int64 was_observed_at_journey_pattern_point_gid = 9; + * @return Whether the wasObservedAtJourneyPatternPointGid field is set. + */ + @java.lang.Override + public boolean hasWasObservedAtJourneyPatternPointGid() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional int64 was_observed_at_journey_pattern_point_gid = 9; + * @return The wasObservedAtJourneyPatternPointGid. + */ + @java.lang.Override + public long getWasObservedAtJourneyPatternPointGid() { + return wasObservedAtJourneyPatternPointGid_; + } + /** + * optional int64 was_observed_at_journey_pattern_point_gid = 9; + * @param value The wasObservedAtJourneyPatternPointGid to set. + * @return This builder for chaining. + */ + public Builder setWasObservedAtJourneyPatternPointGid(long value) { + + wasObservedAtJourneyPatternPointGid_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * optional int64 was_observed_at_journey_pattern_point_gid = 9; + * @return This builder for chaining. + */ + public Builder clearWasObservedAtJourneyPatternPointGid() { + bitField0_ = (bitField0_ & ~0x00000100); + wasObservedAtJourneyPatternPointGid_ = 0L; + onChanged(); + return this; + } + + private long timetabledLatestUtcDateTimeMs_; + /** + *
+             *All timestamps are defined in UTC epochs in milliseconds
+             * 
+ * + * optional int64 timetabled_latest_utc_date_time_ms = 10; + * @return Whether the timetabledLatestUtcDateTimeMs field is set. + */ + @java.lang.Override + public boolean hasTimetabledLatestUtcDateTimeMs() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+             *All timestamps are defined in UTC epochs in milliseconds
+             * 
+ * + * optional int64 timetabled_latest_utc_date_time_ms = 10; + * @return The timetabledLatestUtcDateTimeMs. + */ + @java.lang.Override + public long getTimetabledLatestUtcDateTimeMs() { + return timetabledLatestUtcDateTimeMs_; + } + /** + *
+             *All timestamps are defined in UTC epochs in milliseconds
+             * 
+ * + * optional int64 timetabled_latest_utc_date_time_ms = 10; + * @param value The timetabledLatestUtcDateTimeMs to set. + * @return This builder for chaining. + */ + public Builder setTimetabledLatestUtcDateTimeMs(long value) { + + timetabledLatestUtcDateTimeMs_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+             *All timestamps are defined in UTC epochs in milliseconds
+             * 
+ * + * optional int64 timetabled_latest_utc_date_time_ms = 10; + * @return This builder for chaining. + */ + public Builder clearTimetabledLatestUtcDateTimeMs() { + bitField0_ = (bitField0_ & ~0x00000200); + timetabledLatestUtcDateTimeMs_ = 0L; + onChanged(); + return this; + } + + private long targetUtcDateTimeMs_; + /** + * optional int64 target_utc_date_time_ms = 11; + * @return Whether the targetUtcDateTimeMs field is set. + */ + @java.lang.Override + public boolean hasTargetUtcDateTimeMs() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional int64 target_utc_date_time_ms = 11; + * @return The targetUtcDateTimeMs. + */ + @java.lang.Override + public long getTargetUtcDateTimeMs() { + return targetUtcDateTimeMs_; + } + /** + * optional int64 target_utc_date_time_ms = 11; + * @param value The targetUtcDateTimeMs to set. + * @return This builder for chaining. + */ + public Builder setTargetUtcDateTimeMs(long value) { + + targetUtcDateTimeMs_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * optional int64 target_utc_date_time_ms = 11; + * @return This builder for chaining. + */ + public Builder clearTargetUtcDateTimeMs() { + bitField0_ = (bitField0_ & ~0x00000400); + targetUtcDateTimeMs_ = 0L; + onChanged(); + return this; + } + + private long estimatedUtcDateTimeMs_; + /** + * optional int64 estimated_utc_date_time_ms = 12; + * @return Whether the estimatedUtcDateTimeMs field is set. + */ + @java.lang.Override + public boolean hasEstimatedUtcDateTimeMs() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional int64 estimated_utc_date_time_ms = 12; + * @return The estimatedUtcDateTimeMs. + */ + @java.lang.Override + public long getEstimatedUtcDateTimeMs() { + return estimatedUtcDateTimeMs_; + } + /** + * optional int64 estimated_utc_date_time_ms = 12; + * @param value The estimatedUtcDateTimeMs to set. + * @return This builder for chaining. + */ + public Builder setEstimatedUtcDateTimeMs(long value) { + + estimatedUtcDateTimeMs_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * optional int64 estimated_utc_date_time_ms = 12; + * @return This builder for chaining. + */ + public Builder clearEstimatedUtcDateTimeMs() { + bitField0_ = (bitField0_ & ~0x00000800); + estimatedUtcDateTimeMs_ = 0L; + onChanged(); + return this; + } + + private long observedUtcDateTimeMs_; + /** + * optional int64 observed_utc_date_time_ms = 13; + * @return Whether the observedUtcDateTimeMs field is set. + */ + @java.lang.Override + public boolean hasObservedUtcDateTimeMs() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * optional int64 observed_utc_date_time_ms = 13; + * @return The observedUtcDateTimeMs. + */ + @java.lang.Override + public long getObservedUtcDateTimeMs() { + return observedUtcDateTimeMs_; + } + /** + * optional int64 observed_utc_date_time_ms = 13; + * @param value The observedUtcDateTimeMs to set. + * @return This builder for chaining. + */ + public Builder setObservedUtcDateTimeMs(long value) { + + observedUtcDateTimeMs_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * optional int64 observed_utc_date_time_ms = 13; + * @return This builder for chaining. + */ + public Builder clearObservedUtcDateTimeMs() { + bitField0_ = (bitField0_ & ~0x00001000); + observedUtcDateTimeMs_ = 0L; + onChanged(); + return this; + } + + private long state_; + /** + * required int64 state = 14; + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * required int64 state = 14; + * @return The state. + */ + @java.lang.Override + public long getState() { + return state_; + } + /** + * required int64 state = 14; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(long value) { + + state_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * required int64 state = 14; + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00002000); + state_ = 0L; + onChanged(); + return this; + } + + private long type_; + /** + * required int64 type = 15; + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * required int64 type = 15; + * @return The type. + */ + @java.lang.Override + public long getType() { + return type_; + } + /** + * required int64 type = 15; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(long value) { + + type_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * required int64 type = 15; + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00004000); + type_ = 0L; + onChanged(); + return this; + } + + private boolean isValidYesNo_; + /** + * required bool is_valid_yes_no = 16; + * @return Whether the isValidYesNo field is set. + */ + @java.lang.Override + public boolean hasIsValidYesNo() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * required bool is_valid_yes_no = 16; + * @return The isValidYesNo. + */ + @java.lang.Override + public boolean getIsValidYesNo() { + return isValidYesNo_; + } + /** + * required bool is_valid_yes_no = 16; + * @param value The isValidYesNo to set. + * @return This builder for chaining. + */ + public Builder setIsValidYesNo(boolean value) { + + isValidYesNo_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * required bool is_valid_yes_no = 16; + * @return This builder for chaining. + */ + public Builder clearIsValidYesNo() { + bitField0_ = (bitField0_ & ~0x00008000); + isValidYesNo_ = false; + onChanged(); + return this; + } + + private long lastModifiedUtcDateTimeMs_; + /** + * required int64 last_modified_utc_date_time_ms = 17; + * @return Whether the lastModifiedUtcDateTimeMs field is set. + */ + @java.lang.Override + public boolean hasLastModifiedUtcDateTimeMs() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * required int64 last_modified_utc_date_time_ms = 17; + * @return The lastModifiedUtcDateTimeMs. + */ + @java.lang.Override + public long getLastModifiedUtcDateTimeMs() { + return lastModifiedUtcDateTimeMs_; + } + /** + * required int64 last_modified_utc_date_time_ms = 17; + * @param value The lastModifiedUtcDateTimeMs to set. + * @return This builder for chaining. + */ + public Builder setLastModifiedUtcDateTimeMs(long value) { + + lastModifiedUtcDateTimeMs_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * required int64 last_modified_utc_date_time_ms = 17; + * @return This builder for chaining. + */ + public Builder clearLastModifiedUtcDateTimeMs() { + bitField0_ = (bitField0_ & ~0x00010000); + lastModifiedUtcDateTimeMs_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.Common) + } + + // @@protoc_insertion_point(class_scope:proto.Common) + private static final fi.hsl.common.transitdata.proto.PubtransTableProtos.Common DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.PubtransTableProtos.Common(); + } + + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Common parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DOITripInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.DOITripInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * All fields in JORE-format
+         * 
+ * + * required int64 dvj_id = 1; + * @return Whether the dvjId field is set. + */ + boolean hasDvjId(); + /** + *
+         * All fields in JORE-format
+         * 
+ * + * required int64 dvj_id = 1; + * @return The dvjId. + */ + long getDvjId(); + + /** + * required string operating_day = 2; + * @return Whether the operatingDay field is set. + */ + boolean hasOperatingDay(); + /** + * required string operating_day = 2; + * @return The operatingDay. + */ + java.lang.String getOperatingDay(); + /** + * required string operating_day = 2; + * @return The bytes for operatingDay. + */ + com.google.protobuf.ByteString getOperatingDayBytes(); + + /** + * required string route_id = 3; + * @return Whether the routeId field is set. + */ + boolean hasRouteId(); + /** + * required string route_id = 3; + * @return The routeId. + */ + java.lang.String getRouteId(); + /** + * required string route_id = 3; + * @return The bytes for routeId. + */ + com.google.protobuf.ByteString getRouteIdBytes(); + + /** + * required uint32 direction_id = 4; + * @return Whether the directionId field is set. + */ + boolean hasDirectionId(); + /** + * required uint32 direction_id = 4; + * @return The directionId. + */ + int getDirectionId(); + + /** + * required string start_time = 5; + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * required string start_time = 5; + * @return The startTime. + */ + java.lang.String getStartTime(); + /** + * required string start_time = 5; + * @return The bytes for startTime. + */ + com.google.protobuf.ByteString getStartTimeBytes(); + + /** + *
+         *These fields are used for stop ID of the stop estimate
+         * 
+ * + * required string stop_id = 6; + * @return Whether the stopId field is set. + */ + boolean hasStopId(); + /** + *
+         *These fields are used for stop ID of the stop estimate
+         * 
+ * + * required string stop_id = 6; + * @return The stopId. + */ + java.lang.String getStopId(); + /** + *
+         *These fields are used for stop ID of the stop estimate
+         * 
+ * + * required string stop_id = 6; + * @return The bytes for stopId. + */ + com.google.protobuf.ByteString getStopIdBytes(); + + /** + * optional string targeted_stop_id = 7; + * @return Whether the targetedStopId field is set. + */ + boolean hasTargetedStopId(); + /** + * optional string targeted_stop_id = 7; + * @return The targetedStopId. + */ + java.lang.String getTargetedStopId(); + /** + * optional string targeted_stop_id = 7; + * @return The bytes for targetedStopId. + */ + com.google.protobuf.ByteString getTargetedStopIdBytes(); } /** - * optional int64 has_destination_stop_area_gid = 5; - * @return The hasDestinationStopAreaGid. + * Protobuf type {@code proto.DOITripInfo} */ - @java.lang.Override - public long getHasDestinationStopAreaGid() { - return hasDestinationStopAreaGid_; - } + public static final class DOITripInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.DOITripInfo) + DOITripInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DOITripInfo.newBuilder() to construct. + private DOITripInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DOITripInfo() { + operatingDay_ = ""; + routeId_ = ""; + startTime_ = ""; + stopId_ = ""; + targetedStopId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DOITripInfo(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_DOITripInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_DOITripInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.class, + fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder.class); + } + + private int bitField0_; + public static final int DVJ_ID_FIELD_NUMBER = 1; + private long dvjId_ = 0L; + /** + *
+         * All fields in JORE-format
+         * 
+ * + * required int64 dvj_id = 1; + * @return Whether the dvjId field is set. + */ + @java.lang.Override + public boolean hasDvjId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * All fields in JORE-format
+         * 
+ * + * required int64 dvj_id = 1; + * @return The dvjId. + */ + @java.lang.Override + public long getDvjId() { + return dvjId_; + } + + public static final int OPERATING_DAY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object operatingDay_ = ""; + /** + * required string operating_day = 2; + * @return Whether the operatingDay field is set. + */ + @java.lang.Override + public boolean hasOperatingDay() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required string operating_day = 2; + * @return The operatingDay. + */ + @java.lang.Override + public java.lang.String getOperatingDay() { + java.lang.Object ref = operatingDay_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + operatingDay_ = s; + } + return s; + } + } + /** + * required string operating_day = 2; + * @return The bytes for operatingDay. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperatingDayBytes() { + java.lang.Object ref = operatingDay_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operatingDay_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROUTE_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object routeId_ = ""; + /** + * required string route_id = 3; + * @return Whether the routeId field is set. + */ + @java.lang.Override + public boolean hasRouteId() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required string route_id = 3; + * @return The routeId. + */ + @java.lang.Override + public java.lang.String getRouteId() { + java.lang.Object ref = routeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + routeId_ = s; + } + return s; + } + } + /** + * required string route_id = 3; + * @return The bytes for routeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRouteIdBytes() { + java.lang.Object ref = routeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIRECTION_ID_FIELD_NUMBER = 4; + private int directionId_ = 0; + /** + * required uint32 direction_id = 4; + * @return Whether the directionId field is set. + */ + @java.lang.Override + public boolean hasDirectionId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * required uint32 direction_id = 4; + * @return The directionId. + */ + @java.lang.Override + public int getDirectionId() { + return directionId_; + } + + public static final int START_TIME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object startTime_ = ""; + /** + * required string start_time = 5; + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * required string start_time = 5; + * @return The startTime. + */ + @java.lang.Override + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startTime_ = s; + } + return s; + } + } + /** + * required string start_time = 5; + * @return The bytes for startTime. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STOP_ID_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object stopId_ = ""; + /** + *
+         *These fields are used for stop ID of the stop estimate
+         * 
+ * + * required string stop_id = 6; + * @return Whether the stopId field is set. + */ + @java.lang.Override + public boolean hasStopId() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+         *These fields are used for stop ID of the stop estimate
+         * 
+ * + * required string stop_id = 6; + * @return The stopId. + */ + @java.lang.Override + public java.lang.String getStopId() { + java.lang.Object ref = stopId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopId_ = s; + } + return s; + } + } + /** + *
+         *These fields are used for stop ID of the stop estimate
+         * 
+ * + * required string stop_id = 6; + * @return The bytes for stopId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStopIdBytes() { + java.lang.Object ref = stopId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGETED_STOP_ID_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object targetedStopId_ = ""; + /** + * optional string targeted_stop_id = 7; + * @return Whether the targetedStopId field is set. + */ + @java.lang.Override + public boolean hasTargetedStopId() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional string targeted_stop_id = 7; + * @return The targetedStopId. + */ + @java.lang.Override + public java.lang.String getTargetedStopId() { + java.lang.Object ref = targetedStopId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + targetedStopId_ = s; + } + return s; + } + } + /** + * optional string targeted_stop_id = 7; + * @return The bytes for targetedStopId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetedStopIdBytes() { + java.lang.Object ref = targetedStopId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetedStopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (!hasDvjId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasOperatingDay()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRouteId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasDirectionId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStartTime()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStopId()) { + 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.writeInt64(1, dvjId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operatingDay_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, routeId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeUInt32(4, directionId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, startTime_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, stopId_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetedStopId_); + } + 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.computeInt64Size(1, dvjId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operatingDay_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, routeId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, directionId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, startTime_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, stopId_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, targetedStopId_); + } + 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 fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo other = (fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo) obj; + + if (hasDvjId() != other.hasDvjId()) + return false; + if (hasDvjId()) { + if (getDvjId() != other.getDvjId()) + return false; + } + if (hasOperatingDay() != other.hasOperatingDay()) + return false; + if (hasOperatingDay()) { + if (!getOperatingDay().equals(other.getOperatingDay())) + 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 (hasStopId() != other.hasStopId()) + return false; + if (hasStopId()) { + if (!getStopId().equals(other.getStopId())) + return false; + } + if (hasTargetedStopId() != other.hasTargetedStopId()) + return false; + if (hasTargetedStopId()) { + if (!getTargetedStopId().equals(other.getTargetedStopId())) + 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 (hasDvjId()) { + hash = (37 * hash) + DVJ_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDvjId()); + } + if (hasOperatingDay()) { + hash = (37 * hash) + OPERATING_DAY_FIELD_NUMBER; + hash = (53 * hash) + getOperatingDay().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 (hasStopId()) { + hash = (37 * hash) + STOP_ID_FIELD_NUMBER; + hash = (53 * hash) + getStopId().hashCode(); + } + if (hasTargetedStopId()) { + hash = (37 * hash) + TARGETED_STOP_ID_FIELD_NUMBER; + hash = (53 * hash) + getTargetedStopId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.DOITripInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.DOITripInfo) + fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_DOITripInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_DOITripInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.class, + fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder.class); + } + + // Construct using fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dvjId_ = 0L; + operatingDay_ = ""; + routeId_ = ""; + directionId_ = 0; + startTime_ = ""; + stopId_ = ""; + targetedStopId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_DOITripInfo_descriptor; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo build() { + fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo buildPartial() { + fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo result = new fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dvjId_ = dvjId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.operatingDay_ = operatingDay_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.routeId_ = routeId_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.directionId_ = directionId_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.startTime_ = startTime_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.stopId_ = stopId_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.targetedStopId_ = targetedStopId_; + to_bitField0_ |= 0x00000040; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo) { + return mergeFrom((fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static final int HAS_SERVICE_REQUIREMENT_ID_FIELD_NUMBER = 6; - private long hasServiceRequirementId_ = 0L; - /** - * optional int64 has_service_requirement_id = 6; - * @return Whether the hasServiceRequirementId field is set. - */ - @java.lang.Override - public boolean hasHasServiceRequirementId() { - return ((bitField0_ & 0x00000020) != 0); + public Builder mergeFrom(fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo other) { + if (other == fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance()) + return this; + if (other.hasDvjId()) { + setDvjId(other.getDvjId()); + } + if (other.hasOperatingDay()) { + operatingDay_ = other.operatingDay_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRouteId()) { + routeId_ = other.routeId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasDirectionId()) { + setDirectionId(other.getDirectionId()); + } + if (other.hasStartTime()) { + startTime_ = other.startTime_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasStopId()) { + stopId_ = other.stopId_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasTargetedStopId()) { + targetedStopId_ = other.targetedStopId_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasDvjId()) { + return false; + } + if (!hasOperatingDay()) { + return false; + } + if (!hasRouteId()) { + return false; + } + if (!hasDirectionId()) { + return false; + } + if (!hasStartTime()) { + return false; + } + if (!hasStopId()) { + 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 : { + dvjId_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18 : { + operatingDay_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26 : { + routeId_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32 : { + directionId_ = input.readUInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42 : { + startTime_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50 : { + stopId_ = input.readBytes(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58 : { + targetedStopId_ = input.readBytes(); + bitField0_ |= 0x00000040; + break; + } // case 58 + 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 dvjId_; + /** + *
+             * All fields in JORE-format
+             * 
+ * + * required int64 dvj_id = 1; + * @return Whether the dvjId field is set. + */ + @java.lang.Override + public boolean hasDvjId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * All fields in JORE-format
+             * 
+ * + * required int64 dvj_id = 1; + * @return The dvjId. + */ + @java.lang.Override + public long getDvjId() { + return dvjId_; + } + /** + *
+             * All fields in JORE-format
+             * 
+ * + * required int64 dvj_id = 1; + * @param value The dvjId to set. + * @return This builder for chaining. + */ + public Builder setDvjId(long value) { + + dvjId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * All fields in JORE-format
+             * 
+ * + * required int64 dvj_id = 1; + * @return This builder for chaining. + */ + public Builder clearDvjId() { + bitField0_ = (bitField0_ & ~0x00000001); + dvjId_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object operatingDay_ = ""; + /** + * required string operating_day = 2; + * @return Whether the operatingDay field is set. + */ + public boolean hasOperatingDay() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required string operating_day = 2; + * @return The operatingDay. + */ + public java.lang.String getOperatingDay() { + java.lang.Object ref = operatingDay_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + operatingDay_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string operating_day = 2; + * @return The bytes for operatingDay. + */ + public com.google.protobuf.ByteString getOperatingDayBytes() { + java.lang.Object ref = operatingDay_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + operatingDay_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string operating_day = 2; + * @param value The operatingDay to set. + * @return This builder for chaining. + */ + public Builder setOperatingDay(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + operatingDay_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required string operating_day = 2; + * @return This builder for chaining. + */ + public Builder clearOperatingDay() { + operatingDay_ = getDefaultInstance().getOperatingDay(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * required string operating_day = 2; + * @param value The bytes for operatingDay to set. + * @return This builder for chaining. + */ + public Builder setOperatingDayBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + operatingDay_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object routeId_ = ""; + /** + * required string route_id = 3; + * @return Whether the routeId field is set. + */ + public boolean hasRouteId() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required string route_id = 3; + * @return The routeId. + */ + public java.lang.String getRouteId() { + java.lang.Object ref = routeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + routeId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string route_id = 3; + * @return The bytes for routeId. + */ + public com.google.protobuf.ByteString getRouteIdBytes() { + java.lang.Object ref = routeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + routeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string route_id = 3; + * @param value The routeId to set. + * @return This builder for chaining. + */ + public Builder setRouteId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + routeId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required string route_id = 3; + * @return This builder for chaining. + */ + public Builder clearRouteId() { + routeId_ = getDefaultInstance().getRouteId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * required string route_id = 3; + * @param value The bytes for routeId to set. + * @return This builder for chaining. + */ + public Builder setRouteIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + routeId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int directionId_; + /** + * required uint32 direction_id = 4; + * @return Whether the directionId field is set. + */ + @java.lang.Override + public boolean hasDirectionId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * required uint32 direction_id = 4; + * @return The directionId. + */ + @java.lang.Override + public int getDirectionId() { + return directionId_; + } + /** + * required uint32 direction_id = 4; + * @param value The directionId to set. + * @return This builder for chaining. + */ + public Builder setDirectionId(int value) { + + directionId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * required uint32 direction_id = 4; + * @return This builder for chaining. + */ + public Builder clearDirectionId() { + bitField0_ = (bitField0_ & ~0x00000008); + directionId_ = 0; + onChanged(); + return this; + } + + private java.lang.Object startTime_ = ""; + /** + * required string start_time = 5; + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * required string start_time = 5; + * @return The startTime. + */ + public java.lang.String getStartTime() { + java.lang.Object ref = startTime_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + startTime_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string start_time = 5; + * @return The bytes for startTime. + */ + public com.google.protobuf.ByteString getStartTimeBytes() { + java.lang.Object ref = startTime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + startTime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string start_time = 5; + * @param value The startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTime(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * required string start_time = 5; + * @return This builder for chaining. + */ + public Builder clearStartTime() { + startTime_ = getDefaultInstance().getStartTime(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * required string start_time = 5; + * @param value The bytes for startTime to set. + * @return This builder for chaining. + */ + public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object stopId_ = ""; + /** + *
+             *These fields are used for stop ID of the stop estimate
+             * 
+ * + * required string stop_id = 6; + * @return Whether the stopId field is set. + */ + public boolean hasStopId() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+             *These fields are used for stop ID of the stop estimate
+             * 
+ * + * required string stop_id = 6; + * @return The stopId. + */ + public java.lang.String getStopId() { + java.lang.Object ref = stopId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + stopId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+             *These fields are used for stop ID of the stop estimate
+             * 
+ * + * required string stop_id = 6; + * @return The bytes for stopId. + */ + public com.google.protobuf.ByteString getStopIdBytes() { + java.lang.Object ref = stopId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + stopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+             *These fields are used for stop ID of the stop estimate
+             * 
+ * + * required string stop_id = 6; + * @param value The stopId to set. + * @return This builder for chaining. + */ + public Builder setStopId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + stopId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+             *These fields are used for stop ID of the stop estimate
+             * 
+ * + * required string stop_id = 6; + * @return This builder for chaining. + */ + public Builder clearStopId() { + stopId_ = getDefaultInstance().getStopId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+             *These fields are used for stop ID of the stop estimate
+             * 
+ * + * required string stop_id = 6; + * @param value The bytes for stopId to set. + * @return This builder for chaining. + */ + public Builder setStopIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + stopId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object targetedStopId_ = ""; + /** + * optional string targeted_stop_id = 7; + * @return Whether the targetedStopId field is set. + */ + public boolean hasTargetedStopId() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional string targeted_stop_id = 7; + * @return The targetedStopId. + */ + public java.lang.String getTargetedStopId() { + java.lang.Object ref = targetedStopId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + targetedStopId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string targeted_stop_id = 7; + * @return The bytes for targetedStopId. + */ + public com.google.protobuf.ByteString getTargetedStopIdBytes() { + java.lang.Object ref = targetedStopId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + targetedStopId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string targeted_stop_id = 7; + * @param value The targetedStopId to set. + * @return This builder for chaining. + */ + public Builder setTargetedStopId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetedStopId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional string targeted_stop_id = 7; + * @return This builder for chaining. + */ + public Builder clearTargetedStopId() { + targetedStopId_ = getDefaultInstance().getTargetedStopId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * optional string targeted_stop_id = 7; + * @param value The bytes for targetedStopId to set. + * @return This builder for chaining. + */ + public Builder setTargetedStopIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + targetedStopId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.DOITripInfo) + } + + // @@protoc_insertion_point(class_scope:proto.DOITripInfo) + private static final fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo(); + } + + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DOITripInfo parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ROIArrivalOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.ROIArrival) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Remember to bump up the version when updating the schema!
+         * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + boolean hasSchemaVersion(); + /** + *
+         * Remember to bump up the version when updating the schema!
+         * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return The schemaVersion. + */ + int getSchemaVersion(); + + /** + * required .proto.Common common = 2; + * @return Whether the common field is set. + */ + boolean hasCommon(); + /** + * required .proto.Common common = 2; + * @return The common. + */ + fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getCommon(); + /** + * required .proto.Common common = 2; + */ + fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder getCommonOrBuilder(); + + /** + * required .proto.DOITripInfo trip_info = 3; + * @return Whether the tripInfo field is set. + */ + boolean hasTripInfo(); + /** + * required .proto.DOITripInfo trip_info = 3; + * @return The tripInfo. + */ + fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getTripInfo(); + /** + * required .proto.DOITripInfo trip_info = 3; + */ + fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder getTripInfoOrBuilder(); } /** - * optional int64 has_service_requirement_id = 6; - * @return The hasServiceRequirementId. + * Protobuf type {@code proto.ROIArrival} */ - @java.lang.Override - public long getHasServiceRequirementId() { - return hasServiceRequirementId_; - } - - 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 (!hasSchemaVersion()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasCommon()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTripInfo()) { - memoizedIsInitialized = 0; - return false; - } - if (!getCommon().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - if (!getTripInfo().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.writeInt32(1, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getCommon()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getTripInfo()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeInt64(4, hasDestinationDisplayId_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeInt64(5, hasDestinationStopAreaGid_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeInt64(6, hasServiceRequirementId_); - } - 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, schemaVersion_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCommon()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTripInfo()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, hasDestinationDisplayId_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, hasDestinationStopAreaGid_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, hasServiceRequirementId_); - } - 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 fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture)) { - return super.equals(obj); - } - fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture other = (fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture) obj; - - if (hasSchemaVersion() != other.hasSchemaVersion()) return false; - if (hasSchemaVersion()) { - if (getSchemaVersion() - != other.getSchemaVersion()) return false; - } - if (hasCommon() != other.hasCommon()) return false; - if (hasCommon()) { - if (!getCommon() - .equals(other.getCommon())) return false; - } - if (hasTripInfo() != other.hasTripInfo()) return false; - if (hasTripInfo()) { - if (!getTripInfo() - .equals(other.getTripInfo())) return false; - } - if (hasHasDestinationDisplayId() != other.hasHasDestinationDisplayId()) return false; - if (hasHasDestinationDisplayId()) { - if (getHasDestinationDisplayId() - != other.getHasDestinationDisplayId()) return false; - } - if (hasHasDestinationStopAreaGid() != other.hasHasDestinationStopAreaGid()) return false; - if (hasHasDestinationStopAreaGid()) { - if (getHasDestinationStopAreaGid() - != other.getHasDestinationStopAreaGid()) return false; - } - if (hasHasServiceRequirementId() != other.hasHasServiceRequirementId()) return false; - if (hasHasServiceRequirementId()) { - if (getHasServiceRequirementId() - != other.getHasServiceRequirementId()) 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 (hasSchemaVersion()) { - hash = (37 * hash) + SCHEMA_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getSchemaVersion(); - } - if (hasCommon()) { - hash = (37 * hash) + COMMON_FIELD_NUMBER; - hash = (53 * hash) + getCommon().hashCode(); - } - if (hasTripInfo()) { - hash = (37 * hash) + TRIP_INFO_FIELD_NUMBER; - hash = (53 * hash) + getTripInfo().hashCode(); - } - if (hasHasDestinationDisplayId()) { - hash = (37 * hash) + HAS_DESTINATION_DISPLAY_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHasDestinationDisplayId()); - } - if (hasHasDestinationStopAreaGid()) { - hash = (37 * hash) + HAS_DESTINATION_STOP_AREA_GID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHasDestinationStopAreaGid()); - } - if (hasHasServiceRequirementId()) { - hash = (37 * hash) + HAS_SERVICE_REQUIREMENT_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHasServiceRequirementId()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static final class ROIArrival extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.ROIArrival) + ROIArrivalOrBuilder { + private static final long serialVersionUID = 0L; + // Use ROIArrival.newBuilder() to construct. + private ROIArrival(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ROIArrival() { + schemaVersion_ = 1; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ROIArrival(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIArrival_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIArrival_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival.class, + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival.Builder.class); + } + + private int bitField0_; + public static final int SCHEMA_VERSION_FIELD_NUMBER = 1; + private int schemaVersion_ = 1; + /** + *
+         * Remember to bump up the version when updating the schema!
+         * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Remember to bump up the version when updating the schema!
+         * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + + public static final int COMMON_FIELD_NUMBER = 2; + private fi.hsl.common.transitdata.proto.PubtransTableProtos.Common common_; + /** + * required .proto.Common common = 2; + * @return Whether the common field is set. + */ + @java.lang.Override + public boolean hasCommon() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required .proto.Common common = 2; + * @return The common. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getCommon() { + return common_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() + : common_; + } + /** + * required .proto.Common common = 2; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder getCommonOrBuilder() { + return common_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() + : common_; + } + + public static final int TRIP_INFO_FIELD_NUMBER = 3; + private fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo tripInfo_; + /** + * required .proto.DOITripInfo trip_info = 3; + * @return Whether the tripInfo field is set. + */ + @java.lang.Override + public boolean hasTripInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required .proto.DOITripInfo trip_info = 3; + * @return The tripInfo. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getTripInfo() { + return tripInfo_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() + : tripInfo_; + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder getTripInfoOrBuilder() { + return tripInfo_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() + : tripInfo_; + } + + 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 (!hasSchemaVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasCommon()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTripInfo()) { + memoizedIsInitialized = 0; + return false; + } + if (!getCommon().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + if (!getTripInfo().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.writeInt32(1, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getCommon()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getTripInfo()); + } + 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, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCommon()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTripInfo()); + } + 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 fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival other = (fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival) obj; + + if (hasSchemaVersion() != other.hasSchemaVersion()) + return false; + if (hasSchemaVersion()) { + if (getSchemaVersion() != other.getSchemaVersion()) + return false; + } + if (hasCommon() != other.hasCommon()) + return false; + if (hasCommon()) { + if (!getCommon().equals(other.getCommon())) + return false; + } + if (hasTripInfo() != other.hasTripInfo()) + return false; + if (hasTripInfo()) { + if (!getTripInfo().equals(other.getTripInfo())) + 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 (hasSchemaVersion()) { + hash = (37 * hash) + SCHEMA_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion(); + } + if (hasCommon()) { + hash = (37 * hash) + COMMON_FIELD_NUMBER; + hash = (53 * hash) + getCommon().hashCode(); + } + if (hasTripInfo()) { + hash = (37 * hash) + TRIP_INFO_FIELD_NUMBER; + hash = (53 * hash) + getTripInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom(java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, + extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.ROIArrival} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.ROIArrival) + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrivalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIArrival_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIArrival_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival.class, + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival.Builder.class); + } + + // Construct using fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCommonFieldBuilder(); + getTripInfoFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schemaVersion_ = 1; + common_ = null; + if (commonBuilder_ != null) { + commonBuilder_.dispose(); + commonBuilder_ = null; + } + tripInfo_ = null; + if (tripInfoBuilder_ != null) { + tripInfoBuilder_.dispose(); + tripInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIArrival_descriptor; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival.getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival build() { + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival buildPartial() { + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival result = new fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schemaVersion_ = schemaVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tripInfo_ = tripInfoBuilder_ == null ? tripInfo_ : tripInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival) { + return mergeFrom((fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public Builder mergeFrom(fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival other) { + if (other == fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival.getDefaultInstance()) + return this; + if (other.hasSchemaVersion()) { + setSchemaVersion(other.getSchemaVersion()); + } + if (other.hasCommon()) { + mergeCommon(other.getCommon()); + } + if (other.hasTripInfo()) { + mergeTripInfo(other.getTripInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasSchemaVersion()) { + return false; + } + if (!hasCommon()) { + return false; + } + if (!hasTripInfo()) { + return false; + } + if (!getCommon().isInitialized()) { + return false; + } + if (!getTripInfo().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 : { + schemaVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18 : { + input.readMessage(getCommonFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26 : { + input.readMessage(getTripInfoFieldBuilder().getBuilder(), extensionRegistry); + 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 int schemaVersion_ = 1; + /** + *
+             * Remember to bump up the version when updating the schema!
+             * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Remember to bump up the version when updating the schema!
+             * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + /** + *
+             * Remember to bump up the version when updating the schema!
+             * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(int value) { + + schemaVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Remember to bump up the version when updating the schema!
+             * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + schemaVersion_ = 1; + onChanged(); + return this; + } + + private fi.hsl.common.transitdata.proto.PubtransTableProtos.Common common_; + private com.google.protobuf.SingleFieldBuilderV3 commonBuilder_; + /** + * required .proto.Common common = 2; + * @return Whether the common field is set. + */ + public boolean hasCommon() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required .proto.Common common = 2; + * @return The common. + */ + public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getCommon() { + if (commonBuilder_ == null) { + return common_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() + : common_; + } else { + return commonBuilder_.getMessage(); + } + } + /** + * required .proto.Common common = 2; + */ + public Builder setCommon(fi.hsl.common.transitdata.proto.PubtransTableProtos.Common value) { + if (commonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + common_ = value; + } else { + commonBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required .proto.Common common = 2; + */ + public Builder setCommon( + fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder builderForValue) { + if (commonBuilder_ == null) { + common_ = builderForValue.build(); + } else { + commonBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required .proto.Common common = 2; + */ + public Builder mergeCommon(fi.hsl.common.transitdata.proto.PubtransTableProtos.Common value) { + if (commonBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && common_ != null + && common_ != fi.hsl.common.transitdata.proto.PubtransTableProtos.Common + .getDefaultInstance()) { + getCommonBuilder().mergeFrom(value); + } else { + common_ = value; + } + } else { + commonBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required .proto.Common common = 2; + */ + public Builder clearCommon() { + bitField0_ = (bitField0_ & ~0x00000002); + common_ = null; + if (commonBuilder_ != null) { + commonBuilder_.dispose(); + commonBuilder_ = null; + } + onChanged(); + return this; + } + /** + * required .proto.Common common = 2; + */ + public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder getCommonBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCommonFieldBuilder().getBuilder(); + } + /** + * required .proto.Common common = 2; + */ + public fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder getCommonOrBuilder() { + if (commonBuilder_ != null) { + return commonBuilder_.getMessageOrBuilder(); + } else { + return common_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() + : common_; + } + } + /** + * required .proto.Common common = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getCommonFieldBuilder() { + if (commonBuilder_ == null) { + commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getCommon(), getParentForChildren(), isClean()); + common_ = null; + } + return commonBuilder_; + } + + private fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo tripInfo_; + private com.google.protobuf.SingleFieldBuilderV3 tripInfoBuilder_; + /** + * required .proto.DOITripInfo trip_info = 3; + * @return Whether the tripInfo field is set. + */ + public boolean hasTripInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required .proto.DOITripInfo trip_info = 3; + * @return The tripInfo. + */ + public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getTripInfo() { + if (tripInfoBuilder_ == null) { + return tripInfo_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() + : tripInfo_; + } else { + return tripInfoBuilder_.getMessage(); + } + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + public Builder setTripInfo(fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo value) { + if (tripInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tripInfo_ = value; + } else { + tripInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + public Builder setTripInfo( + fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder builderForValue) { + if (tripInfoBuilder_ == null) { + tripInfo_ = builderForValue.build(); + } else { + tripInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + public Builder mergeTripInfo(fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo value) { + if (tripInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && tripInfo_ != null + && tripInfo_ != fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo + .getDefaultInstance()) { + getTripInfoBuilder().mergeFrom(value); + } else { + tripInfo_ = value; + } + } else { + tripInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + public Builder clearTripInfo() { + bitField0_ = (bitField0_ & ~0x00000004); + tripInfo_ = null; + if (tripInfoBuilder_ != null) { + tripInfoBuilder_.dispose(); + tripInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder getTripInfoBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getTripInfoFieldBuilder().getBuilder(); + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder getTripInfoOrBuilder() { + if (tripInfoBuilder_ != null) { + return tripInfoBuilder_.getMessageOrBuilder(); + } else { + return tripInfo_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() + : tripInfo_; + } + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTripInfoFieldBuilder() { + if (tripInfoBuilder_ == null) { + tripInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTripInfo(), getParentForChildren(), isClean()); + tripInfo_ = null; + } + return tripInfoBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ROIArrival) + } + + // @@protoc_insertion_point(class_scope:proto.ROIArrival) + private static final fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival(); + } + + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ROIArrival parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIArrival getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ROIDepartureOrBuilder + extends + // @@protoc_insertion_point(interface_extends:proto.ROIDeparture) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Remember to bump up the version when updating the schema!
+         * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + boolean hasSchemaVersion(); + /** + *
+         * Remember to bump up the version when updating the schema!
+         * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return The schemaVersion. + */ + int getSchemaVersion(); + + /** + * required .proto.Common common = 2; + * @return Whether the common field is set. + */ + boolean hasCommon(); + /** + * required .proto.Common common = 2; + * @return The common. + */ + fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getCommon(); + /** + * required .proto.Common common = 2; + */ + fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder getCommonOrBuilder(); + + /** + * required .proto.DOITripInfo trip_info = 3; + * @return Whether the tripInfo field is set. + */ + boolean hasTripInfo(); + /** + * required .proto.DOITripInfo trip_info = 3; + * @return The tripInfo. + */ + fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getTripInfo(); + /** + * required .proto.DOITripInfo trip_info = 3; + */ + fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder getTripInfoOrBuilder(); + + /** + * optional int64 has_destination_display_id = 4; + * @return Whether the hasDestinationDisplayId field is set. + */ + boolean hasHasDestinationDisplayId(); + /** + * optional int64 has_destination_display_id = 4; + * @return The hasDestinationDisplayId. + */ + long getHasDestinationDisplayId(); + + /** + * optional int64 has_destination_stop_area_gid = 5; + * @return Whether the hasDestinationStopAreaGid field is set. + */ + boolean hasHasDestinationStopAreaGid(); + /** + * optional int64 has_destination_stop_area_gid = 5; + * @return The hasDestinationStopAreaGid. + */ + long getHasDestinationStopAreaGid(); + + /** + * optional int64 has_service_requirement_id = 6; + * @return Whether the hasServiceRequirementId field is set. + */ + boolean hasHasServiceRequirementId(); + /** + * optional int64 has_service_requirement_id = 6; + * @return The hasServiceRequirementId. + */ + long getHasServiceRequirementId(); } /** * Protobuf type {@code proto.ROIDeparture} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:proto.ROIDeparture) - fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDepartureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIDeparture_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIDeparture_fieldAccessorTable - .ensureFieldAccessorsInitialized( - fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture.class, fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture.Builder.class); - } - - // Construct using fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getCommonFieldBuilder(); - getTripInfoFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - schemaVersion_ = 1; - common_ = null; - if (commonBuilder_ != null) { - commonBuilder_.dispose(); - commonBuilder_ = null; - } - tripInfo_ = null; - if (tripInfoBuilder_ != null) { - tripInfoBuilder_.dispose(); - tripInfoBuilder_ = null; - } - hasDestinationDisplayId_ = 0L; - hasDestinationStopAreaGid_ = 0L; - hasServiceRequirementId_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIDeparture_descriptor; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture getDefaultInstanceForType() { - return fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture.getDefaultInstance(); - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture build() { - fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture buildPartial() { - fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture result = new fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.schemaVersion_ = schemaVersion_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.common_ = commonBuilder_ == null - ? common_ - : commonBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.tripInfo_ = tripInfoBuilder_ == null - ? tripInfo_ - : tripInfoBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.hasDestinationDisplayId_ = hasDestinationDisplayId_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.hasDestinationStopAreaGid_ = hasDestinationStopAreaGid_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.hasServiceRequirementId_ = hasServiceRequirementId_; - to_bitField0_ |= 0x00000020; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture) { - return mergeFrom((fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture other) { - if (other == fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture.getDefaultInstance()) return this; - if (other.hasSchemaVersion()) { - setSchemaVersion(other.getSchemaVersion()); - } - if (other.hasCommon()) { - mergeCommon(other.getCommon()); - } - if (other.hasTripInfo()) { - mergeTripInfo(other.getTripInfo()); - } - if (other.hasHasDestinationDisplayId()) { - setHasDestinationDisplayId(other.getHasDestinationDisplayId()); - } - if (other.hasHasDestinationStopAreaGid()) { - setHasDestinationStopAreaGid(other.getHasDestinationStopAreaGid()); - } - if (other.hasHasServiceRequirementId()) { - setHasServiceRequirementId(other.getHasServiceRequirementId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSchemaVersion()) { - return false; - } - if (!hasCommon()) { - return false; - } - if (!hasTripInfo()) { - return false; - } - if (!getCommon().isInitialized()) { - return false; - } - if (!getTripInfo().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: { - schemaVersion_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getCommonFieldBuilder().getBuilder(), + public static final class ROIDeparture extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:proto.ROIDeparture) + ROIDepartureOrBuilder { + private static final long serialVersionUID = 0L; + // Use ROIDeparture.newBuilder() to construct. + private ROIDeparture(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ROIDeparture() { + schemaVersion_ = 1; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ROIDeparture(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIDeparture_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIDeparture_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture.class, + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture.Builder.class); + } + + private int bitField0_; + public static final int SCHEMA_VERSION_FIELD_NUMBER = 1; + private int schemaVersion_ = 1; + /** + *
+         * Remember to bump up the version when updating the schema!
+         * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * Remember to bump up the version when updating the schema!
+         * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + + public static final int COMMON_FIELD_NUMBER = 2; + private fi.hsl.common.transitdata.proto.PubtransTableProtos.Common common_; + /** + * required .proto.Common common = 2; + * @return Whether the common field is set. + */ + @java.lang.Override + public boolean hasCommon() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required .proto.Common common = 2; + * @return The common. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getCommon() { + return common_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() + : common_; + } + /** + * required .proto.Common common = 2; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder getCommonOrBuilder() { + return common_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() + : common_; + } + + public static final int TRIP_INFO_FIELD_NUMBER = 3; + private fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo tripInfo_; + /** + * required .proto.DOITripInfo trip_info = 3; + * @return Whether the tripInfo field is set. + */ + @java.lang.Override + public boolean hasTripInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required .proto.DOITripInfo trip_info = 3; + * @return The tripInfo. + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getTripInfo() { + return tripInfo_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() + : tripInfo_; + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder getTripInfoOrBuilder() { + return tripInfo_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() + : tripInfo_; + } + + public static final int HAS_DESTINATION_DISPLAY_ID_FIELD_NUMBER = 4; + private long hasDestinationDisplayId_ = 0L; + /** + * optional int64 has_destination_display_id = 4; + * @return Whether the hasDestinationDisplayId field is set. + */ + @java.lang.Override + public boolean hasHasDestinationDisplayId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int64 has_destination_display_id = 4; + * @return The hasDestinationDisplayId. + */ + @java.lang.Override + public long getHasDestinationDisplayId() { + return hasDestinationDisplayId_; + } + + public static final int HAS_DESTINATION_STOP_AREA_GID_FIELD_NUMBER = 5; + private long hasDestinationStopAreaGid_ = 0L; + /** + * optional int64 has_destination_stop_area_gid = 5; + * @return Whether the hasDestinationStopAreaGid field is set. + */ + @java.lang.Override + public boolean hasHasDestinationStopAreaGid() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional int64 has_destination_stop_area_gid = 5; + * @return The hasDestinationStopAreaGid. + */ + @java.lang.Override + public long getHasDestinationStopAreaGid() { + return hasDestinationStopAreaGid_; + } + + public static final int HAS_SERVICE_REQUIREMENT_ID_FIELD_NUMBER = 6; + private long hasServiceRequirementId_ = 0L; + /** + * optional int64 has_service_requirement_id = 6; + * @return Whether the hasServiceRequirementId field is set. + */ + @java.lang.Override + public boolean hasHasServiceRequirementId() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional int64 has_service_requirement_id = 6; + * @return The hasServiceRequirementId. + */ + @java.lang.Override + public long getHasServiceRequirementId() { + return hasServiceRequirementId_; + } + + 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 (!hasSchemaVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasCommon()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTripInfo()) { + memoizedIsInitialized = 0; + return false; + } + if (!getCommon().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + if (!getTripInfo().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.writeInt32(1, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getCommon()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getTripInfo()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(4, hasDestinationDisplayId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt64(5, hasDestinationStopAreaGid_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeInt64(6, hasServiceRequirementId_); + } + 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, schemaVersion_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCommon()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTripInfo()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, hasDestinationDisplayId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, hasDestinationStopAreaGid_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, hasServiceRequirementId_); + } + 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 fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture)) { + return super.equals(obj); + } + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture other = (fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture) obj; + + if (hasSchemaVersion() != other.hasSchemaVersion()) + return false; + if (hasSchemaVersion()) { + if (getSchemaVersion() != other.getSchemaVersion()) + return false; + } + if (hasCommon() != other.hasCommon()) + return false; + if (hasCommon()) { + if (!getCommon().equals(other.getCommon())) + return false; + } + if (hasTripInfo() != other.hasTripInfo()) + return false; + if (hasTripInfo()) { + if (!getTripInfo().equals(other.getTripInfo())) + return false; + } + if (hasHasDestinationDisplayId() != other.hasHasDestinationDisplayId()) + return false; + if (hasHasDestinationDisplayId()) { + if (getHasDestinationDisplayId() != other.getHasDestinationDisplayId()) + return false; + } + if (hasHasDestinationStopAreaGid() != other.hasHasDestinationStopAreaGid()) + return false; + if (hasHasDestinationStopAreaGid()) { + if (getHasDestinationStopAreaGid() != other.getHasDestinationStopAreaGid()) + return false; + } + if (hasHasServiceRequirementId() != other.hasHasServiceRequirementId()) + return false; + if (hasHasServiceRequirementId()) { + if (getHasServiceRequirementId() != other.getHasServiceRequirementId()) + 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 (hasSchemaVersion()) { + hash = (37 * hash) + SCHEMA_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSchemaVersion(); + } + if (hasCommon()) { + hash = (37 * hash) + COMMON_FIELD_NUMBER; + hash = (53 * hash) + getCommon().hashCode(); + } + if (hasTripInfo()) { + hash = (37 * hash) + TRIP_INFO_FIELD_NUMBER; + hash = (53 * hash) + getTripInfo().hashCode(); + } + if (hasHasDestinationDisplayId()) { + hash = (37 * hash) + HAS_DESTINATION_DISPLAY_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHasDestinationDisplayId()); + } + if (hasHasDestinationStopAreaGid()) { + hash = (37 * hash) + HAS_DESTINATION_STOP_AREA_GID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHasDestinationStopAreaGid()); + } + if (hasHasServiceRequirementId()) { + hash = (37 * hash) + HAS_SERVICE_REQUIREMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getHasServiceRequirementId()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( + com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture parseFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code proto.ROIDeparture} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:proto.ROIDeparture) + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDepartureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIDeparture_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIDeparture_fieldAccessorTable + .ensureFieldAccessorsInitialized( + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture.class, + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture.Builder.class); + } + + // Construct using fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCommonFieldBuilder(); + getTripInfoFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + schemaVersion_ = 1; + common_ = null; + if (commonBuilder_ != null) { + commonBuilder_.dispose(); + commonBuilder_ = null; + } + tripInfo_ = null; + if (tripInfoBuilder_ != null) { + tripInfoBuilder_.dispose(); + tripInfoBuilder_ = null; + } + hasDestinationDisplayId_ = 0L; + hasDestinationStopAreaGid_ = 0L; + hasServiceRequirementId_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.internal_static_proto_ROIDeparture_descriptor; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture getDefaultInstanceForType() { + return fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture.getDefaultInstance(); + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture build() { + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture buildPartial() { + fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture result = new fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schemaVersion_ = schemaVersion_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.common_ = commonBuilder_ == null ? common_ : commonBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tripInfo_ = tripInfoBuilder_ == null ? tripInfo_ : tripInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.hasDestinationDisplayId_ = hasDestinationDisplayId_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.hasDestinationStopAreaGid_ = hasDestinationStopAreaGid_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.hasServiceRequirementId_ = hasServiceRequirementId_; + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture) { + return mergeFrom((fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture other) { + if (other == fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture.getDefaultInstance()) + return this; + if (other.hasSchemaVersion()) { + setSchemaVersion(other.getSchemaVersion()); + } + if (other.hasCommon()) { + mergeCommon(other.getCommon()); + } + if (other.hasTripInfo()) { + mergeTripInfo(other.getTripInfo()); + } + if (other.hasHasDestinationDisplayId()) { + setHasDestinationDisplayId(other.getHasDestinationDisplayId()); + } + if (other.hasHasDestinationStopAreaGid()) { + setHasDestinationStopAreaGid(other.getHasDestinationStopAreaGid()); + } + if (other.hasHasServiceRequirementId()) { + setHasServiceRequirementId(other.getHasServiceRequirementId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasSchemaVersion()) { + return false; + } + if (!hasCommon()) { + return false; + } + if (!hasTripInfo()) { + return false; + } + if (!getCommon().isInitialized()) { + return false; + } + if (!getTripInfo().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 : { + schemaVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18 : { + input.readMessage(getCommonFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26 : { + input.readMessage(getTripInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32 : { + hasDestinationDisplayId_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40 : { + hasDestinationStopAreaGid_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48 : { + hasServiceRequirementId_ = input.readInt64(); + 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 int schemaVersion_ = 1; + /** + *
+             * Remember to bump up the version when updating the schema!
+             * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return Whether the schemaVersion field is set. + */ + @java.lang.Override + public boolean hasSchemaVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+             * Remember to bump up the version when updating the schema!
+             * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return The schemaVersion. + */ + @java.lang.Override + public int getSchemaVersion() { + return schemaVersion_; + } + /** + *
+             * Remember to bump up the version when updating the schema!
+             * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @param value The schemaVersion to set. + * @return This builder for chaining. + */ + public Builder setSchemaVersion(int value) { + + schemaVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+             * Remember to bump up the version when updating the schema!
+             * 
+ * + * required int32 schema_version = 1 [default = 1]; + * @return This builder for chaining. + */ + public Builder clearSchemaVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + schemaVersion_ = 1; + onChanged(); + return this; + } + + private fi.hsl.common.transitdata.proto.PubtransTableProtos.Common common_; + private com.google.protobuf.SingleFieldBuilderV3 commonBuilder_; + /** + * required .proto.Common common = 2; + * @return Whether the common field is set. + */ + public boolean hasCommon() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required .proto.Common common = 2; + * @return The common. + */ + public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getCommon() { + if (commonBuilder_ == null) { + return common_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() + : common_; + } else { + return commonBuilder_.getMessage(); + } + } + /** + * required .proto.Common common = 2; + */ + public Builder setCommon(fi.hsl.common.transitdata.proto.PubtransTableProtos.Common value) { + if (commonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + common_ = value; + } else { + commonBuilder_.setMessage(value); + } bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getTripInfoFieldBuilder().getBuilder(), - extensionRegistry); + onChanged(); + return this; + } + /** + * required .proto.Common common = 2; + */ + public Builder setCommon( + fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder builderForValue) { + if (commonBuilder_ == null) { + common_ = builderForValue.build(); + } else { + commonBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required .proto.Common common = 2; + */ + public Builder mergeCommon(fi.hsl.common.transitdata.proto.PubtransTableProtos.Common value) { + if (commonBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && common_ != null + && common_ != fi.hsl.common.transitdata.proto.PubtransTableProtos.Common + .getDefaultInstance()) { + getCommonBuilder().mergeFrom(value); + } else { + common_ = value; + } + } else { + commonBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required .proto.Common common = 2; + */ + public Builder clearCommon() { + bitField0_ = (bitField0_ & ~0x00000002); + common_ = null; + if (commonBuilder_ != null) { + commonBuilder_.dispose(); + commonBuilder_ = null; + } + onChanged(); + return this; + } + /** + * required .proto.Common common = 2; + */ + public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder getCommonBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCommonFieldBuilder().getBuilder(); + } + /** + * required .proto.Common common = 2; + */ + public fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder getCommonOrBuilder() { + if (commonBuilder_ != null) { + return commonBuilder_.getMessageOrBuilder(); + } else { + return common_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() + : common_; + } + } + /** + * required .proto.Common common = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getCommonFieldBuilder() { + if (commonBuilder_ == null) { + commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getCommon(), getParentForChildren(), isClean()); + common_ = null; + } + return commonBuilder_; + } + + private fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo tripInfo_; + private com.google.protobuf.SingleFieldBuilderV3 tripInfoBuilder_; + /** + * required .proto.DOITripInfo trip_info = 3; + * @return Whether the tripInfo field is set. + */ + public boolean hasTripInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required .proto.DOITripInfo trip_info = 3; + * @return The tripInfo. + */ + public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getTripInfo() { + if (tripInfoBuilder_ == null) { + return tripInfo_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() + : tripInfo_; + } else { + return tripInfoBuilder_.getMessage(); + } + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + public Builder setTripInfo(fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo value) { + if (tripInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tripInfo_ = value; + } else { + tripInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + public Builder setTripInfo( + fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder builderForValue) { + if (tripInfoBuilder_ == null) { + tripInfo_ = builderForValue.build(); + } else { + tripInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + public Builder mergeTripInfo(fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo value) { + if (tripInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && tripInfo_ != null + && tripInfo_ != fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo + .getDefaultInstance()) { + getTripInfoBuilder().mergeFrom(value); + } else { + tripInfo_ = value; + } + } else { + tripInfoBuilder_.mergeFrom(value); + } bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - hasDestinationDisplayId_ = input.readInt64(); + onChanged(); + return this; + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + public Builder clearTripInfo() { + bitField0_ = (bitField0_ & ~0x00000004); + tripInfo_ = null; + if (tripInfoBuilder_ != null) { + tripInfoBuilder_.dispose(); + tripInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder getTripInfoBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getTripInfoFieldBuilder().getBuilder(); + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder getTripInfoOrBuilder() { + if (tripInfoBuilder_ != null) { + return tripInfoBuilder_.getMessageOrBuilder(); + } else { + return tripInfo_ == null + ? fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() + : tripInfo_; + } + } + /** + * required .proto.DOITripInfo trip_info = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getTripInfoFieldBuilder() { + if (tripInfoBuilder_ == null) { + tripInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3( + getTripInfo(), getParentForChildren(), isClean()); + tripInfo_ = null; + } + return tripInfoBuilder_; + } + + private long hasDestinationDisplayId_; + /** + * optional int64 has_destination_display_id = 4; + * @return Whether the hasDestinationDisplayId field is set. + */ + @java.lang.Override + public boolean hasHasDestinationDisplayId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional int64 has_destination_display_id = 4; + * @return The hasDestinationDisplayId. + */ + @java.lang.Override + public long getHasDestinationDisplayId() { + return hasDestinationDisplayId_; + } + /** + * optional int64 has_destination_display_id = 4; + * @param value The hasDestinationDisplayId to set. + * @return This builder for chaining. + */ + public Builder setHasDestinationDisplayId(long value) { + + hasDestinationDisplayId_ = value; bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - hasDestinationStopAreaGid_ = input.readInt64(); + onChanged(); + return this; + } + /** + * optional int64 has_destination_display_id = 4; + * @return This builder for chaining. + */ + public Builder clearHasDestinationDisplayId() { + bitField0_ = (bitField0_ & ~0x00000008); + hasDestinationDisplayId_ = 0L; + onChanged(); + return this; + } + + private long hasDestinationStopAreaGid_; + /** + * optional int64 has_destination_stop_area_gid = 5; + * @return Whether the hasDestinationStopAreaGid field is set. + */ + @java.lang.Override + public boolean hasHasDestinationStopAreaGid() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional int64 has_destination_stop_area_gid = 5; + * @return The hasDestinationStopAreaGid. + */ + @java.lang.Override + public long getHasDestinationStopAreaGid() { + return hasDestinationStopAreaGid_; + } + /** + * optional int64 has_destination_stop_area_gid = 5; + * @param value The hasDestinationStopAreaGid to set. + * @return This builder for chaining. + */ + public Builder setHasDestinationStopAreaGid(long value) { + + hasDestinationStopAreaGid_ = value; bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - hasServiceRequirementId_ = input.readInt64(); + onChanged(); + return this; + } + /** + * optional int64 has_destination_stop_area_gid = 5; + * @return This builder for chaining. + */ + public Builder clearHasDestinationStopAreaGid() { + bitField0_ = (bitField0_ & ~0x00000010); + hasDestinationStopAreaGid_ = 0L; + onChanged(); + return this; + } + + private long hasServiceRequirementId_; + /** + * optional int64 has_service_requirement_id = 6; + * @return Whether the hasServiceRequirementId field is set. + */ + @java.lang.Override + public boolean hasHasServiceRequirementId() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional int64 has_service_requirement_id = 6; + * @return The hasServiceRequirementId. + */ + @java.lang.Override + public long getHasServiceRequirementId() { + return hasServiceRequirementId_; + } + /** + * optional int64 has_service_requirement_id = 6; + * @param value The hasServiceRequirementId to set. + * @return This builder for chaining. + */ + public Builder setHasServiceRequirementId(long value) { + + hasServiceRequirementId_ = value; 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 int schemaVersion_ = 1; - /** - *
-       * Remember to bump up the version when updating the schema!
-       * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return Whether the schemaVersion field is set. - */ - @java.lang.Override - public boolean hasSchemaVersion() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Remember to bump up the version when updating the schema!
-       * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return The schemaVersion. - */ - @java.lang.Override - public int getSchemaVersion() { - return schemaVersion_; - } - /** - *
-       * Remember to bump up the version when updating the schema!
-       * 
- * - * required int32 schema_version = 1 [default = 1]; - * @param value The schemaVersion to set. - * @return This builder for chaining. - */ - public Builder setSchemaVersion(int value) { - - schemaVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Remember to bump up the version when updating the schema!
-       * 
- * - * required int32 schema_version = 1 [default = 1]; - * @return This builder for chaining. - */ - public Builder clearSchemaVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - schemaVersion_ = 1; - onChanged(); - return this; - } - - private fi.hsl.common.transitdata.proto.PubtransTableProtos.Common common_; - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common, fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder, fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder> commonBuilder_; - /** - * required .proto.Common common = 2; - * @return Whether the common field is set. - */ - public boolean hasCommon() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * required .proto.Common common = 2; - * @return The common. - */ - public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common getCommon() { - if (commonBuilder_ == null) { - return common_ == null ? fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() : common_; - } else { - return commonBuilder_.getMessage(); - } - } - /** - * required .proto.Common common = 2; - */ - public Builder setCommon(fi.hsl.common.transitdata.proto.PubtransTableProtos.Common value) { - if (commonBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - common_ = value; - } else { - commonBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * required .proto.Common common = 2; - */ - public Builder setCommon( - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder builderForValue) { - if (commonBuilder_ == null) { - common_ = builderForValue.build(); - } else { - commonBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * required .proto.Common common = 2; - */ - public Builder mergeCommon(fi.hsl.common.transitdata.proto.PubtransTableProtos.Common value) { - if (commonBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - common_ != null && - common_ != fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance()) { - getCommonBuilder().mergeFrom(value); - } else { - common_ = value; - } - } else { - commonBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * required .proto.Common common = 2; - */ - public Builder clearCommon() { - bitField0_ = (bitField0_ & ~0x00000002); - common_ = null; - if (commonBuilder_ != null) { - commonBuilder_.dispose(); - commonBuilder_ = null; - } - onChanged(); - return this; - } - /** - * required .proto.Common common = 2; - */ - public fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder getCommonBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getCommonFieldBuilder().getBuilder(); - } - /** - * required .proto.Common common = 2; - */ - public fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder getCommonOrBuilder() { - if (commonBuilder_ != null) { - return commonBuilder_.getMessageOrBuilder(); - } else { - return common_ == null ? - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.getDefaultInstance() : common_; - } - } - /** - * required .proto.Common common = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common, fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder, fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder> - getCommonFieldBuilder() { - if (commonBuilder_ == null) { - commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.PubtransTableProtos.Common, fi.hsl.common.transitdata.proto.PubtransTableProtos.Common.Builder, fi.hsl.common.transitdata.proto.PubtransTableProtos.CommonOrBuilder>( - getCommon(), - getParentForChildren(), - isClean()); - common_ = null; - } - return commonBuilder_; - } - - private fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo tripInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo, fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder, fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder> tripInfoBuilder_; - /** - * required .proto.DOITripInfo trip_info = 3; - * @return Whether the tripInfo field is set. - */ - public boolean hasTripInfo() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * required .proto.DOITripInfo trip_info = 3; - * @return The tripInfo. - */ - public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo getTripInfo() { - if (tripInfoBuilder_ == null) { - return tripInfo_ == null ? fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() : tripInfo_; - } else { - return tripInfoBuilder_.getMessage(); - } - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - public Builder setTripInfo(fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo value) { - if (tripInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tripInfo_ = value; - } else { - tripInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - public Builder setTripInfo( - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder builderForValue) { - if (tripInfoBuilder_ == null) { - tripInfo_ = builderForValue.build(); - } else { - tripInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - public Builder mergeTripInfo(fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo value) { - if (tripInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - tripInfo_ != null && - tripInfo_ != fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance()) { - getTripInfoBuilder().mergeFrom(value); - } else { - tripInfo_ = value; - } - } else { - tripInfoBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - public Builder clearTripInfo() { - bitField0_ = (bitField0_ & ~0x00000004); - tripInfo_ = null; - if (tripInfoBuilder_ != null) { - tripInfoBuilder_.dispose(); - tripInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder getTripInfoBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getTripInfoFieldBuilder().getBuilder(); - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - public fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder getTripInfoOrBuilder() { - if (tripInfoBuilder_ != null) { - return tripInfoBuilder_.getMessageOrBuilder(); - } else { - return tripInfo_ == null ? - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.getDefaultInstance() : tripInfo_; - } - } - /** - * required .proto.DOITripInfo trip_info = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo, fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder, fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder> - getTripInfoFieldBuilder() { - if (tripInfoBuilder_ == null) { - tripInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo, fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfo.Builder, fi.hsl.common.transitdata.proto.PubtransTableProtos.DOITripInfoOrBuilder>( - getTripInfo(), - getParentForChildren(), - isClean()); - tripInfo_ = null; - } - return tripInfoBuilder_; - } - - private long hasDestinationDisplayId_ ; - /** - * optional int64 has_destination_display_id = 4; - * @return Whether the hasDestinationDisplayId field is set. - */ - @java.lang.Override - public boolean hasHasDestinationDisplayId() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional int64 has_destination_display_id = 4; - * @return The hasDestinationDisplayId. - */ - @java.lang.Override - public long getHasDestinationDisplayId() { - return hasDestinationDisplayId_; - } - /** - * optional int64 has_destination_display_id = 4; - * @param value The hasDestinationDisplayId to set. - * @return This builder for chaining. - */ - public Builder setHasDestinationDisplayId(long value) { - - hasDestinationDisplayId_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * optional int64 has_destination_display_id = 4; - * @return This builder for chaining. - */ - public Builder clearHasDestinationDisplayId() { - bitField0_ = (bitField0_ & ~0x00000008); - hasDestinationDisplayId_ = 0L; - onChanged(); - return this; - } - - private long hasDestinationStopAreaGid_ ; - /** - * optional int64 has_destination_stop_area_gid = 5; - * @return Whether the hasDestinationStopAreaGid field is set. - */ - @java.lang.Override - public boolean hasHasDestinationStopAreaGid() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional int64 has_destination_stop_area_gid = 5; - * @return The hasDestinationStopAreaGid. - */ - @java.lang.Override - public long getHasDestinationStopAreaGid() { - return hasDestinationStopAreaGid_; - } - /** - * optional int64 has_destination_stop_area_gid = 5; - * @param value The hasDestinationStopAreaGid to set. - * @return This builder for chaining. - */ - public Builder setHasDestinationStopAreaGid(long value) { - - hasDestinationStopAreaGid_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * optional int64 has_destination_stop_area_gid = 5; - * @return This builder for chaining. - */ - public Builder clearHasDestinationStopAreaGid() { - bitField0_ = (bitField0_ & ~0x00000010); - hasDestinationStopAreaGid_ = 0L; - onChanged(); - return this; - } - - private long hasServiceRequirementId_ ; - /** - * optional int64 has_service_requirement_id = 6; - * @return Whether the hasServiceRequirementId field is set. - */ - @java.lang.Override - public boolean hasHasServiceRequirementId() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * optional int64 has_service_requirement_id = 6; - * @return The hasServiceRequirementId. - */ - @java.lang.Override - public long getHasServiceRequirementId() { - return hasServiceRequirementId_; - } - /** - * optional int64 has_service_requirement_id = 6; - * @param value The hasServiceRequirementId to set. - * @return This builder for chaining. - */ - public Builder setHasServiceRequirementId(long value) { - - hasServiceRequirementId_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * optional int64 has_service_requirement_id = 6; - * @return This builder for chaining. - */ - public Builder clearHasServiceRequirementId() { - bitField0_ = (bitField0_ & ~0x00000020); - hasServiceRequirementId_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:proto.ROIDeparture) - } + onChanged(); + return this; + } + /** + * optional int64 has_service_requirement_id = 6; + * @return This builder for chaining. + */ + public Builder clearHasServiceRequirementId() { + bitField0_ = (bitField0_ & ~0x00000020); + hasServiceRequirementId_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:proto.ROIDeparture) + } + + // @@protoc_insertion_point(class_scope:proto.ROIDeparture) + private static final fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture(); + } + + public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated + public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ROIDeparture parsePartialFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - // @@protoc_insertion_point(class_scope:proto.ROIDeparture) - private static final fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ROIDeparture parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; } - @java.lang.Override - public fi.hsl.common.transitdata.proto.PubtransTableProtos.ROIDeparture getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_Common_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_Common_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_DOITripInfo_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_DOITripInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_ROIArrival_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_ROIArrival_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_proto_ROIDeparture_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_proto_ROIDeparture_fieldAccessorTable; - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_Common_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_Common_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_DOITripInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_DOITripInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_ROIArrival_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_ROIArrival_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_proto_ROIDeparture_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_proto_ROIDeparture_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025pubtrans-tables.proto\022\005proto\"\323\004\n\006Commo" + - "n\022\031\n\016schema_version\030\001 \002(\005:\0011\022\n\n\002id\030\002 \002(\003" + - "\022&\n\036is_on_dated_vehicle_journey_id\030\003 \002(\003" + - "\022*\n\"is_on_monitored_vehicle_journey_id\030\004" + - " \001(\003\022\'\n\037journey_pattern_sequence_number\030" + - "\005 \002(\005\0222\n*is_timetabled_at_journey_patter" + - "n_point_gid\030\006 \002(\003\022\032\n\022visit_count_number\030" + - "\007 \002(\005\0220\n(is_targeted_at_journey_pattern_" + - "point_gid\030\010 \001(\003\0221\n)was_observed_at_journ" + - "ey_pattern_point_gid\030\t \001(\003\022*\n\"timetabled" + - "_latest_utc_date_time_ms\030\n \001(\003\022\037\n\027target" + - "_utc_date_time_ms\030\013 \001(\003\022\"\n\032estimated_utc" + - "_date_time_ms\030\014 \001(\003\022!\n\031observed_utc_date" + - "_time_ms\030\r \001(\003\022\r\n\005state\030\016 \002(\003\022\014\n\004type\030\017 " + - "\002(\003\022\027\n\017is_valid_yes_no\030\020 \002(\010\022&\n\036last_mod" + - "ified_utc_date_time_ms\030\021 \002(\003\"\233\001\n\013DOITrip" + - "Info\022\016\n\006dvj_id\030\001 \002(\003\022\025\n\roperating_day\030\002 " + - "\002(\t\022\020\n\010route_id\030\003 \002(\t\022\024\n\014direction_id\030\004 " + - "\002(\r\022\022\n\nstart_time\030\005 \002(\t\022\017\n\007stop_id\030\006 \002(\t" + - "\022\030\n\020targeted_stop_id\030\007 \001(\t\"m\n\nROIArrival" + - "\022\031\n\016schema_version\030\001 \002(\005:\0011\022\035\n\006common\030\002 " + - "\002(\0132\r.proto.Common\022%\n\ttrip_info\030\003 \002(\0132\022." + - "proto.DOITripInfo\"\336\001\n\014ROIDeparture\022\031\n\016sc" + - "hema_version\030\001 \002(\005:\0011\022\035\n\006common\030\002 \002(\0132\r." + - "proto.Common\022%\n\ttrip_info\030\003 \002(\0132\022.proto." + - "DOITripInfo\022\"\n\032has_destination_display_i" + - "d\030\004 \001(\003\022%\n\035has_destination_stop_area_gid" + - "\030\005 \001(\003\022\"\n\032has_service_requirement_id\030\006 \001" + - "(\003B6\n\037fi.hsl.common.transitdata.protoB\023P" + - "ubtransTableProtos" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_proto_Common_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_proto_Common_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_Common_descriptor, - new java.lang.String[] { "SchemaVersion", "Id", "IsOnDatedVehicleJourneyId", "IsOnMonitoredVehicleJourneyId", "JourneyPatternSequenceNumber", "IsTimetabledAtJourneyPatternPointGid", "VisitCountNumber", "IsTargetedAtJourneyPatternPointGid", "WasObservedAtJourneyPatternPointGid", "TimetabledLatestUtcDateTimeMs", "TargetUtcDateTimeMs", "EstimatedUtcDateTimeMs", "ObservedUtcDateTimeMs", "State", "Type", "IsValidYesNo", "LastModifiedUtcDateTimeMs", }); - internal_static_proto_DOITripInfo_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_proto_DOITripInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_DOITripInfo_descriptor, - new java.lang.String[] { "DvjId", "OperatingDay", "RouteId", "DirectionId", "StartTime", "StopId", "TargetedStopId", }); - internal_static_proto_ROIArrival_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_proto_ROIArrival_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_ROIArrival_descriptor, - new java.lang.String[] { "SchemaVersion", "Common", "TripInfo", }); - internal_static_proto_ROIDeparture_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_proto_ROIDeparture_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_proto_ROIDeparture_descriptor, - new java.lang.String[] { "SchemaVersion", "Common", "TripInfo", "HasDestinationDisplayId", "HasDestinationStopAreaGid", "HasServiceRequirementId", }); - } - - // @@protoc_insertion_point(outer_class_scope) + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = {"\n\025pubtrans-tables.proto\022\005proto\"\323\004\n\006Commo" + + "n\022\031\n\016schema_version\030\001 \002(\005:\0011\022\n\n\002id\030\002 \002(\003" + + "\022&\n\036is_on_dated_vehicle_journey_id\030\003 \002(\003" + + "\022*\n\"is_on_monitored_vehicle_journey_id\030\004" + + " \001(\003\022\'\n\037journey_pattern_sequence_number\030" + + "\005 \002(\005\0222\n*is_timetabled_at_journey_patter" + + "n_point_gid\030\006 \002(\003\022\032\n\022visit_count_number\030" + + "\007 \002(\005\0220\n(is_targeted_at_journey_pattern_" + + "point_gid\030\010 \001(\003\0221\n)was_observed_at_journ" + + "ey_pattern_point_gid\030\t \001(\003\022*\n\"timetabled" + + "_latest_utc_date_time_ms\030\n \001(\003\022\037\n\027target" + + "_utc_date_time_ms\030\013 \001(\003\022\"\n\032estimated_utc" + + "_date_time_ms\030\014 \001(\003\022!\n\031observed_utc_date" + + "_time_ms\030\r \001(\003\022\r\n\005state\030\016 \002(\003\022\014\n\004type\030\017 " + + "\002(\003\022\027\n\017is_valid_yes_no\030\020 \002(\010\022&\n\036last_mod" + + "ified_utc_date_time_ms\030\021 \002(\003\"\233\001\n\013DOITrip" + + "Info\022\016\n\006dvj_id\030\001 \002(\003\022\025\n\roperating_day\030\002 " + + "\002(\t\022\020\n\010route_id\030\003 \002(\t\022\024\n\014direction_id\030\004 " + + "\002(\r\022\022\n\nstart_time\030\005 \002(\t\022\017\n\007stop_id\030\006 \002(\t" + + "\022\030\n\020targeted_stop_id\030\007 \001(\t\"m\n\nROIArrival" + + "\022\031\n\016schema_version\030\001 \002(\005:\0011\022\035\n\006common\030\002 " + + "\002(\0132\r.proto.Common\022%\n\ttrip_info\030\003 \002(\0132\022." + + "proto.DOITripInfo\"\336\001\n\014ROIDeparture\022\031\n\016sc" + + "hema_version\030\001 \002(\005:\0011\022\035\n\006common\030\002 \002(\0132\r." + + "proto.Common\022%\n\ttrip_info\030\003 \002(\0132\022.proto." + + "DOITripInfo\022\"\n\032has_destination_display_i" + + "d\030\004 \001(\003\022%\n\035has_destination_stop_area_gid" + + "\030\005 \001(\003\022\"\n\032has_service_requirement_id\030\006 \001" + + "(\003B6\n\037fi.hsl.common.transitdata.protoB\023P" + "ubtransTableProtos"}; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[]{}); + internal_static_proto_Common_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_proto_Common_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_Common_descriptor, + new java.lang.String[]{"SchemaVersion", "Id", "IsOnDatedVehicleJourneyId", + "IsOnMonitoredVehicleJourneyId", "JourneyPatternSequenceNumber", + "IsTimetabledAtJourneyPatternPointGid", "VisitCountNumber", + "IsTargetedAtJourneyPatternPointGid", "WasObservedAtJourneyPatternPointGid", + "TimetabledLatestUtcDateTimeMs", "TargetUtcDateTimeMs", "EstimatedUtcDateTimeMs", + "ObservedUtcDateTimeMs", "State", "Type", "IsValidYesNo", "LastModifiedUtcDateTimeMs",}); + internal_static_proto_DOITripInfo_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_proto_DOITripInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_DOITripInfo_descriptor, new java.lang.String[]{"DvjId", "OperatingDay", "RouteId", + "DirectionId", "StartTime", "StopId", "TargetedStopId",}); + internal_static_proto_ROIArrival_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_proto_ROIArrival_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ROIArrival_descriptor, + new java.lang.String[]{"SchemaVersion", "Common", "TripInfo",}); + internal_static_proto_ROIDeparture_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_proto_ROIDeparture_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_proto_ROIDeparture_descriptor, + new java.lang.String[]{"SchemaVersion", "Common", "TripInfo", "HasDestinationDisplayId", + "HasDestinationStopAreaGid", "HasServiceRequirementId",}); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/src/test/java/fi/hsl/common/health/HealthServerTest.java b/src/test/java/fi/hsl/common/health/HealthServerTest.java index 65ef4175..b37bfd05 100644 --- a/src/test/java/fi/hsl/common/health/HealthServerTest.java +++ b/src/test/java/fi/hsl/common/health/HealthServerTest.java @@ -54,15 +54,8 @@ public void singleUnhealthyCheckReturnsFalse() { CountingWrapper unhealthyCheck = new CountingWrapper(() -> false); healthServer.addCheck(unhealthyCheck); boolean healthStatus = healthServer.checkHealth(); - assertFalse( - "Health status should be false when one check is unhealthy.", - healthStatus - ); - assertEquals( - "UnhealthyCheck should have been called once.", - 1, - unhealthyCheck.getCallCount() - ); + assertFalse("Health status should be false when one check is unhealthy.", healthStatus); + assertEquals("UnhealthyCheck should have been called once.", 1, unhealthyCheck.getCallCount()); } @Test @@ -72,40 +65,20 @@ public void allHealthyChecksReturnsTrue() { healthServer.addCheck(healthyCheck1); healthServer.addCheck(healthyCheck2); boolean healthStatus = healthServer.checkHealth(); - assertTrue( - "Health status should be true when all checks are healthy.", - healthStatus - ); - assertEquals( - "HealthyCheck1 should have been called once.", - 1, - healthyCheck1.getCallCount() - ); - assertEquals( - "HealthyCheck2 should have been called once.", - 1, - healthyCheck2.getCallCount() - ); + assertTrue("Health status should be true when all checks are healthy.", healthStatus); + assertEquals("HealthyCheck1 should have been called once.", 1, healthyCheck1.getCallCount()); + assertEquals("HealthyCheck2 should have been called once.", 1, healthyCheck2.getCallCount()); } @Test public void testCheckHealth_CheckThrowsException_ReturnsFalse() { - final RuntimeException testException = new RuntimeException( - "Simulated check failure" - ); + final RuntimeException testException = new RuntimeException("Simulated check failure"); CountingWrapper exceptionThrowingCheck = new CountingWrapper(() -> { throw testException; }); healthServer.addCheck(exceptionThrowingCheck); boolean healthStatus = healthServer.checkHealth(); - assertFalse( - "Health status should be false when a check throws an exception.", - healthStatus - ); - assertEquals( - "ExceptionThrowingCheck should have been called once.", - 1, - exceptionThrowingCheck.getCallCount() - ); + assertFalse("Health status should be false when a check throws an exception.", healthStatus); + assertEquals("ExceptionThrowingCheck should have been called once.", 1, exceptionThrowingCheck.getCallCount()); } } diff --git a/src/test/java/fi/hsl/common/hfp/HfpParserTest.java b/src/test/java/fi/hsl/common/hfp/HfpParserTest.java index d8d4d356..e431929a 100644 --- a/src/test/java/fi/hsl/common/hfp/HfpParserTest.java +++ b/src/test/java/fi/hsl/common/hfp/HfpParserTest.java @@ -59,26 +59,26 @@ public void parseSamplePasJsonFile() throws Exception { HfpJson hfp = parseJsonFromResources("hfp-sample-pas.json"); assertEquals("413", hfp.payload.desi); assertEquals("2", hfp.payload.dir); - assertEquals(22, (int)hfp.payload.oper); - assertEquals(817, (int)hfp.payload.veh); + assertEquals(22, (int) hfp.payload.oper); + assertEquals(817, (int) hfp.payload.veh); assertEquals("2019-06-27T11:53:24.541Z", hfp.payload.tst); assertEquals(1561636404, hfp.payload.tsi); assertEquals(11.33, hfp.payload.spd, 0.00001f); - assertEquals(245, (int)hfp.payload.hdg); + assertEquals(245, (int) hfp.payload.hdg); assertEquals(60.274556, hfp.payload.lat, 0.00001f); assertEquals(24.840979, hfp.payload.longitude, 0.00001f); assertEquals(-0.15, hfp.payload.acc, 0.00001f); - assertEquals(102, (int)hfp.payload.dl); + assertEquals(102, (int) hfp.payload.dl); assertEquals(15160, hfp.payload.odo, 0.00001f); - assertEquals(0, (int)hfp.payload.drst); + assertEquals(0, (int) hfp.payload.drst); assertEquals("2019-06-27", hfp.payload.oday); - assertEquals(6, (int)hfp.payload.jrn); - assertEquals(835, (int)hfp.payload.line); + assertEquals(6, (int) hfp.payload.jrn); + assertEquals(835, (int) hfp.payload.line); assertEquals("14:05", hfp.payload.start); assertEquals("GPS", hfp.payload.loc); - assertEquals(4170203, (int)hfp.payload.stop); + assertEquals(4170203, (int) hfp.payload.stop); assertEquals("4413", hfp.payload.route); - assertEquals(0, (int)hfp.payload.occu); + assertEquals(0, (int) hfp.payload.occu); } @Test @@ -161,7 +161,7 @@ public void parseInvalidTlrFieldsJsonFileToProtobuf() throws Exception { assertEquals(false, hfp.hasTlpDecision()); } - @Test + @Test public void parseMissingTlrFiledsJsonFileToProtobuf() throws Exception { HfpJson json = parseJsonFromResources("hfp-tlr-sample-missing.json"); Hfp.Payload hfp = HfpParser.parsePayload(json); @@ -246,7 +246,8 @@ public void parsingInvalidHfpPayloadThrowsException() throws IOException, HfpPar @Test public void parseTopic() throws Exception { - Hfp.Topic meta = parseAndValidateTopic("/hfp/v1/journey/ongoing/bus/0022/00854/4555B/2/Leppävaara/19:56/4150264/5/60;24/28/65/06"); + Hfp.Topic meta = parseAndValidateTopic( + "/hfp/v1/journey/ongoing/bus/0022/00854/4555B/2/Leppävaara/19:56/4150264/5/60;24/28/65/06"); assertEquals(Hfp.Topic.JourneyType.journey, meta.getJourneyType()); assertEquals(Hfp.Topic.TemporalType.ongoing, meta.getTemporalType()); assertEquals(Hfp.Topic.TransportMode.bus, meta.getTransportMode()); @@ -255,7 +256,7 @@ public void parseTopic() throws Exception { assertEquals(HfpParser.createUniqueVehicleId(22, 854), meta.getUniqueVehicleId()); assertEquals("4555B", meta.getRouteId()); - assertEquals(2, (int)meta.getDirectionId()); + assertEquals(2, (int) meta.getDirectionId()); assertEquals("Leppävaara", meta.getHeadsign()); assertEquals(LocalTime.of(19, 56), HfpParser.safeParseLocalTime(meta.getStartTime()).get()); assertEquals("4150264", meta.getNextStop()); @@ -268,7 +269,8 @@ public void parseTopic() throws Exception { @Test public void parseMissingGeohash() throws Exception { ///hfp/v1/journey/ongoing/bus/0012/01328/4560/1/Myyrmäki/04:57/4160299/0//// - Hfp.Topic meta = parseAndValidateTopic("/hfp/v1/journey/ongoing/bus/0022/00854/4555B/2/Leppävaara/19:56/4150264/0////"); + Hfp.Topic meta = parseAndValidateTopic( + "/hfp/v1/journey/ongoing/bus/0022/00854/4555B/2/Leppävaara/19:56/4150264/0////"); assertEquals(0, meta.getGeohashLevel()); assertFalse(meta.hasLatitude()); assertFalse(meta.hasLongitude()); @@ -276,7 +278,8 @@ public void parseMissingGeohash() throws Exception { @Test public void parseGeohashWithOverloadedZeroLevel() throws Exception { - Hfp.Topic meta = parseAndValidateTopic("/hfp/v1/journey/ongoing/bus/0012/01825/1039/2/Kamppi/05:36/1320105/0/60;24/28/44/12"); + Hfp.Topic meta = parseAndValidateTopic( + "/hfp/v1/journey/ongoing/bus/0012/01825/1039/2/Kamppi/05:36/1320105/0/60;24/28/44/12"); assertEquals(0, meta.getGeohashLevel()); assertTrue(60.241 - meta.getLatitude() < 0.00001); assertTrue(24.842 - meta.getLongitude() < 0.00001); @@ -306,7 +309,8 @@ public void parseTopicWhenItemsMissing() throws Exception { @Test public void parseTopicWhenPrefixLonger() throws Exception { - Hfp.Topic meta = parseAndValidateTopic("/hsldevcom/public/hfp/v1/deadrun/upcoming/tram/0022/00854////08:08///60;24/28/65/06"); + Hfp.Topic meta = parseAndValidateTopic( + "/hsldevcom/public/hfp/v1/deadrun/upcoming/tram/0022/00854////08:08///60;24/28/65/06"); assertEquals(Hfp.Topic.JourneyType.deadrun, meta.getJourneyType()); assertEquals(Hfp.Topic.TemporalType.upcoming, meta.getTemporalType()); assertEquals(Hfp.Topic.TransportMode.tram, meta.getTransportMode()); @@ -337,11 +341,14 @@ private Hfp.Topic parseAndValidateTopic(String topic) throws Exception { @Test public void testTopicPrefixParsing() throws Exception { - String prefix = parseTopicPrefix("/hfp/v1/journey/ongoing/bus/0022/00854/4555B/2/Leppävaara/19:56/4150264/5/60;24/28/65/06"); + String prefix = parseTopicPrefix( + "/hfp/v1/journey/ongoing/bus/0022/00854/4555B/2/Leppävaara/19:56/4150264/5/60;24/28/65/06"); assertEquals("/hfp/", prefix); - String emptyPrefix = parseTopicPrefix("/v1/journey/ongoing/bus/0022/00854/4555B/2/Leppävaara/19:56/4150264/5/60;24/28/65/06"); + String emptyPrefix = parseTopicPrefix( + "/v1/journey/ongoing/bus/0022/00854/4555B/2/Leppävaara/19:56/4150264/5/60;24/28/65/06"); assertEquals("/", emptyPrefix); - String longerPrefix = parseTopicPrefix("/hsldevcomm/public/hfp/v1/journey/ongoing/bus/0022/00854/4555B/2/Leppävaara/19:56/4150264/5/60;24/28/65/06"); + String longerPrefix = parseTopicPrefix( + "/hsldevcomm/public/hfp/v1/journey/ongoing/bus/0022/00854/4555B/2/Leppävaara/19:56/4150264/5/60;24/28/65/06"); assertEquals("/hsldevcomm/public/hfp/", longerPrefix); } diff --git a/src/test/java/fi/hsl/common/passengercount/PassengerCountParserTest.java b/src/test/java/fi/hsl/common/passengercount/PassengerCountParserTest.java index 0cfdb972..d311772e 100644 --- a/src/test/java/fi/hsl/common/passengercount/PassengerCountParserTest.java +++ b/src/test/java/fi/hsl/common/passengercount/PassengerCountParserTest.java @@ -22,7 +22,7 @@ public class PassengerCountParserTest { public void parseJsonTest() throws Exception { Apc apc = parseJsonFromResources("src/test/resources/passenger-count-sample.json").apc; assertEquals("555", apc.desi); - assertEquals(12, (int)apc.oper); + assertEquals(12, (int) apc.oper); assertEquals("GPS", apc.loc); assertEquals("regular | defect | other", apc.vehiclecounts.countquality); assertEquals(15, apc.vehiclecounts.vehicleload); @@ -39,7 +39,7 @@ private ApcJson parseJsonFromResources(String filename) throws Exception { } @Test - public void convertJsonToProtobufMessageTest() throws Exception{ + public void convertJsonToProtobufMessageTest() throws Exception { ApcJson apcJson = parseJsonFromResources("src/test/resources/passenger-count-sample.json"); PassengerCount.Payload payload = PassengerCountParser.newInstance().parsePayload(apcJson).get(); assertEquals("555", payload.getDesi()); @@ -52,7 +52,7 @@ public void convertJsonToProtobufMessageTest() throws Exception{ } @Test - public void convertProtobufToJsonTest() throws Exception{ + public void convertProtobufToJsonTest() throws Exception { PassengerCountParser parser = PassengerCountParser.newInstance(); ApcJson apcJson = parseJsonFromResources("src/test/resources/passenger-count-sample.json"); PassengerCount.Payload payload = parser.parsePayload(apcJson).get(); @@ -67,9 +67,12 @@ public void convertProtobufToJsonTest() throws Exception{ assertEquals(apcJson.apc.vehiclecounts.countquality, newApcJson.apc.vehiclecounts.countquality); assertEquals(apcJson.apc.vehiclecounts.extensions, newApcJson.apc.vehiclecounts.extensions); assertEquals(apcJson.apc.vehiclecounts.vehicleload, newApcJson.apc.vehiclecounts.vehicleload); - assertEquals(apcJson.apc.vehiclecounts.doorcounts.get(0).door, newApcJson.apc.vehiclecounts.doorcounts.get(0).door); - assertEquals(apcJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).clazz, newApcJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).clazz); - assertEquals(apcJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).in, newApcJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).in); + assertEquals(apcJson.apc.vehiclecounts.doorcounts.get(0).door, + newApcJson.apc.vehiclecounts.doorcounts.get(0).door); + assertEquals(apcJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).clazz, + newApcJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).clazz); + assertEquals(apcJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).in, + newApcJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).in); } @Test @@ -90,9 +93,12 @@ public void serializeJsonTest() throws Exception { assertEquals(apcJson.apc.vehiclecounts.countquality, parsedJson.apc.vehiclecounts.countquality); assertEquals(apcJson.apc.vehiclecounts.extensions, parsedJson.apc.vehiclecounts.extensions); assertEquals(apcJson.apc.vehiclecounts.vehicleload, parsedJson.apc.vehiclecounts.vehicleload); - assertEquals(apcJson.apc.vehiclecounts.doorcounts.get(0).door, parsedJson.apc.vehiclecounts.doorcounts.get(0).door); - assertEquals(apcJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).clazz, parsedJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).clazz); - assertEquals(apcJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).in, parsedJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).in); + assertEquals(apcJson.apc.vehiclecounts.doorcounts.get(0).door, + parsedJson.apc.vehiclecounts.doorcounts.get(0).door); + assertEquals(apcJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).clazz, + parsedJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).clazz); + assertEquals(apcJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).in, + parsedJson.apc.vehiclecounts.doorcounts.get(0).count.get(0).in); } private String parseTopicPrefix(String topic) throws Exception { diff --git a/src/test/java/fi/hsl/common/transitdata/RouteIdUtilsTest.java b/src/test/java/fi/hsl/common/transitdata/RouteIdUtilsTest.java index f7a69642..871317e2 100644 --- a/src/test/java/fi/hsl/common/transitdata/RouteIdUtilsTest.java +++ b/src/test/java/fi/hsl/common/transitdata/RouteIdUtilsTest.java @@ -60,7 +60,7 @@ public void testNormalizingInvalidIdThrowsException() { @Test public void testNormalizingNormalIdReturnsItself() { - assertEquals("2550", RouteIdUtils.normalizeRouteId( "2550")); + assertEquals("2550", RouteIdUtils.normalizeRouteId("2550")); assertEquals("3001Z", RouteIdUtils.normalizeRouteId("3001Z")); } From 7e0a8f21382b04d94bc55b8c1fd20ae324d9c1bc Mon Sep 17 00:00:00 2001 From: bogdandina Date: Thu, 4 Dec 2025 00:13:36 +0200 Subject: [PATCH 02/11] feat(70552): upgrade to Java 25 --- pom.xml | 105 ++++-------------- .../java/fi/hsl/common/hfp/HfpParser.java | 3 +- .../passengercount/PassengerCountParser.java | 6 +- 3 files changed, 25 insertions(+), 89 deletions(-) diff --git a/pom.xml b/pom.xml index f31b37ee..351259c5 100644 --- a/pom.xml +++ b/pom.xml @@ -2,44 +2,35 @@ 4.0.0 fi.hsl transitdata-common - 2.0.5 + 3.0.1 jar Common utilities for Transitdata projects + UTF-8 - 11 - 11 + 25 3.0.7 1.18.3 2.43.0 - 1.17.0 + 1.23.0 - unit-test true - unit-test true false - + integration-test - integration-test false true @@ -61,82 +52,67 @@ protobuf-java 3.21.12 - com.dslplatform - dsl-json-java8 + dsl-json 1.10.0 - org.apache.pulsar pulsar-client ${pulsar.version} - org.apache.pulsar pulsar-client-admin ${pulsar.version} - redis.clients jedis 4.4.3 - jar - compile - com.typesafe config 1.4.2 - ch.qos.logback logback-classic 1.4.7 - ch.qos.logback.contrib logback-json-classic 0.1.5 - ch.qos.logback.contrib logback-jackson 0.1.5 - org.slf4j slf4j-api 2.0.7 - com.fasterxml.jackson.core jackson-databind 2.15.0 - org.jetbrains annotations 24.0.1 - junit junit 4.13.2 test - org.testcontainers testcontainers @@ -149,17 +125,16 @@ ${testcontainers.version} test - ${project.artifactId}-${project.version} + src/main/resources true - logback.xml @@ -167,6 +142,15 @@ + + org.apache.maven.plugins + maven-compiler-plugin + 3.13.0 + + 25 + + + org.apache.maven.plugins maven-assembly-plugin @@ -188,36 +172,7 @@ - - org.apache.maven.plugins - maven-compiler-plugin - 3.11.0 - - 11 - 11 - - - - com.coderplus.maven.plugins - copy-rename-maven-plugin - 1.0.1 - - - copy-and-rename-pom-file - package - - copy - - - ${project.basedir}/pom.xml - ${project.build.directory}/${project.build.finalName}.pom - - - - - - org.apache.maven.plugins maven-jar-plugin @@ -229,31 +184,12 @@ - - org.apache.maven.plugins - maven-assembly-plugin - - - test-jar-with-dependencies.xml - - - - - - - - single - - - - org.codehaus.mojo build-helper-maven-plugin 3.4.0 - add-integration-test-sources generate-test-sources @@ -261,13 +197,11 @@ add-test-source - src/integration-test/java - add-integration-test-resources generate-test-resources @@ -277,13 +211,12 @@ - true src/integration-test/resources + true - @@ -293,7 +226,6 @@ 3.1.2 ${skip.unit.tests} - **/IT*.java @@ -306,6 +238,7 @@ + org.apache.maven.plugins maven-failsafe-plugin @@ -323,6 +256,7 @@ + com.diffplug.spotless spotless-maven-plugin @@ -349,6 +283,7 @@ + diff --git a/src/main/java/fi/hsl/common/hfp/HfpParser.java b/src/main/java/fi/hsl/common/hfp/HfpParser.java index 1a262229..7967fffc 100644 --- a/src/main/java/fi/hsl/common/hfp/HfpParser.java +++ b/src/main/java/fi/hsl/common/hfp/HfpParser.java @@ -2,7 +2,6 @@ import com.dslplatform.json.DslJson; import com.dslplatform.json.ParsingException; -import com.dslplatform.json.runtime.Settings; import fi.hsl.common.hfp.proto.Hfp; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -35,7 +34,7 @@ public class HfpParser { //Example: https://github.com/ngs-doo/dsl-json/blob/master/examples/MavenJava8/src/main/java/com/dslplatform/maven/Example.java //Note! Apparently not thread safe, for per thread reuse use ThreadLocal pattern or create separate instances - final DslJson dslJson = new DslJson<>(Settings.withRuntime().allowArrayFormat(true).includeServiceLoader()); + final DslJson dslJson = new DslJson<>(new DslJson.Settings<>().allowArrayFormat(true).includeServiceLoader()); private static void foundVehicleWithEmptyTransportMode(String uniqueVehicleId) { vehiclesWithEmptyTransportMode.add(uniqueVehicleId); diff --git a/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java b/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java index e4d80045..719ffa01 100644 --- a/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java +++ b/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java @@ -2,7 +2,6 @@ import com.dslplatform.json.DslJson; import com.dslplatform.json.ParsingException; -import com.dslplatform.json.runtime.Settings; import fi.hsl.common.passengercount.json.*; import fi.hsl.common.passengercount.proto.PassengerCount; import org.jetbrains.annotations.NotNull; @@ -20,7 +19,10 @@ public class PassengerCountParser { static final Pattern topicVersionRegex = Pattern.compile("(^v\\d+|dev)"); - final DslJson dslJson = new DslJson<>(Settings.withRuntime().allowArrayFormat(true).includeServiceLoader()); + DslJson dslJson = new DslJson<>( + new DslJson.Settings<>() + .allowArrayFormat(true) + .includeServiceLoader()); @NotNull public static PassengerCountParser newInstance() { From d141d75f573b7e96c719f5e4dfb326927bdb3dcc Mon Sep 17 00:00:00 2001 From: bogdandina Date: Thu, 4 Dec 2025 09:42:25 +0200 Subject: [PATCH 03/11] feat(70552): change to Java 25 in Github Actions Workflow --- .github/workflows/test-and-build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml index 40781059..af7c7d0b 100644 --- a/.github/workflows/test-and-build.yml +++ b/.github/workflows/test-and-build.yml @@ -7,11 +7,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up JDK 11 + - name: Set up JDK 25 uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: '11' + java-version: '25' cache: 'maven' - name: Run Spotless Apply run: mvn spotless:apply @@ -28,11 +28,11 @@ jobs: if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') steps: - uses: actions/checkout@v3 - - name: Set up JDK 11 + - name: Set up JDK 25 uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: '11' + java-version: '25' cache: 'maven' - name: Publish package run: mvn --batch-mode deploy From 27bf34ab792d919bb77e12ae3ed03412d4ad016a Mon Sep 17 00:00:00 2001 From: bogdandina Date: Thu, 4 Dec 2025 10:31:45 +0200 Subject: [PATCH 04/11] feat(70552): potential fix --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 351259c5..f2cf30bc 100644 --- a/pom.xml +++ b/pom.xml @@ -55,7 +55,7 @@ com.dslplatform dsl-json - 1.10.0 + 2.0.2 org.apache.pulsar From 4363e2b1c9dc788b14f34ae50708daf935f64243 Mon Sep 17 00:00:00 2001 From: bogdandina Date: Sat, 6 Dec 2025 16:53:42 +0200 Subject: [PATCH 05/11] feat(70552): refactoring to Jackson from DSLJson --- pom.xml | 22 ++++- src/main/java/fi/hsl/common/hfp/HfpJson.java | 93 +++++++++++-------- .../java/fi/hsl/common/hfp/HfpParser.java | 58 ++++++------ .../passengercount/PassengerCountParser.java | 29 +++--- .../hsl/common/passengercount/json/Apc.java | 8 +- .../common/passengercount/json/ApcJson.java | 10 +- .../hsl/common/passengercount/json/Count.java | 8 +- .../common/passengercount/json/DoorCount.java | 4 +- .../passengercount/json/Vehiclecounts.java | 5 +- 9 files changed, 140 insertions(+), 97 deletions(-) diff --git a/pom.xml b/pom.xml index f2cf30bc..31e32bc2 100644 --- a/pom.xml +++ b/pom.xml @@ -13,6 +13,7 @@ 1.18.3 2.43.0 1.23.0 + 2.20.1 @@ -53,9 +54,24 @@ 3.21.12 - com.dslplatform - dsl-json - 2.0.2 + com.fasterxml.jackson.core + jackson-databind + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-core + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-annotations + 2.20 + + + com.fasterxml.jackson.datatype + jackson-datatype-jsr310 + ${jackson.version} org.apache.pulsar diff --git a/src/main/java/fi/hsl/common/hfp/HfpJson.java b/src/main/java/fi/hsl/common/hfp/HfpJson.java index cbeff088..afa8c043 100644 --- a/src/main/java/fi/hsl/common/hfp/HfpJson.java +++ b/src/main/java/fi/hsl/common/hfp/HfpJson.java @@ -1,22 +1,33 @@ package fi.hsl.common.hfp; -import com.dslplatform.json.*; +import com.fasterxml.jackson.annotation.JsonAlias; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.fasterxml.jackson.databind.JsonSerializer; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.io.IOException; -// ignore unknown properties (default for objects). -// to disallow unknown properties in JSON set it to FAIL which will result in exception instead -@CompiledJson(onUnknown = CompiledJson.Behavior.IGNORE) +@JsonIgnoreProperties(ignoreUnknown = true) public class HfpJson { //Specification: https://digitransit.fi/en/developers/apis/4-realtime-api/vehicle-positions/ //Example payload: // {"VP":{"desi":"81","dir":"2","oper":22,"veh":792,"tst":"2018-04-05T17:38:36Z","tsi":1522949916,"spd":0.16,"hdg":225,"lat":60.194481,"long":25.03095,"acc":0,"dl":-25,"odo":2819,"drst":0,"oday":"2018-04-05","jrn":636,"line":112,"start":"20:25"}} - @JsonAttribute(nullable = false, name = "VP", alternativeNames = {"DUE", "ARR", "DEP", "ARS", "PDE", "PAS", "WAIT", - "DOO", "DOC", "TLR", "TLA", "DA", "DOUT", "BA", "BOUT", "VJA", "VJOUT"}) + @JsonProperty("VP") + @JsonAlias({"DUE", "ARR", "DEP", "ARS", "PDE", "PAS", "WAIT", + "DOO", "DOC", "TLR", "TLA", "DA", "DOUT", "BA", "BOUT", + "VJA", "VJOUT"}) public Payload payload; - @CompiledJson(onUnknown = CompiledJson.Behavior.IGNORE) + @JsonIgnoreProperties(ignoreUnknown = true) public static class Payload { public String desi; @@ -27,10 +38,10 @@ public static class Payload { public Integer veh; - @JsonAttribute(nullable = false) + @JsonProperty(required = true) public String tst; - @JsonAttribute(nullable = false) + @JsonProperty(required = true) public long tsi; public Double spd; @@ -39,14 +50,15 @@ public static class Payload { public Double lat; - @JsonAttribute(name = "long") //use alternative name in JSON + @JsonProperty("long") //use alternative name in JSON public Double longitude; public Double acc; public Integer dl; - @JsonAttribute(converter = Odo.class) + @JsonDeserialize(using = OdoDeserializer.class) + @JsonSerialize(using = OdoSerializer.class) public Double odo; public Integer drst; @@ -73,65 +85,70 @@ public static class Payload { public String ttdep; - @JsonAttribute(name = "dr-type") //use alternative name in JSON + @JsonProperty("dr-type") //use alternative name in JSON public Integer dr_type; - @JsonAttribute(name = "tlp-requestid") //use alternative name in JSON + @JsonProperty("tlp-requestid") public Integer tlp_requestid; - @JsonAttribute(name = "tlp-requesttype") //use alternative name in JSON + @JsonProperty("tlp-requesttype") public String tlp_requesttype; - @JsonAttribute(name = "tlp-prioritylevel") //use alternative name in JSON + @JsonProperty("tlp-prioritylevel") public String tlp_prioritylevel; - @JsonAttribute(name = "tlp-reason") //use alternative name in JSON + @JsonProperty("tlp-reason") public String tlp_reason; - @JsonAttribute(name = "tlp-att-seq") //use alternative name in JSON + @JsonProperty("tlp-att-seq") public Integer tlp_att_seq; - @JsonAttribute(name = "tlp-decision") //use alternative name in JSON + @JsonProperty("tlp-decision") public String tlp_decision; public Integer sid; - @JsonAttribute(name = "signal-groupid") //use alternative name in JSON + @JsonProperty("signal-groupid") public Integer signal_groupid; - @JsonAttribute(name = "tlp-signalgroupnbr") //use alternative name in JSON + @JsonProperty("tlp-signalgroupnbr") public Integer tlp_signalgroupnbr; - @JsonAttribute(name = "tlp-line-configid") //use alternative name in JSON + @JsonProperty("tlp-line-configid") public Integer tlp_line_configid; - @JsonAttribute(name = "tlp-point-configid") //use alternative name in JSON + @JsonProperty("tlp-point-configid") public Integer tlp_point_configid; - @JsonAttribute(name = "tlp-frequency") //use alternative name in JSON + @JsonProperty("tlp-frequency") public Integer tlp_frequency; - @JsonAttribute(name = "tlp-protocol") //use alternative name in JSON + @JsonProperty("tlp-protocol") public String tlp_protocol; public String label; } - public static abstract class Odo { - public static final JsonReader.ReadObject JSON_READER = new JsonReader.ReadObject() { - public Double read(JsonReader reader) throws IOException { - return reader.wasNull() ? null : NumberConverter.deserializeDouble(reader); + public static class OdoDeserializer extends JsonDeserializer { + @Override + public Double deserialize(JsonParser p, DeserializationContext ctxt) + throws IOException, JsonProcessingException { + if (p.currentToken().isNumeric()) { + return p.getDoubleValue(); } - }; - - public static final JsonWriter.WriteObject JSON_WRITER = new JsonWriter.WriteObject() { - public void write(JsonWriter writer, Double value) { - if (value == null) - writer.writeNull(); - else - NumberConverter.serializeNullable(value.intValue(), writer); - } - }; + return null; + } } + public static class OdoSerializer extends JsonSerializer { + @Override + public void serialize(Double value, JsonGenerator gen, SerializerProvider serializers) + throws IOException { + if (value == null) { + gen.writeNull(); + } else { + gen.writeNumber(value.intValue()); + } + } + } } diff --git a/src/main/java/fi/hsl/common/hfp/HfpParser.java b/src/main/java/fi/hsl/common/hfp/HfpParser.java index 7967fffc..b7c9e3da 100644 --- a/src/main/java/fi/hsl/common/hfp/HfpParser.java +++ b/src/main/java/fi/hsl/common/hfp/HfpParser.java @@ -1,14 +1,15 @@ package fi.hsl.common.hfp; -import com.dslplatform.json.DslJson; -import com.dslplatform.json.ParsingException; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.SerializationFeature; import fi.hsl.common.hfp.proto.Hfp; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import javax.validation.constraints.Null; import java.io.IOException; import java.sql.Date; import java.sql.Time; @@ -28,13 +29,11 @@ public class HfpParser { private static Set vehiclesWithEmptyTransportMode = new HashSet<>(); - // Let's use dsl-json (https://github.com/ngs-doo/dsl-json) for performance. - // Based on this benchmark: https://github.com/fabienrenaud/java-json-benchmark - - //Example: https://github.com/ngs-doo/dsl-json/blob/master/examples/MavenJava8/src/main/java/com/dslplatform/maven/Example.java - - //Note! Apparently not thread safe, for per thread reuse use ThreadLocal pattern or create separate instances - final DslJson dslJson = new DslJson<>(new DslJson.Settings<>().allowArrayFormat(true).includeServiceLoader()); + final ObjectMapper objectMapper = new ObjectMapper() + .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) + .configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true) + .configure(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT, true) + .configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); private static void foundVehicleWithEmptyTransportMode(String uniqueVehicleId) { vehiclesWithEmptyTransportMode.add(uniqueVehicleId); @@ -53,32 +52,35 @@ public static HfpParser newInstance() { /** * Methods for parsing the Json Payload **/ - @Nullable public HfpJson parseJson(@NotNull byte[] data) throws IOException, InvalidHfpPayloadException { try { - return dslJson.deserialize(HfpJson.class, data, data.length); + HfpJson hfpJson = objectMapper.readValue(data, HfpJson.class); + validateRequiredFields(hfpJson); + return hfpJson; } catch (IOException ioe) { - if (ioe instanceof ParsingException) { - throw new InvalidHfpPayloadException("Failed to parse HFP JSON", (ParsingException) ioe); - } else { - throw ioe; - } + throw new InvalidHfpPayloadException("Failed to parse HFP JSON", ioe); + } + } + + private void validateRequiredFields(HfpJson hfpJson) throws InvalidHfpPayloadException { + if (hfpJson == null || hfpJson.payload == null) { + throw new InvalidHfpPayloadException("Payload is missing or null"); + } + HfpJson.Payload p = hfpJson.payload; + if (p.tst == null) { + throw new InvalidHfpPayloadException("Field 'tst' cannot be null"); } } @NotNull public String serializeToString(@NotNull final HfpJson json) throws IOException { - final ByteArrayOutputStream os = new ByteArrayOutputStream(); - dslJson.serialize(json, os); - return os.toString("UTF-8"); + return objectMapper.writeValueAsString(json); } @NotNull public byte[] serializeToByteArray(@NotNull final HfpJson json) throws IOException { - final ByteArrayOutputStream os = new ByteArrayOutputStream(); - dslJson.serialize(json, os); - return os.toByteArray(); + return objectMapper.writeValueAsBytes(json); } public Optional safeParse(@NotNull byte[] data) { @@ -96,12 +98,11 @@ public static Hfp.Payload parsePayload(@NotNull HfpJson json) { final HfpJson.Payload payload = json.payload; Hfp.Payload.Builder builder = Hfp.Payload.newBuilder(); - // Required attributes + builder.setSchemaVersion(builder.getSchemaVersion()); HfpValidator.validateString(payload.tst).ifPresent(builder::setTst); // TODO add validation for offsetdatetime format builder.setTsi(payload.tsi); - // Optional attributes HfpValidator.validateString(payload.desi).ifPresent(builder::setDesi); HfpValidator.validateString(payload.dir).ifPresent(builder::setDir); if (payload.oper != null) @@ -173,7 +174,6 @@ public static Hfp.Payload parsePayload(@NotNull HfpJson json) { /** * Methods for parsing the data from the topic */ - public static Optional safeParseTopic(@NotNull String topic) { try { return Optional.of(parseTopic(topic)); @@ -440,7 +440,11 @@ private InvalidHfpTopicException(String message) { } public static class InvalidHfpPayloadException extends Exception { - private InvalidHfpPayloadException(String message, ParsingException cause) { + public InvalidHfpPayloadException(String message) { + super(message); + } + + public InvalidHfpPayloadException(String message, Throwable cause) { super(message, cause); } } diff --git a/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java b/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java index 719ffa01..00a307e1 100644 --- a/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java +++ b/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java @@ -1,7 +1,9 @@ package fi.hsl.common.passengercount; -import com.dslplatform.json.DslJson; -import com.dslplatform.json.ParsingException; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.SerializationFeature; import fi.hsl.common.passengercount.json.*; import fi.hsl.common.passengercount.proto.PassengerCount; import org.jetbrains.annotations.NotNull; @@ -19,10 +21,11 @@ public class PassengerCountParser { static final Pattern topicVersionRegex = Pattern.compile("(^v\\d+|dev)"); - DslJson dslJson = new DslJson<>( - new DslJson.Settings<>() - .allowArrayFormat(true) - .includeServiceLoader()); + ObjectMapper objectMapper = new ObjectMapper() + .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) + .configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true) + .configure(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT, true) + .configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); @NotNull public static PassengerCountParser newInstance() { @@ -261,23 +264,23 @@ public ApcJson toJson(PassengerCount.Payload passengerCountPayload) { } public OutputStream serializeJson(ApcJson apcJson, OutputStream outputStream) throws IOException { - dslJson.serialize(apcJson, outputStream); + objectMapper.writeValue(outputStream, apcJson); return outputStream; } @Nullable public ApcJson parseJson(byte @NotNull [] data) throws IOException, InvalidAPCPayloadException { try { - return dslJson.deserialize(ApcJson.class, data, data.length); + return objectMapper.readValue(data, ApcJson.class); } catch (IOException ioe) { - if (ioe instanceof ParsingException) { - throw new PassengerCountParser.InvalidAPCPayloadException("Failed to parse APC JSON", - (ParsingException) ioe); + if (ioe instanceof com.fasterxml.jackson.core.JsonProcessingException jpe) { + throw new PassengerCountParser.InvalidAPCPayloadException( + "Failed to parse APC JSON", jpe + ); } else { throw ioe; } } - } private static OptionalDouble safeParseDouble(String s) { @@ -336,7 +339,7 @@ private InvalidAPCTopicException(String message) { } public static class InvalidAPCPayloadException extends Exception { - private InvalidAPCPayloadException(String message, ParsingException cause) { + private InvalidAPCPayloadException(String message, JsonProcessingException cause) { super(message, cause); } } diff --git a/src/main/java/fi/hsl/common/passengercount/json/Apc.java b/src/main/java/fi/hsl/common/passengercount/json/Apc.java index 33ff2284..8ef28eb5 100644 --- a/src/main/java/fi/hsl/common/passengercount/json/Apc.java +++ b/src/main/java/fi/hsl/common/passengercount/json/Apc.java @@ -1,11 +1,11 @@ package fi.hsl.common.passengercount.json; -import com.dslplatform.json.CompiledJson; -import com.dslplatform.json.JsonAttribute; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Date; -@CompiledJson(onUnknown = CompiledJson.Behavior.IGNORE) +@JsonIgnoreProperties public class Apc { public String desi; public String dir; @@ -14,7 +14,7 @@ public class Apc { public Date tst; public Long tsi; public Double lat; - @JsonAttribute(name = "long") + @JsonProperty("long") public Double lon; public Double odo; public String oday; diff --git a/src/main/java/fi/hsl/common/passengercount/json/ApcJson.java b/src/main/java/fi/hsl/common/passengercount/json/ApcJson.java index fa41c590..aa2b2cd5 100644 --- a/src/main/java/fi/hsl/common/passengercount/json/ApcJson.java +++ b/src/main/java/fi/hsl/common/passengercount/json/ApcJson.java @@ -1,10 +1,12 @@ package fi.hsl.common.passengercount.json; -import com.dslplatform.json.CompiledJson; -import com.dslplatform.json.JsonAttribute; -@CompiledJson(onUnknown = CompiledJson.Behavior.IGNORE) +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; + +@JsonIgnoreProperties(ignoreUnknown = true) public class ApcJson { - @JsonAttribute(nullable = false, name = "APC") + + @JsonProperty(value = "APC", required = true) public Apc apc; } diff --git a/src/main/java/fi/hsl/common/passengercount/json/Count.java b/src/main/java/fi/hsl/common/passengercount/json/Count.java index 70dcf943..b9c11a20 100644 --- a/src/main/java/fi/hsl/common/passengercount/json/Count.java +++ b/src/main/java/fi/hsl/common/passengercount/json/Count.java @@ -1,12 +1,12 @@ package fi.hsl.common.passengercount.json; -import com.dslplatform.json.CompiledJson; -import com.dslplatform.json.JsonAttribute; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; -@CompiledJson(onUnknown = CompiledJson.Behavior.IGNORE) +@JsonIgnoreProperties(ignoreUnknown = true) public class Count { - @JsonAttribute(nullable = false, name = "class") + @JsonProperty(value = "class", required = true) public String clazz; public int in; public int out; diff --git a/src/main/java/fi/hsl/common/passengercount/json/DoorCount.java b/src/main/java/fi/hsl/common/passengercount/json/DoorCount.java index 633b8e33..bf0c39eb 100644 --- a/src/main/java/fi/hsl/common/passengercount/json/DoorCount.java +++ b/src/main/java/fi/hsl/common/passengercount/json/DoorCount.java @@ -1,10 +1,10 @@ package fi.hsl.common.passengercount.json; -import com.dslplatform.json.CompiledJson; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.util.List; -@CompiledJson(onUnknown = CompiledJson.Behavior.IGNORE) +@JsonIgnoreProperties(ignoreUnknown = true) public class DoorCount { public String door; public List count; diff --git a/src/main/java/fi/hsl/common/passengercount/json/Vehiclecounts.java b/src/main/java/fi/hsl/common/passengercount/json/Vehiclecounts.java index 28aaa8e8..1c30eaab 100644 --- a/src/main/java/fi/hsl/common/passengercount/json/Vehiclecounts.java +++ b/src/main/java/fi/hsl/common/passengercount/json/Vehiclecounts.java @@ -1,10 +1,11 @@ package fi.hsl.common.passengercount.json; -import com.dslplatform.json.CompiledJson; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.util.List; -@CompiledJson(onUnknown = CompiledJson.Behavior.IGNORE) +@JsonIgnoreProperties(ignoreUnknown = true) public class Vehiclecounts { public String countquality; public int vehicleload; From 6c2ce42d1c8341c229114670fb31c7d42f839260 Mon Sep 17 00:00:00 2001 From: bogdandina Date: Mon, 8 Dec 2025 16:32:08 +0200 Subject: [PATCH 06/11] feat(70552): remove duplicated dependency --- pom.xml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pom.xml b/pom.xml index 31e32bc2..134a4e5a 100644 --- a/pom.xml +++ b/pom.xml @@ -113,11 +113,6 @@ slf4j-api 2.0.7 - - com.fasterxml.jackson.core - jackson-databind - 2.15.0 - org.jetbrains annotations From 054d8a166a093ab6c36847f7a965442becadb518 Mon Sep 17 00:00:00 2001 From: bogdandina Date: Mon, 8 Dec 2025 17:12:42 +0200 Subject: [PATCH 07/11] feat(70552): fix one more warning --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 134a4e5a..54896381 100644 --- a/pom.xml +++ b/pom.xml @@ -187,6 +187,7 @@ org.apache.maven.plugins maven-jar-plugin + 3.4.1 From 6fd089b00841b7ece5bd0b625faca6b626e2724d Mon Sep 17 00:00:00 2001 From: bogdandina Date: Tue, 9 Dec 2025 08:50:50 +0200 Subject: [PATCH 08/11] feat(70552): refactoring and fixes --- .../java/fi/hsl/common/hfp/HfpParser.java | 1 - .../hsl/common/passengercount/json/Apc.java | 2 +- .../PassengerCountParserTest.java | 25 ++++++++---- ...enger-count-unknown-properties-sample.json | 39 +++++++++++++++++++ 4 files changed, 57 insertions(+), 10 deletions(-) create mode 100644 src/test/resources/passenger-count-unknown-properties-sample.json diff --git a/src/main/java/fi/hsl/common/hfp/HfpParser.java b/src/main/java/fi/hsl/common/hfp/HfpParser.java index b7c9e3da..d2a82f05 100644 --- a/src/main/java/fi/hsl/common/hfp/HfpParser.java +++ b/src/main/java/fi/hsl/common/hfp/HfpParser.java @@ -1,6 +1,5 @@ package fi.hsl.common.hfp; -import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; diff --git a/src/main/java/fi/hsl/common/passengercount/json/Apc.java b/src/main/java/fi/hsl/common/passengercount/json/Apc.java index 8ef28eb5..d59770c1 100644 --- a/src/main/java/fi/hsl/common/passengercount/json/Apc.java +++ b/src/main/java/fi/hsl/common/passengercount/json/Apc.java @@ -5,7 +5,7 @@ import java.util.Date; -@JsonIgnoreProperties +@JsonIgnoreProperties(ignoreUnknown = true) public class Apc { public String desi; public String dir; diff --git a/src/test/java/fi/hsl/common/passengercount/PassengerCountParserTest.java b/src/test/java/fi/hsl/common/passengercount/PassengerCountParserTest.java index d311772e..8e4f3391 100644 --- a/src/test/java/fi/hsl/common/passengercount/PassengerCountParserTest.java +++ b/src/test/java/fi/hsl/common/passengercount/PassengerCountParserTest.java @@ -18,17 +18,16 @@ public class PassengerCountParserTest { private final String TEST_TOPIC = "/hfp/v2/journey/ongoing/apc/bus/0022/01288"; + @Test + public void parseJson_ignoreUnknownProperties_Test() throws Exception { + final var apc = parseJsonFromResources("src/test/resources/passenger-count-unknown-properties-sample.json").apc; + performAssertions(apc); + } + @Test public void parseJsonTest() throws Exception { Apc apc = parseJsonFromResources("src/test/resources/passenger-count-sample.json").apc; - assertEquals("555", apc.desi); - assertEquals(12, (int) apc.oper); - assertEquals("GPS", apc.loc); - assertEquals("regular | defect | other", apc.vehiclecounts.countquality); - assertEquals(15, apc.vehiclecounts.vehicleload); - assertEquals(1, apc.vehiclecounts.doorcounts.size()); - assertEquals("door1", apc.vehiclecounts.doorcounts.get(0).door); - + performAssertions(apc); } private ApcJson parseJsonFromResources(String filename) throws Exception { @@ -38,6 +37,16 @@ private ApcJson parseJsonFromResources(String filename) throws Exception { return apcJson; } + private void performAssertions(Apc apc) { + assertEquals("555", apc.desi); + assertEquals(12, (int) apc.oper); + assertEquals("GPS", apc.loc); + assertEquals("regular | defect | other", apc.vehiclecounts.countquality); + assertEquals(15, apc.vehiclecounts.vehicleload); + assertEquals(1, apc.vehiclecounts.doorcounts.size()); + assertEquals("door1", apc.vehiclecounts.doorcounts.get(0).door); + } + @Test public void convertJsonToProtobufMessageTest() throws Exception { ApcJson apcJson = parseJsonFromResources("src/test/resources/passenger-count-sample.json"); diff --git a/src/test/resources/passenger-count-unknown-properties-sample.json b/src/test/resources/passenger-count-unknown-properties-sample.json new file mode 100644 index 00000000..53e453eb --- /dev/null +++ b/src/test/resources/passenger-count-unknown-properties-sample.json @@ -0,0 +1,39 @@ +{ + "APC": { + "desi": "555", + "dir": "1", + "oper": 12, + "veh": 10, + "tst": "2019-05-23T14:15:16.000Z", + "tsi": 1416308975, + "lat": 24.9435, + "long": 60.1967, + "odo": 45.12, + "oday": "2019-05-23", + "jrn": 1, + "invalid": true, + "line": 264, + "start": "13:40", + "loc": "GPS", + "stop": 1234567, + "route": "2551", + "vehiclecounts": { + "countquality": "regular | defect | other", + "vehicleload": 15, + "vehicleloadratio": 0.2, + "doorcounts": [ + { + "door" : "door1", + "count": [ + { + "class": "adult | child | pram | bike | wheelchair | other", + "in": 1, + "out": 2 + } + ] + } + ], + "extensions": "extension data" + } + } +} \ No newline at end of file From f62a789e7438969cee1cde6bb51f375ebd29d51c Mon Sep 17 00:00:00 2001 From: bogdandina Date: Tue, 9 Dec 2025 12:19:58 +0200 Subject: [PATCH 09/11] feat(70552): fix version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 54896381..f83b2788 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 fi.hsl transitdata-common - 3.0.1 + 3.0.0 jar Common utilities for Transitdata projects From 200e8a2ebd1049ccae397b09d167f759d9588139 Mon Sep 17 00:00:00 2001 From: bogdandina Date: Wed, 10 Dec 2025 16:07:10 +0200 Subject: [PATCH 10/11] feat(70552): fix spotless --- src/main/java/fi/hsl/common/hfp/HfpJson.java | 8 +++----- .../hsl/common/passengercount/PassengerCountParser.java | 7 ++----- .../java/fi/hsl/common/passengercount/json/ApcJson.java | 1 - .../fi/hsl/common/passengercount/json/Vehiclecounts.java | 1 - 4 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/main/java/fi/hsl/common/hfp/HfpJson.java b/src/main/java/fi/hsl/common/hfp/HfpJson.java index afa8c043..6b1296cb 100644 --- a/src/main/java/fi/hsl/common/hfp/HfpJson.java +++ b/src/main/java/fi/hsl/common/hfp/HfpJson.java @@ -22,9 +22,8 @@ public class HfpJson { // {"VP":{"desi":"81","dir":"2","oper":22,"veh":792,"tst":"2018-04-05T17:38:36Z","tsi":1522949916,"spd":0.16,"hdg":225,"lat":60.194481,"long":25.03095,"acc":0,"dl":-25,"odo":2819,"drst":0,"oday":"2018-04-05","jrn":636,"line":112,"start":"20:25"}} @JsonProperty("VP") - @JsonAlias({"DUE", "ARR", "DEP", "ARS", "PDE", "PAS", "WAIT", - "DOO", "DOC", "TLR", "TLA", "DA", "DOUT", "BA", "BOUT", - "VJA", "VJOUT"}) + @JsonAlias({"DUE", "ARR", "DEP", "ARS", "PDE", "PAS", "WAIT", "DOO", "DOC", "TLR", "TLA", "DA", "DOUT", "BA", + "BOUT", "VJA", "VJOUT"}) public Payload payload; @JsonIgnoreProperties(ignoreUnknown = true) @@ -142,8 +141,7 @@ public Double deserialize(JsonParser p, DeserializationContext ctxt) public static class OdoSerializer extends JsonSerializer { @Override - public void serialize(Double value, JsonGenerator gen, SerializerProvider serializers) - throws IOException { + public void serialize(Double value, JsonGenerator gen, SerializerProvider serializers) throws IOException { if (value == null) { gen.writeNull(); } else { diff --git a/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java b/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java index 00a307e1..17605ca8 100644 --- a/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java +++ b/src/main/java/fi/hsl/common/passengercount/PassengerCountParser.java @@ -21,8 +21,7 @@ public class PassengerCountParser { static final Pattern topicVersionRegex = Pattern.compile("(^v\\d+|dev)"); - ObjectMapper objectMapper = new ObjectMapper() - .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) + ObjectMapper objectMapper = new ObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) .configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true) .configure(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT, true) .configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); @@ -274,9 +273,7 @@ public ApcJson parseJson(byte @NotNull [] data) throws IOException, InvalidAPCPa return objectMapper.readValue(data, ApcJson.class); } catch (IOException ioe) { if (ioe instanceof com.fasterxml.jackson.core.JsonProcessingException jpe) { - throw new PassengerCountParser.InvalidAPCPayloadException( - "Failed to parse APC JSON", jpe - ); + throw new PassengerCountParser.InvalidAPCPayloadException("Failed to parse APC JSON", jpe); } else { throw ioe; } diff --git a/src/main/java/fi/hsl/common/passengercount/json/ApcJson.java b/src/main/java/fi/hsl/common/passengercount/json/ApcJson.java index aa2b2cd5..2aac3d58 100644 --- a/src/main/java/fi/hsl/common/passengercount/json/ApcJson.java +++ b/src/main/java/fi/hsl/common/passengercount/json/ApcJson.java @@ -1,6 +1,5 @@ package fi.hsl.common.passengercount.json; - import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/src/main/java/fi/hsl/common/passengercount/json/Vehiclecounts.java b/src/main/java/fi/hsl/common/passengercount/json/Vehiclecounts.java index 1c30eaab..ee783dc2 100644 --- a/src/main/java/fi/hsl/common/passengercount/json/Vehiclecounts.java +++ b/src/main/java/fi/hsl/common/passengercount/json/Vehiclecounts.java @@ -1,6 +1,5 @@ package fi.hsl.common.passengercount.json; - import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.util.List; From 3e84c49142f0238722c04d07cf2de7b7c3e2f8be Mon Sep 17 00:00:00 2001 From: bogdandina Date: Fri, 12 Dec 2025 09:57:50 +0200 Subject: [PATCH 11/11] feat(70552): potential fix --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 6478af8d..877a51ce 100644 --- a/pom.xml +++ b/pom.xml @@ -146,13 +146,13 @@ org.mockito mockito-core - 5.14.1 + 5.21.0 test org.mockito mockito-junit-jupiter - 5.14.1 + 5.21.0 test