Debian Codegraph @

maps/places/apiv1/placespb/price_range.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/price_range.proto
20
21 package placespb
22
23 import (
24 money "google.golang.org/genproto/googleapis/type/money"
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 // The price range associated with a Place. `end_price` could be unset, which
39 // indicates a range without upper bound (e.g. "More than $100").
40 type PriceRange struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45 // The low end of the price range (inclusive). Price should be at or above
46 // this amount.
47 StartPrice *money.Money `protobuf:"bytes,1,opt,name=start_price,json=startPrice,proto3" json:"start_price,omitempty"`
48 // The high end of the price range (exclusive). Price should be lower than
49 // this amount.
50 EndPrice *money.Money `protobuf:"bytes,2,opt,name=end_price,json=endPrice,proto3" json:"end_price,omitempty"`
51 }
52
53 func (x *PriceRange) Reset() {
54 *x = PriceRange{}
55 mi := &file_google_maps_places_v1_price_range_proto_msgTypes[0]
56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
57 ms.StoreMessageInfo(mi)
58 }
59
60 func (x *PriceRange) String() string {
61 return protoimpl.X.MessageStringOf(x)
62 }
63
64 func (*PriceRange) ProtoMessage() {}
65
66 func (x *PriceRange) ProtoReflect() protoreflect.Message {
67 mi := &file_google_maps_places_v1_price_range_proto_msgTypes[0]
68 if x != nil {
69 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
70 if ms.LoadMessageInfo() == nil {
71 ms.StoreMessageInfo(mi)
72 }
73 return ms
74 }
75 return mi.MessageOf(x)
76 }
77
78 // Deprecated: Use PriceRange.ProtoReflect.Descriptor instead.
79 func (*PriceRange) Descriptor() ([]byte, []int) {
80 return file_google_maps_places_v1_price_range_proto_rawDescGZIP(), []int{0}
81 }
82
83 func (x *PriceRange) GetStartPrice() *money.Money {
84 if x != nil {
85 return x.StartPrice
86 }
87 return nil
88 }
89
90 func (x *PriceRange) GetEndPrice() *money.Money {
91 if x != nil {
92 return x.EndPrice
93 }
94 return nil
95 }
96
97 var File_google_maps_places_v1_price_range_proto protoreflect.FileDescriptor
98
99 var file_google_maps_places_v1_price_range_proto_rawDesc = []byte{
100 0x0a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c,
101 0x61, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x72, 0x61,
102 0x6e, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
103 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31,
104 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6d, 0x6f,
105 0x6e, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x72, 0x0a, 0x0a, 0x50, 0x72, 0x69,
106 0x63, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x33, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74,
107 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67,
108 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x6f, 0x6e, 0x65, 0x79,
109 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x09,
110 0x65, 0x6e, 0x64, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
111 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x6f,
112 0x6e, 0x65, 0x79, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x42, 0xa0, 0x01,
113 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70,
114 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x50, 0x72, 0x69,
115 0x63, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37,
116 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
117 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2f,
118 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0x3b, 0x70,
119 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0xa2, 0x02, 0x06, 0x47, 0x4d, 0x50, 0x53, 0x56, 0x31,
120 0xaa, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x50,
121 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
122 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x5c, 0x56, 0x31,
123 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
124 }
125
126 var (
127 file_google_maps_places_v1_price_range_proto_rawDescOnce sync.Once
128 file_google_maps_places_v1_price_range_proto_rawDescData = file_google_maps_places_v1_price_range_proto_rawDesc
129 )
130
131 func file_google_maps_places_v1_price_range_proto_rawDescGZIP() []byte {
132 file_google_maps_places_v1_price_range_proto_rawDescOnce.Do(func() {
133 file_google_maps_places_v1_price_range_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_places_v1_price_range_proto_rawDescData)
134 })
135 return file_google_maps_places_v1_price_range_proto_rawDescData
136 }
137
138 var file_google_maps_places_v1_price_range_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
139 var file_google_maps_places_v1_price_range_proto_goTypes = []any{
140 (*PriceRange)(nil), // 0: google.maps.places.v1.PriceRange
141 (*money.Money)(nil), // 1: google.type.Money
142 }
143 var file_google_maps_places_v1_price_range_proto_depIdxs = []int32{
144 1, // 0: google.maps.places.v1.PriceRange.start_price:type_name -> google.type.Money
145 1, // 1: google.maps.places.v1.PriceRange.end_price:type_name -> google.type.Money
146 2, // [2:2] is the sub-list for method output_type
147 2, // [2:2] is the sub-list for method input_type
148 2, // [2:2] is the sub-list for extension type_name
149 2, // [2:2] is the sub-list for extension extendee
150 0, // [0:2] is the sub-list for field type_name
151 }
152
153 func init() { file_google_maps_places_v1_price_range_proto_init() }
154 func file_google_maps_places_v1_price_range_proto_init() {
155 if File_google_maps_places_v1_price_range_proto != nil {
156 return
157 }
158 type x struct{}
159 out := protoimpl.TypeBuilder{
160 File: protoimpl.DescBuilder{
161 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
162 RawDescriptor: file_google_maps_places_v1_price_range_proto_rawDesc,
163 NumEnums: 0,
164 NumMessages: 1,
165 NumExtensions: 0,
166 NumServices: 0,
167 },
168 GoTypes: file_google_maps_places_v1_price_range_proto_goTypes,
169 DependencyIndexes: file_google_maps_places_v1_price_range_proto_depIdxs,
170 MessageInfos: file_google_maps_places_v1_price_range_proto_msgTypes,
171 }.Build()
172 File_google_maps_places_v1_price_range_proto = out.File
173 file_google_maps_places_v1_price_range_proto_rawDesc = nil
174 file_google_maps_places_v1_price_range_proto_goTypes = nil
175 file_google_maps_places_v1_price_range_proto_depIdxs = nil
176 }