com.google.transit.realtime
Class GtfsRealtime.Alert

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite
      extended by com.google.protobuf.AbstractMessage
          extended by com.google.protobuf.GeneratedMessage
              extended by com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.Alert>
                  extended by com.google.transit.realtime.GtfsRealtime.Alert
All Implemented Interfaces:
com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.Alert>, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GtfsRealtime.AlertOrBuilder, Serializable
Enclosing class:
GtfsRealtime

public static final class GtfsRealtime.Alert
extends com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.Alert>
implements GtfsRealtime.AlertOrBuilder

Protobuf type transit_realtime.Alert

 An alert, indicating some sort of incident in the public transit network.
 

See Also:
Serialized Form

Nested Class Summary
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
 
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter
 
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
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>
 
Field Summary
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
           
 
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders
 
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
 
Method Summary
 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)
           
 
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField
 
Methods inherited from class com.google.protobuf.GeneratedMessage
getDescriptorForType, getOneofFieldDescriptor, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension
 
Methods inherited from class com.google.protobuf.AbstractMessage
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
 
Methods inherited from class com.google.protobuf.AbstractMessageLite
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder
getExtension, getExtension, getExtensionCount, hasExtension
 
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
 
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
 

Field Detail

PARSER

public static com.google.protobuf.Parser<GtfsRealtime.Alert> PARSER

ACTIVE_PERIOD_FIELD_NUMBER

public static final int ACTIVE_PERIOD_FIELD_NUMBER
See Also:
Constant Field Values

INFORMED_ENTITY_FIELD_NUMBER

public static final int INFORMED_ENTITY_FIELD_NUMBER
See Also:
Constant Field Values

CAUSE_FIELD_NUMBER

public static final int CAUSE_FIELD_NUMBER
See Also:
Constant Field Values

EFFECT_FIELD_NUMBER

public static final int EFFECT_FIELD_NUMBER
See Also:
Constant Field Values

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
See Also:
Constant Field Values

HEADER_TEXT_FIELD_NUMBER

public static final int HEADER_TEXT_FIELD_NUMBER
See Also:
Constant Field Values

DESCRIPTION_TEXT_FIELD_NUMBER

public static final int DESCRIPTION_TEXT_FIELD_NUMBER
See Also:
Constant Field Values
Method Detail

getDefaultInstance

public static GtfsRealtime.Alert getDefaultInstance()

getDefaultInstanceForType

public GtfsRealtime.Alert getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.Alert>
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

getUnknownFields

public final com.google.protobuf.UnknownFieldSet getUnknownFields()
Specified by:
getUnknownFields in interface com.google.protobuf.MessageOrBuilder
Overrides:
getUnknownFields in class com.google.protobuf.GeneratedMessage

getDescriptor

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Specified by:
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage

getParserForType

public com.google.protobuf.Parser<GtfsRealtime.Alert> getParserForType()
Specified by:
getParserForType in interface com.google.protobuf.Message
Specified by:
getParserForType in interface com.google.protobuf.MessageLite
Overrides:
getParserForType in class com.google.protobuf.GeneratedMessage

getActivePeriodList

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.
 

Specified by:
getActivePeriodList in interface GtfsRealtime.AlertOrBuilder

getActivePeriodOrBuilderList

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.
 

Specified by:
getActivePeriodOrBuilderList in interface GtfsRealtime.AlertOrBuilder

getActivePeriodCount

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.
 

Specified by:
getActivePeriodCount in interface GtfsRealtime.AlertOrBuilder

getActivePeriod

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.
 

Specified by:
getActivePeriod in interface GtfsRealtime.AlertOrBuilder

getActivePeriodOrBuilder

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.
 

Specified by:
getActivePeriodOrBuilder in interface GtfsRealtime.AlertOrBuilder

getInformedEntityList

public List<GtfsRealtime.EntitySelector> getInformedEntityList()
repeated .transit_realtime.EntitySelector informed_entity = 5;
 Entities whose users we should notify of this alert.
 

Specified by:
getInformedEntityList in interface GtfsRealtime.AlertOrBuilder

getInformedEntityOrBuilderList

public List<? extends GtfsRealtime.EntitySelectorOrBuilder> getInformedEntityOrBuilderList()
repeated .transit_realtime.EntitySelector informed_entity = 5;
 Entities whose users we should notify of this alert.
 

Specified by:
getInformedEntityOrBuilderList in interface GtfsRealtime.AlertOrBuilder

getInformedEntityCount

public int getInformedEntityCount()
repeated .transit_realtime.EntitySelector informed_entity = 5;
 Entities whose users we should notify of this alert.
 

Specified by:
getInformedEntityCount in interface GtfsRealtime.AlertOrBuilder

getInformedEntity

public GtfsRealtime.EntitySelector getInformedEntity(int index)
repeated .transit_realtime.EntitySelector informed_entity = 5;
 Entities whose users we should notify of this alert.
 

Specified by:
getInformedEntity in interface GtfsRealtime.AlertOrBuilder

getInformedEntityOrBuilder

public GtfsRealtime.EntitySelectorOrBuilder getInformedEntityOrBuilder(int index)
repeated .transit_realtime.EntitySelector informed_entity = 5;
 Entities whose users we should notify of this alert.
 

Specified by:
getInformedEntityOrBuilder in interface GtfsRealtime.AlertOrBuilder

hasCause

public boolean hasCause()
optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE];

Specified by:
hasCause in interface GtfsRealtime.AlertOrBuilder

getCause

public GtfsRealtime.Alert.Cause getCause()
optional .transit_realtime.Alert.Cause cause = 6 [default = UNKNOWN_CAUSE];

Specified by:
getCause in interface GtfsRealtime.AlertOrBuilder

hasEffect

public boolean hasEffect()
optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT];

Specified by:
hasEffect in interface GtfsRealtime.AlertOrBuilder

getEffect

public GtfsRealtime.Alert.Effect getEffect()
optional .transit_realtime.Alert.Effect effect = 7 [default = UNKNOWN_EFFECT];

Specified by:
getEffect in interface GtfsRealtime.AlertOrBuilder

hasUrl

public boolean hasUrl()
optional .transit_realtime.TranslatedString url = 8;
 The URL which provides additional information about the alert.
 

Specified by:
hasUrl in interface GtfsRealtime.AlertOrBuilder

getUrl

public GtfsRealtime.TranslatedString getUrl()
optional .transit_realtime.TranslatedString url = 8;
 The URL which provides additional information about the alert.
 

Specified by:
getUrl in interface GtfsRealtime.AlertOrBuilder

getUrlOrBuilder

public GtfsRealtime.TranslatedStringOrBuilder getUrlOrBuilder()
optional .transit_realtime.TranslatedString url = 8;
 The URL which provides additional information about the alert.
 

Specified by:
getUrlOrBuilder in interface GtfsRealtime.AlertOrBuilder

hasHeaderText

public boolean hasHeaderText()
optional .transit_realtime.TranslatedString header_text = 10;
 Alert header. Contains a short summary of the alert text as plain-text.
 

Specified by:
hasHeaderText in interface GtfsRealtime.AlertOrBuilder

getHeaderText

public GtfsRealtime.TranslatedString getHeaderText()
optional .transit_realtime.TranslatedString header_text = 10;
 Alert header. Contains a short summary of the alert text as plain-text.
 

Specified by:
getHeaderText in interface GtfsRealtime.AlertOrBuilder

getHeaderTextOrBuilder

public GtfsRealtime.TranslatedStringOrBuilder getHeaderTextOrBuilder()
optional .transit_realtime.TranslatedString header_text = 10;
 Alert header. Contains a short summary of the alert text as plain-text.
 

Specified by:
getHeaderTextOrBuilder in interface GtfsRealtime.AlertOrBuilder

hasDescriptionText

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.
 

Specified by:
hasDescriptionText in interface GtfsRealtime.AlertOrBuilder

getDescriptionText

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.
 

Specified by:
getDescriptionText in interface GtfsRealtime.AlertOrBuilder

getDescriptionTextOrBuilder

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.
 

Specified by:
getDescriptionTextOrBuilder in interface GtfsRealtime.AlertOrBuilder

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.Alert>

writeTo

public void writeTo(com.google.protobuf.CodedOutputStream output)
             throws IOException
Specified by:
writeTo in interface com.google.protobuf.MessageLite
Overrides:
writeTo in class com.google.protobuf.AbstractMessage
Throws:
IOException

getSerializedSize

public int getSerializedSize()
Specified by:
getSerializedSize in interface com.google.protobuf.MessageLite
Overrides:
getSerializedSize in class com.google.protobuf.AbstractMessage

writeReplace

protected Object writeReplace()
                       throws ObjectStreamException
Overrides:
writeReplace in class com.google.protobuf.GeneratedMessage
Throws:
ObjectStreamException

parseFrom

public static GtfsRealtime.Alert parseFrom(com.google.protobuf.ByteString data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static GtfsRealtime.Alert parseFrom(com.google.protobuf.ByteString data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static GtfsRealtime.Alert parseFrom(byte[] data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static GtfsRealtime.Alert parseFrom(byte[] data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static GtfsRealtime.Alert parseFrom(InputStream input)
                                    throws IOException
Throws:
IOException

parseFrom

public static GtfsRealtime.Alert parseFrom(InputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
Throws:
IOException

parseDelimitedFrom

public static GtfsRealtime.Alert parseDelimitedFrom(InputStream input)
                                             throws IOException
Throws:
IOException

parseDelimitedFrom

public static GtfsRealtime.Alert parseDelimitedFrom(InputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
Throws:
IOException

parseFrom

public static GtfsRealtime.Alert parseFrom(com.google.protobuf.CodedInputStream input)
                                    throws IOException
Throws:
IOException

parseFrom

public static GtfsRealtime.Alert parseFrom(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
Throws:
IOException

newBuilder

public static GtfsRealtime.Alert.Builder newBuilder()

newBuilderForType

public GtfsRealtime.Alert.Builder newBuilderForType()
Specified by:
newBuilderForType in interface com.google.protobuf.Message
Specified by:
newBuilderForType in interface com.google.protobuf.MessageLite

newBuilder

public static GtfsRealtime.Alert.Builder newBuilder(GtfsRealtime.Alert prototype)

toBuilder

public GtfsRealtime.Alert.Builder toBuilder()
Specified by:
toBuilder in interface com.google.protobuf.Message
Specified by:
toBuilder in interface com.google.protobuf.MessageLite

newBuilderForType

protected GtfsRealtime.Alert.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
Specified by:
newBuilderForType in class com.google.protobuf.GeneratedMessage


Copyright © 2015. All Rights Reserved.