| 1 |
// Copyright 2023 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.26.0 |
| 18 |
// protoc v3.21.9 |
| 19 |
// source: google/maps/fleetengine/v1/traffic.proto |
| 20 |
|
| 21 |
package fleetengine |
| 22 |
|
| 23 |
import ( |
| 24 |
reflect "reflect" |
| 25 |
sync "sync" |
| 26 |
|
| 27 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 28 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 29 |
) |
| 30 |
|
| 31 |
const ( |
| 32 |
// Verify that this generated code is sufficiently up-to-date. |
| 33 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 34 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 36 |
) |
| 37 |
|
| 38 |
// The classification of polyline speed based on traffic data. |
| 39 |
type SpeedReadingInterval_Speed int32 |
| 40 |
|
| 41 |
const ( |
| 42 |
// Default value. This value is unused. |
| 43 |
SpeedReadingInterval_SPEED_UNSPECIFIED SpeedReadingInterval_Speed = 0 |
| 44 |
// Normal speed, no slowdown is detected. |
| 45 |
SpeedReadingInterval_NORMAL SpeedReadingInterval_Speed = 1 |
| 46 |
// Slowdown detected, but no traffic jam formed. |
| 47 |
SpeedReadingInterval_SLOW SpeedReadingInterval_Speed = 2 |
| 48 |
// Traffic jam detected. |
| 49 |
SpeedReadingInterval_TRAFFIC_JAM SpeedReadingInterval_Speed = 3 |
| 50 |
) |
| 51 |
|
| 52 |
// Enum value maps for SpeedReadingInterval_Speed. |
| 53 |
var ( |
| 54 |
SpeedReadingInterval_Speed_name = map[int32]string{ |
| 55 |
0: "SPEED_UNSPECIFIED", |
| 56 |
1: "NORMAL", |
| 57 |
2: "SLOW", |
| 58 |
3: "TRAFFIC_JAM", |
| 59 |
} |
| 60 |
SpeedReadingInterval_Speed_value = map[string]int32{ |
| 61 |
"SPEED_UNSPECIFIED": 0, |
| 62 |
"NORMAL": 1, |
| 63 |
"SLOW": 2, |
| 64 |
"TRAFFIC_JAM": 3, |
| 65 |
} |
| 66 |
) |
| 67 |
|
| 68 |
func (x SpeedReadingInterval_Speed) Enum() *SpeedReadingInterval_Speed { |
| 69 |
p := new(SpeedReadingInterval_Speed) |
| 70 |
*p = x |
| 71 |
return p |
| 72 |
} |
| 73 |
|
| 74 |
func (x SpeedReadingInterval_Speed) String() string { |
| 75 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 76 |
} |
| 77 |
|
| 78 |
func (SpeedReadingInterval_Speed) Descriptor() protoreflect.EnumDescriptor { |
| 79 |
return file_google_maps_fleetengine_v1_traffic_proto_enumTypes[0].Descriptor() |
| 80 |
} |
| 81 |
|
| 82 |
func (SpeedReadingInterval_Speed) Type() protoreflect.EnumType { |
| 83 |
return &file_google_maps_fleetengine_v1_traffic_proto_enumTypes[0] |
| 84 |
} |
| 85 |
|
| 86 |
func (x SpeedReadingInterval_Speed) Number() protoreflect.EnumNumber { |
| 87 |
return protoreflect.EnumNumber(x) |
| 88 |
} |
| 89 |
|
| 90 |
// Deprecated: Use SpeedReadingInterval_Speed.Descriptor instead. |
| 91 |
func (SpeedReadingInterval_Speed) EnumDescriptor() ([]byte, []int) { |
| 92 |
return file_google_maps_fleetengine_v1_traffic_proto_rawDescGZIP(), []int{0, 0} |
| 93 |
} |
| 94 |
|
| 95 |
// Traffic density indicator on a contiguous segment of a path. Given a path |
| 96 |
// with points P_0, P_1, ... , P_N (zero-based index), the SpeedReadingInterval |
| 97 |
// defines an interval and describes its traffic using the following categories. |
| 98 |
type SpeedReadingInterval struct { |
| 99 |
state protoimpl.MessageState |
| 100 |
sizeCache protoimpl.SizeCache |
| 101 |
unknownFields protoimpl.UnknownFields |
| 102 |
|
| 103 |
// The starting index of this interval in the path. |
| 104 |
// In JSON, when the index is 0, the field will appear to be unpopulated. |
| 105 |
StartPolylinePointIndex int32 `protobuf:"varint,1,opt,name=start_polyline_point_index,json=startPolylinePointIndex,proto3" json:"start_polyline_point_index,omitempty"` |
| 106 |
// The ending index of this interval in the path. |
| 107 |
// In JSON, when the index is 0, the field will appear to be unpopulated. |
| 108 |
EndPolylinePointIndex int32 `protobuf:"varint,2,opt,name=end_polyline_point_index,json=endPolylinePointIndex,proto3" json:"end_polyline_point_index,omitempty"` |
| 109 |
// Traffic speed in this interval. |
| 110 |
Speed SpeedReadingInterval_Speed `protobuf:"varint,3,opt,name=speed,proto3,enum=maps.fleetengine.v1.SpeedReadingInterval_Speed" json:"speed,omitempty"` |
| 111 |
} |
| 112 |
|
| 113 |
func (x *SpeedReadingInterval) Reset() { |
| 114 |
*x = SpeedReadingInterval{} |
| 115 |
if protoimpl.UnsafeEnabled { |
| 116 |
mi := &file_google_maps_fleetengine_v1_traffic_proto_msgTypes[0] |
| 117 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 118 |
ms.StoreMessageInfo(mi) |
| 119 |
} |
| 120 |
} |
| 121 |
|
| 122 |
func (x *SpeedReadingInterval) String() string { |
| 123 |
return protoimpl.X.MessageStringOf(x) |
| 124 |
} |
| 125 |
|
| 126 |
func (*SpeedReadingInterval) ProtoMessage() {} |
| 127 |
|
| 128 |
func (x *SpeedReadingInterval) ProtoReflect() protoreflect.Message { |
| 129 |
mi := &file_google_maps_fleetengine_v1_traffic_proto_msgTypes[0] |
| 130 |
if protoimpl.UnsafeEnabled && x != nil { |
| 131 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 132 |
if ms.LoadMessageInfo() == nil { |
| 133 |
ms.StoreMessageInfo(mi) |
| 134 |
} |
| 135 |
return ms |
| 136 |
} |
| 137 |
return mi.MessageOf(x) |
| 138 |
} |
| 139 |
|
| 140 |
// Deprecated: Use SpeedReadingInterval.ProtoReflect.Descriptor instead. |
| 141 |
func (*SpeedReadingInterval) Descriptor() ([]byte, []int) { |
| 142 |
return file_google_maps_fleetengine_v1_traffic_proto_rawDescGZIP(), []int{0} |
| 143 |
} |
| 144 |
|
| 145 |
func (x *SpeedReadingInterval) GetStartPolylinePointIndex() int32 { |
| 146 |
if x != nil { |
| 147 |
return x.StartPolylinePointIndex |
| 148 |
} |
| 149 |
return 0 |
| 150 |
} |
| 151 |
|
| 152 |
func (x *SpeedReadingInterval) GetEndPolylinePointIndex() int32 { |
| 153 |
if x != nil { |
| 154 |
return x.EndPolylinePointIndex |
| 155 |
} |
| 156 |
return 0 |
| 157 |
} |
| 158 |
|
| 159 |
func (x *SpeedReadingInterval) GetSpeed() SpeedReadingInterval_Speed { |
| 160 |
if x != nil { |
| 161 |
return x.Speed |
| 162 |
} |
| 163 |
return SpeedReadingInterval_SPEED_UNSPECIFIED |
| 164 |
} |
| 165 |
|
| 166 |
// Traffic density along a Vehicle's path. |
| 167 |
type ConsumableTrafficPolyline struct { |
| 168 |
state protoimpl.MessageState |
| 169 |
sizeCache protoimpl.SizeCache |
| 170 |
unknownFields protoimpl.UnknownFields |
| 171 |
|
| 172 |
// Traffic speed along the path from the previous waypoint to the current |
| 173 |
// waypoint. |
| 174 |
SpeedReadingInterval []*SpeedReadingInterval `protobuf:"bytes,1,rep,name=speed_reading_interval,json=speedReadingInterval,proto3" json:"speed_reading_interval,omitempty"` |
| 175 |
// The path the driver is taking from the previous waypoint to the current |
| 176 |
// waypoint. This path has landmarks in it so clients can show traffic markers |
| 177 |
// along the path (see `speed_reading_interval`). Decoding is not yet |
| 178 |
// supported. |
| 179 |
EncodedPathToWaypoint string `protobuf:"bytes,2,opt,name=encoded_path_to_waypoint,json=encodedPathToWaypoint,proto3" json:"encoded_path_to_waypoint,omitempty"` |
| 180 |
} |
| 181 |
|
| 182 |
func (x *ConsumableTrafficPolyline) Reset() { |
| 183 |
*x = ConsumableTrafficPolyline{} |
| 184 |
if protoimpl.UnsafeEnabled { |
| 185 |
mi := &file_google_maps_fleetengine_v1_traffic_proto_msgTypes[1] |
| 186 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 187 |
ms.StoreMessageInfo(mi) |
| 188 |
} |
| 189 |
} |
| 190 |
|
| 191 |
func (x *ConsumableTrafficPolyline) String() string { |
| 192 |
return protoimpl.X.MessageStringOf(x) |
| 193 |
} |
| 194 |
|
| 195 |
func (*ConsumableTrafficPolyline) ProtoMessage() {} |
| 196 |
|
| 197 |
func (x *ConsumableTrafficPolyline) ProtoReflect() protoreflect.Message { |
| 198 |
mi := &file_google_maps_fleetengine_v1_traffic_proto_msgTypes[1] |
| 199 |
if protoimpl.UnsafeEnabled && x != nil { |
| 200 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 201 |
if ms.LoadMessageInfo() == nil { |
| 202 |
ms.StoreMessageInfo(mi) |
| 203 |
} |
| 204 |
return ms |
| 205 |
} |
| 206 |
return mi.MessageOf(x) |
| 207 |
} |
| 208 |
|
| 209 |
// Deprecated: Use ConsumableTrafficPolyline.ProtoReflect.Descriptor instead. |
| 210 |
func (*ConsumableTrafficPolyline) Descriptor() ([]byte, []int) { |
| 211 |
return file_google_maps_fleetengine_v1_traffic_proto_rawDescGZIP(), []int{1} |
| 212 |
} |
| 213 |
|
| 214 |
func (x *ConsumableTrafficPolyline) GetSpeedReadingInterval() []*SpeedReadingInterval { |
| 215 |
if x != nil { |
| 216 |
return x.SpeedReadingInterval |
| 217 |
} |
| 218 |
return nil |
| 219 |
} |
| 220 |
|
| 221 |
func (x *ConsumableTrafficPolyline) GetEncodedPathToWaypoint() string { |
| 222 |
if x != nil { |
| 223 |
return x.EncodedPathToWaypoint |
| 224 |
} |
| 225 |
return "" |
| 226 |
} |
| 227 |
|
| 228 |
var File_google_maps_fleetengine_v1_traffic_proto protoreflect.FileDescriptor |
| 229 |
|
| 230 |
var file_google_maps_fleetengine_v1_traffic_proto_rawDesc = []byte{ |
| 231 |
0x0a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x66, 0x6c, |
| 232 |
0x65, 0x65, 0x74, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x72, 0x61, |
| 233 |
0x66, 0x66, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x6d, 0x61, 0x70, 0x73, |
| 234 |
0x2e, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x22, |
| 235 |
0x9a, 0x02, 0x0a, 0x14, 0x53, 0x70, 0x65, 0x65, 0x64, 0x52, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, |
| 236 |
0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x3b, 0x0a, 0x1a, 0x73, 0x74, 0x61, 0x72, |
| 237 |
0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, |
| 238 |
0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x17, 0x73, 0x74, |
| 239 |
0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x6f, 0x69, 0x6e, 0x74, |
| 240 |
0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x37, 0x0a, 0x18, 0x65, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x6c, |
| 241 |
0x79, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, |
| 242 |
0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x15, 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x6c, 0x79, |
| 243 |
0x6c, 0x69, 0x6e, 0x65, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x45, |
| 244 |
0x0a, 0x05, 0x73, 0x70, 0x65, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, |
| 245 |
0x6d, 0x61, 0x70, 0x73, 0x2e, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, |
| 246 |
0x2e, 0x76, 0x31, 0x2e, 0x53, 0x70, 0x65, 0x65, 0x64, 0x52, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, |
| 247 |
0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x2e, 0x53, 0x70, 0x65, 0x65, 0x64, 0x52, 0x05, |
| 248 |
0x73, 0x70, 0x65, 0x65, 0x64, 0x22, 0x45, 0x0a, 0x05, 0x53, 0x70, 0x65, 0x65, 0x64, 0x12, 0x15, |
| 249 |
0x0a, 0x11, 0x53, 0x50, 0x45, 0x45, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, |
| 250 |
0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x10, |
| 251 |
0x01, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x54, |
| 252 |
0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x5f, 0x4a, 0x41, 0x4d, 0x10, 0x03, 0x22, 0xb5, 0x01, 0x0a, |
| 253 |
0x19, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x72, 0x61, 0x66, 0x66, |
| 254 |
0x69, 0x63, 0x50, 0x6f, 0x6c, 0x79, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x73, 0x70, |
| 255 |
0x65, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x74, 0x65, |
| 256 |
0x72, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6d, 0x61, 0x70, |
| 257 |
0x73, 0x2e, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, |
| 258 |
0x2e, 0x53, 0x70, 0x65, 0x65, 0x64, 0x52, 0x65, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, |
| 259 |
0x65, 0x72, 0x76, 0x61, 0x6c, 0x52, 0x14, 0x73, 0x70, 0x65, 0x65, 0x64, 0x52, 0x65, 0x61, 0x64, |
| 260 |
0x69, 0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x37, 0x0a, 0x18, 0x65, |
| 261 |
0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x5f, 0x74, 0x6f, 0x5f, 0x77, |
| 262 |
0x61, 0x79, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x65, |
| 263 |
0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x50, 0x61, 0x74, 0x68, 0x54, 0x6f, 0x57, 0x61, 0x79, 0x70, |
| 264 |
0x6f, 0x69, 0x6e, 0x74, 0x42, 0x79, 0x0a, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, |
| 265 |
0x61, 0x70, 0x73, 0x2e, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2e, |
| 266 |
0x76, 0x31, 0x42, 0x0c, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, |
| 267 |
0x50, 0x01, 0x5a, 0x45, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, |
| 268 |
0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, |
| 269 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x66, |
| 270 |
0x6c, 0x65, 0x65, 0x74, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x66, 0x6c, |
| 271 |
0x65, 0x65, 0x74, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0xa2, 0x02, 0x03, 0x43, 0x46, 0x45, 0x62, |
| 272 |
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 273 |
} |
| 274 |
|
| 275 |
var ( |
| 276 |
file_google_maps_fleetengine_v1_traffic_proto_rawDescOnce sync.Once |
| 277 |
file_google_maps_fleetengine_v1_traffic_proto_rawDescData = file_google_maps_fleetengine_v1_traffic_proto_rawDesc |
| 278 |
) |
| 279 |
|
| 280 |
func file_google_maps_fleetengine_v1_traffic_proto_rawDescGZIP() []byte { |
| 281 |
file_google_maps_fleetengine_v1_traffic_proto_rawDescOnce.Do(func() { |
| 282 |
file_google_maps_fleetengine_v1_traffic_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_fleetengine_v1_traffic_proto_rawDescData) |
| 283 |
}) |
| 284 |
return file_google_maps_fleetengine_v1_traffic_proto_rawDescData |
| 285 |
} |
| 286 |
|
| 287 |
var file_google_maps_fleetengine_v1_traffic_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 288 |
var file_google_maps_fleetengine_v1_traffic_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 289 |
var file_google_maps_fleetengine_v1_traffic_proto_goTypes = []interface{}{ |
| 290 |
(SpeedReadingInterval_Speed)(0), // 0: maps.fleetengine.v1.SpeedReadingInterval.Speed |
| 291 |
(*SpeedReadingInterval)(nil), // 1: maps.fleetengine.v1.SpeedReadingInterval |
| 292 |
(*ConsumableTrafficPolyline)(nil), // 2: maps.fleetengine.v1.ConsumableTrafficPolyline |
| 293 |
} |
| 294 |
var file_google_maps_fleetengine_v1_traffic_proto_depIdxs = []int32{ |
| 295 |
0, // 0: maps.fleetengine.v1.SpeedReadingInterval.speed:type_name -> maps.fleetengine.v1.SpeedReadingInterval.Speed |
| 296 |
1, // 1: maps.fleetengine.v1.ConsumableTrafficPolyline.speed_reading_interval:type_name -> maps.fleetengine.v1.SpeedReadingInterval |
| 297 |
2, // [2:2] is the sub-list for method output_type |
| 298 |
2, // [2:2] is the sub-list for method input_type |
| 299 |
2, // [2:2] is the sub-list for extension type_name |
| 300 |
2, // [2:2] is the sub-list for extension extendee |
| 301 |
0, // [0:2] is the sub-list for field type_name |
| 302 |
} |
| 303 |
|
| 304 |
func init() { file_google_maps_fleetengine_v1_traffic_proto_init() } |
| 305 |
func file_google_maps_fleetengine_v1_traffic_proto_init() { |
| 306 |
if File_google_maps_fleetengine_v1_traffic_proto != nil { |
| 307 |
return |
| 308 |
} |
| 309 |
if !protoimpl.UnsafeEnabled { |
| 310 |
file_google_maps_fleetengine_v1_traffic_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 311 |
switch v := v.(*SpeedReadingInterval); i { |
| 312 |
case 0: |
| 313 |
return &v.state |
| 314 |
case 1: |
| 315 |
return &v.sizeCache |
| 316 |
case 2: |
| 317 |
return &v.unknownFields |
| 318 |
default: |
| 319 |
return nil |
| 320 |
} |
| 321 |
} |
| 322 |
file_google_maps_fleetengine_v1_traffic_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 323 |
switch v := v.(*ConsumableTrafficPolyline); i { |
| 324 |
case 0: |
| 325 |
return &v.state |
| 326 |
case 1: |
| 327 |
return &v.sizeCache |
| 328 |
case 2: |
| 329 |
return &v.unknownFields |
| 330 |
default: |
| 331 |
return nil |
| 332 |
} |
| 333 |
} |
| 334 |
} |
| 335 |
type x struct{} |
| 336 |
out := protoimpl.TypeBuilder{ |
| 337 |
File: protoimpl.DescBuilder{ |
| 338 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 339 |
RawDescriptor: file_google_maps_fleetengine_v1_traffic_proto_rawDesc, |
| 340 |
NumEnums: 1, |
| 341 |
NumMessages: 2, |
| 342 |
NumExtensions: 0, |
| 343 |
NumServices: 0, |
| 344 |
}, |
| 345 |
GoTypes: file_google_maps_fleetengine_v1_traffic_proto_goTypes, |
| 346 |
DependencyIndexes: file_google_maps_fleetengine_v1_traffic_proto_depIdxs, |
| 347 |
EnumInfos: file_google_maps_fleetengine_v1_traffic_proto_enumTypes, |
| 348 |
MessageInfos: file_google_maps_fleetengine_v1_traffic_proto_msgTypes, |
| 349 |
}.Build() |
| 350 |
File_google_maps_fleetengine_v1_traffic_proto = out.File |
| 351 |
file_google_maps_fleetengine_v1_traffic_proto_rawDesc = nil |
| 352 |
file_google_maps_fleetengine_v1_traffic_proto_goTypes = nil |
| 353 |
file_google_maps_fleetengine_v1_traffic_proto_depIdxs = nil |
| 354 |
} |