de.mfdz.MfdzRealtimeExtensions Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: mfdz-realtime-extensions.proto
// Protobuf Java Version: 4.30.0
package de.mfdz;
public final class MfdzRealtimeExtensions {
private MfdzRealtimeExtensions() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 30,
/* patch= */ 0,
/* suffix= */ "",
MfdzRealtimeExtensions.class.getName());
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
registry.add(de.mfdz.MfdzRealtimeExtensions.tripDescriptor);
registry.add(de.mfdz.MfdzRealtimeExtensions.stopTimeProperties);
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface TripDescriptorExtensionOrBuilder extends
// @@protoc_insertion_point(interface_extends:transit_realtime.TripDescriptorExtension)
com.google.protobuf.MessageOrBuilder {
/**
* optional string route_url = 1;
* @return Whether the routeUrl field is set.
*/
boolean hasRouteUrl();
/**
* optional string route_url = 1;
* @return The routeUrl.
*/
java.lang.String getRouteUrl();
/**
* optional string route_url = 1;
* @return The bytes for routeUrl.
*/
com.google.protobuf.ByteString
getRouteUrlBytes();
/**
* optional string agency_id = 2;
* @return Whether the agencyId field is set.
*/
boolean hasAgencyId();
/**
* optional string agency_id = 2;
* @return The agencyId.
*/
java.lang.String getAgencyId();
/**
* optional string agency_id = 2;
* @return The bytes for agencyId.
*/
com.google.protobuf.ByteString
getAgencyIdBytes();
/**
* optional string route_long_name = 3;
* @return Whether the routeLongName field is set.
*/
boolean hasRouteLongName();
/**
* optional string route_long_name = 3;
* @return The routeLongName.
*/
java.lang.String getRouteLongName();
/**
* optional string route_long_name = 3;
* @return The bytes for routeLongName.
*/
com.google.protobuf.ByteString
getRouteLongNameBytes();
/**
* optional uint32 route_type = 4;
* @return Whether the routeType field is set.
*/
boolean hasRouteType();
/**
* optional uint32 route_type = 4;
* @return The routeType.
*/
int getRouteType();
}
/**
* Protobuf type {@code transit_realtime.TripDescriptorExtension}
*/
public static final class TripDescriptorExtension extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:transit_realtime.TripDescriptorExtension)
TripDescriptorExtensionOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 30,
/* patch= */ 0,
/* suffix= */ "",
TripDescriptorExtension.class.getName());
}
// Use TripDescriptorExtension.newBuilder() to construct.
private TripDescriptorExtension(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private TripDescriptorExtension() {
routeUrl_ = "";
agencyId_ = "";
routeLongName_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return de.mfdz.MfdzRealtimeExtensions.internal_static_transit_realtime_TripDescriptorExtension_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return de.mfdz.MfdzRealtimeExtensions.internal_static_transit_realtime_TripDescriptorExtension_fieldAccessorTable
.ensureFieldAccessorsInitialized(
de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension.class, de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension.Builder.class);
}
private int bitField0_;
public static final int ROUTE_URL_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object routeUrl_ = "";
/**
* optional string route_url = 1;
* @return Whether the routeUrl field is set.
*/
@java.lang.Override
public boolean hasRouteUrl() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string route_url = 1;
* @return The routeUrl.
*/
@java.lang.Override
public java.lang.String getRouteUrl() {
java.lang.Object ref = routeUrl_;
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()) {
routeUrl_ = s;
}
return s;
}
}
/**
* optional string route_url = 1;
* @return The bytes for routeUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRouteUrlBytes() {
java.lang.Object ref = routeUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routeUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AGENCY_ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object agencyId_ = "";
/**
* optional string agency_id = 2;
* @return Whether the agencyId field is set.
*/
@java.lang.Override
public boolean hasAgencyId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string agency_id = 2;
* @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;
}
}
/**
* optional string agency_id = 2;
* @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;
}
}
public static final int ROUTE_LONG_NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object routeLongName_ = "";
/**
* optional string route_long_name = 3;
* @return Whether the routeLongName field is set.
*/
@java.lang.Override
public boolean hasRouteLongName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string route_long_name = 3;
* @return The routeLongName.
*/
@java.lang.Override
public java.lang.String getRouteLongName() {
java.lang.Object ref = routeLongName_;
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()) {
routeLongName_ = s;
}
return s;
}
}
/**
* optional string route_long_name = 3;
* @return The bytes for routeLongName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRouteLongNameBytes() {
java.lang.Object ref = routeLongName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routeLongName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROUTE_TYPE_FIELD_NUMBER = 4;
private int routeType_ = 0;
/**
* optional uint32 route_type = 4;
* @return Whether the routeType field is set.
*/
@java.lang.Override
public boolean hasRouteType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 route_type = 4;
* @return The routeType.
*/
@java.lang.Override
public int getRouteType() {
return routeType_;
}
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.GeneratedMessage.writeString(output, 1, routeUrl_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, agencyId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, routeLongName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt32(4, routeType_);
}
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.GeneratedMessage.computeStringSize(1, routeUrl_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, agencyId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, routeLongName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, routeType_);
}
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 de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension)) {
return super.equals(obj);
}
de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension other = (de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension) obj;
if (hasRouteUrl() != other.hasRouteUrl()) return false;
if (hasRouteUrl()) {
if (!getRouteUrl()
.equals(other.getRouteUrl())) return false;
}
if (hasAgencyId() != other.hasAgencyId()) return false;
if (hasAgencyId()) {
if (!getAgencyId()
.equals(other.getAgencyId())) return false;
}
if (hasRouteLongName() != other.hasRouteLongName()) return false;
if (hasRouteLongName()) {
if (!getRouteLongName()
.equals(other.getRouteLongName())) return false;
}
if (hasRouteType() != other.hasRouteType()) return false;
if (hasRouteType()) {
if (getRouteType()
!= other.getRouteType()) 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 (hasRouteUrl()) {
hash = (37 * hash) + ROUTE_URL_FIELD_NUMBER;
hash = (53 * hash) + getRouteUrl().hashCode();
}
if (hasAgencyId()) {
hash = (37 * hash) + AGENCY_ID_FIELD_NUMBER;
hash = (53 * hash) + getAgencyId().hashCode();
}
if (hasRouteLongName()) {
hash = (37 * hash) + ROUTE_LONG_NAME_FIELD_NUMBER;
hash = (53 * hash) + getRouteLongName().hashCode();
}
if (hasRouteType()) {
hash = (37 * hash) + ROUTE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getRouteType();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code transit_realtime.TripDescriptorExtension}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:transit_realtime.TripDescriptorExtension)
de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtensionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return de.mfdz.MfdzRealtimeExtensions.internal_static_transit_realtime_TripDescriptorExtension_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return de.mfdz.MfdzRealtimeExtensions.internal_static_transit_realtime_TripDescriptorExtension_fieldAccessorTable
.ensureFieldAccessorsInitialized(
de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension.class, de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension.Builder.class);
}
// Construct using de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
routeUrl_ = "";
agencyId_ = "";
routeLongName_ = "";
routeType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return de.mfdz.MfdzRealtimeExtensions.internal_static_transit_realtime_TripDescriptorExtension_descriptor;
}
@java.lang.Override
public de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension getDefaultInstanceForType() {
return de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension.getDefaultInstance();
}
@java.lang.Override
public de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension build() {
de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension buildPartial() {
de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension result = new de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.routeUrl_ = routeUrl_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.agencyId_ = agencyId_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.routeLongName_ = routeLongName_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.routeType_ = routeType_;
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension) {
return mergeFrom((de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension other) {
if (other == de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension.getDefaultInstance()) return this;
if (other.hasRouteUrl()) {
routeUrl_ = other.routeUrl_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasAgencyId()) {
agencyId_ = other.agencyId_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasRouteLongName()) {
routeLongName_ = other.routeLongName_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasRouteType()) {
setRouteType(other.getRouteType());
}
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: {
routeUrl_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
agencyId_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
routeLongName_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
routeType_ = input.readUInt32();
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 java.lang.Object routeUrl_ = "";
/**
* optional string route_url = 1;
* @return Whether the routeUrl field is set.
*/
public boolean hasRouteUrl() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string route_url = 1;
* @return The routeUrl.
*/
public java.lang.String getRouteUrl() {
java.lang.Object ref = routeUrl_;
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()) {
routeUrl_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string route_url = 1;
* @return The bytes for routeUrl.
*/
public com.google.protobuf.ByteString
getRouteUrlBytes() {
java.lang.Object ref = routeUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routeUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string route_url = 1;
* @param value The routeUrl to set.
* @return This builder for chaining.
*/
public Builder setRouteUrl(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
routeUrl_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string route_url = 1;
* @return This builder for chaining.
*/
public Builder clearRouteUrl() {
routeUrl_ = getDefaultInstance().getRouteUrl();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string route_url = 1;
* @param value The bytes for routeUrl to set.
* @return This builder for chaining.
*/
public Builder setRouteUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
routeUrl_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object agencyId_ = "";
/**
* optional string agency_id = 2;
* @return Whether the agencyId field is set.
*/
public boolean hasAgencyId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string agency_id = 2;
* @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;
}
}
/**
* optional string agency_id = 2;
* @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;
}
}
/**
* optional string agency_id = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string agency_id = 2;
* @return This builder for chaining.
*/
public Builder clearAgencyId() {
agencyId_ = getDefaultInstance().getAgencyId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string agency_id = 2;
* @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_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object routeLongName_ = "";
/**
* optional string route_long_name = 3;
* @return Whether the routeLongName field is set.
*/
public boolean hasRouteLongName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string route_long_name = 3;
* @return The routeLongName.
*/
public java.lang.String getRouteLongName() {
java.lang.Object ref = routeLongName_;
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()) {
routeLongName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string route_long_name = 3;
* @return The bytes for routeLongName.
*/
public com.google.protobuf.ByteString
getRouteLongNameBytes() {
java.lang.Object ref = routeLongName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routeLongName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string route_long_name = 3;
* @param value The routeLongName to set.
* @return This builder for chaining.
*/
public Builder setRouteLongName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
routeLongName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional string route_long_name = 3;
* @return This builder for chaining.
*/
public Builder clearRouteLongName() {
routeLongName_ = getDefaultInstance().getRouteLongName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* optional string route_long_name = 3;
* @param value The bytes for routeLongName to set.
* @return This builder for chaining.
*/
public Builder setRouteLongNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
routeLongName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private int routeType_ ;
/**
* optional uint32 route_type = 4;
* @return Whether the routeType field is set.
*/
@java.lang.Override
public boolean hasRouteType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 route_type = 4;
* @return The routeType.
*/
@java.lang.Override
public int getRouteType() {
return routeType_;
}
/**
* optional uint32 route_type = 4;
* @param value The routeType to set.
* @return This builder for chaining.
*/
public Builder setRouteType(int value) {
routeType_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional uint32 route_type = 4;
* @return This builder for chaining.
*/
public Builder clearRouteType() {
bitField0_ = (bitField0_ & ~0x00000008);
routeType_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:transit_realtime.TripDescriptorExtension)
}
// @@protoc_insertion_point(class_scope:transit_realtime.TripDescriptorExtension)
private static final de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension();
}
public static de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TripDescriptorExtension 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 de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StopTimePropertiesExtensionOrBuilder extends
// @@protoc_insertion_point(interface_extends:transit_realtime.StopTimePropertiesExtension)
com.google.protobuf.MessageOrBuilder {
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType pickup_type = 1;
* @return Whether the pickupType field is set.
*/
boolean hasPickupType();
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType pickup_type = 1;
* @return The pickupType.
*/
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType getPickupType();
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType dropoff_type = 2;
* @return Whether the dropoffType field is set.
*/
boolean hasDropoffType();
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType dropoff_type = 2;
* @return The dropoffType.
*/
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType getDropoffType();
}
/**
* Protobuf type {@code transit_realtime.StopTimePropertiesExtension}
*/
public static final class StopTimePropertiesExtension extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:transit_realtime.StopTimePropertiesExtension)
StopTimePropertiesExtensionOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 30,
/* patch= */ 0,
/* suffix= */ "",
StopTimePropertiesExtension.class.getName());
}
// Use StopTimePropertiesExtension.newBuilder() to construct.
private StopTimePropertiesExtension(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private StopTimePropertiesExtension() {
pickupType_ = 0;
dropoffType_ = 0;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return de.mfdz.MfdzRealtimeExtensions.internal_static_transit_realtime_StopTimePropertiesExtension_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return de.mfdz.MfdzRealtimeExtensions.internal_static_transit_realtime_StopTimePropertiesExtension_fieldAccessorTable
.ensureFieldAccessorsInitialized(
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.class, de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.Builder.class);
}
/**
* Protobuf enum {@code transit_realtime.StopTimePropertiesExtension.DropOffPickupType}
*/
public enum DropOffPickupType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Regularly scheduled pickup/dropoff.
*
*
* REGULAR = 0;
*/
REGULAR(0),
/**
*
* No pickup/dropoff available
*
*
* NONE = 1;
*/
NONE(1),
/**
*
* Must phone agency to arrange pickup/dropoff.
*
*
* PHONE_AGENCY = 2;
*/
PHONE_AGENCY(2),
/**
*
* Must coordinate with driver to arrange pickup/dropoff.
*
*
* COORDINATE_WITH_DRIVER = 3;
*/
COORDINATE_WITH_DRIVER(3),
;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 30,
/* patch= */ 0,
/* suffix= */ "",
DropOffPickupType.class.getName());
}
/**
*
* Regularly scheduled pickup/dropoff.
*
*
* REGULAR = 0;
*/
public static final int REGULAR_VALUE = 0;
/**
*
* No pickup/dropoff available
*
*
* NONE = 1;
*/
public static final int NONE_VALUE = 1;
/**
*
* Must phone agency to arrange pickup/dropoff.
*
*
* PHONE_AGENCY = 2;
*/
public static final int PHONE_AGENCY_VALUE = 2;
/**
*
* Must coordinate with driver to arrange pickup/dropoff.
*
*
* COORDINATE_WITH_DRIVER = 3;
*/
public static final int COORDINATE_WITH_DRIVER_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 DropOffPickupType 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 DropOffPickupType forNumber(int value) {
switch (value) {
case 0: return REGULAR;
case 1: return NONE;
case 2: return PHONE_AGENCY;
case 3: return COORDINATE_WITH_DRIVER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DropOffPickupType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DropOffPickupType findValueByNumber(int number) {
return DropOffPickupType.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 de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.getDescriptor().getEnumTypes().get(0);
}
private static final DropOffPickupType[] VALUES = values();
public static DropOffPickupType 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 DropOffPickupType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:transit_realtime.StopTimePropertiesExtension.DropOffPickupType)
}
private int bitField0_;
public static final int PICKUP_TYPE_FIELD_NUMBER = 1;
private int pickupType_ = 0;
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType pickup_type = 1;
* @return Whether the pickupType field is set.
*/
@java.lang.Override public boolean hasPickupType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType pickup_type = 1;
* @return The pickupType.
*/
@java.lang.Override public de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType getPickupType() {
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType result = de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType.forNumber(pickupType_);
return result == null ? de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType.REGULAR : result;
}
public static final int DROPOFF_TYPE_FIELD_NUMBER = 2;
private int dropoffType_ = 0;
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType dropoff_type = 2;
* @return Whether the dropoffType field is set.
*/
@java.lang.Override public boolean hasDropoffType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType dropoff_type = 2;
* @return The dropoffType.
*/
@java.lang.Override public de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType getDropoffType() {
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType result = de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType.forNumber(dropoffType_);
return result == null ? de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType.REGULAR : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(1, pickupType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeEnum(2, dropoffType_);
}
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, pickupType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, dropoffType_);
}
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 de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension)) {
return super.equals(obj);
}
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension other = (de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension) obj;
if (hasPickupType() != other.hasPickupType()) return false;
if (hasPickupType()) {
if (pickupType_ != other.pickupType_) return false;
}
if (hasDropoffType() != other.hasDropoffType()) return false;
if (hasDropoffType()) {
if (dropoffType_ != other.dropoffType_) 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 (hasPickupType()) {
hash = (37 * hash) + PICKUP_TYPE_FIELD_NUMBER;
hash = (53 * hash) + pickupType_;
}
if (hasDropoffType()) {
hash = (37 * hash) + DROPOFF_TYPE_FIELD_NUMBER;
hash = (53 * hash) + dropoffType_;
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code transit_realtime.StopTimePropertiesExtension}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:transit_realtime.StopTimePropertiesExtension)
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtensionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return de.mfdz.MfdzRealtimeExtensions.internal_static_transit_realtime_StopTimePropertiesExtension_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return de.mfdz.MfdzRealtimeExtensions.internal_static_transit_realtime_StopTimePropertiesExtension_fieldAccessorTable
.ensureFieldAccessorsInitialized(
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.class, de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.Builder.class);
}
// Construct using de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
pickupType_ = 0;
dropoffType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return de.mfdz.MfdzRealtimeExtensions.internal_static_transit_realtime_StopTimePropertiesExtension_descriptor;
}
@java.lang.Override
public de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension getDefaultInstanceForType() {
return de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.getDefaultInstance();
}
@java.lang.Override
public de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension build() {
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension buildPartial() {
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension result = new de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.pickupType_ = pickupType_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.dropoffType_ = dropoffType_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension) {
return mergeFrom((de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension other) {
if (other == de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.getDefaultInstance()) return this;
if (other.hasPickupType()) {
setPickupType(other.getPickupType());
}
if (other.hasDropoffType()) {
setDropoffType(other.getDropoffType());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int tmpRaw = input.readEnum();
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType tmpValue =
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(1, tmpRaw);
} else {
pickupType_ = tmpRaw;
bitField0_ |= 0x00000001;
}
break;
} // case 8
case 16: {
int tmpRaw = input.readEnum();
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType tmpValue =
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(2, tmpRaw);
} else {
dropoffType_ = tmpRaw;
bitField0_ |= 0x00000002;
}
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int pickupType_ = 0;
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType pickup_type = 1;
* @return Whether the pickupType field is set.
*/
@java.lang.Override public boolean hasPickupType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType pickup_type = 1;
* @return The pickupType.
*/
@java.lang.Override
public de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType getPickupType() {
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType result = de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType.forNumber(pickupType_);
return result == null ? de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType.REGULAR : result;
}
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType pickup_type = 1;
* @param value The pickupType to set.
* @return This builder for chaining.
*/
public Builder setPickupType(de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
pickupType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType pickup_type = 1;
* @return This builder for chaining.
*/
public Builder clearPickupType() {
bitField0_ = (bitField0_ & ~0x00000001);
pickupType_ = 0;
onChanged();
return this;
}
private int dropoffType_ = 0;
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType dropoff_type = 2;
* @return Whether the dropoffType field is set.
*/
@java.lang.Override public boolean hasDropoffType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType dropoff_type = 2;
* @return The dropoffType.
*/
@java.lang.Override
public de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType getDropoffType() {
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType result = de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType.forNumber(dropoffType_);
return result == null ? de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType.REGULAR : result;
}
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType dropoff_type = 2;
* @param value The dropoffType to set.
* @return This builder for chaining.
*/
public Builder setDropoffType(de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.DropOffPickupType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
dropoffType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .transit_realtime.StopTimePropertiesExtension.DropOffPickupType dropoff_type = 2;
* @return This builder for chaining.
*/
public Builder clearDropoffType() {
bitField0_ = (bitField0_ & ~0x00000002);
dropoffType_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:transit_realtime.StopTimePropertiesExtension)
}
// @@protoc_insertion_point(class_scope:transit_realtime.StopTimePropertiesExtension)
private static final de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension();
}
public static de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StopTimePropertiesExtension 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 de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int TRIP_DESCRIPTOR_FIELD_NUMBER = 1013;
/**
*
* https://groups.google.com/d/msgid/gtfs-realtime/255580b2-1fce-4605-a854-3e18f24fcab7n%40googlegroups.com
*
*
* extend .transit_realtime.TripDescriptor { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.transit.realtime.GtfsRealtime.TripDescriptor,
de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension> tripDescriptor = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension.class,
de.mfdz.MfdzRealtimeExtensions.TripDescriptorExtension.getDefaultInstance());
public static final int STOP_TIME_PROPERTIES_FIELD_NUMBER = 1013;
/**
*
* https://groups.google.com/d/msgid/gtfs-realtime/255580b2-1fce-4605-a854-3e18f24fcab7n%40googlegroups.com
*
*
* extend .transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.StopTimeProperties,
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension> stopTimeProperties = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.class,
de.mfdz.MfdzRealtimeExtensions.StopTimePropertiesExtension.getDefaultInstance());
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_transit_realtime_TripDescriptorExtension_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_transit_realtime_TripDescriptorExtension_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_transit_realtime_StopTimePropertiesExtension_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_transit_realtime_StopTimePropertiesExtension_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\036mfdz-realtime-extensions.proto\022\020transi" +
"t_realtime\032\023gtfs-realtime.proto\"l\n\027TripD" +
"escriptorExtension\022\021\n\troute_url\030\001 \001(\t\022\021\n" +
"\tagency_id\030\002 \001(\t\022\027\n\017route_long_name\030\003 \001(" +
"\t\022\022\n\nroute_type\030\004 \001(\r\"\244\002\n\033StopTimeProper" +
"tiesExtension\022T\n\013pickup_type\030\001 \001(\0162?.tra" +
"nsit_realtime.StopTimePropertiesExtensio" +
"n.DropOffPickupType\022U\n\014dropoff_type\030\002 \001(" +
"\0162?.transit_realtime.StopTimePropertiesE" +
"xtension.DropOffPickupType\"X\n\021DropOffPic" +
"kupType\022\013\n\007REGULAR\020\000\022\010\n\004NONE\020\001\022\020\n\014PHONE_" +
"AGENCY\020\002\022\032\n\026COORDINATE_WITH_DRIVER\020\003:e\n\017" +
"trip_descriptor\022 .transit_realtime.TripD" +
"escriptor\030\365\007 \001(\0132).transit_realtime.Trip" +
"DescriptorExtension:\214\001\n\024stop_time_proper" +
"ties\022>.transit_realtime.TripUpdate.StopT" +
"imeUpdate.StopTimeProperties\030\365\007 \001(\0132-.tr" +
"ansit_realtime.StopTimePropertiesExtensi" +
"onB\t\n\007de.mfdz"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.transit.realtime.GtfsRealtime.getDescriptor(),
});
internal_static_transit_realtime_TripDescriptorExtension_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_transit_realtime_TripDescriptorExtension_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_transit_realtime_TripDescriptorExtension_descriptor,
new java.lang.String[] { "RouteUrl", "AgencyId", "RouteLongName", "RouteType", });
internal_static_transit_realtime_StopTimePropertiesExtension_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_transit_realtime_StopTimePropertiesExtension_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_transit_realtime_StopTimePropertiesExtension_descriptor,
new java.lang.String[] { "PickupType", "DropoffType", });
tripDescriptor.internalInit(descriptor.getExtensions().get(0));
stopTimeProperties.internalInit(descriptor.getExtensions().get(1));
descriptor.resolveAllFeaturesImmutable();
com.google.transit.realtime.GtfsRealtime.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy