| 1 |
// Copyright 2025 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.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/maps/places/v1/routing_preference.proto |
| 20 |
|
| 21 |
package placespb |
| 22 |
|
| 23 |
import ( |
| 24 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 25 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 26 |
reflect "reflect" |
| 27 |
sync "sync" |
| 28 |
) |
| 29 |
|
| 30 |
const ( |
| 31 |
// Verify that this generated code is sufficiently up-to-date. |
| 32 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 33 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 34 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 35 |
) |
| 36 |
|
| 37 |
// A set of values that specify factors to take into consideration when |
| 38 |
// calculating the route. |
| 39 |
type RoutingPreference int32 |
| 40 |
|
| 41 |
const ( |
| 42 |
// No routing preference specified. Default to `TRAFFIC_UNAWARE`. |
| 43 |
RoutingPreference_ROUTING_PREFERENCE_UNSPECIFIED RoutingPreference = 0 |
| 44 |
// Computes routes without taking live traffic conditions into consideration. |
| 45 |
// Suitable when traffic conditions don't matter or are not applicable. |
| 46 |
// Using this value produces the lowest latency. |
| 47 |
// Note: For [`TravelMode`][google.maps.places.v1.TravelMode] |
| 48 |
// `DRIVE` and `TWO_WHEELER`, the route and duration chosen are based on road |
| 49 |
// network and average time-independent traffic conditions, not current road |
| 50 |
// conditions. Consequently, routes may include roads that are temporarily |
| 51 |
// closed. Results for a given |
| 52 |
// request may vary over time due to changes in the road network, updated |
| 53 |
// average traffic conditions, and the distributed nature of the service. |
| 54 |
// Results may also vary between nearly-equivalent routes at any time or |
| 55 |
// frequency. |
| 56 |
RoutingPreference_TRAFFIC_UNAWARE RoutingPreference = 1 |
| 57 |
// Calculates routes taking live traffic conditions into consideration. |
| 58 |
// In contrast to `TRAFFIC_AWARE_OPTIMAL`, some optimizations are applied to |
| 59 |
// significantly reduce latency. |
| 60 |
RoutingPreference_TRAFFIC_AWARE RoutingPreference = 2 |
| 61 |
// Calculates the routes taking live traffic conditions into consideration, |
| 62 |
// without applying most performance optimizations. Using this value produces |
| 63 |
// the highest latency. |
| 64 |
RoutingPreference_TRAFFIC_AWARE_OPTIMAL RoutingPreference = 3 |
| 65 |
) |
| 66 |
|
| 67 |
// Enum value maps for RoutingPreference. |
| 68 |
var ( |
| 69 |
RoutingPreference_name = map[int32]string{ |
| 70 |
0: "ROUTING_PREFERENCE_UNSPECIFIED", |
| 71 |
1: "TRAFFIC_UNAWARE", |
| 72 |
2: "TRAFFIC_AWARE", |
| 73 |
3: "TRAFFIC_AWARE_OPTIMAL", |
| 74 |
} |
| 75 |
RoutingPreference_value = map[string]int32{ |
| 76 |
"ROUTING_PREFERENCE_UNSPECIFIED": 0, |
| 77 |
"TRAFFIC_UNAWARE": 1, |
| 78 |
"TRAFFIC_AWARE": 2, |
| 79 |
"TRAFFIC_AWARE_OPTIMAL": 3, |
| 80 |
} |
| 81 |
) |
| 82 |
|
| 83 |
func (x RoutingPreference) Enum() *RoutingPreference { |
| 84 |
p := new(RoutingPreference) |
| 85 |
*p = x |
| 86 |
return p |
| 87 |
} |
| 88 |
|
| 89 |
func (x RoutingPreference) String() string { |
| 90 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 91 |
} |
| 92 |
|
| 93 |
func (RoutingPreference) Descriptor() protoreflect.EnumDescriptor { |
| 94 |
return file_google_maps_places_v1_routing_preference_proto_enumTypes[0].Descriptor() |
| 95 |
} |
| 96 |
|
| 97 |
func (RoutingPreference) Type() protoreflect.EnumType { |
| 98 |
return &file_google_maps_places_v1_routing_preference_proto_enumTypes[0] |
| 99 |
} |
| 100 |
|
| 101 |
func (x RoutingPreference) Number() protoreflect.EnumNumber { |
| 102 |
return protoreflect.EnumNumber(x) |
| 103 |
} |
| 104 |
|
| 105 |
// Deprecated: Use RoutingPreference.Descriptor instead. |
| 106 |
func (RoutingPreference) EnumDescriptor() ([]byte, []int) { |
| 107 |
return file_google_maps_places_v1_routing_preference_proto_rawDescGZIP(), []int{0} |
| 108 |
} |
| 109 |
|
| 110 |
var File_google_maps_places_v1_routing_preference_proto protoreflect.FileDescriptor |
| 111 |
|
| 112 |
var file_google_maps_places_v1_routing_preference_proto_rawDesc = []byte{ |
| 113 |
0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c, |
| 114 |
0x61, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, |
| 115 |
0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 116 |
0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, |
| 117 |
0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2a, 0x7a, 0x0a, 0x11, 0x52, 0x6f, 0x75, 0x74, 0x69, |
| 118 |
0x6e, 0x67, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x1e, |
| 119 |
0x52, 0x4f, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x45, 0x52, 0x45, 0x4e, |
| 120 |
0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, |
| 121 |
0x12, 0x13, 0x0a, 0x0f, 0x54, 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x5f, 0x55, 0x4e, 0x41, 0x57, |
| 122 |
0x41, 0x52, 0x45, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, |
| 123 |
0x5f, 0x41, 0x57, 0x41, 0x52, 0x45, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x52, 0x41, 0x46, |
| 124 |
0x46, 0x49, 0x43, 0x5f, 0x41, 0x57, 0x41, 0x52, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4d, 0x41, |
| 125 |
0x4c, 0x10, 0x03, 0x42, 0xa7, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 126 |
0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, |
| 127 |
0x31, 0x42, 0x16, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, |
| 128 |
0x65, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x63, 0x6c, 0x6f, |
| 129 |
0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, |
| 130 |
0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x61, 0x70, 0x69, |
| 131 |
0x76, 0x31, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0x3b, 0x70, 0x6c, 0x61, 0x63, |
| 132 |
0x65, 0x73, 0x70, 0x62, 0xa2, 0x02, 0x06, 0x47, 0x4d, 0x50, 0x53, 0x56, 0x31, 0xaa, 0x02, 0x15, |
| 133 |
0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x63, |
| 134 |
0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x4d, |
| 135 |
0x61, 0x70, 0x73, 0x5c, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, |
| 136 |
0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 137 |
} |
| 138 |
|
| 139 |
var ( |
| 140 |
file_google_maps_places_v1_routing_preference_proto_rawDescOnce sync.Once |
| 141 |
file_google_maps_places_v1_routing_preference_proto_rawDescData = file_google_maps_places_v1_routing_preference_proto_rawDesc |
| 142 |
) |
| 143 |
|
| 144 |
func file_google_maps_places_v1_routing_preference_proto_rawDescGZIP() []byte { |
| 145 |
file_google_maps_places_v1_routing_preference_proto_rawDescOnce.Do(func() { |
| 146 |
file_google_maps_places_v1_routing_preference_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_places_v1_routing_preference_proto_rawDescData) |
| 147 |
}) |
| 148 |
return file_google_maps_places_v1_routing_preference_proto_rawDescData |
| 149 |
} |
| 150 |
|
| 151 |
var file_google_maps_places_v1_routing_preference_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 152 |
var file_google_maps_places_v1_routing_preference_proto_goTypes = []any{ |
| 153 |
(RoutingPreference)(0), // 0: google.maps.places.v1.RoutingPreference |
| 154 |
} |
| 155 |
var file_google_maps_places_v1_routing_preference_proto_depIdxs = []int32{ |
| 156 |
0, // [0:0] is the sub-list for method output_type |
| 157 |
0, // [0:0] is the sub-list for method input_type |
| 158 |
0, // [0:0] is the sub-list for extension type_name |
| 159 |
0, // [0:0] is the sub-list for extension extendee |
| 160 |
0, // [0:0] is the sub-list for field type_name |
| 161 |
} |
| 162 |
|
| 163 |
func init() { file_google_maps_places_v1_routing_preference_proto_init() } |
| 164 |
func file_google_maps_places_v1_routing_preference_proto_init() { |
| 165 |
if File_google_maps_places_v1_routing_preference_proto != nil { |
| 166 |
return |
| 167 |
} |
| 168 |
type x struct{} |
| 169 |
out := protoimpl.TypeBuilder{ |
| 170 |
File: protoimpl.DescBuilder{ |
| 171 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 172 |
RawDescriptor: file_google_maps_places_v1_routing_preference_proto_rawDesc, |
| 173 |
NumEnums: 1, |
| 174 |
NumMessages: 0, |
| 175 |
NumExtensions: 0, |
| 176 |
NumServices: 0, |
| 177 |
}, |
| 178 |
GoTypes: file_google_maps_places_v1_routing_preference_proto_goTypes, |
| 179 |
DependencyIndexes: file_google_maps_places_v1_routing_preference_proto_depIdxs, |
| 180 |
EnumInfos: file_google_maps_places_v1_routing_preference_proto_enumTypes, |
| 181 |
}.Build() |
| 182 |
File_google_maps_places_v1_routing_preference_proto = out.File |
| 183 |
file_google_maps_places_v1_routing_preference_proto_rawDesc = nil |
| 184 |
file_google_maps_places_v1_routing_preference_proto_goTypes = nil |
| 185 |
file_google_maps_places_v1_routing_preference_proto_depIdxs = nil |
| 186 |
} |