Debian Codegraph @

googleapis/cloud/contentwarehouse/v1/synonymset.pb.go

raw
1 // Copyright 2022 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 v3.12.2
19 // source: google/cloud/contentwarehouse/v1/synonymset.proto
20
21 package contentwarehouse
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 _ "google.golang.org/genproto/googleapis/api/annotations"
28 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // Represents a list of synonyms for a given context.
40 // For example a context "sales" could contain:
41 // Synonym 1: sale, invoice, bill, order
42 // Synonym 2: money, credit, finance, payment
43 // Synonym 3: shipping, freight, transport
44 // Each SynonymSets should be disjoint
45 type SynonymSet struct {
46 state protoimpl.MessageState
47 sizeCache protoimpl.SizeCache
48 unknownFields protoimpl.UnknownFields
49
50 // The resource name of the SynonymSet
51 // This is mandatory for google.api.resource.
52 // Format:
53 // projects/{project_number}/locations/{location}/synonymSets/{context}.
54 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
55 // This is a freeform field. Example contexts can be "sales," "engineering,"
56 // "real estate," "accounting," etc.
57 // The context can be supplied during search requests.
58 Context string `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
59 // List of Synonyms for the context.
60 Synonyms []*SynonymSet_Synonym `protobuf:"bytes,3,rep,name=synonyms,proto3" json:"synonyms,omitempty"`
61 }
62
63 func (x *SynonymSet) Reset() {
64 *x = SynonymSet{}
65 if protoimpl.UnsafeEnabled {
66 mi := &file_google_cloud_contentwarehouse_v1_synonymset_proto_msgTypes[0]
67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
68 ms.StoreMessageInfo(mi)
69 }
70 }
71
72 func (x *SynonymSet) String() string {
73 return protoimpl.X.MessageStringOf(x)
74 }
75
76 func (*SynonymSet) ProtoMessage() {}
77
78 func (x *SynonymSet) ProtoReflect() protoreflect.Message {
79 mi := &file_google_cloud_contentwarehouse_v1_synonymset_proto_msgTypes[0]
80 if protoimpl.UnsafeEnabled && x != nil {
81 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
82 if ms.LoadMessageInfo() == nil {
83 ms.StoreMessageInfo(mi)
84 }
85 return ms
86 }
87 return mi.MessageOf(x)
88 }
89
90 // Deprecated: Use SynonymSet.ProtoReflect.Descriptor instead.
91 func (*SynonymSet) Descriptor() ([]byte, []int) {
92 return file_google_cloud_contentwarehouse_v1_synonymset_proto_rawDescGZIP(), []int{0}
93 }
94
95 func (x *SynonymSet) GetName() string {
96 if x != nil {
97 return x.Name
98 }
99 return ""
100 }
101
102 func (x *SynonymSet) GetContext() string {
103 if x != nil {
104 return x.Context
105 }
106 return ""
107 }
108
109 func (x *SynonymSet) GetSynonyms() []*SynonymSet_Synonym {
110 if x != nil {
111 return x.Synonyms
112 }
113 return nil
114 }
115
116 // Represents a list of words given by the customer
117 // All these words are synonyms of each other.
118 type SynonymSet_Synonym struct {
119 state protoimpl.MessageState
120 sizeCache protoimpl.SizeCache
121 unknownFields protoimpl.UnknownFields
122
123 // For example: sale, invoice, bill, order
124 Words []string `protobuf:"bytes,1,rep,name=words,proto3" json:"words,omitempty"`
125 }
126
127 func (x *SynonymSet_Synonym) Reset() {
128 *x = SynonymSet_Synonym{}
129 if protoimpl.UnsafeEnabled {
130 mi := &file_google_cloud_contentwarehouse_v1_synonymset_proto_msgTypes[1]
131 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
132 ms.StoreMessageInfo(mi)
133 }
134 }
135
136 func (x *SynonymSet_Synonym) String() string {
137 return protoimpl.X.MessageStringOf(x)
138 }
139
140 func (*SynonymSet_Synonym) ProtoMessage() {}
141
142 func (x *SynonymSet_Synonym) ProtoReflect() protoreflect.Message {
143 mi := &file_google_cloud_contentwarehouse_v1_synonymset_proto_msgTypes[1]
144 if protoimpl.UnsafeEnabled && x != nil {
145 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
146 if ms.LoadMessageInfo() == nil {
147 ms.StoreMessageInfo(mi)
148 }
149 return ms
150 }
151 return mi.MessageOf(x)
152 }
153
154 // Deprecated: Use SynonymSet_Synonym.ProtoReflect.Descriptor instead.
155 func (*SynonymSet_Synonym) Descriptor() ([]byte, []int) {
156 return file_google_cloud_contentwarehouse_v1_synonymset_proto_rawDescGZIP(), []int{0, 0}
157 }
158
159 func (x *SynonymSet_Synonym) GetWords() []string {
160 if x != nil {
161 return x.Words
162 }
163 return nil
164 }
165
166 var File_google_cloud_contentwarehouse_v1_synonymset_proto protoreflect.FileDescriptor
167
168 var file_google_cloud_contentwarehouse_v1_synonymset_proto_rawDesc = []byte{
169 0x0a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63,
170 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2f,
171 0x76, 0x31, 0x2f, 0x73, 0x79, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72,
172 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
173 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75,
174 0x73, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
175 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
176 0x22, 0x9d, 0x02, 0x0a, 0x0a, 0x53, 0x79, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x53, 0x65, 0x74, 0x12,
177 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
178 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02,
179 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x50, 0x0a,
180 0x08, 0x73, 0x79, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
181 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63,
182 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e,
183 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x53, 0x65, 0x74, 0x2e, 0x53, 0x79,
184 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x52, 0x08, 0x73, 0x79, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x73, 0x1a,
185 0x1f, 0x0a, 0x07, 0x53, 0x79, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x6f,
186 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x77, 0x6f, 0x72, 0x64, 0x73,
187 0x3a, 0x6e, 0xea, 0x41, 0x6b, 0x0a, 0x2a, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61,
188 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
189 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x79, 0x6e, 0x6f, 0x6e, 0x79, 0x6d, 0x53, 0x65,
190 0x74, 0x12, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f,
191 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
192 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x73, 0x79, 0x6e, 0x6f, 0x6e,
193 0x79, 0x6d, 0x53, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x7d,
194 0x42, 0x8b, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
195 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72,
196 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x53, 0x79, 0x6e, 0x6f, 0x6e,
197 0x79, 0x6d, 0x53, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x50, 0x67, 0x6f,
198 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
199 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
200 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
201 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x63, 0x6f,
202 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x62, 0x06,
203 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
204 }
205
206 var (
207 file_google_cloud_contentwarehouse_v1_synonymset_proto_rawDescOnce sync.Once
208 file_google_cloud_contentwarehouse_v1_synonymset_proto_rawDescData = file_google_cloud_contentwarehouse_v1_synonymset_proto_rawDesc
209 )
210
211 func file_google_cloud_contentwarehouse_v1_synonymset_proto_rawDescGZIP() []byte {
212 file_google_cloud_contentwarehouse_v1_synonymset_proto_rawDescOnce.Do(func() {
213 file_google_cloud_contentwarehouse_v1_synonymset_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_contentwarehouse_v1_synonymset_proto_rawDescData)
214 })
215 return file_google_cloud_contentwarehouse_v1_synonymset_proto_rawDescData
216 }
217
218 var file_google_cloud_contentwarehouse_v1_synonymset_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
219 var file_google_cloud_contentwarehouse_v1_synonymset_proto_goTypes = []interface{}{
220 (*SynonymSet)(nil), // 0: google.cloud.contentwarehouse.v1.SynonymSet
221 (*SynonymSet_Synonym)(nil), // 1: google.cloud.contentwarehouse.v1.SynonymSet.Synonym
222 }
223 var file_google_cloud_contentwarehouse_v1_synonymset_proto_depIdxs = []int32{
224 1, // 0: google.cloud.contentwarehouse.v1.SynonymSet.synonyms:type_name -> google.cloud.contentwarehouse.v1.SynonymSet.Synonym
225 1, // [1:1] is the sub-list for method output_type
226 1, // [1:1] is the sub-list for method input_type
227 1, // [1:1] is the sub-list for extension type_name
228 1, // [1:1] is the sub-list for extension extendee
229 0, // [0:1] is the sub-list for field type_name
230 }
231
232 func init() { file_google_cloud_contentwarehouse_v1_synonymset_proto_init() }
233 func file_google_cloud_contentwarehouse_v1_synonymset_proto_init() {
234 if File_google_cloud_contentwarehouse_v1_synonymset_proto != nil {
235 return
236 }
237 if !protoimpl.UnsafeEnabled {
238 file_google_cloud_contentwarehouse_v1_synonymset_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
239 switch v := v.(*SynonymSet); i {
240 case 0:
241 return &v.state
242 case 1:
243 return &v.sizeCache
244 case 2:
245 return &v.unknownFields
246 default:
247 return nil
248 }
249 }
250 file_google_cloud_contentwarehouse_v1_synonymset_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
251 switch v := v.(*SynonymSet_Synonym); i {
252 case 0:
253 return &v.state
254 case 1:
255 return &v.sizeCache
256 case 2:
257 return &v.unknownFields
258 default:
259 return nil
260 }
261 }
262 }
263 type x struct{}
264 out := protoimpl.TypeBuilder{
265 File: protoimpl.DescBuilder{
266 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
267 RawDescriptor: file_google_cloud_contentwarehouse_v1_synonymset_proto_rawDesc,
268 NumEnums: 0,
269 NumMessages: 2,
270 NumExtensions: 0,
271 NumServices: 0,
272 },
273 GoTypes: file_google_cloud_contentwarehouse_v1_synonymset_proto_goTypes,
274 DependencyIndexes: file_google_cloud_contentwarehouse_v1_synonymset_proto_depIdxs,
275 MessageInfos: file_google_cloud_contentwarehouse_v1_synonymset_proto_msgTypes,
276 }.Build()
277 File_google_cloud_contentwarehouse_v1_synonymset_proto = out.File
278 file_google_cloud_contentwarehouse_v1_synonymset_proto_rawDesc = nil
279 file_google_cloud_contentwarehouse_v1_synonymset_proto_goTypes = nil
280 file_google_cloud_contentwarehouse_v1_synonymset_proto_depIdxs = nil
281 }