Debian Codegraph @

maps/places/apiv1/placespb/reference.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/reference.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 // Experimental: See
39 // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
40 // for more details.
41 //
42 // Reference that the generative content is related to.
43 type References struct {
44 state protoimpl.MessageState
45 sizeCache protoimpl.SizeCache
46 unknownFields protoimpl.UnknownFields
47
48 // Reviews that serve as references.
49 Reviews []*Review `protobuf:"bytes,1,rep,name=reviews,proto3" json:"reviews,omitempty"`
50 // The list of resource names of the referenced places. This name can be used
51 // in other APIs that accept Place resource names.
52 Places []string `protobuf:"bytes,2,rep,name=places,proto3" json:"places,omitempty"`
53 }
54
55 func (x *References) Reset() {
56 *x = References{}
57 mi := &file_google_maps_places_v1_reference_proto_msgTypes[0]
58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 ms.StoreMessageInfo(mi)
60 }
61
62 func (x *References) String() string {
63 return protoimpl.X.MessageStringOf(x)
64 }
65
66 func (*References) ProtoMessage() {}
67
68 func (x *References) ProtoReflect() protoreflect.Message {
69 mi := &file_google_maps_places_v1_reference_proto_msgTypes[0]
70 if x != nil {
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 if ms.LoadMessageInfo() == nil {
73 ms.StoreMessageInfo(mi)
74 }
75 return ms
76 }
77 return mi.MessageOf(x)
78 }
79
80 // Deprecated: Use References.ProtoReflect.Descriptor instead.
81 func (*References) Descriptor() ([]byte, []int) {
82 return file_google_maps_places_v1_reference_proto_rawDescGZIP(), []int{0}
83 }
84
85 func (x *References) GetReviews() []*Review {
86 if x != nil {
87 return x.Reviews
88 }
89 return nil
90 }
91
92 func (x *References) GetPlaces() []string {
93 if x != nil {
94 return x.Places
95 }
96 return nil
97 }
98
99 var File_google_maps_places_v1_reference_proto protoreflect.FileDescriptor
100
101 var file_google_maps_places_v1_reference_proto_rawDesc = []byte{
102 0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c,
103 0x61, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63,
104 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
105 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x19,
106 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75,
107 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
108 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31,
109 0x2f, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7f, 0x0a,
110 0x0a, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x07, 0x72,
111 0x65, 0x76, 0x69, 0x65, 0x77, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67,
112 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65,
113 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x07, 0x72, 0x65, 0x76,
114 0x69, 0x65, 0x77, 0x73, 0x12, 0x38, 0x0a, 0x06, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x18, 0x02,
115 0x20, 0x03, 0x28, 0x09, 0x42, 0x20, 0xfa, 0x41, 0x1d, 0x0a, 0x1b, 0x70, 0x6c, 0x61, 0x63, 0x65,
116 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
117 0x2f, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x52, 0x06, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x42, 0x9f,
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, 0x0e, 0x52, 0x65,
120 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37,
121 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
122 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2f,
123 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0x3b, 0x70,
124 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0xa2, 0x02, 0x06, 0x47, 0x4d, 0x50, 0x53, 0x56, 0x31,
125 0xaa, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x50,
126 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
127 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x5c, 0x56, 0x31,
128 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
129 }
130
131 var (
132 file_google_maps_places_v1_reference_proto_rawDescOnce sync.Once
133 file_google_maps_places_v1_reference_proto_rawDescData = file_google_maps_places_v1_reference_proto_rawDesc
134 )
135
136 func file_google_maps_places_v1_reference_proto_rawDescGZIP() []byte {
137 file_google_maps_places_v1_reference_proto_rawDescOnce.Do(func() {
138 file_google_maps_places_v1_reference_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_places_v1_reference_proto_rawDescData)
139 })
140 return file_google_maps_places_v1_reference_proto_rawDescData
141 }
142
143 var file_google_maps_places_v1_reference_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
144 var file_google_maps_places_v1_reference_proto_goTypes = []any{
145 (*References)(nil), // 0: google.maps.places.v1.References
146 (*Review)(nil), // 1: google.maps.places.v1.Review
147 }
148 var file_google_maps_places_v1_reference_proto_depIdxs = []int32{
149 1, // 0: google.maps.places.v1.References.reviews:type_name -> google.maps.places.v1.Review
150 1, // [1:1] is the sub-list for method output_type
151 1, // [1:1] is the sub-list for method input_type
152 1, // [1:1] is the sub-list for extension type_name
153 1, // [1:1] is the sub-list for extension extendee
154 0, // [0:1] is the sub-list for field type_name
155 }
156
157 func init() { file_google_maps_places_v1_reference_proto_init() }
158 func file_google_maps_places_v1_reference_proto_init() {
159 if File_google_maps_places_v1_reference_proto != nil {
160 return
161 }
162 file_google_maps_places_v1_review_proto_init()
163 type x struct{}
164 out := protoimpl.TypeBuilder{
165 File: protoimpl.DescBuilder{
166 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
167 RawDescriptor: file_google_maps_places_v1_reference_proto_rawDesc,
168 NumEnums: 0,
169 NumMessages: 1,
170 NumExtensions: 0,
171 NumServices: 0,
172 },
173 GoTypes: file_google_maps_places_v1_reference_proto_goTypes,
174 DependencyIndexes: file_google_maps_places_v1_reference_proto_depIdxs,
175 MessageInfos: file_google_maps_places_v1_reference_proto_msgTypes,
176 }.Build()
177 File_google_maps_places_v1_reference_proto = out.File
178 file_google_maps_places_v1_reference_proto_rawDesc = nil
179 file_google_maps_places_v1_reference_proto_goTypes = nil
180 file_google_maps_places_v1_reference_proto_depIdxs = nil
181 }