api

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	FeedConfig_SchedulingPolicy_name = map[int32]string{
		0: "DEFAULT",
		1: "PERIODIC",
		2: "DAILY",
		3: "NONE",
	}
	FeedConfig_SchedulingPolicy_value = map[string]int32{
		"DEFAULT":  0,
		"PERIODIC": 1,
		"DAILY":    2,
		"NONE":     3,
	}
)

Enum value maps for FeedConfig_SchedulingPolicy.

View Source
var (
	GtfsRealtimeOptions_Extension_name = map[int32]string{
		0: "NO_EXTENSION",
		1: "NYCT_TRIPS",
		2: "NYCT_ALERTS",
		3: "NYCT_BUS_TRIPS",
	}
	GtfsRealtimeOptions_Extension_value = map[string]int32{
		"NO_EXTENSION":   0,
		"NYCT_TRIPS":     1,
		"NYCT_ALERTS":    2,
		"NYCT_BUS_TRIPS": 3,
	}
)

Enum value maps for GtfsRealtimeOptions_Extension.

View Source
var (
	GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy_name = map[int32]string{
		0: "NO_DEDUPLICATION",
		1: "DEDUPLICATE_IN_STATION",
		2: "DEDUPLICATE_IN_COMPLEX",
	}
	GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy_value = map[string]int32{
		"NO_DEDUPLICATION":       0,
		"DEDUPLICATE_IN_STATION": 1,
		"DEDUPLICATE_IN_COMPLEX": 2,
	}
)

Enum value maps for GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy.

View Source
var (
	ServiceMapConfig_Source_name = map[int32]string{
		0: "STATIC",
		1: "REALTIME",
	}
	ServiceMapConfig_Source_value = map[string]int32{
		"STATIC":   0,
		"REALTIME": 1,
	}
)

Enum value maps for ServiceMapConfig_Source.

View Source
var (
	FeedUpdate_Status_name = map[int32]string{
		0:  "UNKNOWN",
		1:  "RUNNING",
		2:  "UPDATED",
		3:  "SKIPPED",
		4:  "FAILED_DOWNLOAD_ERROR",
		5:  "FAILED_EMPTY_FEED",
		6:  "FAILED_INVALID_FEED_CONFIG",
		8:  "FAILED_PARSE_ERROR",
		9:  "FAILED_UPDATE_ERROR",
		10: "FAILED_INTERNAL_ERROR",
		11: "FAILED_UNKNOWN_FEED_TYPE",
	}
	FeedUpdate_Status_value = map[string]int32{
		"UNKNOWN":                    0,
		"RUNNING":                    1,
		"UPDATED":                    2,
		"SKIPPED":                    3,
		"FAILED_DOWNLOAD_ERROR":      4,
		"FAILED_EMPTY_FEED":          5,
		"FAILED_INVALID_FEED_CONFIG": 6,
		"FAILED_PARSE_ERROR":         8,
		"FAILED_UPDATE_ERROR":        9,
		"FAILED_INTERNAL_ERROR":      10,
		"FAILED_UNKNOWN_FEED_TYPE":   11,
	}
)

Enum value maps for FeedUpdate_Status.

View Source
var (
	ListStopsRequest_SearchMode_name = map[int32]string{
		0: "ID",
		1: "DISTANCE",
	}
	ListStopsRequest_SearchMode_value = map[string]int32{
		"ID":       0,
		"DISTANCE": 1,
	}
)

Enum value maps for ListStopsRequest_SearchMode.

View Source
var (
	ListVehiclesRequest_SearchMode_name = map[int32]string{
		0: "ID",
		1: "DISTANCE",
	}
	ListVehiclesRequest_SearchMode_value = map[string]int32{
		"ID":       0,
		"DISTANCE": 1,
	}
)

Enum value maps for ListVehiclesRequest_SearchMode.

View Source
var (
	System_Status_name = map[int32]string{
		0: "UNKNOWN",
		1: "INSTALLING",
		2: "ACTIVE",
		3: "INSTALL_FAILED",
		4: "UPDATING",
		5: "UPDATE_FAILED",
		6: "DELETING",
	}
	System_Status_value = map[string]int32{
		"UNKNOWN":        0,
		"INSTALLING":     1,
		"ACTIVE":         2,
		"INSTALL_FAILED": 3,
		"UPDATING":       4,
		"UPDATE_FAILED":  5,
		"DELETING":       6,
	}
)

Enum value maps for System_Status.

View Source
var (
	Stop_Type_name = map[int32]string{
		0: "STOP",
		1: "STATION",
		2: "ENTRANCE_OR_EXIT",
		3: "GENERIC_NODE",
		4: "BOARDING_AREA",
	}
	Stop_Type_value = map[string]int32{
		"STOP":             0,
		"STATION":          1,
		"ENTRANCE_OR_EXIT": 2,
		"GENERIC_NODE":     3,
		"BOARDING_AREA":    4,
	}
)

Enum value maps for Stop_Type.

View Source
var (
	Vehicle_CurrentStatus_name = map[int32]string{
		0: "INCOMING_AT",
		1: "STOPPED_AT",
		2: "IN_TRANSIT_TO",
	}
	Vehicle_CurrentStatus_value = map[string]int32{
		"INCOMING_AT":   0,
		"STOPPED_AT":    1,
		"IN_TRANSIT_TO": 2,
	}
)

Enum value maps for Vehicle_CurrentStatus.

View Source
var (
	Vehicle_CongestionLevel_name = map[int32]string{
		0: "UNKNOWN_CONGESTION_LEVEL",
		1: "RUNNING_SMOOTHLY",
		2: "STOP_AND_GO",
		3: "CONGESTION",
		4: "SEVERE_CONGESTION",
	}
	Vehicle_CongestionLevel_value = map[string]int32{
		"UNKNOWN_CONGESTION_LEVEL": 0,
		"RUNNING_SMOOTHLY":         1,
		"STOP_AND_GO":              2,
		"CONGESTION":               3,
		"SEVERE_CONGESTION":        4,
	}
)

Enum value maps for Vehicle_CongestionLevel.

View Source
var (
	Vehicle_OccupancyStatus_name = map[int32]string{
		0: "EMPTY",
		1: "MANY_SEATS_AVAILABLE",
		2: "FEW_SEATS_AVAILABLE",
		3: "STANDING_ROOM_ONLY",
		4: "CRUSHED_STANDING_ROOM_ONLY",
		5: "FULL",
		6: "NOT_ACCEPTING_PASSENGERS",
	}
	Vehicle_OccupancyStatus_value = map[string]int32{
		"EMPTY":                      0,
		"MANY_SEATS_AVAILABLE":       1,
		"FEW_SEATS_AVAILABLE":        2,
		"STANDING_ROOM_ONLY":         3,
		"CRUSHED_STANDING_ROOM_ONLY": 4,
		"FULL":                       5,
		"NOT_ACCEPTING_PASSENGERS":   6,
	}
)

Enum value maps for Vehicle_OccupancyStatus.

View Source
var (
	Route_ContinuousPolicy_name = map[int32]string{
		0: "ALLOWED",
		1: "NOT_ALLOWED",
		2: "PHONE_AGENCY",
		3: "COORDINATE_WITH_DRIVER",
	}
	Route_ContinuousPolicy_value = map[string]int32{
		"ALLOWED":                0,
		"NOT_ALLOWED":            1,
		"PHONE_AGENCY":           2,
		"COORDINATE_WITH_DRIVER": 3,
	}
)

Enum value maps for Route_ContinuousPolicy.

View Source
var (
	Route_Type_name = map[int32]string{
		0:   "LIGHT_RAIL",
		1:   "SUBWAY",
		2:   "RAIL",
		3:   "BUS",
		4:   "FERRY",
		5:   "CABLE_TRAM",
		6:   "AERIAL_LIFT",
		7:   "FUNICULAR",
		11:  "TROLLEY_BUS",
		12:  "MONORAIL",
		100: "UNKNOWN",
	}
	Route_Type_value = map[string]int32{
		"LIGHT_RAIL":  0,
		"SUBWAY":      1,
		"RAIL":        2,
		"BUS":         3,
		"FERRY":       4,
		"CABLE_TRAM":  5,
		"AERIAL_LIFT": 6,
		"FUNICULAR":   7,
		"TROLLEY_BUS": 11,
		"MONORAIL":    12,
		"UNKNOWN":     100,
	}
)

Enum value maps for Route_Type.

View Source
var (
	Alert_Cause_name = map[int32]string{
		0:  "UNKNOWN_CAUSE",
		2:  "OTHER_CAUSE",
		3:  "TECHNICAL_PROBLEM",
		4:  "STRIKE",
		5:  "DEMONSTRATION",
		6:  "ACCIDENT",
		7:  "HOLIDAY",
		8:  "WEATHER",
		9:  "MAINTENANCE",
		10: "CONSTRUCTION",
		11: "POLICE_ACTIVITY",
		12: "MEDICAL_EMERGENCY",
	}
	Alert_Cause_value = map[string]int32{
		"UNKNOWN_CAUSE":     0,
		"OTHER_CAUSE":       2,
		"TECHNICAL_PROBLEM": 3,
		"STRIKE":            4,
		"DEMONSTRATION":     5,
		"ACCIDENT":          6,
		"HOLIDAY":           7,
		"WEATHER":           8,
		"MAINTENANCE":       9,
		"CONSTRUCTION":      10,
		"POLICE_ACTIVITY":   11,
		"MEDICAL_EMERGENCY": 12,
	}
)

Enum value maps for Alert_Cause.

View Source
var (
	Alert_Effect_name = map[int32]string{
		0:  "UNKNOWN_EFFECT",
		1:  "NO_SERVICE",
		2:  "REDUCED_SERVICE",
		3:  "SIGNIFICANT_DELAYS",
		4:  "DETOUR",
		5:  "ADDITIONAL_SERVICE",
		6:  "MODIFIED_SERVICE",
		7:  "OTHER_EFFECT",
		9:  "STOP_MOVED",
		10: "NO_EFFECT",
		11: "ACCESSIBILITY_ISSUE",
	}
	Alert_Effect_value = map[string]int32{
		"UNKNOWN_EFFECT":      0,
		"NO_SERVICE":          1,
		"REDUCED_SERVICE":     2,
		"SIGNIFICANT_DELAYS":  3,
		"DETOUR":              4,
		"ADDITIONAL_SERVICE":  5,
		"MODIFIED_SERVICE":    6,
		"OTHER_EFFECT":        7,
		"STOP_MOVED":          9,
		"NO_EFFECT":           10,
		"ACCESSIBILITY_ISSUE": 11,
	}
)

Enum value maps for Alert_Effect.

View Source
var (
	Transfer_Type_name = map[int32]string{
		0: "RECOMMENDED",
		1: "TIMED",
		2: "REQUIRES_TIME",
		3: "NO_POSSIBLE",
	}
	Transfer_Type_value = map[string]int32{
		"RECOMMENDED":   0,
		"TIMED":         1,
		"REQUIRES_TIME": 2,
		"NO_POSSIBLE":   3,
	}
)

Enum value maps for Transfer_Type.

View Source
var Admin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Admin",
	HandlerType: (*AdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSystemConfig",
			Handler:    _Admin_GetSystemConfig_Handler,
		},
		{
			MethodName: "InstallOrUpdateSystem",
			Handler:    _Admin_InstallOrUpdateSystem_Handler,
		},
		{
			MethodName: "DeleteSystem",
			Handler:    _Admin_DeleteSystem_Handler,
		},
		{
			MethodName: "UpdateFeed",
			Handler:    _Admin_UpdateFeed_Handler,
		},
		{
			MethodName: "GetSchedulerStatus",
			Handler:    _Admin_GetSchedulerStatus_Handler,
		},
		{
			MethodName: "ResetScheduler",
			Handler:    _Admin_ResetScheduler_Handler,
		},
		{
			MethodName: "GetLogLevel",
			Handler:    _Admin_GetLogLevel_Handler,
		},
		{
			MethodName: "SetLogLevel",
			Handler:    _Admin_SetLogLevel_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/admin.proto",
}

Admin_ServiceDesc is the grpc.ServiceDesc for Admin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_admin_proto protoreflect.FileDescriptor
View Source
var File_api_public_proto protoreflect.FileDescriptor
View Source
var Public_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Public",
	HandlerType: (*PublicServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Entrypoint",
			Handler:    _Public_Entrypoint_Handler,
		},
		{
			MethodName: "ListSystems",
			Handler:    _Public_ListSystems_Handler,
		},
		{
			MethodName: "GetSystem",
			Handler:    _Public_GetSystem_Handler,
		},
		{
			MethodName: "ListAgencies",
			Handler:    _Public_ListAgencies_Handler,
		},
		{
			MethodName: "GetAgency",
			Handler:    _Public_GetAgency_Handler,
		},
		{
			MethodName: "ListStops",
			Handler:    _Public_ListStops_Handler,
		},
		{
			MethodName: "GetStop",
			Handler:    _Public_GetStop_Handler,
		},
		{
			MethodName: "ListRoutes",
			Handler:    _Public_ListRoutes_Handler,
		},
		{
			MethodName: "GetRoute",
			Handler:    _Public_GetRoute_Handler,
		},
		{
			MethodName: "ListTrips",
			Handler:    _Public_ListTrips_Handler,
		},
		{
			MethodName: "GetTrip",
			Handler:    _Public_GetTrip_Handler,
		},
		{
			MethodName: "ListAlerts",
			Handler:    _Public_ListAlerts_Handler,
		},
		{
			MethodName: "GetAlert",
			Handler:    _Public_GetAlert_Handler,
		},
		{
			MethodName: "ListTransfers",
			Handler:    _Public_ListTransfers_Handler,
		},
		{
			MethodName: "ListFeeds",
			Handler:    _Public_ListFeeds_Handler,
		},
		{
			MethodName: "GetFeed",
			Handler:    _Public_GetFeed_Handler,
		},
		{
			MethodName: "ListVehicles",
			Handler:    _Public_ListVehicles_Handler,
		},
		{
			MethodName: "GetVehicle",
			Handler:    _Public_GetVehicle_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/public.proto",
}

Public_ServiceDesc is the grpc.ServiceDesc for Public service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAdminHandler

func RegisterAdminHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAdminHandler registers the http handlers for service Admin to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAdminHandlerClient

func RegisterAdminHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AdminClient) error

RegisterAdminHandlerClient registers the http handlers for service Admin to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AdminClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AdminClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AdminClient" to call the correct interceptors.

func RegisterAdminHandlerFromEndpoint

func RegisterAdminHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAdminHandlerFromEndpoint is same as RegisterAdminHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAdminHandlerServer

func RegisterAdminHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AdminServer) error

RegisterAdminHandlerServer registers the http handlers for service Admin to "mux". UnaryRPC :call AdminServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAdminHandlerFromEndpoint instead.

func RegisterAdminServer

func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer)

func RegisterPublicHandler

func RegisterPublicHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterPublicHandler registers the http handlers for service Public to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterPublicHandlerClient

func RegisterPublicHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PublicClient) error

RegisterPublicHandlerClient registers the http handlers for service Public to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PublicClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PublicClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PublicClient" to call the correct interceptors.

func RegisterPublicHandlerFromEndpoint

func RegisterPublicHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterPublicHandlerFromEndpoint is same as RegisterPublicHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterPublicHandlerServer

func RegisterPublicHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PublicServer) error

RegisterPublicHandlerServer registers the http handlers for service Public to "mux". UnaryRPC :call PublicServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPublicHandlerFromEndpoint instead.

func RegisterPublicServer

func RegisterPublicServer(s grpc.ServiceRegistrar, srv PublicServer)

Types

type AdminClient

type AdminClient interface {
	// Get the config for a system
	//
	// `GET /systems/<system_id>/config`
	GetSystemConfig(ctx context.Context, in *GetSystemConfigRequest, opts ...grpc.CallOption) (*SystemConfig, error)
	// Install or update a system
	//
	// `PUT /systems/<system_id>`
	//
	// Installs or updates the system based on the configuration provided in the
	// request payload.
	// If the system does not exist an install is performed; otherwise the system is updated.
	//
	// This is an asynchronous operation.
	// The system configuration is validated before the request finishes
	// but database and feed updates are performed asynchronously. The status of the operation can
	// be determined by polling the GetSystem method and inspecting the status field.
	InstallOrUpdateSystem(ctx context.Context, in *InstallOrUpdateSystemRequest, opts ...grpc.CallOption) (*InstallOrUpdateSystemReply, error)
	// Delete a system
	//
	// `DELETE /systems/<system_id>`
	//
	// Deletes the specified system.
	DeleteSystem(ctx context.Context, in *DeleteSystemRequest, opts ...grpc.CallOption) (*DeleteSystemReply, error)
	// Update a feed
	//
	// `POST /systems/<system_id>/feeds/<feed_id>`
	//
	// Triggers a feed update for the specified feed.
	UpdateFeed(ctx context.Context, in *UpdateFeedRequest, opts ...grpc.CallOption) (*UpdateFeedReply, error)
	// Get scheduler status
	//
	// `GET /scheduler`
	//
	// Gets the status of the scheduler.
	GetSchedulerStatus(ctx context.Context, in *GetSchedulerStatusRequest, opts ...grpc.CallOption) (*GetSchedulerStatusReply, error)
	// Reset scheduler
	//
	// `POST /scheduler`
	//
	// Performs a full restart of the scheduler, with all scheduler
	//
	//	configurations retrieved fresh from the database.
	//
	// In general this endpoint should never be needed;
	//
	//	 Transiter automatically restarts the scheduler when needed.
	//	The main usecase is when the Postgres configuration is manually
	//	 updated and the scheduler needs to see the update.
	ResetScheduler(ctx context.Context, in *ResetSchedulerRequest, opts ...grpc.CallOption) (*ResetSchedulerReply, error)
	// Get the current log level.
	//
	// `GET /loglevel`
	GetLogLevel(ctx context.Context, in *GetLogLevelRequest, opts ...grpc.CallOption) (*GetLogLevelReply, error)
	// Set the log level.
	//
	// `PUT /loglevel`
	SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*SetLogLevelReply, error)
}

AdminClient is the client API for Admin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAdminClient

func NewAdminClient(cc grpc.ClientConnInterface) AdminClient

type AdminServer

type AdminServer interface {
	// Get the config for a system
	//
	// `GET /systems/<system_id>/config`
	GetSystemConfig(context.Context, *GetSystemConfigRequest) (*SystemConfig, error)
	// Install or update a system
	//
	// `PUT /systems/<system_id>`
	//
	// Installs or updates the system based on the configuration provided in the
	// request payload.
	// If the system does not exist an install is performed; otherwise the system is updated.
	//
	// This is an asynchronous operation.
	// The system configuration is validated before the request finishes
	// but database and feed updates are performed asynchronously. The status of the operation can
	// be determined by polling the GetSystem method and inspecting the status field.
	InstallOrUpdateSystem(context.Context, *InstallOrUpdateSystemRequest) (*InstallOrUpdateSystemReply, error)
	// Delete a system
	//
	// `DELETE /systems/<system_id>`
	//
	// Deletes the specified system.
	DeleteSystem(context.Context, *DeleteSystemRequest) (*DeleteSystemReply, error)
	// Update a feed
	//
	// `POST /systems/<system_id>/feeds/<feed_id>`
	//
	// Triggers a feed update for the specified feed.
	UpdateFeed(context.Context, *UpdateFeedRequest) (*UpdateFeedReply, error)
	// Get scheduler status
	//
	// `GET /scheduler`
	//
	// Gets the status of the scheduler.
	GetSchedulerStatus(context.Context, *GetSchedulerStatusRequest) (*GetSchedulerStatusReply, error)
	// Reset scheduler
	//
	// `POST /scheduler`
	//
	// Performs a full restart of the scheduler, with all scheduler
	//
	//	configurations retrieved fresh from the database.
	//
	// In general this endpoint should never be needed;
	//
	//	 Transiter automatically restarts the scheduler when needed.
	//	The main usecase is when the Postgres configuration is manually
	//	 updated and the scheduler needs to see the update.
	ResetScheduler(context.Context, *ResetSchedulerRequest) (*ResetSchedulerReply, error)
	// Get the current log level.
	//
	// `GET /loglevel`
	GetLogLevel(context.Context, *GetLogLevelRequest) (*GetLogLevelReply, error)
	// Set the log level.
	//
	// `PUT /loglevel`
	SetLogLevel(context.Context, *SetLogLevelRequest) (*SetLogLevelReply, error)
}

AdminServer is the server API for Admin service. All implementations should embed UnimplementedAdminServer for forward compatibility

type Agency

