com.google.transit.realtime
Class GtfsRealtime.FeedEntity.Builder

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite.Builder<BuilderType>
      extended by com.google.protobuf.AbstractMessage.Builder<BuilderType>
          extended by com.google.protobuf.GeneratedMessage.Builder<BuilderType>
              extended by com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.FeedEntity,GtfsRealtime.FeedEntity.Builder>
                  extended by com.google.transit.realtime.GtfsRealtime.FeedEntity.Builder
All Implemented Interfaces:
com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.FeedEntity>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GtfsRealtime.FeedEntityOrBuilder, Cloneable
Enclosing class:
GtfsRealtime.FeedEntity

public static final class GtfsRealtime.FeedEntity.Builder
extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.FeedEntity,GtfsRealtime.FeedEntity.Builder>
implements GtfsRealtime.FeedEntityOrBuilder

Protobuf type transit_realtime.FeedEntity

 A definition (or update) of an entity in the transit feed.
 


Method Summary
 GtfsRealtime.FeedEntity build()
           
 GtfsRealtime.FeedEntity buildPartial()
           
 GtfsRealtime.FeedEntity.Builder clear()
           
 GtfsRealtime.FeedEntity.Builder clearAlert()
          optional .transit_realtime.Alert alert = 5;
 GtfsRealtime.FeedEntity.Builder clearId()
          required string id = 1;
 GtfsRealtime.FeedEntity.Builder clearIsDeleted()
          optional bool is_deleted = 2 [default = false];
 GtfsRealtime.FeedEntity.Builder clearTripUpdate()
          optional .transit_realtime.TripUpdate trip_update = 3;
 GtfsRealtime.FeedEntity.Builder clearVehicle()
          optional .transit_realtime.VehiclePosition vehicle = 4;
 GtfsRealtime.FeedEntity.Builder clone()
           
 GtfsRealtime.Alert getAlert()
          optional .transit_realtime.Alert alert = 5;
 GtfsRealtime.Alert.Builder getAlertBuilder()
          optional .transit_realtime.Alert alert = 5;
 GtfsRealtime.AlertOrBuilder getAlertOrBuilder()
          optional .transit_realtime.Alert alert = 5;
 GtfsRealtime.FeedEntity getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 String getId()
          required string id = 1;
 com.google.protobuf.ByteString getIdBytes()
          required string id = 1;
 boolean getIsDeleted()
          optional bool is_deleted = 2 [default = false];
 GtfsRealtime.TripUpdate getTripUpdate()
          optional .transit_realtime.TripUpdate trip_update = 3;
 GtfsRealtime.TripUpdate.Builder getTripUpdateBuilder()
          optional .transit_realtime.TripUpdate trip_update = 3;
 GtfsRealtime.TripUpdateOrBuilder getTripUpdateOrBuilder()
          optional .transit_realtime.TripUpdate trip_update = 3;
 GtfsRealtime.VehiclePosition getVehicle()
          optional .transit_realtime.VehiclePosition vehicle = 4;
 GtfsRealtime.VehiclePosition.Builder getVehicleBuilder()
          optional .transit_realtime.VehiclePosition vehicle = 4;
 GtfsRealtime.VehiclePositionOrBuilder getVehicleOrBuilder()
          optional .transit_realtime.VehiclePosition vehicle = 4;
 boolean hasAlert()
          optional .transit_realtime.Alert alert = 5;
 boolean hasId()
          required string id = 1;
 boolean hasIsDeleted()
          optional bool is_deleted = 2 [default = false];
 boolean hasTripUpdate()
          optional .transit_realtime.TripUpdate trip_update = 3;
 boolean hasVehicle()
          optional .transit_realtime.VehiclePosition vehicle = 4;
