Debian Codegraph @

maps/places/apiv1/placespb/content_block.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/content_block.proto
20
21 package placespb
22
23 import (
24 localized_text "google.golang.org/genproto/googleapis/type/localized_text"
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 // A block of content that can be served individually.
39 type ContentBlock struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // The topic of the content, for example "overview" or "restaurant".
45 Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
46 // Content related to the topic.
47 Content *localized_text.LocalizedText `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
48 // Experimental: See
49 // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
50 // for more details.
51 //
52 // References that are related to this block of content.
53 References *References `protobuf:"bytes,3,opt,name=references,proto3" json:"references,omitempty"`
54 }
55
56 func (x *ContentBlock) Reset() {
57 *x = ContentBlock{}
58 mi := &file_google_maps_places_v1_content_block_proto_msgTypes[0]
59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
60 ms.StoreMessageInfo(mi)
61 }
62
63 func (x *ContentBlock) String() string {
64 return protoimpl.X.MessageStringOf(x)
65 }
66
67 func (*ContentBlock) ProtoMessage() {}
68
69 func (x *ContentBlock) ProtoReflect() protoreflect.Message {
70 mi := &file_google_maps_places_v1_content_block_proto_msgTypes[0]
71 if x != nil {
72 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
73 if ms.LoadMessageInfo() == nil {
74 ms.StoreMessageInfo(mi)
75 }
76 return ms
77 }
78 return mi.MessageOf(x)
79 }
80
81 // Deprecated: Use ContentBlock.ProtoReflect.Descriptor instead.
82 func (*ContentBlock) Descriptor() ([]byte, []int) {
83 return file_google_maps_places_v1_content_block_proto_rawDescGZIP(), []int{0}
84 }
85
86 func (x *ContentBlock) GetTopic() string {
87 if x != nil {
88 return x.Topic
89 }
90 return ""
91 }
92
93 func (x *ContentBlock) GetContent() *localized_text.LocalizedText {
94 if x != nil {
95 return x.Content
96 }
97 return nil
98 }
99
100 func (x *ContentBlock) GetReferences() *References {
101 if x != nil {
102 return x.References
103 }
104 return nil
105 }
106
107 var File_google_maps_places_v1_content_block_proto protoreflect.FileDescriptor
108
109 var file_google_maps_places_v1_content_block_proto_rawDesc = []byte{
110 0x0a, 0x29, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c,
111 0x61, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f,
112 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f,
113 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e,
114 0x76, 0x31, 0x1a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f,
115 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65,
116 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
117 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64,
118 0x5f, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x0c,
119 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x14, 0x0a, 0x05,
120 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70,
121 0x69, 0x63, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20,
122 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70,
123 0x65, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x54, 0x65, 0x78, 0x74, 0x52,
124 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x0a, 0x72, 0x65, 0x66, 0x65,
125 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67,
126 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e, 0x70, 0x6c, 0x61, 0x63, 0x65,
127 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52,
128 0x0a, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x42, 0xa2, 0x01, 0x0a, 0x19,
129 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6d, 0x61, 0x70, 0x73, 0x2e,
130 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x11, 0x43, 0x6f, 0x6e, 0x74, 0x65,
131 0x6e, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37,
132 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
133 0x2f, 0x67, 0x6f, 0x2f, 0x6d, 0x61, 0x70, 0x73, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2f,
134 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0x3b, 0x70,
135 0x6c, 0x61, 0x63, 0x65, 0x73, 0x70, 0x62, 0xa2, 0x02, 0x06, 0x47, 0x4d, 0x50, 0x53, 0x56, 0x31,
136 0xaa, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x50,
137 0x6c, 0x61, 0x63, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
138 0x65, 0x5c, 0x4d, 0x61, 0x70, 0x73, 0x5c, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x5c, 0x56, 0x31,
139 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
140 }
141
142 var (
143 file_google_maps_places_v1_content_block_proto_rawDescOnce sync.Once
144 file_google_maps_places_v1_content_block_proto_rawDescData = file_google_maps_places_v1_content_block_proto_rawDesc
145 )
146
147 func file_google_maps_places_v1_content_block_proto_rawDescGZIP() []byte {
148 file_google_maps_places_v1_content_block_proto_rawDescOnce.Do(func() {
149 file_google_maps_places_v1_content_block_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_maps_places_v1_content_block_proto_rawDescData)
150 })
151 return file_google_maps_places_v1_content_block_proto_rawDescData
152 }
153
154 var file_google_maps_places_v1_content_block_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
155 var file_google_maps_places_v1_content_block_proto_goTypes = []any{
156 (*ContentBlock)(nil), // 0: google.maps.places.v1.ContentBlock
157 (*localized_text.LocalizedText)(nil), // 1: google.type.LocalizedText
158 (*References)(nil), // 2: google.maps.places.v1.References
159 }
160 var file_google_maps_places_v1_content_block_proto_depIdxs = []int32{
161 1, // 0: google.maps.places.v1.ContentBlock.content:type_name -> google.type.LocalizedText
162 2, // 1: google.maps.places.v1.ContentBlock.references:type_name -> google.maps.places.v1.References
163 2, // [2:2] is the sub-list for method output_type
164 2, // [2:2] is the sub-list for method input_type
165 2, // [2:2] is the sub-list for extension type_name
166 2, // [2:2] is the sub-list for extension extendee
167 0, // [0:2] is the sub-list for field type_name
168 }
169
170 func init() { file_google_maps_places_v1_content_block_proto_init() }
171 func file_google_maps_places_v1_content_block_proto_init() {
172 if File_google_maps_places_v1_content_block_proto != nil {
173 return
174 }
175 file_google_maps_places_v1_reference_proto_init()
176 type x struct{}
177 out := protoimpl.TypeBuilder{
178 File: protoimpl.DescBuilder{
179 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
180 RawDescriptor: file_google_maps_places_v1_content_block_proto_rawDesc,
181 NumEnums: 0,
182 NumMessages: 1,
183 NumExtensions: 0,
184 NumServices: 0,
185 },
186 GoTypes: file_google_maps_places_v1_content_block_proto_goTypes,
187 DependencyIndexes: file_google_maps_places_v1_content_block_proto_depIdxs,
188 MessageInfos: file_google_maps_places_v1_content_block_proto_msgTypes,
189 }.Build()
190 File_google_maps_places_v1_content_block_proto = out.File
191 file_google_maps_places_v1_content_block_proto_rawDesc = nil
192 file_google_maps_places_v1_content_block_proto_goTypes = nil
193 file_google_maps_places_v1_content_block_proto_depIdxs = nil
194 }