type Agency struct {

	// ID of the agency. This is the `agency_id` column in `agency.txt`.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Generic metadata about the agency resource.
	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// System corresponding to this agency.
	// This is the parent resource in Transiter's resource hierarchy.
	System *System_Reference `protobuf:"bytes,3,opt,name=system,proto3" json:"system,omitempty"`
	// Name of the agency. This is the `agency_name` column in `agency.txt`.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// URL of the agency. This is the `agency_url` column in `agency.txt`.
	Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
	// Timezone of the agency. This is the `agency_timezone` column in `agency.txt`.
	Timezone string `protobuf:"bytes,6,opt,name=timezone,proto3" json:"timezone,omitempty"`
	// Language of the agency. This is the `agency_lang` column in `agency.txt`.
	Language *string `protobuf:"bytes,7,opt,name=language,proto3,oneof" json:"language,omitempty"`
	// Phone number of the agency. This is the `agency_phone` column in `agency.txt`.
	Phone *string `protobuf:"bytes,8,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
	// URL where tickets for the agency's services ban be bought.
	// This is the `agency_fare_url` column in `agency.txt`.
	FareUrl *string `protobuf:"bytes,9,opt,name=fare_url,json=fareUrl,proto3,oneof" json:"fare_url,omitempty"`
	// Email address of the agency. This is the `agency_email` column in `agency.txt`.
	Email  *string            `protobuf:"bytes,10,opt,name=email,proto3,oneof" json:"email,omitempty"`
	Routes []*Route_Reference `protobuf:"bytes,11,rep,name=routes,proto3" json:"routes,omitempty"`
	// List of active alerts for the agency.
	//
	// These are determined using the `informed_entity` field in
	// the [GTFS realtime alerts
	// message](https://developers.google.com/transit/gtfs-realtime/reference#message-alert).
	Alerts []*Alert_Reference `protobuf:"bytes,12,rep,name=alerts,proto3" json:"alerts,omitempty"`
	// contains filtered or unexported fields
}

The Agency resource.

This resource corresponds to the [agency type in the GTFS static specification](https://developers.google.com/transit/gtfs/reference#agencytxt). Most of the fields in the resource come directly from the `agency.txt` table. Transiter adds some additional related fields (alerts).

func (*Agency) Descriptor deprecated

func (*Agency) Descriptor() ([]byte, []int)

Deprecated: Use Agency.ProtoReflect.Descriptor instead.

func (*Agency) GetAlerts

func (x *Agency) GetAlerts() []*Alert_Reference

func (*Agency) GetEmail

func (x *Agency) GetEmail() string

func (*Agency) GetFareUrl

func (x *Agency) GetFareUrl() string

func (*Agency) GetId

func (x *Agency) GetId() string

func (*Agency) GetLanguage

func (x *Agency) GetLanguage() string

func (*Agency) GetName

func (x *Agency) GetName() string

func (*Agency) GetPhone

func (x *Agency) GetPhone() string

func (*Agency) GetResource

func (x *Agency) GetResource() *Resource

func (*Agency) GetRoutes

func (x *Agency) GetRoutes() []*Route_Reference

func (*Agency) GetSystem

func (x *Agency) GetSystem() *System_Reference

func (*Agency) GetTimezone

func (x *Agency) GetTimezone() string

func (*Agency) GetUrl

func (x *Agency) GetUrl() string

func (*Agency) ProtoMessage

func (*Agency) ProtoMessage()

func (*Agency) ProtoReflect

func (x *Agency) ProtoReflect() protoreflect.Message

func (*Agency) Reset

func (x *Agency) Reset()

func (*Agency) String

func (x *Agency) String() string

type Agency_Reference

type Agency_Reference struct {
	Id       string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Resource *Resource         `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	System   *System_Reference `protobuf:"bytes,3,opt,name=system,proto3" json:"system,omitempty"`
	Name     string            `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Reference is the reference type for the agency resource.

func (*Agency_Reference) Descriptor deprecated

func (*Agency_Reference) Descriptor() ([]byte, []int)

Deprecated: Use Agency_Reference.ProtoReflect.Descriptor instead.

func (*Agency_Reference) GetId

func (x *Agency_Reference) GetId() string

func (*Agency_Reference) GetName

func (x *Agency_Reference) GetName() string

func (*Agency_Reference) GetResource

func (x *Agency_Reference) GetResource() *Resource

func (*Agency_Reference) GetSystem

func (x *Agency_Reference) GetSystem() *System_Reference

func (*Agency_Reference) ProtoMessage

func (*Agency_Reference) ProtoMessage()

func (*Agency_Reference) ProtoReflect

func (x *Agency_Reference) ProtoReflect() protoreflect.Message

func (*Agency_Reference) Reset

func (x *Agency_Reference) Reset()

func (*Agency_Reference) String

func (x *Agency_Reference) String() string

type Alert

type Alert struct {

	// ID of the alert. This corresponds to the [ID field in the feed entity
	// message](https://developers.google.com/transit/gtfs-realtime/reference#message-feedentity)
	// corresponding to the alert.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Generic metadata about the alert resource.
	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// System corresponding to this alert.
	// This is the parent resource in Transiter's resource hierarchy.
	System *System_Reference `protobuf:"bytes,3,opt,name=system,proto3" json:"system,omitempty"`
	// Cause of the alert. This corresponds to the `cause` field in the realtime alert message.
	Cause Alert_Cause `protobuf:"varint,4,opt,name=cause,proto3,enum=Alert_Cause" json:"cause,omitempty"`
	// Effect of the alert. This corresponds to the `effect` field in the realtime alert message.
	Effect Alert_Effect `protobuf:"varint,5,opt,name=effect,proto3,enum=Alert_Effect" json:"effect,omitempty"`
	// The current active period, if the alert is currently active.
	// If the alert is not active this is empty.
	CurrentActivePeriod *Alert_ActivePeriod `` /* 126-byte string literal not displayed */
	// All active periods for this alert.
	// Transiter guarantees that these active periods have no overlap.
	AllActivePeriods []*Alert_ActivePeriod `protobuf:"bytes,7,rep,name=all_active_periods,json=allActivePeriods,proto3" json:"all_active_periods,omitempty"`
	// Header of the alert, in zero or more languages.
	// This corresponds to the `header_text` field in the realtime alert message.
	Header []*Alert_Text `protobuf:"bytes,8,rep,name=header,proto3" json:"header,omitempty"`
	// Description of the alert, in zero or more languages.
	// This corresponds to the `description_text` field in the realtime alert message.
	Description []*Alert_Text `protobuf:"bytes,9,rep,name=description,proto3" json:"description,omitempty"`
	// URL for additional information about the alert, in zero or more languages.
	// This corresponds to the `url` field in the realtime alert message.
	Url []*Alert_Text `protobuf:"bytes,10,rep,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

The Alert resource.

This resource corresponds to the [alert type in the GTFS realtime specification](https://developers.google.com/transit/gtfs-realtime/reference#message-alert).

TODO; alphabetize the messages

func (*Alert) Descriptor deprecated

func (*Alert) Descriptor() ([]byte, []int)

Deprecated: Use Alert.ProtoReflect.Descriptor instead.

func (*Alert) GetAllActivePeriods

func (x *Alert) GetAllActivePeriods() []*Alert_ActivePeriod

func (*Alert) GetCause

func (x *Alert) GetCause() Alert_Cause

func (*Alert) GetCurrentActivePeriod

func (x *Alert) GetCurrentActivePeriod() *Alert_ActivePeriod

func (*Alert) GetDescription

func (x *Alert) GetDescription() []*Alert_Text

func (*Alert) GetEffect

func (x *Alert) GetEffect() Alert_Effect

func (*Alert) GetHeader

func (x *Alert) GetHeader() []*Alert_Text

func (*Alert) GetId

func (x *Alert) GetId() string

func (*Alert) GetResource

func (x *Alert) GetResource() *Resource

func (*Alert) GetSystem

func (x *Alert) GetSystem() *System_Reference

func (*Alert) GetUrl

func (x *Alert) GetUrl() []*Alert_Text

func (*Alert) ProtoMessage

func (*Alert) ProtoMessage()

func (*Alert) ProtoReflect

func (x *Alert) ProtoReflect() protoreflect.Message

func (*Alert) Reset

func (x *Alert) Reset()

func (*Alert) String

func (x *Alert) String() string

type Alert_ActivePeriod

type Alert_ActivePeriod struct {

	// Unix timestamp of the start time of the active period.
	// If not set, the alert be interpreted
	// as being always active up to the end time.
	StartsAt *int64 `protobuf:"varint,1,opt,name=starts_at,json=startsAt,proto3,oneof" json:"starts_at,omitempty"`
	// Unix timestamp of the end time of the active period.
	// If not set, the alert be interpreted as being indefinitely active.
	EndsAt *int64 `protobuf:"varint,2,opt,name=ends_at,json=endsAt,proto3,oneof" json:"ends_at,omitempty"`
	// contains filtered or unexported fields
}

The active period message describes a period when an alert is active. It corresponds the the [time range message in the GTFS realtime specification](https://developers.google.com/transit/gtfs-realtime/reference#message-timerange).

func (*Alert_ActivePeriod) Descriptor deprecated

func (*Alert_ActivePeriod) Descriptor() ([]byte, []int)

Deprecated: Use Alert_ActivePeriod.ProtoReflect.Descriptor instead.

func (*Alert_ActivePeriod) GetEndsAt

func (x *Alert_ActivePeriod) GetEndsAt() int64

func (*Alert_ActivePeriod) GetStartsAt

func (x *Alert_ActivePeriod) GetStartsAt() int64

func (*Alert_ActivePeriod) ProtoMessage

func (*Alert_ActivePeriod) ProtoMessage()

func (*Alert_ActivePeriod) ProtoReflect

func (x *Alert_ActivePeriod) ProtoReflect() protoreflect.Message

func (*Alert_ActivePeriod) Reset

func (x *Alert_ActivePeriod) Reset()

func (*Alert_ActivePeriod) String

func (x *Alert_ActivePeriod) String() string

type Alert_Cause

type Alert_Cause int32

Cause is the same as the [cause enum in the GTFS realtime specification](https://developers.google.com/transit/gtfs-realtime/reference#enum-cause), except `UNKNOWN_CAUSE` has value 0 instead of 1 to satisfy proto3 requirements.

const (
	Alert_UNKNOWN_CAUSE     Alert_Cause = 0
	Alert_OTHER_CAUSE       Alert_Cause = 2
	Alert_TECHNICAL_PROBLEM Alert_Cause = 3
	Alert_STRIKE            Alert_Cause = 4
	Alert_DEMONSTRATION     Alert_Cause = 5
	Alert_ACCIDENT          Alert_Cause = 6
	Alert_HOLIDAY           Alert_Cause = 7
	Alert_WEATHER           Alert_Cause = 8
	Alert_MAINTENANCE       Alert_Cause = 9
	Alert_CONSTRUCTION      Alert_Cause = 10
	Alert_POLICE_ACTIVITY   Alert_Cause = 11
	Alert_MEDICAL_EMERGENCY Alert_Cause = 12
)

func (Alert_Cause) Descriptor

func (Alert_Cause) Enum

func (x Alert_Cause) Enum() *Alert_Cause

func (Alert_Cause) EnumDescriptor deprecated

func (Alert_Cause) EnumDescriptor() ([]byte, []int)

Deprecated: Use Alert_Cause.Descriptor instead.

func (Alert_Cause) Number

func (x Alert_Cause) Number() protoreflect.EnumNumber

func (Alert_Cause) String

func (x Alert_Cause) String() string

func (Alert_Cause) Type

type Alert_Effect

type Alert_Effect int32

Effect is the same as the [effect enum in the GTFS realtime specification](https://developers.google.com/transit/gtfs-realtime/reference#enum-effect), except `UNKNOWN_EFFECT` has value 0 instead of 1 to satisfy proto3 requirements.

const (
	Alert_UNKNOWN_EFFECT      Alert_Effect = 0
	Alert_NO_SERVICE          Alert_Effect = 1
	Alert_REDUCED_SERVICE     Alert_Effect = 2
	Alert_SIGNIFICANT_DELAYS  Alert_Effect = 3
	Alert_DETOUR              Alert_Effect = 4
	Alert_ADDITIONAL_SERVICE  Alert_Effect = 5
	Alert_MODIFIED_SERVICE    Alert_Effect = 6
	Alert_OTHER_EFFECT        Alert_Effect = 7
	Alert_STOP_MOVED          Alert_Effect = 9
	Alert_NO_EFFECT           Alert_Effect = 10
	Alert_ACCESSIBILITY_ISSUE Alert_Effect = 11
)

func (Alert_Effect) Descriptor

func (Alert_Effect) Enum

func (x Alert_Effect) Enum() *Alert_Effect

func (Alert_Effect) EnumDescriptor deprecated

func (Alert_Effect) EnumDescriptor() ([]byte, []int)

Deprecated: Use Alert_Effect.Descriptor instead.

func (Alert_Effect) Number

func (Alert_Effect) String

func (x Alert_Effect) String() string

func (Alert_Effect) Type

type Alert_Reference

type Alert_Reference struct {
	Id       string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Resource *Resource         `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	System   *System_Reference `protobuf:"bytes,3,opt,name=system,proto3" json:"system,omitempty"`
	Cause    Alert_Cause       `protobuf:"varint,4,opt,name=cause,proto3,enum=Alert_Cause" json:"cause,omitempty"`
	Effect   Alert_Effect      `protobuf:"varint,5,opt,name=effect,proto3,enum=Alert_Effect" json:"effect,omitempty"`
	// contains filtered or unexported fields
}

Reference is the reference type for the agency resource.

func (*Alert_Reference) Descriptor deprecated

func (*Alert_Reference) Descriptor() ([]byte, []int)

Deprecated: Use Alert_Reference.ProtoReflect.Descriptor instead.

func (*Alert_Reference) GetCause

func (x *Alert_Reference) GetCause() Alert_Cause

func (*Alert_Reference) GetEffect

func (x *Alert_Reference) GetEffect() Alert_Effect

func (*Alert_Reference) GetId

func (x *Alert_Reference) GetId() string

func (*Alert_Reference) GetResource

func (x *Alert_Reference) GetResource() *Resource

func (*Alert_Reference) GetSystem

func (x *Alert_Reference) GetSystem() *System_Reference

func (*Alert_Reference) ProtoMessage

func (*Alert_Reference) ProtoMessage()

func (*Alert_Reference) ProtoReflect

func (x *Alert_Reference) ProtoReflect() protoreflect.Message

func (*Alert_Reference) Reset

func (x *Alert_Reference) Reset()

func (*Alert_Reference) String

func (x *Alert_Reference) String() string

type Alert_Text

type Alert_Text struct {

	// Content of the text.
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// Language of this text.
	Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"`
	// contains filtered or unexported fields
}

The text message describes an alert header/description/URL in a specified language. It corresponds the the [translation message in the GTFS realtime specification](https://developers.google.com/transit/gtfs-realtime/reference#message-translation).

func (*Alert_Text) Descriptor deprecated

func (*Alert_Text) Descriptor() ([]byte, []int)

Deprecated: Use Alert_Text.ProtoReflect.Descriptor instead.

func (*Alert_Text) GetLanguage

func (x *Alert_Text) GetLanguage() string

func (*Alert_Text) GetText

func (x *Alert_Text) GetText() string

func (*Alert_Text) ProtoMessage

func (*Alert_Text) ProtoMessage()

func (*Alert_Text) ProtoReflect

func (x *Alert_Text) ProtoReflect() protoreflect.Message

func (*Alert_Text) Reset

func (x *Alert_Text) Reset()

func (*Alert_Text) String

func (x *Alert_Text) String() string

type ChildResources

type ChildResources struct {

	// Number of child resources.
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// URL of the endpoint to list child resources.
	Href *string `protobuf:"bytes,2,opt,name=href,proto3,oneof" json:"href,omitempty"`
	// contains filtered or unexported fields
}

Description of a collection of child resources for a resource. This message and fields using this message exist to support API discoverability.

func (*ChildResources) Descriptor deprecated

func (*ChildResources) Descriptor() ([]byte, []int)

Deprecated: Use ChildResources.ProtoReflect.Descriptor instead.

func (*ChildResources) GetCount

func (x *ChildResources) GetCount() int64

func (*ChildResources) GetHref

func (x *ChildResources) GetHref() string

func (*ChildResources) ProtoMessage

func (*ChildResources) ProtoMessage()

func (*ChildResources) ProtoReflect

func (x *ChildResources) ProtoReflect() protoreflect.Message

func (*ChildResources) Reset

func (x *ChildResources) Reset()

func (*ChildResources) String

func (x *ChildResources) String() string

type DeleteSystemReply

type DeleteSystemReply struct {
	// contains filtered or unexported fields
}

func (*DeleteSystemReply) Descriptor deprecated

func (*DeleteSystemReply) Descriptor() ([]byte, []int)

Deprecated: Use DeleteSystemReply.ProtoReflect.Descriptor instead.

func (*DeleteSystemReply) ProtoMessage

func (*DeleteSystemReply) ProtoMessage()

func (*DeleteSystemReply) ProtoReflect

func (x *DeleteSystemReply) ProtoReflect() protoreflect.Message

func (*DeleteSystemReply) Reset

func (x *DeleteSystemReply) Reset()

func (*DeleteSystemReply) String

func (x *DeleteSystemReply) String() string

type DeleteSystemRequest

type DeleteSystemRequest struct {
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSystemRequest) Descriptor deprecated

func (*DeleteSystemRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteSystemRequest.ProtoReflect.Descriptor instead.

func (*DeleteSystemRequest) GetSystemId

func (x *DeleteSystemRequest) GetSystemId() string

func (*DeleteSystemRequest) ProtoMessage

func (*DeleteSystemRequest) ProtoMessage()

func (*DeleteSystemRequest) ProtoReflect

func (x *DeleteSystemRequest) ProtoReflect() protoreflect.Message

func (*DeleteSystemRequest) Reset

func (x *DeleteSystemRequest) Reset()

func (*DeleteSystemRequest) String

func (x *DeleteSystemRequest) String() string

type EntrypointReply

type EntrypointReply struct {

	// Version and other information about this Transiter binary.
	Transiter *EntrypointReply_TransiterDetails `protobuf:"bytes,1,opt,name=transiter,proto3" json:"transiter,omitempty"`
	// Systems that are installed in this Transiter instance.
	Systems *ChildResources `protobuf:"bytes,2,opt,name=systems,proto3" json:"systems,omitempty"`
	// contains filtered or unexported fields
}

Response payload for the entrypoint endpoint.

func (*EntrypointReply) Descriptor deprecated

func (*EntrypointReply) Descriptor() ([]byte, []int)

Deprecated: Use EntrypointReply.ProtoReflect.Descriptor instead.

func (*EntrypointReply) GetSystems

func (x *EntrypointReply) GetSystems() *ChildResources

func (*EntrypointReply) GetTransiter

func (*EntrypointReply) ProtoMessage

func (*EntrypointReply) ProtoMessage()

func (*EntrypointReply) ProtoReflect

func (x *EntrypointReply) ProtoReflect() protoreflect.Message

func (*EntrypointReply) Reset

func (x *EntrypointReply) Reset()

func (*EntrypointReply) String

func (x *EntrypointReply) String() string

type EntrypointReply_TransiterDetails

type EntrypointReply_TransiterDetails struct {

	// The version of the Transiter binary this instance is running.
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// URL of the Transiter GitHub respository.
	Href string `protobuf:"bytes,2,opt,name=href,proto3" json:"href,omitempty"`
	// Information about the CI build invocation that built this Transiter binary.
	Build *EntrypointReply_TransiterDetails_Build `protobuf:"bytes,3,opt,name=build,proto3,oneof" json:"build,omitempty"`
	// contains filtered or unexported fields
}

Message containing version information about a Transiter binary.

func (*EntrypointReply_TransiterDetails) Descriptor deprecated

func (*EntrypointReply_TransiterDetails) Descriptor() ([]byte, []int)

Deprecated: Use EntrypointReply_TransiterDetails.ProtoReflect.Descriptor instead.

func (*EntrypointReply_TransiterDetails) GetBuild

func (*EntrypointReply_TransiterDetails) GetHref

func (*EntrypointReply_TransiterDetails) GetVersion

func (x *EntrypointReply_TransiterDetails) GetVersion() string

func (*EntrypointReply_TransiterDetails) ProtoMessage

func (*EntrypointReply_TransiterDetails) ProtoMessage()

func (*EntrypointReply_TransiterDetails) ProtoReflect

func (*EntrypointReply_TransiterDetails) Reset

func (*EntrypointReply_TransiterDetails) String

type EntrypointReply_TransiterDetails_Build

type EntrypointReply_TransiterDetails_Build struct {

	// The GitHub build number.
	Number string `protobuf:"bytes,3,opt,name=number,proto3" json:"number,omitempty"`
	// Time the binary was built, in the form of a human readable string.
	BuiltAt string `protobuf:"bytes,4,opt,name=built_at,json=builtAt,proto3" json:"built_at,omitempty"`
	// Time the binary was built, in the form of a Unix timestamp.
	BuiltAtTimestamp string `protobuf:"bytes,5,opt,name=built_at_timestamp,json=builtAtTimestamp,proto3" json:"built_at_timestamp,omitempty"`
	// Hash of the Git commit that the binary was built at.
	GitCommitHash string `protobuf:"bytes,6,opt,name=git_commit_hash,json=gitCommitHash,proto3" json:"git_commit_hash,omitempty"`
	// URL of the GitHub actions CI run.
	Href string `protobuf:"bytes,7,opt,name=href,proto3" json:"href,omitempty"`
	// contains filtered or unexported fields
}

Message containing information about a specific Transiter CI build.

func (*EntrypointReply_TransiterDetails_Build) Descriptor deprecated

func (*EntrypointReply_TransiterDetails_Build) Descriptor() ([]byte, []int)

Deprecated: Use EntrypointReply_TransiterDetails_Build.ProtoReflect.Descriptor instead.

func (*EntrypointReply_TransiterDetails_Build) GetBuiltAt

func (*EntrypointReply_TransiterDetails_Build) GetBuiltAtTimestamp

func (x *EntrypointReply_TransiterDetails_Build) GetBuiltAtTimestamp() string

func (*EntrypointReply_TransiterDetails_Build) GetGitCommitHash

func (x *EntrypointReply_TransiterDetails_Build) GetGitCommitHash() string

func (*EntrypointReply_TransiterDetails_Build) GetHref

func (*EntrypointReply_TransiterDetails_Build) GetNumber

func (*EntrypointReply_TransiterDetails_Build) ProtoMessage

func (*EntrypointReply_TransiterDetails_Build) ProtoReflect

func (*EntrypointReply_TransiterDetails_Build) Reset

func (*EntrypointReply_TransiterDetails_Build) String

type EntrypointRequest

type EntrypointRequest struct {
	// contains filtered or unexported fields
}

Request payload for the entrypoint endpoint.

func (*EntrypointRequest) Descriptor deprecated

func (*EntrypointRequest) Descriptor() ([]byte, []int)

Deprecated: Use EntrypointRequest.ProtoReflect.Descriptor instead.

func (*EntrypointRequest) ProtoMessage

func (*EntrypointRequest) ProtoMessage()

func (*EntrypointRequest) ProtoReflect

func (x *EntrypointRequest) ProtoReflect() protoreflect.Message

func (*EntrypointRequest) Reset

func (x *EntrypointRequest) Reset()

func (*EntrypointRequest) String

func (x *EntrypointRequest) String() string

type Feed

type Feed struct {

	// ID of the feed, as specified in the system configuration file.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Generic metadata about the feed resource.
	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// System corresponding to this feed.
	// This is the parent resource in Transiter's resource hierarchy.
	System                 *System_Reference `protobuf:"bytes,3,opt,name=system,proto3" json:"system,omitempty"`
	LastUpdateMs           *int64            `protobuf:"varint,4,opt,name=last_update_ms,json=lastUpdateMs,proto3,oneof" json:"last_update_ms,omitempty"`
	LastSuccessfulUpdateMs *int64            `` /* 138-byte string literal not displayed */
	LastSkippedUpdateMs    *int64            `` /* 129-byte string literal not displayed */
	LastFailedUpdateMs     *int64            `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

The feed resource.

Each feed is defined in the system configuration file. Feeds are included in the public API because there are non-admin use-cases for this resource. For example, an app might publish the staleness of realtime data

by checking the last successful feed update time.

More detailed information on a feed -- its full configuration, and the

current status of its periodic updates -- can be retrieved through the admin API.

func (*Feed) Descriptor deprecated

func (*Feed) Descriptor() ([]byte, []int)

Deprecated: Use Feed.ProtoReflect.Descriptor instead.

func (*Feed) GetId

func (x *Feed) GetId() string

func (*Feed) GetLastFailedUpdateMs

func (x *Feed) GetLastFailedUpdateMs() int64

func (*Feed) GetLastSkippedUpdateMs

func (x *Feed) GetLastSkippedUpdateMs() int64

func (*Feed) GetLastSuccessfulUpdateMs

func (x *Feed) GetLastSuccessfulUpdateMs() int64

func (*Feed) GetLastUpdateMs

func (x *Feed) GetLastUpdateMs() int64

func (*Feed) GetResource

func (x *Feed) GetResource() *Resource

func (*Feed) GetSystem

func (x *Feed) GetSystem() *System_Reference

func (*Feed) ProtoMessage

func (*Feed) ProtoMessage()

func (*Feed) ProtoReflect

func (x *Feed) ProtoReflect() protoreflect.Message

func (*Feed) Reset

func (x *Feed) Reset()

func (*Feed) String

func (x *Feed) String() string

type FeedConfig

type FeedConfig struct {

	// Identifier of this feed config.
	// This must be unique within the system.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The type of the feed.
	// Allowable values are `GTFS_STATIC`, `GTFS_REALTIME` and `NYCT_SUBWAY_CSV`.
	//
	// The are possible future plans to support plugging in additional custom types at build time.
	// This is why the field is a string and not an enum.
	Type string `protobuf:"bytes,13,opt,name=type,proto3" json:"type,omitempty"`
	// Deprecated: use `type` instead.
	//
	// Deprecated: Marked as deprecated in api/admin.proto.
	Parser string `protobuf:"bytes,8,opt,name=parser,proto3" json:"parser,omitempty"`
	// Additional options GTFS realtime feeds.
	GtfsRealtimeOptions *GtfsRealtimeOptions `` /* 126-byte string literal not displayed */
	// Required for install specifies whether an update should be performed for this feed during system install.
	// If true, an update is performed and if the update fails the installation fails.
	//
	// If unspecified, defaults to false for GTFS realtime feeds and true for all other
	// types of feeds.
	RequiredForInstall *bool `protobuf:"varint,2,opt,name=required_for_install,json=requiredForInstall,proto3,oneof" json:"required_for_install,omitempty"`
	// The scheduling policy to use for this feed.
	//
	// If unspecified, it takes the value `DEFAULT“.
	SchedulingPolicy FeedConfig_SchedulingPolicy `` /* 144-byte string literal not displayed */
	// Deprecated: use `scheduling_policy` instead.
	//
	// Deprecated: Marked as deprecated in api/admin.proto.
	UpdateStrategy FeedConfig_SchedulingPolicy `` /* 137-byte string literal not displayed */
	// For feeds with a `PERIODIC` scheduling policy, the update period.
	//
	// If unspecified, defaults to 5 seconds.
	PeriodicUpdatePeriodMs *int64 `` /* 139-byte string literal not displayed */
	// Deprecated: use `periodic_update_period_ms` instead.
	//
	// Deprecated: Marked as deprecated in api/admin.proto.
	UpdatePeriodS *float64 `protobuf:"fixed64,4,opt,name=update_period_s,json=updatePeriodS,proto3,oneof" json:"update_period_s,omitempty"`
	// For feeds with a `DAILY` scheduling policy,
	// the time of day in the form HH:MM at which to perform an update.
	//
	// If unspecified, defaults to 03:00 for the first feed in the system, 03:10 for the second feed,
	// and so on.
	// The idea of the default is to run at night when the system is either quiet or not running.
	// The staggering is to avoid updates stepping on each other, and to spread out the load.
	DailyUpdateTime string `protobuf:"bytes,11,opt,name=daily_update_time,json=dailyUpdateTime,proto3" json:"daily_update_time,omitempty"`
	// For feeds with a `DAILY` scheduling policy,
	// the timezone for the time of day specified in the `daily_update_time`.
	//
	// If empty, a default is provided as follows.
	// The scheduler lists the agencies for the system in order of ID and uses
	// the first valid timezone it finds.
	// Given the GTFS static specification this should always work.
	// Moreover, all agencies should have the same timezone so listing in order of ID shouldn't matter.
	// But in reality it may not work.
	// If there is no valid agency timezones, the scheduler will log a warning and fall back to UTC.
	DailyUpdateTimezone string `protobuf:"bytes,12,opt,name=daily_update_timezone,json=dailyUpdateTimezone,proto3" json:"daily_update_timezone,omitempty"`
	// URL at which the feed can be downloaded using a HTTP GET request.
	// Transiter does not currently support non-GET requests.
	Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
	// Timeout to enforce for the request to the feed URL. If not specified, defaults to 5 seconds.
	RequestTimeoutMs *int64 `protobuf:"varint,6,opt,name=request_timeout_ms,json=requestTimeoutMs,proto3,oneof" json:"request_timeout_ms,omitempty"`
	// HTTP headers to send in the request.
	HttpHeaders map[string]string `` /* 182-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*FeedConfig) Descriptor deprecated

func (*FeedConfig) Descriptor() ([]byte, []int)

Deprecated: Use FeedConfig.ProtoReflect.Descriptor instead.

func (*FeedConfig) GetDailyUpdateTime

func (x *FeedConfig) GetDailyUpdateTime() string

func (*FeedConfig) GetDailyUpdateTimezone

func (x *FeedConfig) GetDailyUpdateTimezone() string

func (*FeedConfig) GetGtfsRealtimeOptions

func (x *FeedConfig) GetGtfsRealtimeOptions() *GtfsRealtimeOptions

func (*FeedConfig) GetHttpHeaders

func (x *FeedConfig) GetHttpHeaders() map[string]string

func (*FeedConfig) GetId

func (x *FeedConfig) GetId() string

func (*FeedConfig) GetParser deprecated

func (x *FeedConfig) GetParser() string

Deprecated: Marked as deprecated in api/admin.proto.

func (*FeedConfig) GetPeriodicUpdatePeriodMs

func (x *FeedConfig) GetPeriodicUpdatePeriodMs() int64

func (*FeedConfig) GetRequestTimeoutMs

func (x *FeedConfig) GetRequestTimeoutMs() int64

func (*FeedConfig) GetRequiredForInstall

func (x *FeedConfig) GetRequiredForInstall() bool

func (*FeedConfig) GetSchedulingPolicy

func (x *FeedConfig) GetSchedulingPolicy() FeedConfig_SchedulingPolicy

func (*FeedConfig) GetType

func (x *FeedConfig) GetType() string

func (*FeedConfig) GetUpdatePeriodS deprecated

func (x *FeedConfig) GetUpdatePeriodS() float64

Deprecated: Marked as deprecated in api/admin.proto.

func (*FeedConfig) GetUpdateStrategy deprecated

func (x *FeedConfig) GetUpdateStrategy() FeedConfig_SchedulingPolicy

Deprecated: Marked as deprecated in api/admin.proto.

func (*FeedConfig) GetUrl

func (x *FeedConfig) GetUrl() string

func (*FeedConfig) ProtoMessage

func (*FeedConfig) ProtoMessage()

func (*FeedConfig) ProtoReflect

func (x *FeedConfig) ProtoReflect() protoreflect.Message

func (*FeedConfig) Reset

func (x *FeedConfig) Reset()

func (*FeedConfig) String

func (x *FeedConfig) String() string

type FeedConfig_SchedulingPolicy

type FeedConfig_SchedulingPolicy int32

Transiter runs a background task called the scheduler which performs feed updates automatically. A scheduling policy determines when the scheduler will perform feed updates for this feed.

const (
	// Use the default policy, which is PERIODIC for GTFS realtime feeds and DAILY for all other feeds.
	FeedConfig_DEFAULT FeedConfig_SchedulingPolicy = 0
	// Perform an update periodically, with the period specified in the `periodic_update_period_ms` field.
	FeedConfig_PERIODIC FeedConfig_SchedulingPolicy = 1
	// Perform an update once a day, with the time of day specified in the `daily_update_time` field.
	FeedConfig_DAILY FeedConfig_SchedulingPolicy = 2
	// Don't perform updates in the scheduler. Updates can always be triggered manually using the admin API.
	FeedConfig_NONE FeedConfig_SchedulingPolicy = 3
)

func (FeedConfig_SchedulingPolicy) Descriptor

func (FeedConfig_SchedulingPolicy) Enum

func (FeedConfig_SchedulingPolicy) EnumDescriptor deprecated

func (FeedConfig_SchedulingPolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use FeedConfig_SchedulingPolicy.Descriptor instead.

func (FeedConfig_SchedulingPolicy) Number

func (FeedConfig_SchedulingPolicy) String

func (FeedConfig_SchedulingPolicy) Type

type FeedUpdate

type FeedUpdate struct {

	// ID of the feed update. This is a randomly generated UUID.
	// It can be used to find server logs for the update operation.
	UpdateId string `protobuf:"bytes,1,opt,name=update_id,json=updateId,proto3" json:"update_id,omitempty"`
	// The feed configuration that was used to perform the feed update.
	FeedConfig *FeedConfig `protobuf:"bytes,27,opt,name=feed_config,json=feedConfig,proto3" json:"feed_config,omitempty"`
	// Unix timestamp of when the update started.
	StartedAtMs int64 `protobuf:"varint,4,opt,name=started_at_ms,json=startedAtMs,proto3" json:"started_at_ms,omitempty"`
	// Unix timestamp of when the update finished.
	// Only populated if the update is finished.
	FinishedAtMs           *int64 `protobuf:"varint,6,opt,name=finished_at_ms,json=finishedAtMs,proto3,oneof" json:"finished_at_ms,omitempty"`
	TotalLatencyMs         *int64 `protobuf:"varint,20,opt,name=total_latency_ms,json=totalLatencyMs,proto3,oneof" json:"total_latency_ms,omitempty"`
	DownloadLatencyMs      *int64 `protobuf:"varint,21,opt,name=download_latency_ms,json=downloadLatencyMs,proto3,oneof" json:"download_latency_ms,omitempty"`
	ParseLatencyMs         *int64 `protobuf:"varint,22,opt,name=parse_latency_ms,json=parseLatencyMs,proto3,oneof" json:"parse_latency_ms,omitempty"`
	DatabaseLatencyMs      *int64 `protobuf:"varint,25,opt,name=database_latency_ms,json=databaseLatencyMs,proto3,oneof" json:"database_latency_ms,omitempty"`
	DownloadHttpStatusCode *int32 `` /* 139-byte string literal not displayed */
	// Status of the update.
	Status FeedUpdate_Status `protobuf:"varint,7,opt,name=status,proto3,enum=FeedUpdate_Status" json:"status,omitempty"`
	// Number of bytes in the downloaded feed data.
	// Only populated if the update successfully downloaded data.
	ContentLength *int32 `protobuf:"varint,8,opt,name=content_length,json=contentLength,proto3,oneof" json:"content_length,omitempty"`
	// Hash of the downloaded feed data. This is used to skip updates
	// if the feed data hasn't changed.
	// Only populated if the update successfully downloaded data.
	ContentHash *string `protobuf:"bytes,9,opt,name=content_hash,json=contentHash,proto3,oneof" json:"content_hash,omitempty"`
	// Error message of the update.
	// Only populated if the update finished in an error
	ErrorMessage *string `protobuf:"bytes,10,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

Description of a feed update operation.

func (*FeedUpdate) Descriptor deprecated

func (*FeedUpdate) Descriptor() ([]byte, []int)

Deprecated: Use FeedUpdate.ProtoReflect.Descriptor instead.

func (*FeedUpdate) GetContentHash

func (x *FeedUpdate) GetContentHash() string

func (*FeedUpdate) GetContentLength

func (x *FeedUpdate) GetContentLength() int32

func (*FeedUpdate) GetDatabaseLatencyMs

func (x *FeedUpdate) GetDatabaseLatencyMs() int64

func (*FeedUpdate) GetDownloadHttpStatusCode

func (x *FeedUpdate) GetDownloadHttpStatusCode() int32

func (*FeedUpdate) GetDownloadLatencyMs

func (x *FeedUpdate) GetDownloadLatencyMs() int64

func (*FeedUpdate) GetErrorMessage

func (x *FeedUpdate) GetErrorMessage() string

func (*FeedUpdate) GetFeedConfig

func (x *FeedUpdate) GetFeedConfig() *FeedConfig

func (*FeedUpdate) GetFinishedAtMs

func (x *FeedUpdate) GetFinishedAtMs() int64

func (*FeedUpdate) GetParseLatencyMs

func (x *FeedUpdate) GetParseLatencyMs() int64

func (*FeedUpdate) GetStartedAtMs

func (x *FeedUpdate) GetStartedAtMs() int64

func (*FeedUpdate) GetStatus

func (x *FeedUpdate) GetStatus() FeedUpdate_Status

func (*FeedUpdate) GetTotalLatencyMs

func (x *FeedUpdate) GetTotalLatencyMs() int64

func (*FeedUpdate) GetUpdateId

func (x *FeedUpdate) GetUpdateId() string

func (*FeedUpdate) ProtoMessage

func (*FeedUpdate) ProtoMessage()

func (*FeedUpdate) ProtoReflect

func (x *FeedUpdate) ProtoReflect() protoreflect.Message

func (*FeedUpdate) Reset

func (x *FeedUpdate) Reset()

func (*FeedUpdate) String

func (x *FeedUpdate) String() string

type FeedUpdate_Status

type FeedUpdate_Status int32
const (
	// Unknown status.
	FeedUpdate_UNKNOWN FeedUpdate_Status = 0
	// Feed update is in progress. Currently this status never appears in the admin API, but is
	// added in case Transiter support async feed updates in the future.
	FeedUpdate_RUNNING FeedUpdate_Status = 1
	// Finished successfully.
	FeedUpdate_UPDATED FeedUpdate_Status = 2
	// The update was skipped because the downloaded data was identical to the data for the last successful update.
	FeedUpdate_SKIPPED FeedUpdate_Status = 3
	// Failed to download feed data.
	FeedUpdate_FAILED_DOWNLOAD_ERROR FeedUpdate_Status = 4
	// Feed data was empty.
	FeedUpdate_FAILED_EMPTY_FEED FeedUpdate_Status = 5
	// The feed configuration is invalid. This typically indicates a bug in Transiter because
	// the feed configuration is validated when the system is being installed.
	FeedUpdate_FAILED_INVALID_FEED_CONFIG FeedUpdate_Status = 6
	// Failed to parse the feed data.
	// This means the feed data was corrupted or otherwise invalid.
	FeedUpdate_FAILED_PARSE_ERROR FeedUpdate_Status = 8
	// Failed to update the database using the new feed data.
	// This typically indicates a bug in Transiter or a transient error connecting to the database.
	FeedUpdate_FAILED_UPDATE_ERROR FeedUpdate_Status = 9
	// An internal unspecified error occured.
	FeedUpdate_FAILED_INTERNAL_ERROR FeedUpdate_Status = 10
	// The feed has an unknown type.
	FeedUpdate_FAILED_UNKNOWN_FEED_TYPE FeedUpdate_Status = 11
)

func (FeedUpdate_Status) Descriptor

func (FeedUpdate_Status) Enum

func (FeedUpdate_Status) EnumDescriptor deprecated

func (FeedUpdate_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use FeedUpdate_Status.Descriptor instead.

func (FeedUpdate_Status) Number

func (FeedUpdate_Status) String

func (x FeedUpdate_Status) String() string

func (FeedUpdate_Status) Type

type Feed_Reference

type Feed_Reference struct {
	Id       string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Resource *Resource         `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	System   *System_Reference `protobuf:"bytes,3,opt,name=system,proto3" json:"system,omitempty"`
	// contains filtered or unexported fields
}

Reference is the reference type for the feed resource.

func (*Feed_Reference) Descriptor deprecated

func (*Feed_Reference) Descriptor() ([]byte, []int)

Deprecated: Use Feed_Reference.ProtoReflect.Descriptor instead.

func (*Feed_Reference) GetId

func (x *Feed_Reference) GetId() string

func (*Feed_Reference) GetResource

func (x *Feed_Reference) GetResource() *Resource

func (*Feed_Reference) GetSystem

func (x *Feed_Reference) GetSystem() *System_Reference

func (*Feed_Reference) ProtoMessage

func (*Feed_Reference) ProtoMessage()

func (*Feed_Reference) ProtoReflect

func (x *Feed_Reference) ProtoReflect() protoreflect.Message

func (*Feed_Reference) Reset

func (x *Feed_Reference) Reset()

func (*Feed_Reference) String

func (x *Feed_Reference) String() string

type GetAgencyRequest

type GetAgencyRequest struct {

	// ID of the system the agency is in.
	//
	// This is a URL parameter in the HTTP API.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// ID of the agency.
	//
	// This is a URL parameter in the HTTP API.
	AgencyId string `protobuf:"bytes,2,opt,name=agency_id,json=agencyId,proto3" json:"agency_id,omitempty"`
	// contains filtered or unexported fields
}

Request payload for the get agency endpoint.

func (*GetAgencyRequest) Descriptor deprecated

func (*GetAgencyRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAgencyRequest.ProtoReflect.Descriptor instead.

func (*GetAgencyRequest) GetAgencyId

func (x *GetAgencyRequest) GetAgencyId() string

func (*GetAgencyRequest) GetSystemId

func (x *GetAgencyRequest) GetSystemId() string

func (*GetAgencyRequest) ProtoMessage

func (*GetAgencyRequest) ProtoMessage()

func (*GetAgencyRequest) ProtoReflect

func (x *GetAgencyRequest) ProtoReflect() protoreflect.Message

func (*GetAgencyRequest) Reset

func (x *GetAgencyRequest) Reset()

func (*GetAgencyRequest) String

func (x *GetAgencyRequest) String() string

type GetAlertRequest

type GetAlertRequest struct {

	// ID of the system the alert is in.
	//
	// This is a URL parameter in the HTTP API.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// ID of the alert.
	//
	// This is a URL parameter in the HTTP API.
	AlertId string `protobuf:"bytes,2,opt,name=alert_id,json=alertId,proto3" json:"alert_id,omitempty"`
	// contains filtered or unexported fields
}

Request payload for the get alert endpoint.

func (*GetAlertRequest) Descriptor deprecated

func (*GetAlertRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAlertRequest.ProtoReflect.Descriptor instead.

func (*GetAlertRequest) GetAlertId

func (x *GetAlertRequest) GetAlertId() string

func (*GetAlertRequest) GetSystemId

func (x *GetAlertRequest) GetSystemId() string

func (*GetAlertRequest) ProtoMessage

func (*GetAlertRequest) ProtoMessage()

func (*GetAlertRequest) ProtoReflect

func (x *GetAlertRequest) ProtoReflect() protoreflect.Message

func (*GetAlertRequest) Reset

func (x *GetAlertRequest) Reset()

func (*GetAlertRequest) String

func (x *GetAlertRequest) String() string

type GetFeedRequest

type GetFeedRequest struct {

	// ID of the system the feed is in.
	//
	// This is a URL parameter in the HTTP API.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// ID of the feed.
	//
	// This is a URL parameter in the HTTP API.
	FeedId string `protobuf:"bytes,2,opt,name=feed_id,json=feedId,proto3" json:"feed_id,omitempty"`
	// contains filtered or unexported fields
}

Request payload for the get feed endpoint.

func (*GetFeedRequest) Descriptor deprecated

func (*GetFeedRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetFeedRequest.ProtoReflect.Descriptor instead.

func (*GetFeedRequest) GetFeedId

func (x *GetFeedRequest) GetFeedId() string

func (*GetFeedRequest) GetSystemId

func (x *GetFeedRequest) GetSystemId() string

func (*GetFeedRequest) ProtoMessage

func (*GetFeedRequest) ProtoMessage()

func (*GetFeedRequest) ProtoReflect

func (x *GetFeedRequest) ProtoReflect() protoreflect.Message

func (*GetFeedRequest) Reset

func (x *GetFeedRequest) Reset()

func (*GetFeedRequest) String

func (x *GetFeedRequest) String() string

type GetLogLevelReply

type GetLogLevelReply struct {
	LogLevel string `protobuf:"bytes,1,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLogLevelReply) Descriptor deprecated

func (*GetLogLevelReply) Descriptor() ([]byte, []int)

Deprecated: Use GetLogLevelReply.ProtoReflect.Descriptor instead.

func (*GetLogLevelReply) GetLogLevel

func (x *GetLogLevelReply) GetLogLevel() string

func (*GetLogLevelReply) ProtoMessage

func (*GetLogLevelReply) ProtoMessage()

func (*GetLogLevelReply) ProtoReflect

func (x *GetLogLevelReply) ProtoReflect() protoreflect.Message

func (*GetLogLevelReply) Reset

func (x *GetLogLevelReply) Reset()

func (*GetLogLevelReply) String

func (x *GetLogLevelReply) String() string

type GetLogLevelRequest

type GetLogLevelRequest struct {
	// contains filtered or unexported fields
}

func (*GetLogLevelRequest) Descriptor deprecated

func (*GetLogLevelRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetLogLevelRequest.ProtoReflect.Descriptor instead.

func (*GetLogLevelRequest) ProtoMessage

func (*GetLogLevelRequest) ProtoMessage()

func (*GetLogLevelRequest) ProtoReflect

func (x *GetLogLevelRequest) ProtoReflect() protoreflect.Message

func (*GetLogLevelRequest) Reset

func (x *GetLogLevelRequest) Reset()

func (*GetLogLevelRequest) String

func (x *GetLogLevelRequest) String() string

type GetRouteRequest

type GetRouteRequest struct {

	// ID of the system the route is in.
	//
	// This is a URL parameter in the HTTP API.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// ID of the route.
	//
	// This is a URL parameter in the HTTP API.
	RouteId string `protobuf:"bytes,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"`
	// If true, the estimated headway field will not be populated.
	// This will generally make the response faster to generate.
	SkipEstimatedHeadways bool `` /* 127-byte string literal not displayed */
	// If true, the service maps field will not be populated.
	// This will generally make the response faster to generate.
	SkipServiceMaps bool `protobuf:"varint,4,opt,name=skip_service_maps,json=skipServiceMaps,proto3" json:"skip_service_maps,omitempty"`
	// If true, the alerts field will not be populated.
	// This will generally make the response faster to generate.
	SkipAlerts bool `protobuf:"varint,5,opt,name=skip_alerts,json=skipAlerts,proto3" json:"skip_alerts,omitempty"`
	// contains filtered or unexported fields
}

Request payload for the get route endpoint.

func (*GetRouteRequest) Descriptor deprecated

func (*GetRouteRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRouteRequest.ProtoReflect.Descriptor instead.

func (*GetRouteRequest) GetRouteId

func (x *GetRouteRequest) GetRouteId() string

func (*GetRouteRequest) GetSkipAlerts

func (x *GetRouteRequest) GetSkipAlerts() bool

func (*GetRouteRequest) GetSkipEstimatedHeadways

func (x *GetRouteRequest) GetSkipEstimatedHeadways() bool

func (*GetRouteRequest) GetSkipServiceMaps

func (x *GetRouteRequest) GetSkipServiceMaps() bool

func (*GetRouteRequest) GetSystemId

func (x *GetRouteRequest) GetSystemId() string

func (*GetRouteRequest) ProtoMessage

func (*GetRouteRequest) ProtoMessage()

func (*GetRouteRequest) ProtoReflect

func (x *GetRouteRequest) ProtoReflect() protoreflect.Message

func (*GetRouteRequest) Reset

func (x *GetRouteRequest) Reset()

func (*GetRouteRequest) String

func (x *GetRouteRequest) String() string

type GetSchedulerStatusReply

type GetSchedulerStatusReply struct {
	Feeds []*GetSchedulerStatusReply_Feed `protobuf:"bytes,1,rep,name=feeds,proto3" json:"feeds,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSchedulerStatusReply) Descriptor deprecated

func (*GetSchedulerStatusReply) Descriptor() ([]byte, []int)

Deprecated: Use GetSchedulerStatusReply.ProtoReflect.Descriptor instead.

func (*GetSchedulerStatusReply) GetFeeds

func (*GetSchedulerStatusReply) ProtoMessage

func (*GetSchedulerStatusReply) ProtoMessage()

func (*GetSchedulerStatusReply) ProtoReflect

func (x *GetSchedulerStatusReply) ProtoReflect() protoreflect.Message

func (*GetSchedulerStatusReply) Reset

func (x *GetSchedulerStatusReply) Reset()

func (*GetSchedulerStatusReply) String

func (x *GetSchedulerStatusReply) String() string

type GetSchedulerStatusReply_Feed

type GetSchedulerStatusReply_Feed struct {
	SystemId             string      `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	FeedConfig           *FeedConfig `protobuf:"bytes,7,opt,name=feed_config,json=feedConfig,proto3" json:"feed_config,omitempty"`
	LastSuccessfulUpdate int64       `protobuf:"varint,4,opt,name=last_successful_update,json=lastSuccessfulUpdate,proto3" json:"last_successful_update,omitempty"`
	LastFinishedUpdate   int64       `protobuf:"varint,5,opt,name=last_finished_update,json=lastFinishedUpdate,proto3" json:"last_finished_update,omitempty"`
	CurrentlyRunning     bool        `protobuf:"varint,6,opt,name=currently_running,json=currentlyRunning,proto3" json:"currently_running,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSchedulerStatusReply_Feed) Descriptor deprecated

func (*GetSchedulerStatusReply_Feed) Descriptor() ([]byte, []int)

Deprecated: Use GetSchedulerStatusReply_Feed.ProtoReflect.Descriptor instead.

func (*GetSchedulerStatusReply_Feed) GetCurrentlyRunning

func (x *GetSchedulerStatusReply_Feed) GetCurrentlyRunning() bool

func (*GetSchedulerStatusReply_Feed) GetFeedConfig

func (x *GetSchedulerStatusReply_Feed) GetFeedConfig() *FeedConfig

func (*GetSchedulerStatusReply_Feed) GetLastFinishedUpdate

func (x *GetSchedulerStatusReply_Feed) GetLastFinishedUpdate() int64

func (*GetSchedulerStatusReply_Feed) GetLastSuccessfulUpdate

func (x *GetSchedulerStatusReply_Feed) GetLastSuccessfulUpdate() int64

func (*GetSchedulerStatusReply_Feed) GetSystemId

func (x *GetSchedulerStatusReply_Feed) GetSystemId() string

func (*GetSchedulerStatusReply_Feed) ProtoMessage

func (*GetSchedulerStatusReply_Feed) ProtoMessage()

func (*GetSchedulerStatusReply_Feed) ProtoReflect

func (*GetSchedulerStatusReply_Feed) Reset

func (x *GetSchedulerStatusReply_Feed) Reset()

func (*GetSchedulerStatusReply_Feed) String

type GetSchedulerStatusRequest

type GetSchedulerStatusRequest struct {
	// contains filtered or unexported fields
}

func (*GetSchedulerStatusRequest) Descriptor deprecated

func (*GetSchedulerStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSchedulerStatusRequest.ProtoReflect.Descriptor instead.

func (*GetSchedulerStatusRequest) ProtoMessage

func (*GetSchedulerStatusRequest) ProtoMessage()

func (*GetSchedulerStatusRequest) ProtoReflect

func (*GetSchedulerStatusRequest) Reset

func (x *GetSchedulerStatusRequest) Reset()

func (*GetSchedulerStatusRequest) String

func (x *GetSchedulerStatusRequest) String() string

type GetStopRequest

type GetStopRequest struct {

	// ID of the system the stop is in.
	//
	// This is a URL parameter in the HTTP API.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// ID of the stop.
	//
	// This is a URL parameter in the HTTP API.
	StopId string `protobuf:"bytes,2,opt,name=stop_id,json=stopId,proto3" json:"stop_id,omitempty"`
	// If true, the stop times field will not be populated.
	// This will generally make the response faster to generate.
	SkipStopTimes bool `protobuf:"varint,4,opt,name=skip_stop_times,json=skipStopTimes,proto3" json:"skip_stop_times,omitempty"`
	// If true, the service maps field will not be populated.
	// This will generally make the response faster to generate.
	SkipServiceMaps bool `protobuf:"varint,5,opt,name=skip_service_maps,json=skipServiceMaps,proto3" json:"skip_service_maps,omitempty"`
	// If true, the alerts field will not be populated.
	// This will generally make the response faster to generate.
	SkipAlerts bool `protobuf:"varint,6,opt,name=skip_alerts,json=skipAlerts,proto3" json:"skip_alerts,omitempty"`
	// If true, the transfers field will not be populated.
	// This will generally make the response faster to generate.
	SkipTransfers bool `protobuf:"varint,7,opt,name=skip_transfers,json=skipTransfers,proto3" json:"skip_transfers,omitempty"`
	// contains filtered or unexported fields
}

Reqeust payload for the get stop endpoint.

func (*GetStopRequest) Descriptor deprecated

func (*GetStopRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetStopRequest.ProtoReflect.Descriptor instead.

func (*GetStopRequest) GetSkipAlerts

func (x *GetStopRequest) GetSkipAlerts() bool

func (*GetStopRequest) GetSkipServiceMaps

func (x *GetStopRequest) GetSkipServiceMaps() bool

func (*GetStopRequest) GetSkipStopTimes

func (x *GetStopRequest) GetSkipStopTimes() bool

func (*GetStopRequest) GetSkipTransfers

func (x *GetStopRequest) GetSkipTransfers() bool

func (*GetStopRequest) GetStopId

func (x *GetStopRequest) GetStopId() string

func (*GetStopRequest) GetSystemId

func (x *GetStopRequest) GetSystemId() string

func (*GetStopRequest) ProtoMessage

func (*GetStopRequest) ProtoMessage()

func (*GetStopRequest) ProtoReflect

func (x *GetStopRequest) ProtoReflect() protoreflect.Message

func (*GetStopRequest) Reset

func (x *GetStopRequest) Reset()

func (*GetStopRequest) String

func (x *GetStopRequest) String() string

type GetSystemConfigRequest

type GetSystemConfigRequest struct {
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSystemConfigRequest) Descriptor deprecated

func (*GetSystemConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSystemConfigRequest.ProtoReflect.Descriptor instead.

func (*GetSystemConfigRequest) GetSystemId

func (x *GetSystemConfigRequest) GetSystemId() string

func (*GetSystemConfigRequest) ProtoMessage

func (*GetSystemConfigRequest) ProtoMessage()

func (*GetSystemConfigRequest) ProtoReflect

func (x *GetSystemConfigRequest) ProtoReflect() protoreflect.Message

func (*GetSystemConfigRequest) Reset

func (x *GetSystemConfigRequest) Reset()

func (*GetSystemConfigRequest) String

func (x *GetSystemConfigRequest) String() string

type GetSystemRequest

type GetSystemRequest struct {

	// ID of the system to get.
	//
	// This is a URL parameter in the HTTP API.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// contains filtered or unexported fields
}

Request payload for the get system endpoint.

func (*GetSystemRequest) Descriptor deprecated

func (*GetSystemRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSystemRequest.ProtoReflect.Descriptor instead.

func (*GetSystemRequest) GetSystemId

func (x *GetSystemRequest) GetSystemId() string

func (*GetSystemRequest) ProtoMessage

func (*GetSystemRequest) ProtoMessage()

func (*GetSystemRequest) ProtoReflect

func (x *GetSystemRequest) ProtoReflect() protoreflect.Message

func (*GetSystemRequest) Reset

func (x *GetSystemRequest) Reset()

func (*GetSystemRequest) String

func (x *GetSystemRequest) String() string

type GetTripRequest

type GetTripRequest struct {

	// ID of the system the trip is in.
	//
	// This is a URL parameter in the HTTP API.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// ID of the route the trip is in.
	//
	// This is a URL parameter in the HTTP API.
	RouteId string `protobuf:"bytes,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"`
	// ID of the route.
	//
	// This is a URL parameter in the HTTP API.
	TripId string `protobuf:"bytes,3,opt,name=trip_id,json=tripId,proto3" json:"trip_id,omitempty"`
	// contains filtered or unexported fields
}

Request payload for the get trip endpoint.

func (*GetTripRequest) Descriptor deprecated

func (*GetTripRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetTripRequest.ProtoReflect.Descriptor instead.

func (*GetTripRequest) GetRouteId

func (x *GetTripRequest) GetRouteId() string

func (*GetTripRequest) GetSystemId

func (x *GetTripRequest) GetSystemId() string

func (*GetTripRequest) GetTripId

func (x *GetTripRequest) GetTripId() string

func (*GetTripRequest) ProtoMessage

func (*GetTripRequest) ProtoMessage()

func (*GetTripRequest) ProtoReflect

func (x *GetTripRequest) ProtoReflect() protoreflect.Message

func (*GetTripRequest) Reset

func (x *GetTripRequest) Reset()

func (*GetTripRequest) String

func (x *GetTripRequest) String() string

type GetVehicleRequest

type GetVehicleRequest struct {

	// ID of the system the vehicle is in.
	//
	// This is a URL parameter in the HTTP API.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// ID of the vehicle.
	//
	// This is a URL parameter in the HTTP API.
	VehicleId string `protobuf:"bytes,2,opt,name=vehicle_id,json=vehicleId,proto3" json:"vehicle_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVehicleRequest) Descriptor deprecated

func (*GetVehicleRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetVehicleRequest.ProtoReflect.Descriptor instead.

func (*GetVehicleRequest) GetSystemId

func (x *GetVehicleRequest) GetSystemId() string

func (*GetVehicleRequest) GetVehicleId

func (x *GetVehicleRequest) GetVehicleId() string

func (*GetVehicleRequest) ProtoMessage

func (*GetVehicleRequest) ProtoMessage()

func (*GetVehicleRequest) ProtoReflect

func (x *GetVehicleRequest) ProtoReflect() protoreflect.Message

func (*GetVehicleRequest) Reset

func (x *GetVehicleRequest) Reset()

func (*GetVehicleRequest) String

func (x *GetVehicleRequest) String() string

type GtfsRealtimeOptions

type GtfsRealtimeOptions struct {
	Extension         GtfsRealtimeOptions_Extension          `protobuf:"varint,1,opt,name=extension,proto3,enum=GtfsRealtimeOptions_Extension" json:"extension,omitempty"`
	NyctTripsOptions  *GtfsRealtimeOptions_NyctTripsOptions  `protobuf:"bytes,2,opt,name=nyct_trips_options,json=nyctTripsOptions,proto3,oneof" json:"nyct_trips_options,omitempty"`
	NyctAlertsOptions *GtfsRealtimeOptions_NyctAlertsOptions `protobuf:"bytes,3,opt,name=nyct_alerts_options,json=nyctAlertsOptions,proto3,oneof" json:"nyct_alerts_options,omitempty"`
	// If true, stop sequences in the GTFS realtime feed data are ignored, and
	// alternative stop sequences are generated and assigned by Transiter.
	// This setting is designed for buggy GTFS realtime feeds in which
	// stop sequences (incorrectly) change between updates. In many cases
	// Transiter is able to generate stop sequences that are correct and
	// stable across updates.
	//
	// This should not be used for systems where a trip can call at the same
	// stop multiple times.
	ReassignStopSequences bool `` /* 127-byte string literal not displayed */
	// If true, only process entities in a feed if the message contains
	// the full entity. This is useful for cases where there are multiple
	// feeds for the same system, and some feeds contain only partial
	// information about entities.
	OnlyProcessFullEntities bool `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

Message describing additional options for the GTFS realtime feeds.

func (*GtfsRealtimeOptions) Descriptor deprecated

func (*GtfsRealtimeOptions) Descriptor() ([]byte, []int)

Deprecated: Use GtfsRealtimeOptions.ProtoReflect.Descriptor instead.

func (*GtfsRealtimeOptions) GetExtension

func (*GtfsRealtimeOptions) GetNyctAlertsOptions

func (*GtfsRealtimeOptions) GetNyctTripsOptions

func (*GtfsRealtimeOptions) GetOnlyProcessFullEntities

func (x *GtfsRealtimeOptions) GetOnlyProcessFullEntities() bool

func (*GtfsRealtimeOptions) GetReassignStopSequences

func (x *GtfsRealtimeOptions) GetReassignStopSequences() bool

func (*GtfsRealtimeOptions) ProtoMessage

func (*GtfsRealtimeOptions) ProtoMessage()

func (*GtfsRealtimeOptions) ProtoReflect

func (x *GtfsRealtimeOptions) ProtoReflect() protoreflect.Message

func (*GtfsRealtimeOptions) Reset

func (x *GtfsRealtimeOptions) Reset()

func (*GtfsRealtimeOptions) String

func (x *GtfsRealtimeOptions) String() string

type GtfsRealtimeOptions_Extension

type GtfsRealtimeOptions_Extension int32
const (
	GtfsRealtimeOptions_NO_EXTENSION   GtfsRealtimeOptions_Extension = 0
	GtfsRealtimeOptions_NYCT_TRIPS     GtfsRealtimeOptions_Extension = 1
	GtfsRealtimeOptions_NYCT_ALERTS    GtfsRealtimeOptions_Extension = 2
	GtfsRealtimeOptions_NYCT_BUS_TRIPS GtfsRealtimeOptions_Extension = 3
)

func (GtfsRealtimeOptions_Extension) Descriptor

func (GtfsRealtimeOptions_Extension) Enum

func (GtfsRealtimeOptions_Extension) EnumDescriptor deprecated

func (GtfsRealtimeOptions_Extension) EnumDescriptor() ([]byte, []int)

Deprecated: Use GtfsRealtimeOptions_Extension.Descriptor instead.

func (GtfsRealtimeOptions_Extension) Number

func (GtfsRealtimeOptions_Extension) String

func (GtfsRealtimeOptions_Extension) Type

type GtfsRealtimeOptions_NyctAlertsOptions

type GtfsRealtimeOptions_NyctAlertsOptions struct {
	ElevatorAlertsDeduplicationPolicy   GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy `` /* 242-byte string literal not displayed */
	ElevatorAlertsInformUsingStationIds bool                                                                    `` /* 175-byte string literal not displayed */
	SkipTimetabledNoServiceAlerts       bool                                                                    `` /* 155-byte string literal not displayed */
	AddNyctMetadata                     bool                                                                    `protobuf:"varint,4,opt,name=add_nyct_metadata,json=addNyctMetadata,proto3" json:"add_nyct_metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*GtfsRealtimeOptions_NyctAlertsOptions) Descriptor deprecated

func (*GtfsRealtimeOptions_NyctAlertsOptions) Descriptor() ([]byte, []int)

Deprecated: Use GtfsRealtimeOptions_NyctAlertsOptions.ProtoReflect.Descriptor instead.

func (*GtfsRealtimeOptions_NyctAlertsOptions) GetAddNyctMetadata

func (x *GtfsRealtimeOptions_NyctAlertsOptions) GetAddNyctMetadata() bool

func (*GtfsRealtimeOptions_NyctAlertsOptions) GetElevatorAlertsDeduplicationPolicy

func (*GtfsRealtimeOptions_NyctAlertsOptions) GetElevatorAlertsInformUsingStationIds

func (x *GtfsRealtimeOptions_NyctAlertsOptions) GetElevatorAlertsInformUsingStationIds() bool

func (*GtfsRealtimeOptions_NyctAlertsOptions) GetSkipTimetabledNoServiceAlerts

func (x *GtfsRealtimeOptions_NyctAlertsOptions) GetSkipTimetabledNoServiceAlerts() bool

func (*GtfsRealtimeOptions_NyctAlertsOptions) ProtoMessage

func (*GtfsRealtimeOptions_NyctAlertsOptions) ProtoMessage()

func (*GtfsRealtimeOptions_NyctAlertsOptions) ProtoReflect

func (*GtfsRealtimeOptions_NyctAlertsOptions) Reset

func (*GtfsRealtimeOptions_NyctAlertsOptions) String

type GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy

type GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy int32
const (
	GtfsRealtimeOptions_NyctAlertsOptions_NO_DEDUPLICATION       GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy = 0
	GtfsRealtimeOptions_NyctAlertsOptions_DEDUPLICATE_IN_STATION GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy = 1
	GtfsRealtimeOptions_NyctAlertsOptions_DEDUPLICATE_IN_COMPLEX GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy = 2
)

func (GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy) Descriptor

func (GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy) Enum

func (GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy) EnumDescriptor deprecated

Deprecated: Use GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy.Descriptor instead.

func (GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy) Number

func (GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy) String

func (GtfsRealtimeOptions_NyctAlertsOptions_ElevatorAlertsDeduplicationPolicy) Type

type GtfsRealtimeOptions_NyctTripsOptions

type GtfsRealtimeOptions_NyctTripsOptions struct {
	FilterStaleUnassignedTrips        bool `` /* 144-byte string literal not displayed */
	PreserveMTrainPlatformsInBushwick bool `` /* 169-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GtfsRealtimeOptions_NyctTripsOptions) Descriptor deprecated

func (*GtfsRealtimeOptions_NyctTripsOptions) Descriptor() ([]byte, []int)

Deprecated: Use GtfsRealtimeOptions_NyctTripsOptions.ProtoReflect.Descriptor instead.

func (*GtfsRealtimeOptions_NyctTripsOptions) GetFilterStaleUnassignedTrips

func (x *GtfsRealtimeOptions_NyctTripsOptions) GetFilterStaleUnassignedTrips() bool

func (*GtfsRealtimeOptions_NyctTripsOptions) GetPreserveMTrainPlatformsInBushwick

func (x *GtfsRealtimeOptions_NyctTripsOptions) GetPreserveMTrainPlatformsInBushwick() bool

func (*GtfsRealtimeOptions_NyctTripsOptions) ProtoMessage

func (*GtfsRealtimeOptions_NyctTripsOptions) ProtoMessage()

func (*GtfsRealtimeOptions_NyctTripsOptions) ProtoReflect

func (*GtfsRealtimeOptions_NyctTripsOptions) Reset

func (*GtfsRealtimeOptions_NyctTripsOptions) String

type InstallOrUpdateSystemReply

type InstallOrUpdateSystemReply struct {
	SystemId     string        `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	SystemConfig *SystemConfig `protobuf:"bytes,2,opt,name=system_config,json=systemConfig,proto3" json:"system_config,omitempty"`
	// contains filtered or unexported fields
}

func (*InstallOrUpdateSystemReply) Descriptor deprecated

func (*InstallOrUpdateSystemReply) Descriptor() ([]byte, []int)

Deprecated: Use InstallOrUpdateSystemReply.ProtoReflect.Descriptor instead.

func (*InstallOrUpdateSystemReply) GetSystemConfig

func (x *InstallOrUpdateSystemReply) GetSystemConfig() *SystemConfig

func (*InstallOrUpdateSystemReply) GetSystemId

func (x *InstallOrUpdateSystemReply) GetSystemId() string

func (*InstallOrUpdateSystemReply) ProtoMessage

func (*InstallOrUpdateSystemReply) ProtoMessage()

func (*InstallOrUpdateSystemReply) ProtoReflect

func (*InstallOrUpdateSystemReply) Reset

func (x *InstallOrUpdateSystemReply) Reset()

func (*InstallOrUpdateSystemReply) String

func (x *InstallOrUpdateSystemReply) String() string

type InstallOrUpdateSystemRequest

type InstallOrUpdateSystemRequest struct {

	// ID of the system to install or update.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// Types that are assignable to Config:
	//
	//	*InstallOrUpdateSystemRequest_SystemConfig
	//	*InstallOrUpdateSystemRequest_YamlConfig
	Config isInstallOrUpdateSystemRequest_Config `protobuf_oneof:"config"`
	// If true, do not perform an update if the system already exists.
	InstallOnly bool `protobuf:"varint,4,opt,name=install_only,json=installOnly,proto3" json:"install_only,omitempty"`
	// contains filtered or unexported fields
}

func (*InstallOrUpdateSystemRequest) Descriptor deprecated

func (*InstallOrUpdateSystemRequest) Descriptor() ([]byte, []int)

Deprecated: Use InstallOrUpdateSystemRequest.ProtoReflect.Descriptor instead.

func (*InstallOrUpdateSystemRequest) GetConfig

func (m *InstallOrUpdateSystemRequest) GetConfig() isInstallOrUpdateSystemRequest_Config

func (*InstallOrUpdateSystemRequest) GetInstallOnly

func (x *InstallOrUpdateSystemRequest) GetInstallOnly() bool

func (*InstallOrUpdateSystemRequest) GetSystemConfig

func (x *InstallOrUpdateSystemRequest) GetSystemConfig() *SystemConfig

func (*InstallOrUpdateSystemRequest) GetSystemId

func (x *InstallOrUpdateSystemRequest) GetSystemId() string

func (*InstallOrUpdateSystemRequest) GetYamlConfig

func (x *InstallOrUpdateSystemRequest) GetYamlConfig() *TextConfig

func (*InstallOrUpdateSystemRequest) ProtoMessage

func (*InstallOrUpdateSystemRequest) ProtoMessage()

func (*InstallOrUpdateSystemRequest) ProtoReflect

func (*InstallOrUpdateSystemRequest) Reset

func (x *InstallOrUpdateSystemRequest) Reset()

func (*InstallOrUpdateSystemRequest) String

type InstallOrUpdateSystemRequest_SystemConfig

type InstallOrUpdateSystemRequest_SystemConfig struct {
	SystemConfig *SystemConfig `protobuf:"bytes,2,opt,name=system_config,json=systemConfig,proto3,oneof"`
}

type InstallOrUpdateSystemRequest_YamlConfig

type InstallOrUpdateSystemRequest_YamlConfig struct {
	YamlConfig *TextConfig `protobuf:"bytes,3,opt,name=yaml_config,json=yamlConfig,proto3,oneof"` // TODO: TextConfig json_config = 4;
}

type ListAgenciesReply

type ListAgenciesReply struct {

	// List of agencies.
	Agencies []*Agency `protobuf:"bytes,1,rep,name=agencies,proto3" json:"agencies,omitempty"`
	// contains filtered or unexported fields
}

Response payload for the list agencies endpoint.

func (*ListAgenciesReply) Descriptor deprecated

func (*ListAgenciesReply) Descriptor() ([]byte, []int)

Deprecated: Use ListAgenciesReply.ProtoReflect.Descriptor instead.

func (*ListAgenciesReply) GetAgencies

func (x *ListAgenciesReply) GetAgencies() []*Agency

func (*ListAgenciesReply) ProtoMessage

func (*ListAgenciesReply) ProtoMessage()

func (*ListAgenciesReply) ProtoReflect

func (x *ListAgenciesReply) ProtoReflect() protoreflect.Message

func (*ListAgenciesReply) Reset

func (x *ListAgenciesReply) Reset()

func (*ListAgenciesReply) String

func (x *ListAgenciesReply) String() string

type ListAgenciesRequest

type ListAgenciesRequest struct {

	// ID of the system for which to list agencies.
	//
	// This is a URL parameter in the HTTP API.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// contains filtered or unexported fields
}

Request payload for the list agencies endpoint.

func (*ListAgenciesRequest) Descriptor deprecated

func (*ListAgenciesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAgenciesRequest.ProtoReflect.Descriptor instead.

func (*ListAgenciesRequest) GetSystemId

func (x *ListAgenciesRequest) GetSystemId() string

func (*ListAgenciesRequest) ProtoMessage

func (*ListAgenciesRequest) ProtoMessage()

func (*ListAgenciesRequest) ProtoReflect

func (x *ListAgenciesRequest) ProtoReflect() protoreflect.Message

func (*ListAgenciesRequest) Reset

func (x *ListAgenciesRequest) Reset()

func (*ListAgenciesRequest) String

func (x *ListAgenciesRequest) String() string

type ListAlertsReply

type ListAlertsReply struct {

	// List of alerts.
	Alerts []*Alert `protobuf:"bytes,1,rep,name=alerts,proto3" json:"alerts,omitempty"`
	// contains filtered or unexported fields
}

Response payload for the list alerts endpoiont.

func (*ListAlertsReply) Descriptor deprecated

func (*ListAlertsReply) Descriptor() ([]byte, []int)

Deprecated: Use ListAlertsReply.ProtoReflect.Descriptor instead.

func (*ListAlertsReply) GetAlerts

func (x *ListAlertsReply) GetAlerts() []*Alert

func (*ListAlertsReply) ProtoMessage

func (*ListAlertsReply) ProtoMessage()

func (*ListAlertsReply) ProtoReflect

func (x *ListAlertsReply) ProtoReflect() protoreflect.Message

func (*ListAlertsReply) Reset

func (x *ListAlertsReply) Reset()

func (*ListAlertsReply) String

func (x *ListAlertsReply) String() string

type ListAlertsRequest

type ListAlertsRequest struct {

	// ID of the system for which to list alerts.
	//
	// This is a URL parameter in the HTTP API.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// If non-empty, only alerts with the provided IDs are returned.
	// This is interpreted as a filtering condition, so it is not an error to provide non-existent IDs.
	//
	// If empty, all alerts in the system are returned.
	// TODO: add a boolean filter_on_alert_ids field
	AlertId []string `protobuf:"bytes,2,rep,name=alert_id,json=alertId,proto3" json:"alert_id,omitempty"`
	// contains filtered or unexported fields
}

Request payload for the list alerts endpoint.

func (*ListAlertsRequest) Descriptor deprecated

func (*ListAlertsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAlertsRequest.ProtoReflect.Descriptor instead.

func (*ListAlertsRequest) GetAlertId

func (x *ListAlertsRequest) GetAlertId() []string

func (*ListAlertsRequest) GetSystemId

func (x *ListAlertsRequest) GetSystemId() string

func (*ListAlertsRequest) ProtoMessage

func (*ListAlertsRequest) ProtoMessage()

func (*ListAlertsRequest) ProtoReflect

func (x *ListAlertsRequest) ProtoReflect() protoreflect.Message

func (*ListAlertsRequest) Reset

func (x *ListAlertsRequest) Reset()

func (*ListAlertsRequest) String

func (x *ListAlertsRequest) String() string

type ListFeedsReply

type ListFeedsReply struct {

	// List of feeds.
	Feeds []*Feed `protobuf:"bytes,1,rep,name=feeds,proto3" json:"feeds,omitempty"`
	// contains filtered or unexported fields
}

Response payload for the list feeds endpoint.

func (*ListFeedsReply) Descriptor deprecated

func (*ListFeedsReply) Descriptor() ([]byte, []int)

Deprecated: Use ListFeedsReply.ProtoReflect.Descriptor instead.

func (*ListFeedsReply) GetFeeds

func (x *ListFeedsReply) GetFeeds() []*Feed

func (*ListFeedsReply) ProtoMessage

func (*ListFeedsReply) ProtoMessage()

func (*ListFeedsReply) ProtoReflect

func (x *ListFeedsReply) ProtoReflect() protoreflect.Message

func (*ListFeedsReply) Reset

func (x *ListFeedsReply) Reset()

func (*ListFeedsReply) String

func (x *ListFeedsReply) String() string

type ListFeedsRequest

type ListFeedsRequest struct {

	// ID of the system for which to list feeds.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// contains filtered or unexported fields
}

Request payload for the list feeds endpoint.

func (*ListFeedsRequest) Descriptor deprecated

func (*ListFeedsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListFeedsRequest.ProtoReflect.Descriptor instead.

func (*ListFeedsRequest) GetSystemId

func (x *ListFeedsRequest) GetSystemId() string

func (*ListFeedsRequest) ProtoMessage

func (*ListFeedsRequest) ProtoMessage()

func (*ListFeedsRequest) ProtoReflect

func (x *ListFeedsRequest) ProtoReflect() protoreflect.Message

func (*ListFeedsRequest) Reset

func (x *ListFeedsRequest) Reset()

func (*ListFeedsRequest) String

func (x *ListFeedsRequest) String() string

type ListRoutesReply

type ListRoutesReply struct {

	// List of routes.
	Routes []*Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"`
	// contains filtered or unexported fields
}

Response payload for the list routes endpoint.

func (*ListRoutesReply) Descriptor deprecated

func (*ListRoutesReply) Descriptor() ([]byte, []int)

Deprecated: Use ListRoutesReply.ProtoReflect.Descriptor instead.

func (*ListRoutesReply) GetRoutes

func (x *ListRoutesReply) GetRoutes() []*Route

func (*ListRoutesReply) ProtoMessage

func (*ListRoutesReply) ProtoMessage()

func (*ListRoutesReply) ProtoReflect

func (x *ListRoutesReply) ProtoReflect() protoreflect.Message

func (*ListRoutesReply) Reset

func (x *ListRoutesReply) Reset()

func (*ListRoutesReply) String

func (x *ListRoutesReply) String() string

type ListRoutesRequest

type ListRoutesRequest struct {

	// ID of the system for which to list routes.
	//
	// This is a URL parameter in the HTTP API.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// If true, the estimated headway fields will not be populated.
	// This will generally make the response faster to generate.
	SkipEstimatedHeadways bool `` /* 127-byte string literal not displayed */
	// If true, the service maps field will not be populated.
	// This will generally make the response faster to generate.
	SkipServiceMaps bool `protobuf:"varint,3,opt,name=skip_service_maps,json=skipServiceMaps,proto3" json:"skip_service_maps,omitempty"`
	// If true, the alerts field will not be populated.
	// This will generally make the response faster to generate.
	SkipAlerts bool `protobuf:"varint,4,opt,name=skip_alerts,json=skipAlerts,proto3" json:"skip_alerts,omitempty"`
	// contains filtered or unexported fields
}

Request payload for the list routes endpoint.

func (*ListRoutesRequest) Descriptor deprecated

func (*ListRoutesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListRoutesRequest.ProtoReflect.Descriptor instead.

func (*ListRoutesRequest) GetSkipAlerts

func (x *ListRoutesRequest) GetSkipAlerts() bool

func (*ListRoutesRequest) GetSkipEstimatedHeadways

func (x *ListRoutesRequest) GetSkipEstimatedHeadways() bool

func (*ListRoutesRequest) GetSkipServiceMaps

func (x *ListRoutesRequest) GetSkipServiceMaps() bool

func (*ListRoutesRequest) GetSystemId

func (x *ListRoutesRequest) GetSystemId() string

func (*ListRoutesRequest) ProtoMessage

func (*ListRoutesRequest) ProtoMessage()

func (*ListRoutesRequest) ProtoReflect

func (x *ListRoutesRequest) ProtoReflect() protoreflect.Message

func (*ListRoutesRequest) Reset

func (x *ListRoutesRequest) Reset()

func (*ListRoutesRequest) String

func (x *ListRoutesRequest) String() string

type ListStopsReply

type ListStopsReply struct {

	// List of stops.
	Stops []*Stop `protobuf:"bytes,1,rep,name=stops,proto3" json:"stops,omitempty"`
	// ID of the next stop to return, if there are more results.
	NextId *string `protobuf:"bytes,2,opt,name=next_id,json=nextId,proto3,oneof" json:"next_id,omitempty"`
	// contains filtered or unexported fields
}

Response payload for the list stops endpoint.

func (*ListStopsReply) Descriptor deprecated

func (*ListStopsReply) Descriptor() ([]byte, []int)

Deprecated: Use ListStopsReply.ProtoReflect.Descriptor instead.

func (*ListStopsReply) GetNextId

func (x *ListStopsReply) GetNextId() string

func (*ListStopsReply) GetStops

func (x *ListStopsReply) GetStops() []*Stop

func (*ListStopsReply) ProtoMessage

func (*ListStopsReply) ProtoMessage()

func (*ListStopsReply) ProtoReflect

func (x *ListStopsReply) ProtoReflect() protoreflect.Message

func (*ListStopsReply) Reset

func (x *ListStopsReply) Reset()

func (*ListStopsReply) String

func (x *ListStopsReply) String() string

type ListStopsRequest

type ListStopsRequest struct {

	// ID of the system for which to list stops.
	//
	// This is a URL parameter in the HTTP API.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// The type of search to perform when listing stops.
	SearchMode *ListStopsRequest_SearchMode `` /* 132-byte string literal not displayed */
	// If true, only return stops whose IDs are specified in the repeated `id` field.
	// Only supported when the search mode is ID.
	OnlyReturnSpecifiedIds bool `` /* 132-byte string literal not displayed */
	// IDs to return if `only_return_specified_ids` is set to true. It is an error to
	// populate this field if `only_return_specified_ids` is false.
	// Only supported when the search mode is ID.
	Id []string `protobuf:"bytes,9,rep,name=id,proto3" json:"id,omitempty"`
	// ID of the first stop to return. If not set, the stop with the smallest ID will be first.
	// Only supported when the search mode is ID.
	FirstId *string `protobuf:"bytes,2,opt,name=first_id,json=firstId,proto3,oneof" json:"first_id,omitempty"`
	// Maximum number of stops to return.
	// This is supported in all search modes.
	// For performance reasons, if it is larger than 100 it is rounded down to 100.
	Limit *int32 `protobuf:"varint,3,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
	// If true, the stop times field will not be populated.
	// This will generally make the response faster to generate.
	SkipStopTimes bool `protobuf:"varint,4,opt,name=skip_stop_times,json=skipStopTimes,proto3" json:"skip_stop_times,omitempty"`
	// If true, the service maps field will not be populated.
	// This will generally make the response faster to generate.
	SkipServiceMaps bool `protobuf:"varint,5,opt,name=skip_service_maps,json=skipServiceMaps,proto3" json:"skip_service_maps,omitempty"`
	// If true, the alerts field will not be populated.
	// This will generally make the response faster to generate.
	SkipAlerts bool `protobuf:"varint,6,opt,name=skip_alerts,json=skipAlerts,proto3" json:"skip_alerts,omitempty"`
	// If true, the transfers field will not be populated.
	// This will generally make the response faster to generate.
	SkipTransfers bool `protobuf:"varint,7,opt,name=skip_transfers,json=skipTransfers,proto3" json:"skip_transfers,omitempty"`
	// The maximum distance in kilometers that a stop must be from
	// latitude, longitude to be listed when using DISTANCE search mode.
	MaxDistance *float64 `protobuf:"fixed64,10,opt,name=max_distance,json=maxDistance,proto3,oneof" json:"max_distance,omitempty"`
	// The latitude relative to the returned stops when using DISTANCE search mode.
	Latitude *float64 `protobuf:"fixed64,11,opt,name=latitude,proto3,oneof" json:"latitude,omitempty"`
	// The longitude relative to the returned stops when using DISTANCE search mode.
	Longitude *float64 `protobuf:"fixed64,12,opt,name=longitude,proto3,oneof" json:"longitude,omitempty"`
	// contains filtered or unexported fields
}

Request payload for the list stops endpoint.

func (*ListStopsRequest) Descriptor deprecated

func (*ListStopsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListStopsRequest.ProtoReflect.Descriptor instead.

func (*ListStopsRequest) GetFirstId

func (x *ListStopsRequest) GetFirstId() string

func (*ListStopsRequest) GetId

func (x *ListStopsRequest) GetId() []string

func (*ListStopsRequest) GetLatitude

func (x *ListStopsRequest) GetLatitude() float64

func (*ListStopsRequest) GetLimit

func (x *ListStopsRequest) GetLimit() int32

func (*ListStopsRequest) GetLongitude

func (x *ListStopsRequest) GetLongitude() float64

func (*ListStopsRequest) GetMaxDistance

func (x *ListStopsRequest) GetMaxDistance() float64

func (*ListStopsRequest) GetOnlyReturnSpecifiedIds

func (x *ListStopsRequest) GetOnlyReturnSpecifiedIds() bool

func (*ListStopsRequest) GetSearchMode

func (x *ListStopsRequest) GetSearchMode() ListStopsRequest_SearchMode

func (*ListStopsRequest) GetSkipAlerts

func (x *ListStopsRequest) GetSkipAlerts() bool

func (*ListStopsRequest) GetSkipServiceMaps

func (x *ListStopsRequest) GetSkipServiceMaps() bool

func (*ListStopsRequest) GetSkipStopTimes

func (x *ListStopsRequest) GetSkipStopTimes() bool

func (*ListStopsRequest) GetSkipTransfers

func (x *ListStopsRequest) GetSkipTransfers() bool

func (*ListStopsRequest) GetSystemId

func (x *ListStopsRequest) GetSystemId() string

func (*ListStopsRequest) ProtoMessage

func (*ListStopsRequest) ProtoMessage()

func (*ListStopsRequest) ProtoReflect

func (x *ListStopsRequest) ProtoReflect() protoreflect.Message

func (*ListStopsRequest) Reset

func (x *ListStopsRequest) Reset()

func (*ListStopsRequest) String

func (x *ListStopsRequest) String() string

type ListStopsRequest_SearchMode

type ListStopsRequest_SearchMode int32

The possible search modes when listing stops.

const (
	// Return a paginated list of stops sorted by stop ID.
	ListStopsRequest_ID ListStopsRequest_SearchMode = 0
	// Return all stops within max_distance of (latitude, longitude), sorted by the distance.
	ListStopsRequest_DISTANCE ListStopsRequest_SearchMode = 1
)

func (ListStopsRequest_SearchMode) Descriptor

func (ListStopsRequest_SearchMode) Enum

func (ListStopsRequest_SearchMode) EnumDescriptor deprecated

func (ListStopsRequest_SearchMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListStopsRequest_SearchMode.Descriptor instead.

func (ListStopsRequest_SearchMode) Number

func (ListStopsRequest_SearchMode) String

func (ListStopsRequest_SearchMode) Type

type ListSystemsReply

type ListSystemsReply struct {

	// List of systems.
	Systems []*System `protobuf:"bytes,1,rep,name=systems,proto3" json:"systems,omitempty"`
	// contains filtered or unexported fields
}

Response payload for the list systems endpoint.

func (*ListSystemsReply) Descriptor deprecated

func (*ListSystemsReply) Descriptor() ([]byte, []int)

Deprecated: Use ListSystemsReply.ProtoReflect.Descriptor instead.

func (*ListSystemsReply) GetSystems

func (x *ListSystemsReply) GetSystems() []*System

func (*ListSystemsReply) ProtoMessage

func (*ListSystemsReply) ProtoMessage()

func (*ListSystemsReply) ProtoReflect

func (x *ListSystemsReply) ProtoReflect() protoreflect.Message

func (*ListSystemsReply) Reset

func (x *ListSystemsReply) Reset()

func (*ListSystemsReply) String

func (x *ListSystemsReply) String() string

type ListSystemsRequest

type ListSystemsRequest struct {
	// contains filtered or unexported fields
}

Request payload for the list systems endpoint.

func (*ListSystemsRequest) Descriptor deprecated

func (*ListSystemsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListSystemsRequest.ProtoReflect.Descriptor instead.

func (*ListSystemsRequest) ProtoMessage

func (*ListSystemsRequest) ProtoMessage()

func (*ListSystemsRequest) ProtoReflect

func (x *ListSystemsRequest) ProtoReflect() protoreflect.Message

func (*ListSystemsRequest) Reset

func (x *ListSystemsRequest) Reset()

func (*ListSystemsRequest) String

func (x *ListSystemsRequest) String() string

type ListTransfersReply

type ListTransfersReply struct {

	// List of transfers.
	Transfers []*Transfer `protobuf:"bytes,1,rep,name=transfers,proto3" json:"transfers,omitempty"`
	// contains filtered or unexported fields
}

Response payload for the list transfers endpoint.

func (*ListTransfersReply) Descriptor deprecated

func (*ListTransfersReply) Descriptor() ([]byte, []int)

Deprecated: Use ListTransfersReply.ProtoReflect.Descriptor instead.

func (*ListTransfersReply) GetTransfers

func (x *ListTransfersReply) GetTransfers() []*Transfer

func (*ListTransfersReply) ProtoMessage

func (*ListTransfersReply) ProtoMessage()

func (*ListTransfersReply) ProtoReflect

func (x *ListTransfersReply) ProtoReflect() protoreflect.Message

func (*ListTransfersReply) Reset

func (x *ListTransfersReply) Reset()

func (*ListTransfersReply) String

func (x *ListTransfersReply) String() string

type ListTransfersRequest

type ListTransfersRequest struct {

	// ID of the system for which to list transfers.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// contains filtered or unexported fields
}

Request payload for the list transfers endpoint.

func (*ListTransfersRequest) Descriptor deprecated

func (*ListTransfersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTransfersRequest.ProtoReflect.Descriptor instead.

func (*ListTransfersRequest) GetSystemId

func (x *ListTransfersRequest) GetSystemId() string

func (*ListTransfersRequest) ProtoMessage

func (*ListTransfersRequest) ProtoMessage()

func (*ListTransfersRequest) ProtoReflect

func (x *ListTransfersRequest) ProtoReflect() protoreflect.Message

func (*ListTransfersRequest) Reset

func (x *ListTransfersRequest) Reset()

func (*ListTransfersRequest) String

func (x *ListTransfersRequest) String() string

type ListTripsReply

type ListTripsReply struct {

	// List of trips.
	Trips []*Trip `protobuf:"bytes,1,rep,name=trips,proto3" json:"trips,omitempty"`
	// contains filtered or unexported fields
}

Response payload for the list trips endpoint.

func (*ListTripsReply) Descriptor deprecated

func (*ListTripsReply) Descriptor() ([]byte, []int)

Deprecated: Use ListTripsReply.ProtoReflect.Descriptor instead.

func (*ListTripsReply) GetTrips

func (x *ListTripsReply) GetTrips() []*Trip

func (*ListTripsReply) ProtoMessage

func (*ListTripsReply) ProtoMessage()

func (*ListTripsReply) ProtoReflect

func (x *ListTripsReply) ProtoReflect() protoreflect.Message

func (*ListTripsReply) Reset

func (x *ListTripsReply) Reset()

func (*ListTripsReply) String

func (x *ListTripsReply) String() string

type ListTripsRequest

type ListTripsRequest struct {

	// ID of the system the route is in.
	//
	// This is a URL parameter in the HTTP API.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// ID of the route for which to list trips
	//
	// This is a URL parameter in the HTTP API.
	RouteId string `protobuf:"bytes,2,opt,name=route_id,json=routeId,proto3" json:"route_id,omitempty"`
	// contains filtered or unexported fields
}

Request payload for the list trips endpoint.

func (*ListTripsRequest) Descriptor deprecated

func (*ListTripsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTripsRequest.ProtoReflect.Descriptor instead.

func (*ListTripsRequest) GetRouteId

func (x *ListTripsRequest) GetRouteId() string

func (*ListTripsRequest) GetSystemId

func (x *ListTripsRequest) GetSystemId() string

func (*ListTripsRequest) ProtoMessage

func (*ListTripsRequest) ProtoMessage()

func (*ListTripsRequest) ProtoReflect

func (x *ListTripsRequest) ProtoReflect() protoreflect.Message

func (*ListTripsRequest) Reset

func (x *ListTripsRequest) Reset()

func (*ListTripsRequest) String

func (x *ListTripsRequest) String() string

type ListVehiclesReply

type ListVehiclesReply struct {

	// List of vehicles.
	Vehicles []*Vehicle `protobuf:"bytes,1,rep,name=vehicles,proto3" json:"vehicles,omitempty"`
	// ID of the next vehicle to return, if there are more results.
	NextId *string `protobuf:"bytes,2,opt,name=next_id,json=nextId,proto3,oneof" json:"next_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVehiclesReply) Descriptor deprecated

func (*ListVehiclesReply) Descriptor() ([]byte, []int)

Deprecated: Use ListVehiclesReply.ProtoReflect.Descriptor instead.

func (*ListVehiclesReply) GetNextId

func (x *ListVehiclesReply) GetNextId() string

func (*ListVehiclesReply) GetVehicles

func (x *ListVehiclesReply) GetVehicles() []*Vehicle

func (*ListVehiclesReply) ProtoMessage

func (*ListVehiclesReply) ProtoMessage()

func (*ListVehiclesReply) ProtoReflect

func (x *ListVehiclesReply) ProtoReflect() protoreflect.Message

func (*ListVehiclesReply) Reset

func (x *ListVehiclesReply) Reset()

func (*ListVehiclesReply) String

func (x *ListVehiclesReply) String() string

type ListVehiclesRequest

type ListVehiclesRequest struct {

	// ID of the system for which to list vehicles.
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	// The type of search to perform when listing vehicles.
	SearchMode *ListVehiclesRequest_SearchMode `` /* 134-byte string literal not displayed */
	// If true, only return vehicles whose IDs are specified in the repeated `id` field.
	// Only supported when the search mode is ID.
	OnlyReturnSpecifiedIds bool `` /* 132-byte string literal not displayed */
	// IDs to return if `only_return_specified_ids` is set to true. It is an error to
	// populate this field if `only_return_specified_ids` is false.
	// Only supported when the search mode is ID.
	Id []string `protobuf:"bytes,4,rep,name=id,proto3" json:"id,omitempty"`
	// ID of the first vehicle to return. If not set, the vehicle with the smallest ID will be first.
	// Only supported when the search mode is ID.
	FirstId *string `protobuf:"bytes,5,opt,name=first_id,json=firstId,proto3,oneof" json:"first_id,omitempty"`
	// Maximum number of vehicles to return.
	// This is supported in all search modes.
	// For performance reasons, if it is larger than 100 it is rounded down to 100.
	Limit *int32 `protobuf:"varint,6,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
	// The maximum distance in kilometers that a vehicle must be from
	// latitude, longitude to be listed when using DISTANCE search mode.
	MaxDistance *float64 `protobuf:"fixed64,7,opt,name=max_distance,json=maxDistance,proto3,oneof" json:"max_distance,omitempty"`
	// The latitude relative to the returned vehicles when using DISTANCE search mode.
	Latitude *float64 `protobuf:"fixed64,8,opt,name=latitude,proto3,oneof" json:"latitude,omitempty"`
	// The longitude relative to the returned vehicles when using DISTANCE search mode.
	Longitude *float64 `protobuf:"fixed64,9,opt,name=longitude,proto3,oneof" json:"longitude,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVehiclesRequest) Descriptor deprecated

func (*ListVehiclesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListVehiclesRequest.ProtoReflect.Descriptor instead.

func (*ListVehiclesRequest) GetFirstId

func (x *ListVehiclesRequest) GetFirstId() string

func (*ListVehiclesRequest) GetId

func (x *ListVehiclesRequest) GetId() []string

func (*ListVehiclesRequest) GetLatitude

func (x *ListVehiclesRequest) GetLatitude() float64

func (*ListVehiclesRequest) GetLimit

func (x *ListVehiclesRequest) GetLimit() int32

func (*ListVehiclesRequest) GetLongitude

func (x *ListVehiclesRequest) GetLongitude() float64

func (*ListVehiclesRequest) GetMaxDistance

func (x *ListVehiclesRequest) GetMaxDistance() float64

func (*ListVehiclesRequest) GetOnlyReturnSpecifiedIds

func (x *ListVehiclesRequest) GetOnlyReturnSpecifiedIds() bool

func (*ListVehiclesRequest) GetSearchMode

func (*ListVehiclesRequest) GetSystemId

func (x *ListVehiclesRequest) GetSystemId() string

func (*ListVehiclesRequest) ProtoMessage

func (*ListVehiclesRequest) ProtoMessage()

func (*ListVehiclesRequest) ProtoReflect

func (x *ListVehiclesRequest) ProtoReflect() protoreflect.Message

func (*ListVehiclesRequest) Reset

func (x *ListVehiclesRequest) Reset()

func (*ListVehiclesRequest) String

func (x *ListVehiclesRequest) String() string

type ListVehiclesRequest_SearchMode

type ListVehiclesRequest_SearchMode int32
const (
	// Return a paginated list of vehicles sorted by vehicle ID.
	ListVehiclesRequest_ID ListVehiclesRequest_SearchMode = 0
	// Return all vehicles within max_distance of (latitude, longitude), sorted by the distance.
	ListVehiclesRequest_DISTANCE ListVehiclesRequest_SearchMode = 1
)

func (ListVehiclesRequest_SearchMode) Descriptor

func (ListVehiclesRequest_SearchMode) Enum

func (ListVehiclesRequest_SearchMode) EnumDescriptor deprecated

func (ListVehiclesRequest_SearchMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListVehiclesRequest_SearchMode.Descriptor instead.

func (ListVehiclesRequest_SearchMode) Number

func (ListVehiclesRequest_SearchMode) String

func (ListVehiclesRequest_SearchMode) Type

type PublicClient

type PublicClient interface {
	// API entrypoint
	//
	// `GET /`
	//
	// Provides basic information about this Transiter instance and the Transit systems it contains.
	Entrypoint(ctx context.Context, in *EntrypointRequest, opts ...grpc.CallOption) (*EntrypointReply, error)
	// List systems
	//
	// `GET /systems`
	//
	// List all transit systems that are installed in this Transiter instance.
	ListSystems(ctx context.Context, in *ListSystemsRequest, opts ...grpc.CallOption) (*ListSystemsReply, error)
	// Get system
	//
	// `GET /systems/<system_id>`
	//
	// Get a system by its ID.
	GetSystem(ctx context.Context, in *GetSystemRequest, opts ...grpc.CallOption) (*System, error)
	// List agencies
	//
	// `GET /systems/<system_id>/agencies`
	//
	// List all agencies in a system.
	ListAgencies(ctx context.Context, in *ListAgenciesRequest, opts ...grpc.CallOption) (*ListAgenciesReply, error)
	// Get agency
	//
	// `GET /systems/<system_id>/agencies/<agency_id>`
	//
	// Get an agency in a system by its ID.
	GetAgency(ctx context.Context, in *GetAgencyRequest, opts ...grpc.CallOption) (*Agency, error)
	// List stops
	//
	// `GET /systems/<system_id>/stops`
	//
	// List all stops in a system.
	//
	// This endpoint is paginated.
	// If there are more results, the `next_id` field of the response will be populated.
	// To get more results, make the same request with the `first_id` field set to the value of `next_id` in the response.
	ListStops(ctx context.Context, in *ListStopsRequest, opts ...grpc.CallOption) (*ListStopsReply, error)
	// Get stop
	//
	// `GET /systems/<system_id>/stops/<stop_id>`
	//
	// Get a stop in a system by its ID.
	GetStop(ctx context.Context, in *GetStopRequest, opts ...grpc.CallOption) (*Stop, error)
	// List routes
	//
	// `GET /systems/<system_id>/routes`
	//
	// List all routes in a system.
	ListRoutes(ctx context.Context, in *ListRoutesRequest, opts ...grpc.CallOption) (*ListRoutesReply, error)
	// Get route
	//
	// `GET /systems/<system_id>/routes/<route_id>`
	//
	// Get a route in a system by its ID.
	GetRoute(ctx context.Context, in *GetRouteRequest, opts ...grpc.CallOption) (*Route, error)
	// List trips
	//
	// `GET /systems/<system_id>/routes/<route_id>/trips`
	//
	// List all trips in a route.
	ListTrips(ctx context.Context, in *ListTripsRequest, opts ...grpc.CallOption) (*ListTripsReply, error)
	// Get trip
	//
	// `GET /systems/<system_id>/routes/<route_id>/trips/<trip_id>`
	//
	// Get a trip by its ID.
	GetTrip(ctx context.Context, in *GetTripRequest, opts ...grpc.CallOption) (*Trip, error)
	// List alerts
	//
	// `GET /systems/<system_id>/alerts`
	//
	// List all alerts in a system.
	// By default this endpoint returns both active alerts
	//
	//	(alerts which have an active period containing the current time) and non-active alerts.
	ListAlerts(ctx context.Context, in *ListAlertsRequest, opts ...grpc.CallOption) (*ListAlertsReply, error)
	// Get alert
	//
	// `GET /systems/<system_id>/alerts/<alert_id>`
	//
	// Get an alert by its ID.
	GetAlert(ctx context.Context, in *GetAlertRequest, opts ...grpc.CallOption) (*Alert, error)
	// List transfers
	//
	// `GET /systems/<system_id>/transfers`
	//
	// List all transfers in a system.
	ListTransfers(ctx context.Context, in *ListTransfersRequest, opts ...grpc.CallOption) (*ListTransfersReply, error)
	// List feeds
	//
	// `GET /systems/<system_id>/feeds`
	//
	// List all feeds for a system.
	ListFeeds(ctx context.Context, in *ListFeedsRequest, opts ...grpc.CallOption) (*ListFeedsReply, error)
	// Get feed
	//
	// `GET /systems/<system_id>/feeds/<feed_id>`
	//
	// Get a feed in a system by its ID.
	GetFeed(ctx context.Context, in *GetFeedRequest, opts ...grpc.CallOption) (*Feed, error)
	// List vehicles
	//
	// `GET /systems/<system_id>/vehicles`
	//
	// List all feeds for a system.
	ListVehicles(ctx context.Context, in *ListVehiclesRequest, opts ...grpc.CallOption) (*ListVehiclesReply, error)
	// Get vehicle
	//
	// `GET /systems/<system_id>/vehicles/<vehicle_id>`
	//
	// Get a vehicle in a system by its ID.
	GetVehicle(ctx context.Context, in *GetVehicleRequest, opts ...grpc.CallOption) (*Vehicle, error)
}

PublicClient is the client API for Public service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewPublicClient

func NewPublicClient(cc grpc.ClientConnInterface) PublicClient

type PublicServer

type PublicServer interface {
	// API entrypoint
	//
	// `GET /`
	//
	// Provides basic information about this Transiter instance and the Transit systems it contains.
	Entrypoint(context.Context, *EntrypointRequest) (*EntrypointReply, error)
	// List systems
	//
	// `GET /systems`
	//
	// List all transit systems that are installed in this Transiter instance.
	ListSystems(context.Context, *ListSystemsRequest) (*ListSystemsReply, error)
	// Get system
	//
	// `GET /systems/<system_id>`
	//
	// Get a system by its ID.
	GetSystem(context.Context, *GetSystemRequest) (*System, error)
	// List agencies
	//
	// `GET /systems/<system_id>/agencies`
	//
	// List all agencies in a system.
	ListAgencies(context.Context, *ListAgenciesRequest) (*ListAgenciesReply, error)
	// Get agency
	//
	// `GET /systems/<system_id>/agencies/<agency_id>`
	//
	// Get an agency in a system by its ID.
	GetAgency(context.Context, *GetAgencyRequest) (*Agency, error)
	// List stops
	//
	// `GET /systems/<system_id>/stops`
	//
	// List all stops in a system.
	//
	// This endpoint is paginated.
	// If there are more results, the `next_id` field of the response will be populated.
	// To get more results, make the same request with the `first_id` field set to the value of `next_id` in the response.
	ListStops(context.Context, *ListStopsRequest) (*ListStopsReply, error)
	// Get stop
	//
	// `GET /systems/<system_id>/stops/<stop_id>`
	//
	// Get a stop in a system by its ID.
	GetStop(context.Context, *GetStopRequest) (*Stop, error)
	// List routes
	//
	// `GET /systems/<system_id>/routes`
	//
	// List all routes in a system.
	ListRoutes(context.Context, *ListRoutesRequest) (*ListRoutesReply, error)
	// Get route
	//
	// `GET /systems/<system_id>/routes/<route_id>`
	//
	// Get a route in a system by its ID.
	GetRoute(context.Context, *GetRouteRequest) (*Route, error)
	// List trips
	//
	// `GET /systems/<system_id>/routes/<route_id>/trips`
	//
	// List all trips in a route.
	ListTrips(context.Context, *ListTripsRequest) (*ListTripsReply, error)
	// Get trip
	//
	// `GET /systems/<system_id>/routes/<route_id>/trips/<trip_id>`
	//
	// Get a trip by its ID.
	GetTrip(context.Context, *GetTripRequest) (*Trip, error)
	// List alerts
	//
	// `GET /systems/<system_id>/alerts`
	//
	// List all alerts in a system.
	// By default this endpoint returns both active alerts
	//
	//	(alerts which have an active period containing the current time) and non-active alerts.
	ListAlerts(context.Context, *ListAlertsRequest) (*ListAlertsReply, error)
	// Get alert
	//
	// `GET /systems/<system_id>/alerts/<alert_id>`
	//
	// Get an alert by its ID.
	GetAlert(context.Context, *GetAlertRequest) (*Alert, error)
	// List transfers
	//
	// `GET /systems/<system_id>/transfers`
	//
	// List all transfers in a system.
	ListTransfers(context.Context, *ListTransfersRequest) (*ListTransfersReply, error)
	// List feeds
	//
	// `GET /systems/<system_id>/feeds`
	//
	// List all feeds for a system.
	ListFeeds(context.Context, *ListFeedsRequest) (*ListFeedsReply, error)
	// Get feed
	//
	// `GET /systems/<system_id>/feeds/<feed_id>`
	//
	// Get a feed in a system by its ID.
	GetFeed(context.Context, *GetFeedRequest) (*Feed, error)
	// List vehicles
	//
	// `GET /systems/<system_id>/vehicles`
	//
	// List all feeds for a system.
	ListVehicles(context.Context, *ListVehiclesRequest) (*ListVehiclesReply, error)
	// Get vehicle
	//
	// `GET /systems/<system_id>/vehicles/<vehicle_id>`
	//
	// Get a vehicle in a system by its ID.
	GetVehicle(context.Context, *GetVehicleRequest) (*Vehicle, error)
}

PublicServer is the server API for Public service. All implementations should embed UnimplementedPublicServer for forward compatibility

type ResetSchedulerReply

type ResetSchedulerReply struct {
	// contains filtered or unexported fields
}

func (*ResetSchedulerReply) Descriptor deprecated

func (*ResetSchedulerReply) Descriptor() ([]byte, []int)

Deprecated: Use ResetSchedulerReply.ProtoReflect.Descriptor instead.

func (*ResetSchedulerReply) ProtoMessage

func (*ResetSchedulerReply) ProtoMessage()

func (*ResetSchedulerReply) ProtoReflect

func (x *ResetSchedulerReply) ProtoReflect() protoreflect.Message

func (*ResetSchedulerReply) Reset

func (x *ResetSchedulerReply) Reset()

func (*ResetSchedulerReply) String

func (x *ResetSchedulerReply) String() string

type ResetSchedulerRequest

type ResetSchedulerRequest struct {
	// contains filtered or unexported fields
}

func (*ResetSchedulerRequest) Descriptor deprecated

func (*ResetSchedulerRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResetSchedulerRequest.ProtoReflect.Descriptor instead.

func (*ResetSchedulerRequest) ProtoMessage

func (*ResetSchedulerRequest) ProtoMessage()

func (*ResetSchedulerRequest) ProtoReflect

func (x *ResetSchedulerRequest) ProtoReflect() protoreflect.Message

func (*ResetSchedulerRequest) Reset

func (x *ResetSchedulerRequest) Reset()

func (*ResetSchedulerRequest) String

func (x *ResetSchedulerRequest) String() string

type Resource

type Resource struct {
	Path string  `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Href *string `protobuf:"bytes,2,opt,name=href,proto3,oneof" json:"href,omitempty"`
	// contains filtered or unexported fields
}

The resource message contains generic metadata that applies to all resources.

func (*Resource) Descriptor deprecated

func (*Resource) Descriptor() ([]byte, []int)

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetHref

func (x *Resource) GetHref() string

func (*Resource) GetPath

func (x *Resource) GetPath() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

func (x *Resource) ProtoReflect() protoreflect.Message

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

type Route

type Route struct {

	// ID of the route. This is the `route_id` column in `routes.txt`.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Generic metadata about the route resource.
	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// System corresponding to this route.
	// This is the parent resource in Transiter's resource hierarchy.
	System *System_Reference `protobuf:"bytes,3,opt,name=system,proto3" json:"system,omitempty"`
	// Short name of the route. This is the `route_short_name` column in `routes.txt`.
	ShortName *string `protobuf:"bytes,4,opt,name=short_name,json=shortName,proto3,oneof" json:"short_name,omitempty"`
	// Long name of the route. This is the `route_long_name` column in `routes.txt`.
	LongName *string `protobuf:"bytes,5,opt,name=long_name,json=longName,proto3,oneof" json:"long_name,omitempty"`
	// Color of the route. This is the `route_color` column in `routes.txt`.
	Color string `protobuf:"bytes,6,opt,name=color,proto3" json:"color,omitempty"`
	// Text color of the route. This is the `route_text_color` column in `routes.txt`.
	TextColor string `protobuf:"bytes,7,opt,name=text_color,json=textColor,proto3" json:"text_color,omitempty"`
	// Description of the route. This is the `route_desc` column in `routes.txt`.
	Description *string `protobuf:"bytes,8,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// URL of a web page about the route. This is the `route_url` column in `routes.txt`.
	Url *string `protobuf:"bytes,9,opt,name=url,proto3,oneof" json:"url,omitempty"`
	// Sort order of the route. This is the `route_sort_order` column in `routes.txt`.
	SortOrder *int32 `protobuf:"varint,10,opt,name=sort_order,json=sortOrder,proto3,oneof" json:"sort_order,omitempty"`
	// Continuous pickup policy. This is the `continuous_pickup` column in `routes.txt`.
	ContinuousPickup Route_ContinuousPolicy `` /* 139-byte string literal not displayed */
	// Continuous dropoff policy. This is the `continuous_dropoff` column in `routes.txt`.
	ContinuousDropOff Route_ContinuousPolicy `` /* 144-byte string literal not displayed */
	// Type of the route. This is the `route_type` column in `routes.txt`.
	Type Route_Type `protobuf:"varint,13,opt,name=type,proto3,enum=Route_Type" json:"type,omitempty"`
	// Agency this route is associated to.
	//
	// This is determined using the `agency_id` column in `routes.txt`.
	Agency *Agency_Reference `protobuf:"bytes,14,opt,name=agency,proto3" json:"agency,omitempty"`
	// Active alerts for this route.
	//
	// These are determined using the `informed_entity` field in
	// the [GTFS realtime alerts
	// message](https://developers.google.com/transit/gtfs-realtime/reference#message-alert).
	Alerts []*Alert_Reference `protobuf:"bytes,15,rep,name=alerts,proto3" json:"alerts,omitempty"`
	// An estimate of the interval of time between consecutive realtime trips, in seconds.
	//
	// If there is insufficient data to compute an estimate, the field will be empty.
	//
	// The estimate is computed as follows.
	// For each stop that has realtime trips for the route,
	//
	//	the list of arrival times for those trips is examined.
	//
	// The difference between consecutive arrival times is calculated.
	// If there are `N` trips, there will be `N-1` such arrival time diffs.
	// The estimated headway is the average of these diffs across
	// all stops.
	EstimatedHeadway *int32 `protobuf:"varint,16,opt,name=estimated_headway,json=estimatedHeadway,proto3,oneof" json:"estimated_headway,omitempty"`
	// List of service maps for this route.
	ServiceMaps []*Route_ServiceMap `protobuf:"bytes,17,rep,name=service_maps,json=serviceMaps,proto3" json:"service_maps,omitempty"`
	// contains filtered or unexported fields
}

The Route resource.

This resource corresponds to the [route type in the GTFS static specification](https://developers.google.com/transit/gtfs/reference#routestxt). Most of the fields in the resource come directly from the `routes.txt` table. Transiter adds some additional related fields (agency, alerts)

and computed fields (estimated headway, service maps).

func (*Route) Descriptor deprecated

func (*Route) Descriptor() ([]byte, []int)

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetAgency

func (x *Route) GetAgency() *Agency_Reference

func (*Route) GetAlerts

func (x *Route) GetAlerts() []*Alert_Reference

func (*Route) GetColor

func (x *Route) GetColor() string

func (*Route) GetContinuousDropOff

func (x *Route) GetContinuousDropOff() Route_ContinuousPolicy

func (*Route) GetContinuousPickup

func (x *Route) GetContinuousPickup() Route_ContinuousPolicy

func (*Route) GetDescription

func (x *Route) GetDescription() string

func (*Route) GetEstimatedHeadway

func (x *Route) GetEstimatedHeadway() int32

func (*Route) GetId

func (x *Route) GetId() string

func (*Route) GetLongName

func (x *Route) GetLongName() string

func (*Route) GetResource

func (x *Route) GetResource() *Resource

func (*Route) GetServiceMaps

func (x *Route) GetServiceMaps() []*Route_ServiceMap

func (*Route) GetShortName

func (x *Route) GetShortName() string

func (*Route) GetSortOrder

func (x *Route) GetSortOrder() int32

func (*Route) GetSystem

func (x *Route) GetSystem() *System_Reference

func (*Route) GetTextColor

func (x *Route) GetTextColor() string

func (*Route) GetType

func (x *Route) GetType() Route_Type

func (*Route) GetUrl

func (x *Route) GetUrl() string

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) ProtoReflect

func (x *Route) ProtoReflect() protoreflect.Message

func (*Route) Reset

func (x *Route) Reset()

func (*Route) String

func (x *Route) String() string

type Route_ContinuousPolicy

type Route_ContinuousPolicy int32

Enum describing possible policies for continuous pickup or drop-off.

const (
	// Continuous pickup or drop-off allowed.
	Route_ALLOWED Route_ContinuousPolicy = 0
	// Continuous pickup or drop-off not allowed.
	Route_NOT_ALLOWED Route_ContinuousPolicy = 1
	// Must phone the agency to arrange continuous pickup or drop-off.
	Route_PHONE_AGENCY Route_ContinuousPolicy = 2
	// Must coordinate with driver to arrange continuous pickup or drop-off.
	Route_COORDINATE_WITH_DRIVER Route_ContinuousPolicy = 3
)

func (Route_ContinuousPolicy) Descriptor

func (Route_ContinuousPolicy) Enum

func (Route_ContinuousPolicy) EnumDescriptor deprecated

func (Route_ContinuousPolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use Route_ContinuousPolicy.Descriptor instead.

func (Route_ContinuousPolicy) Number

func (Route_ContinuousPolicy) String

func (x Route_ContinuousPolicy) String() string

func (Route_ContinuousPolicy) Type

type Route_Reference

type Route_Reference struct {
	Id       string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Resource *Resource         `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	System   *System_Reference `protobuf:"bytes,3,opt,name=system,proto3" json:"system,omitempty"`
	Color    string            `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"`
	// contains filtered or unexported fields
}

Reference is the reference type for the route resource.

func (*Route_Reference) Descriptor deprecated

func (*Route_Reference) Descriptor() ([]byte, []int)

Deprecated: Use Route_Reference.ProtoReflect.Descriptor instead.

func (*Route_Reference) GetColor

func (x *Route_Reference) GetColor() string

func (*Route_Reference) GetId

func (x *Route_Reference) GetId() string

func (*Route_Reference) GetResource

func (x *Route_Reference) GetResource() *Resource

func (*Route_Reference) GetSystem

func (x *Route_Reference) GetSystem() *System_Reference

func (*Route_Reference) ProtoMessage

func (*Route_Reference) ProtoMessage()

func (*Route_Reference) ProtoReflect

func (x *Route_Reference) ProtoReflect() protoreflect.Message

func (*Route_Reference) Reset

func (x *Route_Reference) Reset()

func (*Route_Reference) String

func (x *Route_Reference) String() string

type Route_ServiceMap

type Route_ServiceMap struct {

	// Config ID of the service map, as specified in the system configuration file.
	ConfigId string `protobuf:"bytes,1,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"`
	// Ordered list of stop at which this route calls.
	//
	// This list may be empty, in which case the route has no service in the service map.
	Stops []*Stop_Reference `protobuf:"bytes,2,rep,name=stops,proto3" json:"stops,omitempty"`
	// contains filtered or unexported fields
}

Message describing the service maps view in routes.

See the service maps documentation for more information on this message and the associated field.

func (*Route_ServiceMap) Descriptor deprecated

func (*Route_ServiceMap) Descriptor() ([]byte, []int)

Deprecated: Use Route_ServiceMap.ProtoReflect.Descriptor instead.

func (*Route_ServiceMap) GetConfigId

func (x *Route_ServiceMap) GetConfigId() string

func (*Route_ServiceMap) GetStops

func (x *Route_ServiceMap) GetStops() []*Stop_Reference

func (*Route_ServiceMap) ProtoMessage

func (*Route_ServiceMap) ProtoMessage()

func (*Route_ServiceMap) ProtoReflect

func (x *Route_ServiceMap) ProtoReflect() protoreflect.Message

func (*Route_ServiceMap) Reset

func (x *Route_ServiceMap) Reset()

func (*Route_ServiceMap) String

func (x *Route_ServiceMap) String() string

type Route_Type

type Route_Type int32

Enum describing possible route types. This corresponds to possible values of the `route_type` column in `routes.txt`.

const (
	Route_LIGHT_RAIL  Route_Type = 0
	Route_SUBWAY      Route_Type = 1
	Route_RAIL        Route_Type = 2
	Route_BUS         Route_Type = 3
	Route_FERRY       Route_Type = 4
	Route_CABLE_TRAM  Route_Type = 5
	Route_AERIAL_LIFT Route_Type = 6
	Route_FUNICULAR   Route_Type = 7
	Route_TROLLEY_BUS Route_Type = 11
	Route_MONORAIL    Route_Type = 12
	Route_UNKNOWN     Route_Type = 100
)

func (Route_Type) Descriptor

func (Route_Type) Descriptor() protoreflect.EnumDescriptor

func (Route_Type) Enum

func (x Route_Type) Enum() *Route_Type

func (Route_Type) EnumDescriptor deprecated

func (Route_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Route_Type.Descriptor instead.

func (Route_Type) Number

func (x Route_Type) Number() protoreflect.EnumNumber

func (Route_Type) String

func (x Route_Type) String() string

func (Route_Type) Type

type ServiceMapConfig

type ServiceMapConfig struct {

	// Identifier of this service maps config.
	// This must be unique within the system.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Source of the service maps built using this config.
	Source ServiceMapConfig_Source `protobuf:"varint,2,opt,name=source,proto3,enum=ServiceMapConfig_Source" json:"source,omitempty"`
	// The threshold setting is used to exclude one-off trip schedules from service maps.
	// When calculating a service map, all trips are bucketed based on their schedule.
	// If the threshold is 0.2, trips are only included if the corresponding bucket contains
	// at least 20% of the trips. In particular, a one-off trip whose bucket only contains
	// itself will be excluded if there are many other trips.
	//
	// Note that a trip's schedule is reversed if needed based on the direction ID.
	Threshold float64 `protobuf:"fixed64,3,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// Additional options relevent for static service maps only.
	StaticOptions *ServiceMapConfig_StaticOptions `protobuf:"bytes,4,opt,name=static_options,json=staticOptions,proto3,oneof" json:"static_options,omitempty"`
	// contains filtered or unexported fields
}

Description of the configuration for a collection of service maps.

func (*ServiceMapConfig) Descriptor deprecated

func (*ServiceMapConfig) Descriptor() ([]byte, []int)

Deprecated: Use ServiceMapConfig.ProtoReflect.Descriptor instead.

func (*ServiceMapConfig) GetId

func (x *ServiceMapConfig) GetId() string

func (*ServiceMapConfig) GetSource

func (*ServiceMapConfig) GetStaticOptions

func (x *ServiceMapConfig) GetStaticOptions() *ServiceMapConfig_StaticOptions

func (*ServiceMapConfig) GetThreshold

func (x *ServiceMapConfig) GetThreshold() float64

func (*ServiceMapConfig) ProtoMessage

func (*ServiceMapConfig) ProtoMessage()

func (*ServiceMapConfig) ProtoReflect

func (x *ServiceMapConfig) ProtoReflect() protoreflect.Message

func (*ServiceMapConfig) Reset

func (x *ServiceMapConfig) Reset()

func (*ServiceMapConfig) String

func (x *ServiceMapConfig) String() string

type ServiceMapConfig_Source

type ServiceMapConfig_Source int32

Source describes the possible sources for service maps.

const (
	// Build the service maps using the GTFS static data.
	ServiceMapConfig_STATIC ServiceMapConfig_Source = 0
	// Build the service maps using the GTFS realtime data.
	ServiceMapConfig_REALTIME ServiceMapConfig_Source = 1
)

func (ServiceMapConfig_Source) Descriptor

func (ServiceMapConfig_Source) Enum

func (ServiceMapConfig_Source) EnumDescriptor deprecated

func (ServiceMapConfig_Source) EnumDescriptor() ([]byte, []int)

Deprecated: Use ServiceMapConfig_Source.Descriptor instead.

func (ServiceMapConfig_Source) Number

func (ServiceMapConfig_Source) String

func (x ServiceMapConfig_Source) String() string

func (ServiceMapConfig_Source) Type

type ServiceMapConfig_StaticOptions

type ServiceMapConfig_StaticOptions struct {

	// If specified, only include trips that start earlier than this time.
	// The time is specified as a number of hours after midnight; i.e., 2:30am is '2.5'.
	StartsEarlierThan *float64 `protobuf:"fixed64,1,opt,name=starts_earlier_than,json=startsEarlierThan,proto3,oneof" json:"starts_earlier_than,omitempty"`
	// If specified, only include trips that start later than this time.
	StartsLaterThan *float64 `protobuf:"fixed64,2,opt,name=starts_later_than,json=startsLaterThan,proto3,oneof" json:"starts_later_than,omitempty"`
	// If specified, only include trips that end earlier than this time.
	EndsEarlierThan *float64 `protobuf:"fixed64,3,opt,name=ends_earlier_than,json=endsEarlierThan,proto3,oneof" json:"ends_earlier_than,omitempty"`
	// If specified, only include trips that end later than this time.
	EndsLaterThan *float64 `protobuf:"fixed64,4,opt,name=ends_later_than,json=endsLaterThan,proto3,oneof" json:"ends_later_than,omitempty"`
	// If specified, only include trips which run on at least one of the provided days.
	// If left empty, no trip filtering is provided.
	Days []string `protobuf:"bytes,5,rep,name=days,proto3" json:"days,omitempty"`
	// contains filtered or unexported fields
}

Description of options relevent for static service maps only.

func (*ServiceMapConfig_StaticOptions) Descriptor deprecated

func (*ServiceMapConfig_StaticOptions) Descriptor() ([]byte, []int)

Deprecated: Use ServiceMapConfig_StaticOptions.ProtoReflect.Descriptor instead.

func (*ServiceMapConfig_StaticOptions) GetDays

func (x *ServiceMapConfig_StaticOptions) GetDays() []string

func (*ServiceMapConfig_StaticOptions) GetEndsEarlierThan

func (x *ServiceMapConfig_StaticOptions) GetEndsEarlierThan() float64

func (*ServiceMapConfig_StaticOptions) GetEndsLaterThan

func (x *ServiceMapConfig_StaticOptions) GetEndsLaterThan() float64

func (*ServiceMapConfig_StaticOptions) GetStartsEarlierThan

func (x *ServiceMapConfig_StaticOptions) GetStartsEarlierThan() float64

func (*ServiceMapConfig_StaticOptions) GetStartsLaterThan

func (x *ServiceMapConfig_StaticOptions) GetStartsLaterThan() float64

func (*ServiceMapConfig_StaticOptions) ProtoMessage

func (*ServiceMapConfig_StaticOptions) ProtoMessage()

func (*ServiceMapConfig_StaticOptions) ProtoReflect

func (*ServiceMapConfig_StaticOptions) Reset

func (x *ServiceMapConfig_StaticOptions) Reset()

func (*ServiceMapConfig_StaticOptions) String

type SetLogLevelReply

type SetLogLevelReply struct {
	// contains filtered or unexported fields
}

func (*SetLogLevelReply) Descriptor deprecated

func (*SetLogLevelReply) Descriptor() ([]byte, []int)

Deprecated: Use SetLogLevelReply.ProtoReflect.Descriptor instead.

func (*SetLogLevelReply) ProtoMessage

func (*SetLogLevelReply) ProtoMessage()

func (*SetLogLevelReply) ProtoReflect

func (x *SetLogLevelReply) ProtoReflect() protoreflect.Message

func (*SetLogLevelReply) Reset

func (x *SetLogLevelReply) Reset()

func (*SetLogLevelReply) String

func (x *SetLogLevelReply) String() string

type SetLogLevelRequest

type SetLogLevelRequest struct {
	LogLevel string `protobuf:"bytes,1,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
	// contains filtered or unexported fields
}

func (*SetLogLevelRequest) Descriptor deprecated

func (*SetLogLevelRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetLogLevelRequest.ProtoReflect.Descriptor instead.

func (*SetLogLevelRequest) GetLogLevel

func (x *SetLogLevelRequest) GetLogLevel() string

func (*SetLogLevelRequest) ProtoMessage

func (*SetLogLevelRequest) ProtoMessage()

func (*SetLogLevelRequest) ProtoReflect

func (x *SetLogLevelRequest) ProtoReflect() protoreflect.Message

func (*SetLogLevelRequest) Reset

func (x *SetLogLevelRequest) Reset()

func (*SetLogLevelRequest) String

func (x *SetLogLevelRequest) String() string

type Stop

type Stop struct {

	// ID of the stop. This is the `stop_id` column in `stops.txt`.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Generic metadata about the stop resource.
	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// System corresponding to this stop.
	// This is the parent resource in Transiter's resource hierarchy.
	System *System_Reference `protobuf:"bytes,3,opt,name=system,proto3" json:"system,omitempty"`
	// Code of the stop. This is the `stop_code` column in `stops.txt`.
	Code *string `protobuf:"bytes,4,opt,name=code,proto3,oneof" json:"code,omitempty"`
	// Name of the stop. This is the `stop_name` column in `stops.txt`.
	Name *string `protobuf:"bytes,5,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// Description of the stop. This is the `stop_desc` column in `stops.txt`.
	Description *string `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// Zone ID of the stop. This is the `zone_id` column in `stops.txt`.
	ZoneId *string `protobuf:"bytes,7,opt,name=zone_id,json=zoneId,proto3,oneof" json:"zone_id,omitempty"`
	// Latitude of the stop. This is the `stop_lat` column in `stops.txt`.
	Latitude *float64 `protobuf:"fixed64,8,opt,name=latitude,proto3,oneof" json:"latitude,omitempty"`
	// Longitude of the stop. This is the `stop_lon` column in `stops.txt`.
	Longitude *float64 `protobuf:"fixed64,9,opt,name=longitude,proto3,oneof" json:"longitude,omitempty"`
	// URL of a webpage about the stop. This is the `stop_url` column in `stops.txt`.
	Url *string `protobuf:"bytes,10,opt,name=url,proto3,oneof" json:"url,omitempty"`
	// Type of the stop. This is the `platform_type` column in `stops.txt`.
	Type Stop_Type `protobuf:"varint,11,opt,name=type,proto3,enum=Stop_Type" json:"type,omitempty"`
	// Parent stop. This is determined using the `parent_station` column in `stops.txt`.
	ParentStop *Stop_Reference `protobuf:"bytes,12,opt,name=parent_stop,json=parentStop,proto3,oneof" json:"parent_stop,omitempty"`
	// Child stops. This are determined using the `parent_station` column in `stops.txt`.
	ChildStops []*Stop_Reference `protobuf:"bytes,13,rep,name=child_stops,json=childStops,proto3" json:"child_stops,omitempty"`
	// Timezone of the stop. This is the `stop_timezone` column in `stops.txt`.
	Timezone *string `protobuf:"bytes,14,opt,name=timezone,proto3,oneof" json:"timezone,omitempty"`
	// If there is wheelchair boarding for this stop. This is the `wheelchair_boarding` column in `stops.txt`.
	WheelchairBoarding *bool `protobuf:"varint,15,opt,name=wheelchair_boarding,json=wheelchairBoarding,proto3,oneof" json:"wheelchair_boarding,omitempty"`
	// Platform code of the stop. This is the `platform_code` column in `stops.txt`.
	PlatformCode *string `protobuf:"bytes,16,opt,name=platform_code,json=platformCode,proto3,oneof" json:"platform_code,omitempty"`
	// List of service maps for this stop.
	ServiceMaps []*Stop_ServiceMap `protobuf:"bytes,17,rep,name=service_maps,json=serviceMaps,proto3" json:"service_maps,omitempty"`
	// Active alerts for this stop.
	//
	// These are determined using the `informed_entity` field in
	// the [GTFS realtime alerts
	// message](https://developers.google.com/transit/gtfs-realtime/reference#message-alert).
	Alerts []*Alert_Reference `protobuf:"bytes,18,rep,name=alerts,proto3" json:"alerts,omitempty"`
	// List of realtime stop times for this stop.
	//
	// A stop time is an event at which a trip calls at a stop.
	StopTimes []*StopTime `protobuf:"bytes,19,rep,name=stop_times,json=stopTimes,proto3" json:"stop_times,omitempty"`
	// Transfers out of this stop.
	//
	// These are determined using the `from_stop_id` field in the GTFS static `transfers.txt` file.
	Transfers []*Transfer `protobuf:"bytes,20,rep,name=transfers,proto3" json:"transfers,omitempty"`
	// List of headsign rules for this stop.
	HeadsignRules []*Stop_HeadsignRule `protobuf:"bytes,21,rep,name=headsign_rules,json=headsignRules,proto3" json:"headsign_rules,omitempty"`
	// contains filtered or unexported fields
}

The Stop resource.

This resource corresponds to the [stop type in the GTFS static specification](https://developers.google.com/transit/gtfs/reference#stopstxt). Most of the static fields in the resource come directly from the `stops.txt` table. Transiter adds some additional related fields (transfers, alerts, stop times)

and computed fields (service maps).

func (*Stop) Descriptor deprecated

func (*Stop) Descriptor() ([]byte, []int)

Deprecated: Use Stop.ProtoReflect.Descriptor instead.

func (*Stop) GetAlerts

func (x *Stop) GetAlerts() []*Alert_Reference

func (*Stop) GetChildStops

func (x *Stop) GetChildStops() []*Stop_Reference

func (*Stop) GetCode

func (x *Stop) GetCode() string

func (*Stop) GetDescription

func (x *Stop) GetDescription() string

func (*Stop) GetHeadsignRules

func (x *Stop) GetHeadsignRules() []*Stop_HeadsignRule

func (*Stop) GetId

func (x *Stop) GetId() string

func (*Stop) GetLatitude

func (x *Stop) GetLatitude() float64

func (*Stop) GetLongitude

func (x *Stop) GetLongitude() float64

func (*Stop) GetName

func (x *Stop) GetName() string

func (*Stop) GetParentStop

func (x *Stop) GetParentStop() *Stop_Reference

func (*Stop) GetPlatformCode

func (x *Stop) GetPlatformCode() string

func (*Stop) GetResource

func (x *Stop) GetResource() *Resource

func (*Stop) GetServiceMaps

func (x *Stop) GetServiceMaps() []*Stop_ServiceMap

func (*Stop) GetStopTimes

func (x *Stop) GetStopTimes() []*StopTime

func (*Stop) GetSystem

func (x *Stop) GetSystem() *System_Reference

func (*Stop) GetTimezone

func (x *Stop) GetTimezone() string

func (*Stop) GetTransfers

func (x *Stop) GetTransfers() []*Transfer

func (*Stop) GetType

func (x *Stop) GetType() Stop_Type

func (*Stop) GetUrl

func (x *Stop) GetUrl() string

func (*Stop) GetWheelchairBoarding

func (x *Stop) GetWheelchairBoarding() bool

func (*Stop) GetZoneId

func (x *Stop) GetZoneId() string

func (*Stop) ProtoMessage

func (*Stop) ProtoMessage()

func (*Stop) ProtoReflect

func (x *Stop) ProtoReflect() protoreflect.Message

func (*Stop) Reset

func (x *Stop) Reset()

func (*Stop) String

func (x *Stop) String() string

type StopTime

type StopTime struct {

	// The stop.
	Stop *Stop_Reference `protobuf:"bytes,1,opt,name=stop,proto3" json:"stop,omitempty"`
	// The trip.
	Trip *Trip_Reference `protobuf:"bytes,2,opt,name=trip,proto3" json:"trip,omitempty"`
	// Arrival time.
	Arrival *StopTime_EstimatedTime `protobuf:"bytes,3,opt,name=arrival,proto3" json:"arrival,omitempty"`
	// Departure time.
	Departure *StopTime_EstimatedTime `protobuf:"bytes,4,opt,name=departure,proto3" json:"departure,omitempty"`
	// If this stop time is in the future.
	// This field is *not* based on the arrival or departure time.
	// Instead, a stop time is considered in the future if it appeared in the most recent
	// GTFS realtime feed for its trip.
	// When this stop time disappears from the trip, Transiter marks it as past and freezes
	// its data.
	Future bool `protobuf:"varint,5,opt,name=future,proto3" json:"future,omitempty"`
	// Stop sequence.
	StopSequence int32 `protobuf:"varint,6,opt,name=stop_sequence,json=stopSequence,proto3" json:"stop_sequence,omitempty"`
	// Headsign.
	Headsign *string `protobuf:"bytes,7,opt,name=headsign,proto3,oneof" json:"headsign,omitempty"`
	// Track, from the NYCT realtime extension.
	Track *string `protobuf:"bytes,8,opt,name=track,proto3,oneof" json:"track,omitempty"`
	// contains filtered or unexported fields
}

Message describing a realtime stop time.

A stop time is an event in which a trip calls at a stop. This message corresponds to the [GTFS realtime `StopTimeUpdate` message](https://developers.google.com/transit/gtfs-realtime/reference#message-stoptimeupdate)

func (*StopTime) Descriptor deprecated

func (*StopTime) Descriptor() ([]byte, []int)

Deprecated: Use StopTime.ProtoReflect.Descriptor instead.

func (*StopTime) GetArrival

func (x *StopTime) GetArrival() *StopTime_EstimatedTime

func (*StopTime) GetDeparture

func (x *StopTime) GetDeparture() *StopTime_EstimatedTime

func (*StopTime) GetFuture

func (x *StopTime) GetFuture() bool

func (*StopTime) GetHeadsign

func (x *StopTime) GetHeadsign() string

func (*StopTime) GetStop

func (x *StopTime) GetStop() *Stop_Reference

func (*StopTime) GetStopSequence

func (x *StopTime) GetStopSequence() int32

func (*StopTime) GetTrack

func (x *StopTime) GetTrack() string

func (*StopTime) GetTrip

func (x *StopTime) GetTrip() *Trip_Reference

func (*StopTime) ProtoMessage

func (*StopTime) ProtoMessage()

func (*StopTime) ProtoReflect

func (x *StopTime) ProtoReflect() protoreflect.Message

func (*StopTime) Reset

func (x *StopTime) Reset()

func (*StopTime) String

func (x *StopTime) String() string

type StopTime_EstimatedTime

type StopTime_EstimatedTime struct {
	Time        *int64 `protobuf:"varint,1,opt,name=time,proto3,oneof" json:"time,omitempty"`
	Delay       *int32 `protobuf:"varint,2,opt,name=delay,proto3,oneof" json:"delay,omitempty"`
	Uncertainty *int32 `protobuf:"varint,3,opt,name=uncertainty,proto3,oneof" json:"uncertainty,omitempty"`
	// contains filtered or unexported fields
}

Message describing the arrival or departure time of a stop time. This corresponds to the [GTFS realtime `StopTimeEvent` message](https://developers.google.com/transit/gtfs-realtime/reference#message-stoptimeevent).

func (*StopTime_EstimatedTime) Descriptor deprecated

func (*StopTime_EstimatedTime) Descriptor() ([]byte, []int)

Deprecated: Use StopTime_EstimatedTime.ProtoReflect.Descriptor instead.

func (*StopTime_EstimatedTime) GetDelay

func (x *StopTime_EstimatedTime) GetDelay() int32

func (*StopTime_EstimatedTime) GetTime

func (x *StopTime_EstimatedTime) GetTime() int64

func (*StopTime_EstimatedTime) GetUncertainty

func (x *StopTime_EstimatedTime) GetUncertainty() int32

func (*StopTime_EstimatedTime) ProtoMessage

func (*StopTime_EstimatedTime) ProtoMessage()

func (*StopTime_EstimatedTime) ProtoReflect

func (x *StopTime_EstimatedTime) ProtoReflect() protoreflect.Message

func (*StopTime_EstimatedTime) Reset

func (x *StopTime_EstimatedTime) Reset()

func (*StopTime_EstimatedTime) String

func (x *StopTime_EstimatedTime) String() string

type Stop_HeadsignRule

type Stop_HeadsignRule struct {

	// Stop the rule is for.
	Stop *Stop_Reference `protobuf:"bytes,1,opt,name=stop,proto3" json:"stop,omitempty"`
	// Priority of the rule (lower is higher priority).
	Priority int32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"`
	// NYCT track.
	Track *string `protobuf:"bytes,3,opt,name=track,proto3,oneof" json:"track,omitempty"`
	// Headsign.
	Headsign string `protobuf:"bytes,4,opt,name=headsign,proto3" json:"headsign,omitempty"`
	// contains filtered or unexported fields
}

Message describing a headsign rule.

func (*Stop_HeadsignRule) Descriptor deprecated

func (*Stop_HeadsignRule) Descriptor() ([]byte, []int)

Deprecated: Use Stop_HeadsignRule.ProtoReflect.Descriptor instead.

func (*Stop_HeadsignRule) GetHeadsign

func (x *Stop_HeadsignRule) GetHeadsign() string

func (*Stop_HeadsignRule) GetPriority

func (x *Stop_HeadsignRule) GetPriority() int32

func (*Stop_HeadsignRule) GetStop

func (x *Stop_HeadsignRule) GetStop() *Stop_Reference

func (*Stop_HeadsignRule) GetTrack

func (x *Stop_HeadsignRule) GetTrack() string

func (*Stop_HeadsignRule) ProtoMessage

func (*Stop_HeadsignRule) ProtoMessage()

func (*Stop_HeadsignRule) ProtoReflect

func (x *Stop_HeadsignRule) ProtoReflect() protoreflect.Message

func (*Stop_HeadsignRule) Reset

func (x *Stop_HeadsignRule) Reset()

func (*Stop_HeadsignRule) String

func (x *Stop_HeadsignRule) String() string

type Stop_Reference

type Stop_Reference struct {
	Id       string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Resource *Resource         `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	System   *System_Reference `protobuf:"bytes,3,opt,name=system,proto3" json:"system,omitempty"`
	Name     *string           `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Reference is the reference type for the stop resource.

func (*Stop_Reference) Descriptor deprecated

func (*Stop_Reference) Descriptor() ([]byte, []int)

Deprecated: Use Stop_Reference.ProtoReflect.Descriptor instead.

func (*Stop_Reference) GetId

func (x *Stop_Reference) GetId() string

func (*Stop_Reference) GetName

func (x *Stop_Reference) GetName() string

func (*Stop_Reference) GetResource

func (x *Stop_Reference) GetResource() *Resource

func (*Stop_Reference) GetSystem

func (x *Stop_Reference) GetSystem() *System_Reference

func (*Stop_Reference) ProtoMessage

func (*Stop_Reference) ProtoMessage()

func (*Stop_Reference) ProtoReflect

func (x *Stop_Reference) ProtoReflect() protoreflect.Message

func (*Stop_Reference) Reset

func (x *Stop_Reference) Reset()

func (*Stop_Reference) String

func (x *Stop_Reference) String() string

type Stop_ServiceMap

type Stop_ServiceMap struct {

	// Config ID of the service map, as specified in the system configuration file.
	ConfigId string `protobuf:"bytes,1,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"`
	// List of routes which call at this stop.
	//
	// This list may be empty, in which case the stop has no service in the service map.
	Routes []*Route_Reference `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes,omitempty"`
	// contains filtered or unexported fields
}

Message describing the service maps view in stops.

See the service maps documentation for more information on this message and the associated field.

func (*Stop_ServiceMap) Descriptor deprecated

func (*Stop_ServiceMap) Descriptor() ([]byte, []int)

Deprecated: Use Stop_ServiceMap.ProtoReflect.Descriptor instead.

func (*Stop_ServiceMap) GetConfigId

func (x *Stop_ServiceMap) GetConfigId() string

func (*Stop_ServiceMap) GetRoutes

func (x *Stop_ServiceMap) GetRoutes() []*Route_Reference

func (*Stop_ServiceMap) ProtoMessage

func (*Stop_ServiceMap) ProtoMessage()

func (*Stop_ServiceMap) ProtoReflect

func (x *Stop_ServiceMap) ProtoReflect() protoreflect.Message

func (*Stop_ServiceMap) Reset

func (x *Stop_ServiceMap) Reset()

func (*Stop_ServiceMap) String

func (x *Stop_ServiceMap) String() string

type Stop_Type

type Stop_Type int32

Enum describing the possible stop types

const (
	Stop_STOP             Stop_Type = 0
	Stop_STATION          Stop_Type = 1
	Stop_ENTRANCE_OR_EXIT Stop_Type = 2
	Stop_GENERIC_NODE     Stop_Type = 3
	Stop_BOARDING_AREA    Stop_Type = 4
)

func (Stop_Type) Descriptor

func (Stop_Type) Descriptor() protoreflect.EnumDescriptor

func (Stop_Type) Enum

func (x Stop_Type) Enum() *Stop_Type

func (Stop_Type) EnumDescriptor deprecated

func (Stop_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Stop_Type.Descriptor instead.

func (Stop_Type) Number

func (x Stop_Type) Number() protoreflect.EnumNumber

func (Stop_Type) String

func (x Stop_Type) String() string

func (Stop_Type) Type

type System

type System struct {

	// ID of the system as specified in the install request.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Generic metadata about the system resource.
	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// Name of the system as specified in the system configuration file.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Status of the system.
	Status    System_Status   `protobuf:"varint,5,opt,name=status,proto3,enum=System_Status" json:"status,omitempty"`
	Agencies  *ChildResources `protobuf:"bytes,6,opt,name=agencies,proto3" json:"agencies,omitempty"`
	Feeds     *ChildResources `protobuf:"bytes,7,opt,name=feeds,proto3" json:"feeds,omitempty"`
	Routes    *ChildResources `protobuf:"bytes,8,opt,name=routes,proto3" json:"routes,omitempty"`
	Stops     *ChildResources `protobuf:"bytes,9,opt,name=stops,proto3" json:"stops,omitempty"`
	Transfers *ChildResources `protobuf:"bytes,10,opt,name=transfers,proto3" json:"transfers,omitempty"`
	// contains filtered or unexported fields
}

The System resource.

func (*System) Descriptor deprecated

func (*System) Descriptor() ([]byte, []int)

Deprecated: Use System.ProtoReflect.Descriptor instead.

func (*System) GetAgencies

func (x *System) GetAgencies() *ChildResources

func (*System) GetFeeds

func (x *System) GetFeeds() *ChildResources

func (*System) GetId

func (x *System) GetId() string

func (*System) GetName

func (x *System) GetName() string

func (*System) GetResource

func (x *System) GetResource() *Resource

func (*System) GetRoutes

func (x *System) GetRoutes() *ChildResources

func (*System) GetStatus

func (x *System) GetStatus() System_Status

func (*System) GetStops

func (x *System) GetStops() *ChildResources

func (*System) GetTransfers

func (x *System) GetTransfers() *ChildResources

func (*System) ProtoMessage

func (*System) ProtoMessage()

func (*System) ProtoReflect

func (x *System) ProtoReflect() protoreflect.Message

func (*System) Reset

func (x *System) Reset()

func (*System) String

func (x *System) String() string

type SystemConfig

type SystemConfig struct {

	// Name of the system.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Configuration for the system's feeds.
	Feeds []*FeedConfig `protobuf:"bytes,2,rep,name=feeds,proto3" json:"feeds,omitempty"`
	// Configuration for the system's service maps.
	ServiceMaps []*ServiceMapConfig `protobuf:"bytes,3,rep,name=service_maps,json=serviceMaps,proto3" json:"service_maps,omitempty"`
	// contains filtered or unexported fields
}

Configuration for a system.

func (*SystemConfig) Descriptor deprecated

func (*SystemConfig) Descriptor() ([]byte, []int)

Deprecated: Use SystemConfig.ProtoReflect.Descriptor instead.

func (*SystemConfig) GetFeeds

func (x *SystemConfig) GetFeeds() []*FeedConfig

func (*SystemConfig) GetName

func (x *SystemConfig) GetName() string

func (*SystemConfig) GetServiceMaps

func (x *SystemConfig) GetServiceMaps() []*ServiceMapConfig

func (*SystemConfig) ProtoMessage

func (*SystemConfig) ProtoMessage()

func (*SystemConfig) ProtoReflect

func (x *SystemConfig) ProtoReflect() protoreflect.Message

func (*SystemConfig) Reset

func (x *SystemConfig) Reset()

func (*SystemConfig) String

func (x *SystemConfig) String() string

type System_Reference

type System_Reference struct {
	Id       string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

Reference is the reference type for the system resource.

func (*System_Reference) Descriptor deprecated

func (*System_Reference) Descriptor() ([]byte, []int)

Deprecated: Use System_Reference.ProtoReflect.Descriptor instead.

func (*System_Reference) GetId

func (x *System_Reference) GetId() string

func (*System_Reference) GetResource

func (x *System_Reference) GetResource() *Resource

func (*System_Reference) ProtoMessage

func (*System_Reference) ProtoMessage()

func (*System_Reference) ProtoReflect

func (x *System_Reference) ProtoReflect() protoreflect.Message

func (*System_Reference) Reset

func (x *System_Reference) Reset()

func (*System_Reference) String

func (x *System_Reference) String() string

type System_Status

type System_Status int32

Enum describing the possible statuses of a system.

const (
	// Unknown status, included for protobuf reasons.
	System_UNKNOWN System_Status = 0
	// The system is currently being installed through an asychronous install request.
	System_INSTALLING System_Status = 1
	// The system was successfully installed and is now active.
	System_ACTIVE System_Status = 2
	// The system was added through an asynchronous install request, but the install failed.
	System_INSTALL_FAILED System_Status = 3
	// The system is currently being updated through an asynchronous update request.
	System_UPDATING System_Status = 4
	// An asynchronous update of the system failed.
	System_UPDATE_FAILED System_Status = 5
	// The system is in the process of being deleted through an asynchronous delete request.
	System_DELETING System_Status = 6
)

func (System_Status) Descriptor

func (System_Status) Enum

func (x System_Status) Enum() *System_Status

func (System_Status) EnumDescriptor deprecated

func (System_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use System_Status.Descriptor instead.

func (System_Status) Number

func (System_Status) String

func (x System_Status) String() string

func (System_Status) Type

type TextConfig

type TextConfig struct {

	// Types that are assignable to Source:
	//
	//	*TextConfig_Url
	//	*TextConfig_Content
	Source isTextConfig_Source `protobuf_oneof:"source"`
	// Whether the config is a template. If true the config will first be processed
	// using Go's template library.
	IsTemplate bool `protobuf:"varint,3,opt,name=is_template,json=isTemplate,proto3" json:"is_template,omitempty"`
	// Arguments to pass to Go's template library if the config is a template.
	//
	// In general as much information as possible should be in the config itself.
	// The template args are intended for things like API keys which are secret
	// and/or different for each person that installs the system.
	TemplateArgs map[string]string `` /* 185-byte string literal not displayed */
	// contains filtered or unexported fields
}

TextConfig contains a Transiter system configuration in non-proto format (e.g. YAML or JSON).

func (*TextConfig) Descriptor deprecated

func (*TextConfig) Descriptor() ([]byte, []int)

Deprecated: Use TextConfig.ProtoReflect.Descriptor instead.

func (*TextConfig) GetContent

func (x *TextConfig) GetContent() string

func (*TextConfig) GetIsTemplate

func (x *TextConfig) GetIsTemplate() bool

func (*TextConfig) GetSource

func (m *TextConfig) GetSource() isTextConfig_Source

func (*TextConfig) GetTemplateArgs

func (x *TextConfig) GetTemplateArgs() map[string]string

func (*TextConfig) GetUrl

func (x *TextConfig) GetUrl() string

func (*TextConfig) ProtoMessage

func (*TextConfig) ProtoMessage()

func (*TextConfig) ProtoReflect

func (x *TextConfig) ProtoReflect() protoreflect.Message

func (*TextConfig) Reset

func (x *TextConfig) Reset()

func (*TextConfig) String

func (x *TextConfig) String() string

type TextConfig_Content

type TextConfig_Content struct {
	// The text content of the config.
	Content string `protobuf:"bytes,2,opt,name=content,proto3,oneof"`
}

type TextConfig_Url

type TextConfig_Url struct {
	// A URL where the config can be retrieved from using a simple GET request.
	// If the URL requires a more complex interaction (authentication, a different
	// HTTP verb), the config should be retrieved outside of Transiter and provided
	// in the content field.
	Url string `protobuf:"bytes,1,opt,name=url,proto3,oneof"`
}

type Transfer

type Transfer struct {

	// TODO: id, system, resource
	// Probably will use the pk of the DB row for the ID
	FromStop        *Stop_Reference `protobuf:"bytes,4,opt,name=from_stop,json=fromStop,proto3" json:"from_stop,omitempty"`
	ToStop          *Stop_Reference `protobuf:"bytes,5,opt,name=to_stop,json=toStop,proto3" json:"to_stop,omitempty"`
	Type            Transfer_Type   `protobuf:"varint,6,opt,name=type,proto3,enum=Transfer_Type" json:"type,omitempty"`
	MinTransferTime *int32          `protobuf:"varint,7,opt,name=min_transfer_time,json=minTransferTime,proto3,oneof" json:"min_transfer_time,omitempty"`
	Distance        *int32          `protobuf:"varint,8,opt,name=distance,proto3,oneof" json:"distance,omitempty"`
	// contains filtered or unexported fields
}

func (*Transfer) Descriptor deprecated

func (*Transfer) Descriptor() ([]byte, []int)

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetDistance

func (x *Transfer) GetDistance() int32

func (*Transfer) GetFromStop

func (x *Transfer) GetFromStop() *Stop_Reference

func (*Transfer) GetMinTransferTime

func (x *Transfer) GetMinTransferTime() int32

func (*Transfer) GetToStop

func (x *Transfer) GetToStop() *Stop_Reference

func (*Transfer) GetType

func (x *Transfer) GetType() Transfer_Type

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect

func (x *Transfer) ProtoReflect() protoreflect.Message

func (*Transfer) Reset

func (x *Transfer) Reset()

func (*Transfer) String

func (x *Transfer) String() string

type Transfer_Type

type Transfer_Type int32
const (
	Transfer_RECOMMENDED   Transfer_Type = 0
	Transfer_TIMED         Transfer_Type = 1
	Transfer_REQUIRES_TIME Transfer_Type = 2
	Transfer_NO_POSSIBLE   Transfer_Type = 3
)

func (Transfer_Type) Descriptor

func (Transfer_Type) Enum

func (x Transfer_Type) Enum() *Transfer_Type

func (Transfer_Type) EnumDescriptor deprecated

func (Transfer_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Transfer_Type.Descriptor instead.

func (Transfer_Type) Number

func (Transfer_Type) String

func (x Transfer_Type) String() string

func (Transfer_Type) Type

type Trip

type Trip struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Generic metadata about the trip resource.
	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// Route corresponding to this trip.
	// This is the parent resource in Transiter's resource hierarchy.
	// It is determined using the `route_id` field in the GTFS realtime feed.
	Route       *Route_Reference   `protobuf:"bytes,3,opt,name=route,proto3" json:"route,omitempty"`
	StartedAt   *int64             `protobuf:"varint,4,opt,name=started_at,json=startedAt,proto3,oneof" json:"started_at,omitempty"`
	Vehicle     *Vehicle_Reference `protobuf:"bytes,5,opt,name=vehicle,proto3,oneof" json:"vehicle,omitempty"`
	DirectionId bool               `protobuf:"varint,6,opt,name=direction_id,json=directionId,proto3" json:"direction_id,omitempty"`
	StopTimes   []*StopTime        `protobuf:"bytes,7,rep,name=stop_times,json=stopTimes,proto3" json:"stop_times,omitempty"`
	// contains filtered or unexported fields
}

func (*Trip) Descriptor deprecated

func (*Trip) Descriptor() ([]byte, []int)

Deprecated: Use Trip.ProtoReflect.Descriptor instead.

func (*Trip) GetDirectionId

func (x *Trip) GetDirectionId() bool

func (*Trip) GetId

func (x *Trip) GetId() string

func (*Trip) GetResource

func (x *Trip) GetResource() *Resource

func (*Trip) GetRoute

func (x *Trip) GetRoute() *Route_Reference

func (*Trip) GetStartedAt

func (x *Trip) GetStartedAt() int64

func (*Trip) GetStopTimes

func (x *Trip) GetStopTimes() []*StopTime

func (*Trip) GetVehicle

func (x *Trip) GetVehicle() *Vehicle_Reference

func (*Trip) ProtoMessage

func (*Trip) ProtoMessage()

func (*Trip) ProtoReflect

func (x *Trip) ProtoReflect() protoreflect.Message

func (*Trip) Reset

func (x *Trip) Reset()

func (*Trip) String

func (x *Trip) String() string

type Trip_Reference

type Trip_Reference struct {
	Id          string             `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Resource    *Resource          `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	Route       *Route_Reference   `protobuf:"bytes,3,opt,name=route,proto3" json:"route,omitempty"`
	Destination *Stop_Reference    `protobuf:"bytes,4,opt,name=destination,proto3" json:"destination,omitempty"`
	Vehicle     *Vehicle_Reference `protobuf:"bytes,5,opt,name=vehicle,proto3,oneof" json:"vehicle,omitempty"`
	DirectionId bool               `protobuf:"varint,6,opt,name=direction_id,json=directionId,proto3" json:"direction_id,omitempty"`
	// contains filtered or unexported fields
}

Reference is the reference type for the trip resource.

func (*Trip_Reference) Descriptor deprecated

func (*Trip_Reference) Descriptor() ([]byte, []int)

Deprecated: Use Trip_Reference.ProtoReflect.Descriptor instead.

func (*Trip_Reference) GetDestination

func (x *Trip_Reference) GetDestination() *Stop_Reference

func (*Trip_Reference) GetDirectionId

func (x *Trip_Reference) GetDirectionId() bool

func (*Trip_Reference) GetId

func (x *Trip_Reference) GetId() string

func (*Trip_Reference) GetResource

func (x *Trip_Reference) GetResource() *Resource

func (*Trip_Reference) GetRoute

func (x *Trip_Reference) GetRoute() *Route_Reference

func (*Trip_Reference) GetVehicle

func (x *Trip_Reference) GetVehicle() *Vehicle_Reference

func (*Trip_Reference) ProtoMessage

func (*Trip_Reference) ProtoMessage()

func (*Trip_Reference) ProtoReflect

func (x *Trip_Reference) ProtoReflect() protoreflect.Message

func (*Trip_Reference) Reset

func (x *Trip_Reference) Reset()

func (*Trip_Reference) String

func (x *Trip_Reference) String() string

type UnimplementedAdminServer

type UnimplementedAdminServer struct {
}

UnimplementedAdminServer should be embedded to have forward compatible implementations.

func (UnimplementedAdminServer) DeleteSystem

func (UnimplementedAdminServer) GetLogLevel

func (UnimplementedAdminServer) GetSchedulerStatus

func (UnimplementedAdminServer) GetSystemConfig

func (UnimplementedAdminServer) ResetScheduler

func (UnimplementedAdminServer) SetLogLevel

func (UnimplementedAdminServer) UpdateFeed

type UnimplementedPublicServer

type UnimplementedPublicServer struct {
}

UnimplementedPublicServer should be embedded to have forward compatible implementations.

func (UnimplementedPublicServer) Entrypoint

func (UnimplementedPublicServer) GetAgency

func (UnimplementedPublicServer) GetAlert

func (UnimplementedPublicServer) GetFeed

func (UnimplementedPublicServer) GetRoute

func (UnimplementedPublicServer) GetStop

func (UnimplementedPublicServer) GetSystem

func (UnimplementedPublicServer) GetTrip

func (UnimplementedPublicServer) GetVehicle

func (UnimplementedPublicServer) ListAgencies

func (UnimplementedPublicServer) ListAlerts

func (UnimplementedPublicServer) ListFeeds

func (UnimplementedPublicServer) ListRoutes

func (UnimplementedPublicServer) ListStops

func (UnimplementedPublicServer) ListSystems

func (UnimplementedPublicServer) ListTransfers

func (UnimplementedPublicServer) ListTrips

func (UnimplementedPublicServer) ListVehicles

type UnsafeAdminServer

type UnsafeAdminServer interface {
	// contains filtered or unexported methods
}

UnsafeAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminServer will result in compilation errors.

type UnsafePublicServer

type UnsafePublicServer interface {
	// contains filtered or unexported methods
}

UnsafePublicServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PublicServer will result in compilation errors.

type UpdateFeedReply

type UpdateFeedReply struct {
	FeedUpdate *FeedUpdate `protobuf:"bytes,1,opt,name=feed_update,json=feedUpdate,proto3" json:"feed_update,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateFeedReply) Descriptor deprecated

func (*UpdateFeedReply) Descriptor() ([]byte, []int)

Deprecated: Use UpdateFeedReply.ProtoReflect.Descriptor instead.

func (*UpdateFeedReply) GetFeedUpdate

func (x *UpdateFeedReply) GetFeedUpdate() *FeedUpdate

func (*UpdateFeedReply) ProtoMessage

func (*UpdateFeedReply) ProtoMessage()

func (*UpdateFeedReply) ProtoReflect

func (x *UpdateFeedReply) ProtoReflect() protoreflect.Message

func (*UpdateFeedReply) Reset

func (x *UpdateFeedReply) Reset()

func (*UpdateFeedReply) String

func (x *UpdateFeedReply) String() string

type UpdateFeedRequest

type UpdateFeedRequest struct {
	SystemId string `protobuf:"bytes,1,opt,name=system_id,json=systemId,proto3" json:"system_id,omitempty"`
	FeedId   string `protobuf:"bytes,2,opt,name=feed_id,json=feedId,proto3" json:"feed_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateFeedRequest) Descriptor deprecated

func (*UpdateFeedRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateFeedRequest.ProtoReflect.Descriptor instead.

func (*UpdateFeedRequest) GetFeedId

func (x *UpdateFeedRequest) GetFeedId() string

func (*UpdateFeedRequest) GetSystemId

func (x *UpdateFeedRequest) GetSystemId() string

func (*UpdateFeedRequest) ProtoMessage

func (*UpdateFeedRequest) ProtoMessage()

func (*UpdateFeedRequest) ProtoReflect

func (x *UpdateFeedRequest) ProtoReflect() protoreflect.Message

func (*UpdateFeedRequest) Reset

func (x *UpdateFeedRequest) Reset()

func (*UpdateFeedRequest) String

func (x *UpdateFeedRequest) String() string

type Vehicle

type Vehicle struct {

	// A unique ID for the vehicle.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// A reference to the vehicle's trip.
	Trip *Trip_Reference `protobuf:"bytes,2,opt,name=trip,proto3,oneof" json:"trip,omitempty"`
	// The vehicle's current latitude.
	Latitude *float64 `protobuf:"fixed64,3,opt,name=latitude,proto3,oneof" json:"latitude,omitempty"`
	// The vehicle's current longitude.
	Longitude *float64 `protobuf:"fixed64,4,opt,name=longitude,proto3,oneof" json:"longitude,omitempty"`
	// The vehicle's current bearing.
	Bearing *float32 `protobuf:"fixed32,5,opt,name=bearing,proto3,oneof" json:"bearing,omitempty"`
	// The vehicle's current odometer reading.
	Odometer *float64 `protobuf:"fixed64,6,opt,name=odometer,proto3,oneof" json:"odometer,omitempty"`
	// The vehicle's current speed.
	Speed *float32 `protobuf:"fixed32,7,opt,name=speed,proto3,oneof" json:"speed,omitempty"`
	// The stop sequence index of the vehicle's current stop.
	StopSequence *int32 `protobuf:"varint,8,opt,name=stop_sequence,json=stopSequence,proto3,oneof" json:"stop_sequence,omitempty"`
	// A reference to the vehicle's current stop.
	Stop *Stop_Reference `protobuf:"bytes,9,opt,name=stop,proto3,oneof" json:"stop,omitempty"`
	// The vehicle's current status.
	CurrentStatus *Vehicle_CurrentStatus `` /* 135-byte string literal not displayed */
	// The timestamp of the last update to the vehicle's position.
	UpdatedAt *int64 `protobuf:"varint,11,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
	// The vehicle's current congestion level.
	CongestionLevel Vehicle_CongestionLevel `` /* 137-byte string literal not displayed */
	// The vehicle's current occupancy status.
	OccupancyStatus *Vehicle_OccupancyStatus `` /* 143-byte string literal not displayed */
	// The percentage of seats occupied.
	OccupancyPercentage *int32 `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

The Vehicle resource.

This resource corresponds to the [vehicle position type in the GTFS static specification](https://developers.google.com/transit/gtfs-realtime/reference#message-vehicleposition).

func (*Vehicle) Descriptor deprecated

func (*Vehicle) Descriptor() ([]byte, []int)

Deprecated: Use Vehicle.ProtoReflect.Descriptor instead.

func (*Vehicle) GetBearing

func (x *Vehicle) GetBearing() float32

func (*Vehicle) GetCongestionLevel

func (x *Vehicle) GetCongestionLevel() Vehicle_CongestionLevel

func (*Vehicle) GetCurrentStatus

func (x *Vehicle) GetCurrentStatus() Vehicle_CurrentStatus

func (*Vehicle) GetId

func (x *Vehicle) GetId() string

func (*Vehicle) GetLatitude

func (x *Vehicle) GetLatitude() float64

func (*Vehicle) GetLongitude

func (x *Vehicle) GetLongitude() float64

func (*Vehicle) GetOccupancyPercentage

func (x *Vehicle) GetOccupancyPercentage() int32

func (*Vehicle) GetOccupancyStatus

func (x *Vehicle) GetOccupancyStatus() Vehicle_OccupancyStatus

func (*Vehicle) GetOdometer

func (x *Vehicle) GetOdometer() float64

func (*Vehicle) GetSpeed

func (x *Vehicle) GetSpeed() float32

func (*Vehicle) GetStop

func (x *Vehicle) GetStop() *Stop_Reference

func (*Vehicle) GetStopSequence

func (x *Vehicle) GetStopSequence() int32

func (*Vehicle) GetTrip

func (x *Vehicle) GetTrip() *Trip_Reference

func (*Vehicle) GetUpdatedAt

func (x *Vehicle) GetUpdatedAt() int64

func (*Vehicle) ProtoMessage

func (*Vehicle) ProtoMessage()

func (*Vehicle) ProtoReflect

func (x *Vehicle) ProtoReflect() protoreflect.Message

func (*Vehicle) Reset

func (x *Vehicle) Reset()

func (*Vehicle) String

func (x *Vehicle) String() string

type Vehicle_CongestionLevel

type Vehicle_CongestionLevel int32

Corresponds to [CongestionLevel](https://developers.google.com/ transit/gtfs-realtime/reference#enum-congestionlevel).

const (
	Vehicle_UNKNOWN_CONGESTION_LEVEL Vehicle_CongestionLevel = 0
	Vehicle_RUNNING_SMOOTHLY         Vehicle_CongestionLevel = 1
	Vehicle_STOP_AND_GO              Vehicle_CongestionLevel = 2
	Vehicle_CONGESTION               Vehicle_CongestionLevel = 3
	Vehicle_SEVERE_CONGESTION        Vehicle_CongestionLevel = 4
)

func (Vehicle_CongestionLevel) Descriptor

func (Vehicle_CongestionLevel) Enum

func (Vehicle_CongestionLevel) EnumDescriptor deprecated

func (Vehicle_CongestionLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use Vehicle_CongestionLevel.Descriptor instead.

func (Vehicle_CongestionLevel) Number

func (Vehicle_CongestionLevel) String

func (x Vehicle_CongestionLevel) String() string

func (Vehicle_CongestionLevel) Type

type Vehicle_CurrentStatus

type Vehicle_CurrentStatus int32

Corresponds to [VehicleStopStatus](https://developers.google.com/ transit/gtfs-realtime/reference#enum-vehiclestopstatus).

const (
	Vehicle_INCOMING_AT   Vehicle_CurrentStatus = 0
	Vehicle_STOPPED_AT    Vehicle_CurrentStatus = 1
	Vehicle_IN_TRANSIT_TO Vehicle_CurrentStatus = 2
)

func (Vehicle_CurrentStatus) Descriptor

func (Vehicle_CurrentStatus) Enum

func (Vehicle_CurrentStatus) EnumDescriptor deprecated

func (Vehicle_CurrentStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use Vehicle_CurrentStatus.Descriptor instead.

func (Vehicle_CurrentStatus) Number

func (Vehicle_CurrentStatus) String

func (x Vehicle_CurrentStatus) String() string

func (Vehicle_CurrentStatus) Type

type Vehicle_OccupancyStatus

type Vehicle_OccupancyStatus int32

Corresponds to [OccupancyStatus](https://developers.google.com/ transit/gtfs-realtime/reference#enum-occupancystatus).

const (
	Vehicle_EMPTY                      Vehicle_OccupancyStatus = 0
	Vehicle_MANY_SEATS_AVAILABLE       Vehicle_OccupancyStatus = 1
	Vehicle_FEW_SEATS_AVAILABLE        Vehicle_OccupancyStatus = 2
	Vehicle_STANDING_ROOM_ONLY         Vehicle_OccupancyStatus = 3
	Vehicle_CRUSHED_STANDING_ROOM_ONLY Vehicle_OccupancyStatus = 4
	Vehicle_FULL                       Vehicle_OccupancyStatus = 5
	Vehicle_NOT_ACCEPTING_PASSENGERS   Vehicle_OccupancyStatus = 6
)

func (Vehicle_OccupancyStatus) Descriptor

func (Vehicle_OccupancyStatus) Enum

func (Vehicle_OccupancyStatus) EnumDescriptor deprecated

func (Vehicle_OccupancyStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use Vehicle_OccupancyStatus.Descriptor instead.

func (Vehicle_OccupancyStatus) Number

func (Vehicle_OccupancyStatus) String

func (x Vehicle_OccupancyStatus) String() string

func (Vehicle_OccupancyStatus) Type

type Vehicle_Reference

type Vehicle_Reference struct {
	Id       string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

Reference is the reference type for the vehicle resource.

func (*Vehicle_Reference) Descriptor deprecated

func (*Vehicle_Reference) Descriptor() ([]byte, []int)

Deprecated: Use Vehicle_Reference.ProtoReflect.Descriptor instead.

func (*Vehicle_Reference) GetId

func (x *Vehicle_Reference) GetId() string

func (*Vehicle_Reference) GetResource

func (x *Vehicle_Reference) GetResource() *Resource

func (*Vehicle_Reference) ProtoMessage

func (*Vehicle_Reference) ProtoMessage()

func (*Vehicle_Reference) ProtoReflect

func (x *Vehicle_Reference) ProtoReflect() protoreflect.Message

func (*Vehicle_Reference) Reset

func (x *Vehicle_Reference) Reset()

func (*Vehicle_Reference) String

func (x *Vehicle_Reference) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL