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.ExtensionWritercom.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, parseUnknownFieldgetDescriptorForType, getOneofFieldDescriptor, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtensionequals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toStringcheckByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtensionCount, hasExtensionpublic 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.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<GtfsRealtime.Alert> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic 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.AlertOrBuilderpublic 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.AlertOrBuilderpublic 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.AlertOrBuilderpublic 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.AlertOrBuilderpublic 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.AlertOrBuilderpublic List<GtfsRealtime.EntitySelector> getInformedEntityList()
repeated .transit_realtime.EntitySelector informed_entity = 5;
Entities whose users we should notify of this alert.
getInformedEntityList in interface GtfsRealtime.AlertOrBuilderpublic 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.AlertOrBuilderpublic int getInformedEntityCount()
repeated .transit_realtime.EntitySelector informed_entity = 5;
Entities whose users we should notify of this alert.
getInformedEntityCount in interface GtfsRealtime.AlertOrBuilderpublic 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.AlertOrBuilderpublic 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.AlertOrBuilderpublic boolean hasCause()
optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE];hasCause in interface GtfsRealtime.AlertOrBuilderpublic GtfsRealtime.Alert.Cause getCause()
optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE];getCause in interface GtfsRealtime.AlertOrBuilderpublic boolean hasEffect()
optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT];hasEffect in interface GtfsRealtime.AlertOrBuilderpublic GtfsRealtime.Alert.Effect getEffect()
optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT];getEffect in interface GtfsRealtime.AlertOrBuilderpublic boolean hasUrl()
optional .transit_realtime.TranslatedString url = 8;
The URL which provides additional information about the alert.
hasUrl in interface GtfsRealtime.AlertOrBuilderpublic GtfsRealtime.TranslatedString getUrl()
optional .transit_realtime.TranslatedString url = 8;
The URL which provides additional information about the alert.
getUrl in interface GtfsRealtime.AlertOrBuilderpublic GtfsRealtime.TranslatedStringOrBuilder getUrlOrBuilder()
optional .transit_realtime.TranslatedString url = 8;
The URL which provides additional information about the alert.
getUrlOrBuilder in interface GtfsRealtime.AlertOrBuilderpublic 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.AlertOrBuilderpublic 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.AlertOrBuilderpublic 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.AlertOrBuilderpublic 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.AlertOrBuilderpublic 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.AlertOrBuilderpublic 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.AlertOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized 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.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic static GtfsRealtime.Alert parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.Alert parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.Alert parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.Alert parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.Alert parseFrom(InputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.Alert parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.Alert parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.Alert parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.Alert parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.Alert parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.Alert.Builder newBuilder()
public GtfsRealtime.Alert.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GtfsRealtime.Alert.Builder newBuilder(GtfsRealtime.Alert prototype)
public GtfsRealtime.Alert.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GtfsRealtime.Alert.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2019. All rights reserved.