Debian Codegraph @

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

raw
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/route_modifiers.proto
20
21 package placespb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 reflect "reflect"
28 sync "sync"
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 // Encapsulates a set of optional conditions to satisfy when calculating the
39 // routes.
40 type RouteModifiers struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45 // Optional. When set to true, avoids toll roads where reasonable, giving
46 // preference to routes not containing toll roads. Applies only to the `DRIVE`
47 // and `TWO_WHEELER` [`TravelMode`][google.maps.places.v1.TravelMode].
48 AvoidTolls bool `protobuf:"varint,1,opt,name=avoid_tolls,json=avoidTolls,proto3" json:"avoid_tolls,omitempty"`
49 // Optional. When set to true, avoids highways where reasonable, giving
50 // preference to routes not containing highways. Applies only to the `DRIVE`
51 // and `TWO_WHEELER` [`TravelMode`][google.maps.places.v1.TravelMode].
52 AvoidHighways bool `protobuf:"varint,2,opt,name=avoid_highways,json=avoidHighways,proto3" json:"avoid_highways,omitempty"`
53 // Optional. When set to true, avoids ferries where reasonable, giving
54 // preference to routes not containing ferries. Applies only to the `DRIVE`
55 // and `TWO_WHEELER` [`TravelMode`][google.maps.places.v1.TravelMode].
56 AvoidFerries bool `protobuf:"varint,3,opt,name=avoid_ferries,json=avoidFerries,proto3" json:"avoid_ferries,omitempty"`
57 // Optional. When set to true, avoids navigating indoors where reasonable,
58 // giving preference to routes not containing indoor navigation. Applies only
59 // to the `WALK` [`TravelMode`][google.maps.places.v1.TravelMode].
60 AvoidIndoor bool `protobuf:"varint,4,opt,name=avoid_indoor,json=avoidIndoor,proto3" json:"avoid_indoor,omitempty"`
61 }
62
63 func (x *RouteModifiers) Reset() {
64 *x = RouteModifiers{}
65 mi := &file_google_maps_places_v1_route_modifiers_proto_msgTypes[0]
66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67 ms.StoreMessageInfo(mi)
68 }
69
70 func (x *RouteModifiers) String() string {
71 return protoimpl.X.MessageStringOf(x)
72 }
73
74 func (*RouteModifiers) ProtoMessage() {}
75
76 func (x *RouteModifiers) ProtoReflect() protoreflect.Message {
77 mi := &file_google_maps_places_v1_route_modifiers_proto_msgTypes[0]
78 if x != nil {
79 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
80 if ms.LoadMessageInfo() == nil {
81 ms.StoreMessageInfo(mi)
82 }
83 return ms
84 }
85 return mi.MessageOf(x)
86 }
87
88 // Deprecated: Use RouteModifiers.ProtoReflect.Descriptor instead.
89 func (*RouteModifiers) Descriptor() ([]byte, []int) {
90 return file_google_maps_places_v1_route_modifiers_proto_rawDescGZIP(), []int{0}
91 }
92
93 func (x *RouteModifiers) GetAvoidTolls() bool {
94 if x != nil {
95 return x.AvoidTolls
96 }
97 return false
98 }
99
100 func (x *RouteModifiers) GetAvoidHighways() bool {
101 if x != nil {
102 return x.AvoidHighways
103 }
104 return false
105 }
106
107 func (x *RouteModifiers) GetAvoidFerries() bool {
108 if x != nil {
109 return x.AvoidFerries
110 }
111 return false
112 }
113
114 func (x *RouteModifiers) GetAvoidIndoor() bool {
115 if x != nil {
116 return x.AvoidIndoor
117 }
118 return false
119 }
120
121 var File_google_maps_places_v1_route_modifiers_proto protoreflect.FileDescriptor
122
123 var file_google_maps_places_v1_route_modifiers_proto_rawDesc = []byte{
124 0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c,
125 0x61, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x6d, 0x6f,
126 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67,
127 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65,
128 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
129 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e,
130 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a, 0x0e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4d,
131 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x12, 0x24, 0x0a, 0x0b, 0x61, 0x76, 0x6f, 0x69,
132 0x64, 0x5f, 0x74, 0x6f, 0x6c, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0,
133 0x41, 0x01, 0x52, 0x0a, 0x61, 0x76, 0x6f, 0x69, 0x64, 0x54, 0x6f, 0x6c, 0x6c, 0x73, 0x12, 0x2a,
134 0x0a, 0x0e, 0x61, 0x76, 0x6f, 0x69, 0x64, 0x5f, 0x68, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x73,
135 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0d, 0x61, 0x76, 0x6f,
136 0x69, 0x64, 0x48, 0x69, 0x67, 0x68, 0x77, 0x61, 0x79, 0x73, 0x12, 0x28, 0x0a, 0x0d, 0x61, 0x76,
137 0x6f, 0x69, 0x64, 0x5f, 0x66, 0x65, 0x72, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28,
138 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0c, 0x61, 0x76, 0x6f, 0x69, 0x64, 0x46, 0x65, 0x72,
139 0x72, 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0c, 0x61, 0x76, 0x6f, 0x69, 0x64, 0x5f, 0x69, 0x6e,
140 0x64, 0x6f, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52,
141 0x0b, 0x61, 0x76, 0x6f, 0x69, 0x64, 0x49, 0x6e, 0x64, 0x6f, 0x6f, 0x72, 0x42, 0xa4, 0x01, 0x0a,
142 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73,
143 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x13, 0x52, 0x6f, 0x75, 0x74,
144 0x65, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
145 0x01, 0x5a, 0x37, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
146 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c, 0x61, 0x63,
147 0x65, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70,
148 0x62, 0x3b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0xa2, 0x02, 0x06, 0x47, 0x4d, 0x50,
149 0x53, 0x56, 0x31, 0xaa, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70,
150 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x47, 0x6f,
151 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73,
152 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
153 }
154
155 var (
156 file_google_maps_places_v1_route_modifiers_proto_rawDescOnce sync.Once
157 file_google_maps_places_v1_route_modifiers_proto_rawDescData = file_google_maps_places_v1_route_modifiers_proto_rawDesc
158 )
159
160 func file_google_maps_places_v1_route_modifiers_proto_rawDescGZIP() []byte {
161 file_google_maps_places_v1_route_modifiers_proto_rawDescOnce.Do(func() {
162 file_google_maps_places_v1_route_modifiers_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_places_v1_route_modifiers_proto_rawDescData)
163 })
164 return file_google_maps_places_v1_route_modifiers_proto_rawDescData
165 }
166
167 var file_google_maps_places_v1_route_modifiers_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
168 var file_google_maps_places_v1_route_modifiers_proto_goTypes = []any{
169 (*RouteModifiers)(nil), // 0: google.maps.places.v1.RouteModifiers
170 }
171 var file_google_maps_places_v1_route_modifiers_proto_depIdxs = []int32{
172 0, // [0:0] is the sub-list for method output_type
173 0, // [0:0] is the sub-list for method input_type
174 0, // [0:0] is the sub-list for extension type_name
175 0, // [0:0] is the sub-list for extension extendee
176 0, // [0:0] is the sub-list for field type_name
177 }
178
179 func init() { file_google_maps_places_v1_route_modifiers_proto_init() }
180 func file_google_maps_places_v1_route_modifiers_proto_init() {
181 if File_google_maps_places_v1_route_modifiers_proto != nil {
182 return
183 }
184 type x struct{}
185 out := protoimpl.TypeBuilder{
186 File: protoimpl.DescBuilder{
187 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
188 RawDescriptor: file_google_maps_places_v1_route_modifiers_proto_rawDesc,
189 NumEnums: 0,
190 NumMessages: 1,
191 NumExtensions: 0,
192 NumServices: 0,
193 },
194 GoTypes: file_google_maps_places_v1_route_modifiers_proto_goTypes,
195 DependencyIndexes: file_google_maps_places_v1_route_modifiers_proto_depIdxs,
196 MessageInfos: file_google_maps_places_v1_route_modifiers_proto_msgTypes,
197 }.Build()
198 File_google_maps_places_v1_route_modifiers_proto = out.File
199 file_google_maps_places_v1_route_modifiers_proto_rawDesc = nil
200 file_google_maps_places_v1_route_modifiers_proto_goTypes = nil
201 file_google_maps_places_v1_route_modifiers_proto_depIdxs = nil
202 }