protected  com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
           
 boolean isInitialized()
           
 GtfsRealtime.FeedEntity.Builder mergeAlert(GtfsRealtime.Alert value)
          optional .transit_realtime.Alert alert = 5;
 GtfsRealtime.FeedEntity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 GtfsRealtime.FeedEntity.Builder mergeFrom(GtfsRealtime.FeedEntity other)
           
 GtfsRealtime.FeedEntity.Builder mergeFrom(com.google.protobuf.Message other)
           
 GtfsRealtime.FeedEntity.Builder mergeTripUpdate(GtfsRealtime.TripUpdate value)
          optional .transit_realtime.TripUpdate trip_update = 3;
 GtfsRealtime.FeedEntity.Builder mergeVehicle(GtfsRealtime.VehiclePosition value)
          optional .transit_realtime.VehiclePosition vehicle = 4;
 GtfsRealtime.FeedEntity.Builder setAlert(GtfsRealtime.Alert.Builder builderForValue)
          optional .transit_realtime.Alert alert = 5;
 GtfsRealtime.FeedEntity.Builder setAlert(GtfsRealtime.Alert value)
          optional .transit_realtime.Alert alert = 5;
 GtfsRealtime.FeedEntity.Builder setId(String value)
          required string id = 1;
 GtfsRealtime.FeedEntity.Builder setIdBytes(com.google.protobuf.ByteString value)
          required string id = 1;
 GtfsRealtime.FeedEntity.Builder setIsDeleted(boolean value)
          optional bool is_deleted = 2 [default = false];
 GtfsRealtime.FeedEntity.Builder setTripUpdate(GtfsRealtime.TripUpdate.Builder builderForValue)
          optional .transit_realtime.TripUpdate trip_update = 3;
 GtfsRealtime.FeedEntity.Builder setTripUpdate(GtfsRealtime.TripUpdate value)
          optional .transit_realtime.TripUpdate trip_update = 3;
 GtfsRealtime.FeedEntity.Builder setVehicle(GtfsRealtime.VehiclePosition.Builder builderForValue)
          optional .transit_realtime.VehiclePosition vehicle = 4;
 GtfsRealtime.FeedEntity.Builder setVehicle(GtfsRealtime.VehiclePosition value)
          optional .transit_realtime.VehiclePosition vehicle = 4;
 
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, addRepeatedField, clearExtension, clearField, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, parseUnknownField, setExtension, setExtension, setField, setRepeatedField
 
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
clearOneof, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getUnknownFields, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, setUnknownFields
 
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
 
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, newUninitializedMessageException
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, 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, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
 

Method Detail

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.Builder<GtfsRealtime.FeedEntity.Builder>

clear

public GtfsRealtime.FeedEntity.Builder clear()
Specified by:
clear in interface com.google.protobuf.Message.Builder
Specified by:
clear in interface com.google.protobuf.MessageLite.Builder
Overrides:
clear in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.FeedEntity,GtfsRealtime.FeedEntity.Builder>

clone

public GtfsRealtime.FeedEntity.Builder clone()
Specified by:
clone in interface com.google.protobuf.Message.Builder
Specified by:
clone in interface com.google.protobuf.MessageLite.Builder
Overrides:
clone in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.FeedEntity,GtfsRealtime.FeedEntity.Builder>

getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.Message.Builder
Specified by:
getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
Overrides:
getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GtfsRealtime.FeedEntity.Builder>

getDefaultInstanceForType

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

build

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

buildPartial

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

mergeFrom

public GtfsRealtime.FeedEntity.Builder mergeFrom(com.google.protobuf.Message other)
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.FeedEntity.Builder>

mergeFrom

public GtfsRealtime.FeedEntity.Builder mergeFrom(GtfsRealtime.FeedEntity other)

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.FeedEntity,GtfsRealtime.FeedEntity.Builder>

mergeFrom

