Debian Codegraph @

googleapis/type/localized_text/localized_text.pb.go

raw
1 // Copyright 2026 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.26.0
18 // protoc v4.24.4
19 // source: google/type/localized_text.proto
20
21 package localized_text
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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 // Localized variant of a text in a particular language.
39 type LocalizedText struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // Localized string in the language corresponding to
45 // [language_code][google.type.LocalizedText.language_code] below.
46 Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
47 // The text's BCP-47 language code, such as "en-US" or "sr-Latn".
48 //
49 // For more information, see
50 // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
51 LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
52 }
53
54 func (x *LocalizedText) Reset() {
55 *x = LocalizedText{}
56 if protoimpl.UnsafeEnabled {
57 mi := &file_google_type_localized_text_proto_msgTypes[0]
58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 ms.StoreMessageInfo(mi)
60 }
61 }
62
63 func (x *LocalizedText) String() string {
64 return protoimpl.X.MessageStringOf(x)
65 }
66
67 func (*LocalizedText) ProtoMessage() {}
68
69 func (x *LocalizedText) ProtoReflect() protoreflect.Message {
70 mi := &file_google_type_localized_text_proto_msgTypes[0]
71 if protoimpl.UnsafeEnabled && 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 LocalizedText.ProtoReflect.Descriptor instead.
82 func (*LocalizedText) Descriptor() ([]byte, []int) {
83 return file_google_type_localized_text_proto_rawDescGZIP(), []int{0}
84 }
85
86 func (x *LocalizedText) GetText() string {
87 if x != nil {
88 return x.Text
89 }
90 return ""
91 }
92
93 func (x *LocalizedText) GetLanguageCode() string {
94 if x != nil {
95 return x.LanguageCode
96 }
97 return ""
98 }
99
100 var File_google_type_localized_text_proto protoreflect.FileDescriptor
101
102 var file_google_type_localized_text_proto_rawDesc = []byte{
103 0x0a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6c, 0x6f,
104 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f,
105 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x22,
106 0x48, 0x0a, 0x0d, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x54, 0x65, 0x78, 0x74,
107 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
108 0x74, 0x65, 0x78, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65,
109 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x6e,
110 0x67, 0x75, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x42, 0x77, 0x0a, 0x0f, 0x63, 0x6f, 0x6d,
111 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x42, 0x12, 0x4c, 0x6f,
112 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x54, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f,
113 0x50, 0x01, 0x5a, 0x48, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
114 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
115 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6c,
116 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x3b, 0x6c, 0x6f,
117 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x74, 0x65, 0x78, 0x74, 0xa2, 0x02, 0x03, 0x47,
118 0x54, 0x50, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
119 }
120
121 var (
122 file_google_type_localized_text_proto_rawDescOnce sync.Once
123 file_google_type_localized_text_proto_rawDescData = file_google_type_localized_text_proto_rawDesc
124 )
125
126 func file_google_type_localized_text_proto_rawDescGZIP() []byte {
127 file_google_type_localized_text_proto_rawDescOnce.Do(func() {
128 file_google_type_localized_text_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_localized_text_proto_rawDescData)
129 })
130 return file_google_type_localized_text_proto_rawDescData
131 }
132
133 var file_google_type_localized_text_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
134 var file_google_type_localized_text_proto_goTypes = []interface{}{
135 (*LocalizedText)(nil), // 0: google.type.LocalizedText
136 }
137 var file_google_type_localized_text_proto_depIdxs = []int32{
138 0, // [0:0] is the sub-list for method output_type
139 0, // [0:0] is the sub-list for method input_type
140 0, // [0:0] is the sub-list for extension type_name
141 0, // [0:0] is the sub-list for extension extendee
142 0, // [0:0] is the sub-list for field type_name
143 }
144
145 func init() { file_google_type_localized_text_proto_init() }
146 func file_google_type_localized_text_proto_init() {
147 if File_google_type_localized_text_proto != nil {
148 return
149 }
150 if !protoimpl.UnsafeEnabled {
151 file_google_type_localized_text_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
152 switch v := v.(*LocalizedText); i {
153 case 0:
154 return &v.state
155 case 1:
156 return &v.sizeCache
157 case 2:
158 return &v.unknownFields
159 default:
160 return nil
161 }
162 }
163 }
164 type x struct{}
165 out := protoimpl.TypeBuilder{
166 File: protoimpl.DescBuilder{
167 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
168 RawDescriptor: file_google_type_localized_text_proto_rawDesc,
169 NumEnums: 0,
170 NumMessages: 1,
171 NumExtensions: 0,
172 NumServices: 0,
173 },
174 GoTypes: file_google_type_localized_text_proto_goTypes,
175 DependencyIndexes: file_google_type_localized_text_proto_depIdxs,
176 MessageInfos: file_google_type_localized_text_proto_msgTypes,
177 }.Build()
178 File_google_type_localized_text_proto = out.File
179 file_google_type_localized_text_proto_rawDesc = nil
180 file_google_type_localized_text_proto_goTypes = nil
181 file_google_type_localized_text_proto_depIdxs = nil
182 }