public static final class GtfsRealtime.Alert extends com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.Alert> implements GtfsRealtime.AlertOrBuilder
transit_realtime.Alert
An alert, indicating some sort of incident in the public transit network.
Modifier and Type | Class and Description |
---|---|
static class |
GtfsRealtime.Alert.Builder
Protobuf type
transit_realtime.Alert |
static class |
GtfsRealtime.Alert.Cause
Protobuf enum
transit_realtime.Alert.Cause |
static class |
GtfsRealtime.Alert.Effect
Protobuf enum
transit_realtime.Alert.Effect |
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
ACTIVE_PERIOD_FIELD_NUMBER |
static int |
CAUSE_FIELD_NUMBER |
static int |
DESCRIPTION_TEXT_FIELD_NUMBER |
static int |
EFFECT_FIELD_NUMBER |
static int |
HEADER_TEXT_FIELD_NUMBER |
static int |
INFORMED_ENTITY_FIELD_NUMBER |
static com.google.protobuf.Parser<GtfsRealtime.Alert> |
PARSER |
static int |
URL_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
GtfsRealtime.TimeRange |
getActivePeriod(int index)
repeated .transit_realtime.TimeRange active_period = 1; |
int |
getActivePeriodCount()
repeated .transit_realtime.TimeRange active_period = 1; |
List<GtfsRealtime.TimeRange> |
getActivePeriodList()
repeated .transit_realtime.TimeRange active_period = 1; |
GtfsRealtime.TimeRangeOrBuilder |
getActivePeriodOrBuilder(int index)
repeated .transit_realtime.TimeRange active_period = 1; |
List<? extends GtfsRealtime.TimeRangeOrBuilder> |
getActivePeriodOrBuilderList()
repeated .transit_realtime.TimeRange active_period = 1; |
GtfsRealtime.Alert.Cause |
getCause()
optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; |
static GtfsRealtime.Alert |
getDefaultInstance() |
GtfsRealtime.Alert |
getDefaultInstanceForType() |
GtfsRealtime.TranslatedString |
getDescriptionText()
optional .transit_realtime.TranslatedString description_text = 11; |
GtfsRealtime.TranslatedStringOrBuilder |
getDescriptionTextOrBuilder()
optional .transit_realtime.TranslatedString description_text = 11; |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
GtfsRealtime.Alert.Effect |
getEffect()
optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; |
GtfsRealtime.TranslatedString |
getHeaderText()
optional .transit_realtime.TranslatedString header_text = 10; |
GtfsRealtime.TranslatedStringOrBuilder |
getHeaderTextOrBuilder()
optional .transit_realtime.TranslatedString header_text = 10; |
GtfsRealtime.EntitySelector |
getInformedEntity(int index)
repeated .transit_realtime.EntitySelector informed_entity = 5; |
int |
getInformedEntityCount()
repeated .transit_realtime.EntitySelector informed_entity = 5; |
List<GtfsRealtime.EntitySelector> |
getInformedEntityList()
repeated .transit_realtime.EntitySelector informed_entity = 5; |
GtfsRealtime.EntitySelectorOrBuilder |
getInformedEntityOrBuilder(int index)
repeated .transit_realtime.EntitySelector informed_entity = 5; |
List<? extends GtfsRealtime.EntitySelectorOrBuilder> |
getInformedEntityOrBuilderList()
repeated .transit_realtime.EntitySelector informed_entity = 5; |
com.google.protobuf.Parser<GtfsRealtime.Alert> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
GtfsRealtime.TranslatedString |
getUrl()
optional .transit_realtime.TranslatedString url = 8; |
GtfsRealtime.TranslatedStringOrBuilder |
getUrlOrBuilder()
optional .transit_realtime.TranslatedString url = 8; |
boolean |
hasCause()
optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE]; |
boolean |
hasDescriptionText()
optional .transit_realtime.TranslatedString description_text = 11; |
boolean |
hasEffect()
optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT]; |
boolean |
hasHeaderText()
optional .transit_realtime.TranslatedString header_text = 10; |
boolean |
hasUrl()
optional .transit_realtime.TranslatedString url = 8; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GtfsRealtime.Alert.Builder |
newBuilder() |
static GtfsRealtime.Alert.Builder |
newBuilder(GtfsRealtime.Alert prototype) |
GtfsRealtime.Alert.Builder |
newBuilderForType() |
protected GtfsRealtime.Alert.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static GtfsRealtime.Alert |
parseDelimitedFrom(InputStream input) |
static GtfsRealtime.Alert |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.Alert |
parseFrom(byte[] data) |
static GtfsRealtime.Alert |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.Alert |
parseFrom(com.google.protobuf.ByteString data) |
static GtfsRealtime.Alert |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.Alert |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GtfsRealtime.Alert |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GtfsRealtime.Alert |
parseFrom(InputStream input) |
static GtfsRealtime.Alert |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GtfsRealtime.Alert.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField
getDescriptorForType, getOneofFieldDescriptor, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExtension, getExtension, getExtensionCount, hasExtension
public static com.google.protobuf.Parser<GtfsRealtime.Alert> PARSER
public static final int ACTIVE_PERIOD_FIELD_NUMBER
public static final int INFORMED_ENTITY_FIELD_NUMBER
public static final int CAUSE_FIELD_NUMBER
public static final int EFFECT_FIELD_NUMBER
public static final int URL_FIELD_NUMBER
public static final int HEADER_TEXT_FIELD_NUMBER
public static final int DESCRIPTION_TEXT_FIELD_NUMBER
public static GtfsRealtime.Alert getDefaultInstance()
public GtfsRealtime.Alert getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.Alert>
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<GtfsRealtime.Alert> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public List<GtfsRealtime.TimeRange> getActivePeriodList()
repeated .transit_realtime.TimeRange active_period = 1;
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.
getActivePeriodList
in interface GtfsRealtime.AlertOrBuilder
public List<? extends GtfsRealtime.TimeRangeOrBuilder> getActivePeriodOrBuilderList()
repeated .transit_realtime.TimeRange active_period = 1;
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.
getActivePeriodOrBuilderList
in interface GtfsRealtime.AlertOrBuilder
public int getActivePeriodCount()
repeated .transit_realtime.TimeRange active_period = 1;
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.
getActivePeriodCount
in interface GtfsRealtime.AlertOrBuilder
public GtfsRealtime.TimeRange getActivePeriod(int index)
repeated .transit_realtime.TimeRange active_period = 1;
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.
getActivePeriod
in interface GtfsRealtime.AlertOrBuilder
public GtfsRealtime.TimeRangeOrBuilder getActivePeriodOrBuilder(int index)
repeated .transit_realtime.TimeRange active_period = 1;
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.
getActivePeriodOrBuilder
in interface GtfsRealtime.AlertOrBuilder
public List<GtfsRealtime.EntitySelector> getInformedEntityList()
repeated .transit_realtime.EntitySelector informed_entity = 5;
Entities whose users we should notify of this alert.
getInformedEntityList
in interface GtfsRealtime.AlertOrBuilder
public List<? extends GtfsRealtime.EntitySelectorOrBuilder> getInformedEntityOrBuilderList()
repeated .transit_realtime.EntitySelector informed_entity = 5;
Entities whose users we should notify of this alert.
getInformedEntityOrBuilderList
in interface GtfsRealtime.AlertOrBuilder
public int getInformedEntityCount()
repeated .transit_realtime.EntitySelector informed_entity = 5;
Entities whose users we should notify of this alert.
getInformedEntityCount
in interface GtfsRealtime.AlertOrBuilder
public GtfsRealtime.EntitySelector getInformedEntity(int index)
repeated .transit_realtime.EntitySelector informed_entity = 5;
Entities whose users we should notify of this alert.
getInformedEntity
in interface GtfsRealtime.AlertOrBuilder
public GtfsRealtime.EntitySelectorOrBuilder getInformedEntityOrBuilder(int index)
repeated .transit_realtime.EntitySelector informed_entity = 5;
Entities whose users we should notify of this alert.
getInformedEntityOrBuilder
in interface GtfsRealtime.AlertOrBuilder
public boolean hasCause()
optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE];
hasCause
in interface GtfsRealtime.AlertOrBuilder
public GtfsRealtime.Alert.Cause getCause()
optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE];
getCause
in interface GtfsRealtime.AlertOrBuilder
public boolean hasEffect()
optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT];
hasEffect
in interface GtfsRealtime.AlertOrBuilder
public GtfsRealtime.Alert.Effect getEffect()
optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT];
getEffect
in interface GtfsRealtime.AlertOrBuilder
public boolean hasUrl()
optional .transit_realtime.TranslatedString url = 8;
The URL which provides additional information about the alert.
hasUrl
in interface GtfsRealtime.AlertOrBuilder
public GtfsRealtime.TranslatedString getUrl()
optional .transit_realtime.TranslatedString url = 8;
The URL which provides additional information about the alert.
getUrl
in interface GtfsRealtime.AlertOrBuilder
public GtfsRealtime.TranslatedStringOrBuilder getUrlOrBuilder()
optional .transit_realtime.TranslatedString url = 8;
The URL which provides additional information about the alert.
getUrlOrBuilder
in interface GtfsRealtime.AlertOrBuilder
public boolean hasHeaderText()
optional .transit_realtime.TranslatedString header_text = 10;
Alert header. Contains a short summary of the alert text as plain-text.
hasHeaderText
in interface GtfsRealtime.AlertOrBuilder
public GtfsRealtime.TranslatedString getHeaderText()
optional .transit_realtime.TranslatedString header_text = 10;
Alert header. Contains a short summary of the alert text as plain-text.
getHeaderText
in interface GtfsRealtime.AlertOrBuilder
public GtfsRealtime.TranslatedStringOrBuilder getHeaderTextOrBuilder()
optional .transit_realtime.TranslatedString header_text = 10;
Alert header. Contains a short summary of the alert text as plain-text.
getHeaderTextOrBuilder
in interface GtfsRealtime.AlertOrBuilder
public boolean hasDescriptionText()
optional .transit_realtime.TranslatedString description_text = 11;
Full description for the alert as plain-text. The information in the description should add to the information of the header.
hasDescriptionText
in interface GtfsRealtime.AlertOrBuilder
public GtfsRealtime.TranslatedString getDescriptionText()
optional .transit_realtime.TranslatedString description_text = 11;
Full description for the alert as plain-text. The information in the description should add to the information of the header.
getDescriptionText
in interface GtfsRealtime.AlertOrBuilder
public GtfsRealtime.TranslatedStringOrBuilder getDescriptionTextOrBuilder()
optional .transit_realtime.TranslatedString description_text = 11;
Full description for the alert as plain-text. The information in the description should add to the information of the header.
getDescriptionTextOrBuilder
in interface GtfsRealtime.AlertOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.Alert>
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static GtfsRealtime.Alert parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.Alert parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.Alert parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.Alert parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.Alert parseFrom(InputStream input) throws IOException
IOException
public static GtfsRealtime.Alert parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GtfsRealtime.Alert parseDelimitedFrom(InputStream input) throws IOException
IOException
public static GtfsRealtime.Alert parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GtfsRealtime.Alert parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static GtfsRealtime.Alert parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GtfsRealtime.Alert.Builder newBuilder()
public GtfsRealtime.Alert.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static GtfsRealtime.Alert.Builder newBuilder(GtfsRealtime.Alert prototype)
public GtfsRealtime.Alert.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected GtfsRealtime.Alert.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2018. All rights reserved.