public GtfsRealtime.FeedEntity.Builder mergeFrom(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Specified by:
mergeFrom in interface com.google.protobuf.MessageLite.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.FeedEntity.Builder>
Throws:
IOException

hasId

public boolean hasId()
required string id = 1;
 The ids are used only to provide incrementality support. The id should be
 unique within a FeedMessage. Consequent FeedMessages may contain
 FeedEntities with the same id. In case of a DIFFERENTIAL update the new
 FeedEntity with some id will replace the old FeedEntity with the same id
 (or delete it - see is_deleted below).
 The actual GTFS entities (e.g. stations, routes, trips) referenced by the
 feed must be specified by explicit selectors (see EntitySelector below for
 more info).
 

Specified by:
hasId in interface GtfsRealtime.FeedEntityOrBuilder

getId

public String getId()
required string id = 1;
 The ids are used only to provide incrementality support. The id should be
 unique within a FeedMessage. Consequent FeedMessages may contain
 FeedEntities with the same id. In case of a DIFFERENTIAL update the new
 FeedEntity with some id will replace the old FeedEntity with the same id
 (or delete it - see is_deleted below).
 The actual GTFS entities (e.g. stations, routes, trips) referenced by the
 feed must be specified by explicit selectors (see EntitySelector below for
 more info).
 

Specified by:
getId in interface GtfsRealtime.FeedEntityOrBuilder

getIdBytes

public com.google.protobuf.ByteString getIdBytes()
required string id = 1;
 The ids are used only to provide incrementality support. The id should be
 unique within a FeedMessage. Consequent FeedMessages may contain
 FeedEntities with the same id. In case of a DIFFERENTIAL update the new
 FeedEntity with some id will replace the old FeedEntity with the same id
 (or delete it - see is_deleted below).
 The actual GTFS entities (e.g. stations, routes, trips) referenced by the
 feed must be specified by explicit selectors (see EntitySelector below for
 more info).
 

Specified by:
getIdBytes in interface GtfsRealtime.FeedEntityOrBuilder

setId

public GtfsRealtime.FeedEntity.Builder setId(String value)
required string id = 1;
 The ids are used only to provide incrementality support. The id should be
 unique within a FeedMessage. Consequent FeedMessages may contain
 FeedEntities with the same id. In case of a DIFFERENTIAL update the new
 FeedEntity with some id will replace the old FeedEntity with the same id
 (or delete it - see is_deleted below).
 The actual GTFS entities (e.g. stations, routes, trips) referenced by the
 feed must be specified by explicit selectors (see EntitySelector below for
 more info).
 


clearId

public GtfsRealtime.FeedEntity.Builder clearId()
required string id = 1;
 The ids are used only to provide incrementality support. The id should be
 unique within a FeedMessage. Consequent FeedMessages may contain
 FeedEntities with the same id. In case of a DIFFERENTIAL update the new
 FeedEntity with some id will replace the old FeedEntity with the same id
 (or delete it - see is_deleted below).
 The actual GTFS entities (e.g. stations, routes, trips) referenced by the
 feed must be specified by explicit selectors (see EntitySelector below for
 more info).
 


setIdBytes

public GtfsRealtime.FeedEntity.Builder setIdBytes(com.google.protobuf.ByteString value)
required string id = 1;
 The ids are used only to provide incrementality support. The id should be
 unique within a FeedMessage. Consequent FeedMessages may contain
 FeedEntities with the same id. In case of a DIFFERENTIAL update the new
 FeedEntity with some id will replace the old FeedEntity with the same id
 (or delete it - see is_deleted below).
 The actual GTFS entities (e.g. stations, routes, trips) referenced by the
 feed must be specified by explicit selectors (see EntitySelector below for
 more info).
 


hasIsDeleted

public boolean hasIsDeleted()
optional bool is_deleted = 2 [default = false];
 Whether this entity is to be deleted. Relevant only for incremental
 fetches.
 

Specified by:
hasIsDeleted in interface GtfsRealtime.FeedEntityOrBuilder

getIsDeleted

public boolean getIsDeleted()
optional bool is_deleted = 2 [default = false];
 Whether this entity is to be deleted. Relevant only for incremental
 fetches.
 

Specified by:
getIsDeleted in interface GtfsRealtime.FeedEntityOrBuilder

setIsDeleted

public GtfsRealtime.FeedEntity.Builder setIsDeleted(boolean value)
optional bool is_deleted = 2 [default = false];
 Whether this entity is to be deleted. Relevant only for incremental
 fetches.
 


clearIsDeleted

public GtfsRealtime.FeedEntity.Builder clearIsDeleted()
optional bool is_deleted = 2 [default = false];
 Whether this entity is to be deleted. Relevant only for incremental
 fetches.
 


hasTripUpdate

public boolean hasTripUpdate()
optional .transit_realtime.TripUpdate trip_update = 3;
 Data about the entity itself. Exactly one of the following fields must be
 present (unless the entity is being deleted).
 

Specified by:
hasTripUpdate in interface GtfsRealtime.FeedEntityOrBuilder

getTripUpdate

public GtfsRealtime.TripUpdate getTripUpdate()
optional .transit_realtime.TripUpdate trip_update = 3;
 Data about the entity itself. Exactly one of the following fields must be
 present (unless the entity is being deleted).
 

Specified by:
getTripUpdate in interface GtfsRealtime.FeedEntityOrBuilder

setTripUpdate

public GtfsRealtime.FeedEntity.Builder setTripUpdate(GtfsRealtime.TripUpdate value)
optional .transit_realtime.TripUpdate trip_update = 3;
 Data about the entity itself. Exactly one of the following fields must be
 present (unless the entity is being deleted).
 


setTripUpdate

public GtfsRealtime.FeedEntity.Builder setTripUpdate(GtfsRealtime.TripUpdate.Builder builderForValue)
optional .transit_realtime.TripUpdate trip_update = 3;
 Data about the entity itself. Exactly one of the following fields must be
 present (unless the entity is being deleted).
 


mergeTripUpdate

public GtfsRealtime.FeedEntity.Builder mergeTripUpdate(GtfsRealtime.TripUpdate value)
optional .transit_realtime.TripUpdate trip_update = 3;
 Data about the entity itself. Exactly one of the following fields must be
 present (unless the entity is being deleted).
 


clearTripUpdate

public GtfsRealtime.FeedEntity.Builder clearTripUpdate()
optional .transit_realtime.TripUpdate trip_update = 3;
 Data about the entity itself. Exactly one of the following fields must be
 present (unless the entity is being deleted).
 


getTripUpdateBuilder

public GtfsRealtime.TripUpdate.Builder getTripUpdateBuilder()
optional .transit_realtime.TripUpdate trip_update = 3;
 Data about the entity itself. Exactly one of the following fields must be
 present (unless the entity is being deleted).
 


getTripUpdateOrBuilder

public GtfsRealtime.TripUpdateOrBuilder getTripUpdateOrBuilder()
optional .transit_realtime.TripUpdate trip_update = 3;
 Data about the entity itself. Exactly one of the following fields must be
 present (unless the entity is being deleted).
 

Specified by:
getTripUpdateOrBuilder in interface GtfsRealtime.FeedEntityOrBuilder

hasVehicle

public boolean hasVehicle()
optional .transit_realtime.VehiclePosition vehicle = 4;

Specified by:
hasVehicle in interface GtfsRealtime.FeedEntityOrBuilder

getVehicle

public GtfsRealtime.VehiclePosition getVehicle()
optional .transit_realtime.VehiclePosition vehicle = 4;

Specified by:
getVehicle in interface GtfsRealtime.FeedEntityOrBuilder

setVehicle

public GtfsRealtime.FeedEntity.Builder setVehicle(GtfsRealtime.VehiclePosition value)
optional .transit_realtime.VehiclePosition vehicle = 4;


setVehicle

public GtfsRealtime.FeedEntity.Builder setVehicle(GtfsRealtime.VehiclePosition.Builder builderForValue)
optional .transit_realtime.VehiclePosition vehicle = 4;


mergeVehicle

public GtfsRealtime.FeedEntity.Builder mergeVehicle(GtfsRealtime.VehiclePosition value)
optional .transit_realtime.VehiclePosition vehicle = 4;


clearVehicle

public GtfsRealtime.FeedEntity.Builder clearVehicle()
optional .transit_realtime.VehiclePosition vehicle = 4;


getVehicleBuilder

public GtfsRealtime.VehiclePosition.Builder getVehicleBuilder()
optional .transit_realtime.VehiclePosition vehicle = 4;


getVehicleOrBuilder

public GtfsRealtime.VehiclePositionOrBuilder getVehicleOrBuilder()
optional .transit_realtime.VehiclePosition vehicle = 4;

Specified by:
getVehicleOrBuilder in interface GtfsRealtime.FeedEntityOrBuilder

hasAlert

public boolean hasAlert()
optional .transit_realtime.Alert alert = 5;

Specified by:
hasAlert in interface GtfsRealtime.FeedEntityOrBuilder

getAlert

public GtfsRealtime.Alert getAlert()
optional .transit_realtime.Alert alert = 5;

Specified by:
getAlert in interface GtfsRealtime.FeedEntityOrBuilder

setAlert

public GtfsRealtime.FeedEntity.Builder setAlert(GtfsRealtime.Alert value)
optional .transit_realtime.Alert alert = 5;


setAlert

public GtfsRealtime.FeedEntity.Builder setAlert(GtfsRealtime.Alert.Builder builderForValue)
optional .transit_realtime.Alert alert = 5;


mergeAlert

public GtfsRealtime.FeedEntity.Builder mergeAlert(GtfsRealtime.Alert value)
optional .transit_realtime.Alert alert = 5;


clearAlert

public GtfsRealtime.FeedEntity.Builder clearAlert()
optional .transit_realtime.Alert alert = 5;


getAlertBuilder

public GtfsRealtime.Alert.Builder getAlertBuilder()
optional .transit_realtime.Alert alert = 5;


getAlertOrBuilder

public GtfsRealtime.AlertOrBuilder getAlertOrBuilder()
optional .transit_realtime.Alert alert = 5;

Specified by:
getAlertOrBuilder in interface GtfsRealtime.FeedEntityOrBuilder


Copyright © 2015. All Rights Reserved.