Debian Codegraph @

maps/places/apiv1/placespb/photo.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/photo.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 // Information about a photo of a place.
39 type Photo struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // Identifier. A reference representing this place photo which may be used to
45 // look up this place photo again (also called the API "resource" name:
46 // `places/{place_id}/photos/{photo}`).
47 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
48 // The maximum available width, in pixels.
49 WidthPx int32 `protobuf:"varint,2,opt,name=width_px,json=widthPx,proto3" json:"width_px,omitempty"`
50 // The maximum available height, in pixels.
51 HeightPx int32 `protobuf:"varint,3,opt,name=height_px,json=heightPx,proto3" json:"height_px,omitempty"`
52 // This photo's authors.
53 AuthorAttributions []*AuthorAttribution `protobuf:"bytes,4,rep,name=author_attributions,json=authorAttributions,proto3" json:"author_attributions,omitempty"`
54 // A link where users can flag a problem with the photo.
55 FlagContentUri string `protobuf:"bytes,5,opt,name=flag_content_uri,json=flagContentUri,proto3" json:"flag_content_uri,omitempty"`
56 // A link to show the photo on Google Maps.
57 GoogleMapsUri string `protobuf:"bytes,6,opt,name=google_maps_uri,json=googleMapsUri,proto3" json:"google_maps_uri,omitempty"`
58 }
59
60 func (x *Photo) Reset() {
61 *x = Photo{}
62 mi := &file_google_maps_places_v1_photo_proto_msgTypes[0]
63 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
64 ms.StoreMessageInfo(mi)
65 }
66
67 func (x *Photo) String() string {
68 return protoimpl.X.MessageStringOf(x)
69 }
70
71 func (*Photo) ProtoMessage() {}
72
73 func (x *Photo) ProtoReflect() protoreflect.Message {
74 mi := &file_google_maps_places_v1_photo_proto_msgTypes[0]
75 if x != nil {
76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
77 if ms.LoadMessageInfo() == nil {
78 ms.StoreMessageInfo(mi)
79 }
80 return ms
81 }
82 return mi.MessageOf(x)
83 }
84
85 // Deprecated: Use Photo.ProtoReflect.Descriptor instead.
86 func (*Photo) Descriptor() ([]byte, []int) {
87 return file_google_maps_places_v1_photo_proto_rawDescGZIP(), []int{0}
88 }
89
90 func (x *Photo) GetName() string {
91 if x != nil {
92 return x.Name
93 }
94 return ""
95 }
96
97 func (x *Photo) GetWidthPx() int32 {
98 if x != nil {
99 return x.WidthPx
100 }
101 return 0
102 }
103
104 func (x *Photo) GetHeightPx() int32 {
105 if x != nil {
106 return x.HeightPx
107 }
108 return 0
109 }
110
111 func (x *Photo) GetAuthorAttributions() []*AuthorAttribution {
112 if x != nil {
113 return x.AuthorAttributions
114 }
115 return nil
116 }
117
118 func (x *Photo) GetFlagContentUri() string {
119 if x != nil {
120 return x.FlagContentUri
121 }
122 return ""
123 }
124
125 func (x *Photo) GetGoogleMapsUri() string {
126 if x != nil {
127 return x.GoogleMapsUri
128 }
129 return ""
130 }
131
132 var File_google_maps_places_v1_photo_proto protoreflect.FileDescriptor
133
134 var file_google_maps_places_v1_photo_proto_rawDesc = []byte{
135 0x0a, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c,
136 0x61, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x68, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72,
137 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73,
138 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
139 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68,
140 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f,
141 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
142 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d,
143 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74,
144 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
145 0xd5, 0x02, 0x0a, 0x05, 0x50, 0x68, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
146 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61,
147 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x77, 0x69, 0x64, 0x74, 0x68, 0x5f, 0x70, 0x78, 0x18, 0x02,
148 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x77, 0x69, 0x64, 0x74, 0x68, 0x50, 0x78, 0x12, 0x1b, 0x0a,
149 0x09, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x70, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
150 0x52, 0x08, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x50, 0x78, 0x12, 0x59, 0x0a, 0x13, 0x61, 0x75,
151 0x74, 0x68, 0x6f, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e,
152 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
153 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e,
154 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f,
155 0x6e, 0x52, 0x12, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,
156 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x66, 0x6c, 0x61, 0x67, 0x5f, 0x63, 0x6f,
157 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
158 0x0e, 0x66, 0x6c, 0x61, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x55, 0x72, 0x69, 0x12,
159 0x26, 0x0a, 0x0f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5f, 0x6d, 0x61, 0x70, 0x73, 0x5f, 0x75,
160 0x72, 0x69, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
161 0x4d, 0x61, 0x70, 0x73, 0x55, 0x72, 0x69, 0x3a, 0x4e, 0xea, 0x41, 0x4b, 0x0a, 0x1b, 0x70, 0x6c,
162 0x61, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
163 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x68, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x70, 0x6c, 0x61, 0x63, 0x65,
164 0x73, 0x2f, 0x7b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x7d, 0x2f, 0x70, 0x68, 0x6f, 0x74, 0x6f, 0x73,
165 0x2f, 0x7b, 0x70, 0x68, 0x6f, 0x74, 0x6f, 0x7d, 0x2a, 0x06, 0x70, 0x68, 0x6f, 0x74, 0x6f, 0x73,
166 0x32, 0x05, 0x70, 0x68, 0x6f, 0x74, 0x6f, 0x42, 0x9b, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e,
167 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63,
168 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x50, 0x68, 0x6f, 0x74, 0x6f, 0x50, 0x72, 0x6f, 0x74,
169 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
170 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c,
171 0x61, 0x63, 0x65, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65,
172 0x73, 0x70, 0x62, 0x3b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0xa2, 0x02, 0x06, 0x47,
173 0x4d, 0x50, 0x53, 0x56, 0x31, 0xaa, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d,
174 0x61, 0x70, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15,
175 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x50, 0x6c, 0x61, 0x63,
176 0x65, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
177 }
178
179 var (
180 file_google_maps_places_v1_photo_proto_rawDescOnce sync.Once
181 file_google_maps_places_v1_photo_proto_rawDescData = file_google_maps_places_v1_photo_proto_rawDesc
182 )
183
184 func file_google_maps_places_v1_photo_proto_rawDescGZIP() []byte {
185 file_google_maps_places_v1_photo_proto_rawDescOnce.Do(func() {
186 file_google_maps_places_v1_photo_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_places_v1_photo_proto_rawDescData)
187 })
188 return file_google_maps_places_v1_photo_proto_rawDescData
189 }
190
191 var file_google_maps_places_v1_photo_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
192 var file_google_maps_places_v1_photo_proto_goTypes = []any{
193 (*Photo)(nil), // 0: google.maps.places.v1.Photo
194 (*AuthorAttribution)(nil), // 1: google.maps.places.v1.AuthorAttribution
195 }
196 var file_google_maps_places_v1_photo_proto_depIdxs = []int32{
197 1, // 0: google.maps.places.v1.Photo.author_attributions:type_name -> google.maps.places.v1.AuthorAttribution
198 1, // [1:1] is the sub-list for method output_type
199 1, // [1:1] is the sub-list for method input_type
200 1, // [1:1] is the sub-list for extension type_name
201 1, // [1:1] is the sub-list for extension extendee
202 0, // [0:1] is the sub-list for field type_name
203 }
204
205 func init() { file_google_maps_places_v1_photo_proto_init() }
206 func file_google_maps_places_v1_photo_proto_init() {
207 if File_google_maps_places_v1_photo_proto != nil {
208 return
209 }
210 file_google_maps_places_v1_attribution_proto_init()
211 type x struct{}
212 out := protoimpl.TypeBuilder{
213 File: protoimpl.DescBuilder{
214 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
215 RawDescriptor: file_google_maps_places_v1_photo_proto_rawDesc,
216 NumEnums: 0,
217 NumMessages: 1,
218 NumExtensions: 0,
219 NumServices: 0,
220 },
221 GoTypes: file_google_maps_places_v1_photo_proto_goTypes,
222 DependencyIndexes: file_google_maps_places_v1_photo_proto_depIdxs,
223 MessageInfos: file_google_maps_places_v1_photo_proto_msgTypes,
224 }.Build()
225 File_google_maps_places_v1_photo_proto = out.File
226 file_google_maps_places_v1_photo_proto_rawDesc = nil
227 file_google_maps_places_v1_photo_proto_goTypes = nil
228 file_google_maps_places_v1_photo_proto_depIdxs = nil
229 }