Debian Codegraph @

maps/places/apiv1/placespb/travel_mode.pb.go

raw symbols SCIP
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/travel_mode.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 // Travel mode options.
38 // These options map to what [Routes API
39 // offers](https://developers.google.com/maps/documentation/routes/reference/rest/v2/RouteTravelMode).
40 type TravelMode int32
41
42 const (
43 // No travel mode specified. Defaults to `DRIVE`.
44 TravelMode_TRAVEL_MODE_UNSPECIFIED TravelMode = 0
45 // Travel by passenger car.
46 TravelMode_DRIVE TravelMode = 1
47 // Travel by bicycle. Not supported with `search_along_route_parameters`.
48 TravelMode_BICYCLE TravelMode = 2
49 // Travel by walking. Not supported with `search_along_route_parameters`.
50 TravelMode_WALK TravelMode = 3
51 // Motorized two wheeled vehicles of all kinds such as scooters and
52 // motorcycles. Note that this is distinct from the `BICYCLE` travel mode
53 // which covers human-powered transport. Not supported with
54 // `search_along_route_parameters`. Only supported in those countries listed
55 // at [Countries and regions supported for two-wheeled
56 // vehicles](https://developers.google.com/maps/documentation/routes/coverage-two-wheeled).
57 TravelMode_TWO_WHEELER TravelMode = 4
58 )
59
60 // Enum value maps for TravelMode.
61 var (
62 TravelMode_name = map[int32]string{
63 0: "TRAVEL_MODE_UNSPECIFIED",
64 1: "DRIVE",
65 2: "BICYCLE",
66 3: "WALK",
67 4: "TWO_WHEELER",
68 }
69 TravelMode_value = map[string]int32{
70 "TRAVEL_MODE_UNSPECIFIED": 0,
71 "DRIVE": 1,
72 "BICYCLE": 2,
73 "WALK": 3,
74 "TWO_WHEELER": 4,
75 }
76 )
77
78 func (x TravelMode) Enum() *TravelMode {
79 p := new(TravelMode)
80 *p = x
81 return p
82 }
83
84 func (x TravelMode) String() string {
85 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
86 }
87
88 func (TravelMode) Descriptor() protoreflect.EnumDescriptor {
89 return file_google_maps_places_v1_travel_mode_proto_enumTypes[0].Descriptor()
90 }
91
92 func (TravelMode) Type() protoreflect.EnumType {
93 return &file_google_maps_places_v1_travel_mode_proto_enumTypes[0]
94 }
95
96 func (x TravelMode) Number() protoreflect.EnumNumber {
97 return protoreflect.EnumNumber(x)
98 }
99
100 // Deprecated: Use TravelMode.Descriptor instead.
101 func (TravelMode) EnumDescriptor() ([]byte, []int) {
102 return file_google_maps_places_v1_travel_mode_proto_rawDescGZIP(), []int{0}
103 }
104
105 var File_google_maps_places_v1_travel_mode_proto protoreflect.FileDescriptor
106
107 var file_google_maps_places_v1_travel_mode_proto_rawDesc = []byte{
108 0x0a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c,
109 0x61, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x5f, 0x6d,
110 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
111 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31,
112 0x2a, 0x5c, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x76, 0x65, 0x6c, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1b,
113 0x0a, 0x17, 0x54, 0x52, 0x41, 0x56, 0x45, 0x4c, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e,
114 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x44,
115 0x52, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x49, 0x43, 0x59, 0x43, 0x4c,
116 0x45, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x41, 0x4c, 0x4b, 0x10, 0x03, 0x12, 0x0f, 0x0a,
117 0x0b, 0x54, 0x57, 0x4f, 0x5f, 0x57, 0x48, 0x45, 0x45, 0x4c, 0x45, 0x52, 0x10, 0x04, 0x42, 0xa0,
118 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61,
119 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x54, 0x72,
120 0x61, 0x76, 0x65, 0x6c, 0x4d, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
121 0x37, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f,
122 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73,
123 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0x3b,
124 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0xa2, 0x02, 0x06, 0x47, 0x4d, 0x50, 0x53, 0x56,
125 0x31, 0xaa, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e,
126 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67,
127 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x5c, 0x56,
128 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
129 }
130
131 var (
132 file_google_maps_places_v1_travel_mode_proto_rawDescOnce sync.Once
133 file_google_maps_places_v1_travel_mode_proto_rawDescData = file_google_maps_places_v1_travel_mode_proto_rawDesc
134 )
135
136 func file_google_maps_places_v1_travel_mode_proto_rawDescGZIP() []byte {
137 file_google_maps_places_v1_travel_mode_proto_rawDescOnce.Do(func() {
138 file_google_maps_places_v1_travel_mode_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_places_v1_travel_mode_proto_rawDescData)
139 })
140 return file_google_maps_places_v1_travel_mode_proto_rawDescData
141 }
142
143 var file_google_maps_places_v1_travel_mode_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
144 var file_google_maps_places_v1_travel_mode_proto_goTypes = []any{
145 (TravelMode)(0), // 0: google.maps.places.v1.TravelMode
146 }
147 var file_google_maps_places_v1_travel_mode_proto_depIdxs = []int32{
148 0, // [0:0] is the sub-list for method output_type
149 0, // [0:0] is the sub-list for method input_type
150 0, // [0:0] is the sub-list for extension type_name
151 0, // [0:0] is the sub-list for extension extendee
152 0, // [0:0] is the sub-list for field type_name
153 }
154
155 func init() { file_google_maps_places_v1_travel_mode_proto_init() }
156 func file_google_maps_places_v1_travel_mode_proto_init() {
157 if File_google_maps_places_v1_travel_mode_proto != nil {
158 return
159 }
160 type x struct{}
161 out := protoimpl.TypeBuilder{
162 File: protoimpl.DescBuilder{
163 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
164 RawDescriptor: file_google_maps_places_v1_travel_mode_proto_rawDesc,
165 NumEnums: 1,
166 NumMessages: 0,
167 NumExtensions: 0,
168 NumServices: 0,
169 },
170 GoTypes: file_google_maps_places_v1_travel_mode_proto_goTypes,
171 DependencyIndexes: file_google_maps_places_v1_travel_mode_proto_depIdxs,
172 EnumInfos: file_google_maps_places_v1_travel_mode_proto_enumTypes,
173 }.Build()
174 File_google_maps_places_v1_travel_mode_proto = out.File
175 file_google_maps_places_v1_travel_mode_proto_rawDesc = nil
176 file_google_maps_places_v1_travel_mode_proto_goTypes = nil
177 file_google_maps_places_v1_travel_mode_proto_depIdxs = nil
178 }