| 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/filters.proto |
| 20 |
|
| 21 |
package contentwarehouse |
| 22 |
|
| 23 |
import ( |
| 24 |
reflect "reflect" |
| 25 |
sync "sync" |
| 26 |
|
| 27 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 28 |
interval "google.golang.org/genproto/googleapis/type/interval" |
| 29 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 30 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 31 |
) |
| 32 |
|
| 33 |
const ( |
| 34 |
// Verify that this generated code is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 36 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 37 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 38 |
) |
| 39 |
|
| 40 |
// Time field used in TimeFilter. |
| 41 |
type TimeFilter_TimeField int32 |
| 42 |
|
| 43 |
const ( |
| 44 |
// Default value. |
| 45 |
TimeFilter_TIME_FIELD_UNSPECIFIED TimeFilter_TimeField = 0 |
| 46 |
// Earliest document create time. |
| 47 |
TimeFilter_CREATE_TIME TimeFilter_TimeField = 1 |
| 48 |
// Latest document update time. |
| 49 |
TimeFilter_UPDATE_TIME TimeFilter_TimeField = 2 |
| 50 |
) |
| 51 |
|
| 52 |
// Enum value maps for TimeFilter_TimeField. |
| 53 |
var ( |
| 54 |
TimeFilter_TimeField_name = map[int32]string{ |
| 55 |
0: "TIME_FIELD_UNSPECIFIED", |
| 56 |
1: "CREATE_TIME", |
| 57 |
2: "UPDATE_TIME", |
| 58 |
} |
| 59 |
TimeFilter_TimeField_value = map[string]int32{ |
| 60 |
"TIME_FIELD_UNSPECIFIED": 0, |
| 61 |
"CREATE_TIME": 1, |
| 62 |
"UPDATE_TIME": 2, |
| 63 |
} |
| 64 |
) |
| 65 |
|
| 66 |
func (x TimeFilter_TimeField) Enum() *TimeFilter_TimeField { |
| 67 |
p := new(TimeFilter_TimeField) |
| 68 |
*p = x |
| 69 |
return p |
| 70 |
} |
| 71 |
|
| 72 |
func (x TimeFilter_TimeField) String() string { |
| 73 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 74 |
} |
| 75 |
|
| 76 |
func (TimeFilter_TimeField) Descriptor() protoreflect.EnumDescriptor { |
| 77 |
return file_google_cloud_contentwarehouse_v1_filters_proto_enumTypes[0].Descriptor() |
| 78 |
} |
| 79 |
|
| 80 |
func (TimeFilter_TimeField) Type() protoreflect.EnumType { |
| 81 |
return &file_google_cloud_contentwarehouse_v1_filters_proto_enumTypes[0] |
| 82 |
} |
| 83 |
|
| 84 |
func (x TimeFilter_TimeField) Number() protoreflect.EnumNumber { |
| 85 |
return protoreflect.EnumNumber(x) |
| 86 |
} |
| 87 |
|
| 88 |
// Deprecated: Use TimeFilter_TimeField.Descriptor instead. |
| 89 |
func (TimeFilter_TimeField) EnumDescriptor() ([]byte, []int) { |
| 90 |
return file_google_cloud_contentwarehouse_v1_filters_proto_rawDescGZIP(), []int{1, 0} |
| 91 |
} |
| 92 |
|
| 93 |
// Representation of the types of files. |
| 94 |
type FileTypeFilter_FileType int32 |
| 95 |
|
| 96 |
const ( |
| 97 |
// Default document type. If set, disables the filter. |
| 98 |
FileTypeFilter_FILE_TYPE_UNSPECIFIED FileTypeFilter_FileType = 0 |
| 99 |
// Returns all document types, including folders. |
| 100 |
FileTypeFilter_ALL FileTypeFilter_FileType = 1 |
| 101 |
// Returns only folders. |
| 102 |
FileTypeFilter_FOLDER FileTypeFilter_FileType = 2 |
| 103 |
// Returns only non-folder documents. |
| 104 |
FileTypeFilter_DOCUMENT FileTypeFilter_FileType = 3 |
| 105 |
) |
| 106 |
|
| 107 |
// Enum value maps for FileTypeFilter_FileType. |
| 108 |
var ( |
| 109 |
FileTypeFilter_FileType_name = map[int32]string{ |
| 110 |
0: "FILE_TYPE_UNSPECIFIED", |
| 111 |
1: "ALL", |
| 112 |
2: "FOLDER", |
| 113 |
3: "DOCUMENT", |
| 114 |
} |
| 115 |
FileTypeFilter_FileType_value = map[string]int32{ |
| 116 |
"FILE_TYPE_UNSPECIFIED": 0, |
| 117 |
"ALL": 1, |
| 118 |
"FOLDER": 2, |
| 119 |
"DOCUMENT": 3, |
| 120 |
} |
| 121 |
) |
| 122 |
|
| 123 |
func (x FileTypeFilter_FileType) Enum() *FileTypeFilter_FileType { |
| 124 |
p := new(FileTypeFilter_FileType) |
| 125 |
*p = x |
| 126 |
return p |
| 127 |
} |
| 128 |
|
| 129 |
func (x FileTypeFilter_FileType) String() string { |
| 130 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 131 |
} |
| 132 |
|
| 133 |
func (FileTypeFilter_FileType) Descriptor() protoreflect.EnumDescriptor { |
| 134 |
return file_google_cloud_contentwarehouse_v1_filters_proto_enumTypes[1].Descriptor() |
| 135 |
} |
| 136 |
|
| 137 |
func (FileTypeFilter_FileType) Type() protoreflect.EnumType { |
| 138 |
return &file_google_cloud_contentwarehouse_v1_filters_proto_enumTypes[1] |
| 139 |
} |
| 140 |
|
| 141 |
func (x FileTypeFilter_FileType) Number() protoreflect.EnumNumber { |
| 142 |
return protoreflect.EnumNumber(x) |
| 143 |
} |
| 144 |
|
| 145 |
// Deprecated: Use FileTypeFilter_FileType.Descriptor instead. |
| 146 |
func (FileTypeFilter_FileType) EnumDescriptor() ([]byte, []int) { |
| 147 |
return file_google_cloud_contentwarehouse_v1_filters_proto_rawDescGZIP(), []int{3, 0} |
| 148 |
} |
| 149 |
|
| 150 |
type DocumentQuery struct { |
| 151 |
state protoimpl.MessageState |
| 152 |
sizeCache protoimpl.SizeCache |
| 153 |
unknownFields protoimpl.UnknownFields |
| 154 |
|
| 155 |
// The query string that matches against the full text of the document and |
| 156 |
// the searchable properties. |
| 157 |
// The maximum number of allowed characters is 255. |
| 158 |
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` |
| 159 |
// Experimental, do not use. |
| 160 |
// If the query is a natural language question. False by default. If true, |
| 161 |
// then the question-answering feature will be used instead of search, and |
| 162 |
// `result_count` in [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest] must be set. In addition, all |
| 163 |
// other input fields related to search (pagination, histograms, etc.) will be |
| 164 |
// ignored. |
| 165 |
IsNlQuery bool `protobuf:"varint,12,opt,name=is_nl_query,json=isNlQuery,proto3" json:"is_nl_query,omitempty"` |
| 166 |
// This filter specifies a structured syntax to match against the |
| 167 |
// [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for |
| 168 |
// this expression is a subset of SQL syntax. |
| 169 |
// |
| 170 |
// Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the left |
| 171 |
// of the operator is a property name and the right of the operator is a |
| 172 |
// number or a quoted string. You must escape backslash (\\) and quote (\") |
| 173 |
// characters. Supported functions are `LOWER([property_name])` to perform a |
| 174 |
// case insensitive match and `EMPTY([property_name])` to filter on the |
| 175 |
// existence of a key. |
| 176 |
// |
| 177 |
// Boolean expressions (AND/OR/NOT) are supported up to 3 levels of nesting |
| 178 |
// (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100 |
| 179 |
// comparisons or functions are allowed in the expression. The expression must |
| 180 |
// be < 6000 bytes in length. |
| 181 |
// |
| 182 |
// Sample Query: |
| 183 |
// `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND |
| 184 |
// driving_years > 10` |
| 185 |
// |
| 186 |
// Deprecated: Do not use. |
| 187 |
CustomPropertyFilter string `protobuf:"bytes,4,opt,name=custom_property_filter,json=customPropertyFilter,proto3" json:"custom_property_filter,omitempty"` |
| 188 |
// Documents created/updated within a range specified by this filter are |
| 189 |
// searched against. |
| 190 |
TimeFilters []*TimeFilter `protobuf:"bytes,5,rep,name=time_filters,json=timeFilters,proto3" json:"time_filters,omitempty"` |
| 191 |
// This filter specifies the exact document schema |
| 192 |
// [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against. |
| 193 |
// |
| 194 |
// If a value isn't specified, documents within the search results are |
| 195 |
// associated with any schema. If multiple values are specified, documents |
| 196 |
// within the search results may be associated with any of the specified |
| 197 |
// schemas. |
| 198 |
// |
| 199 |
// At most 20 document schema names are allowed. |
| 200 |
DocumentSchemaNames []string `protobuf:"bytes,6,rep,name=document_schema_names,json=documentSchemaNames,proto3" json:"document_schema_names,omitempty"` |
| 201 |
// This filter specifies a structured syntax to match against the |
| 202 |
// [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable] marked as `true`. The relationship |
| 203 |
// between the PropertyFilters is OR. |
| 204 |
PropertyFilter []*PropertyFilter `protobuf:"bytes,7,rep,name=property_filter,json=propertyFilter,proto3" json:"property_filter,omitempty"` |
| 205 |
// This filter specifies the types of files to return: ALL, FOLDER, or FILE. |
| 206 |
// If FOLDER or FILE is specified, then only either folders or files will be |
| 207 |
// returned, respectively. If ALL is specified, both folders and files will be |
| 208 |
// returned. |
| 209 |
// |
| 210 |
// If no value is specified, ALL files will be returned. |
| 211 |
FileTypeFilter *FileTypeFilter `protobuf:"bytes,8,opt,name=file_type_filter,json=fileTypeFilter,proto3" json:"file_type_filter,omitempty"` |
| 212 |
// Search all the documents under this specified folder. |
| 213 |
// Format: |
| 214 |
// projects/{project_number}/locations/{location}/documents/{document_id}. |
| 215 |
FolderNameFilter string `protobuf:"bytes,9,opt,name=folder_name_filter,json=folderNameFilter,proto3" json:"folder_name_filter,omitempty"` |
| 216 |
// For custom synonyms. |
| 217 |
// Customers provide the synonyms based on context. One customer can provide |
| 218 |
// multiple set of synonyms based on different context. The search query will |
| 219 |
// be expanded based on the custom synonyms of the query context set. |
| 220 |
// By default, no custom synonyms wll be applied if no query context is |
| 221 |
// provided. |
| 222 |
// It is not supported for CMEK compliant deployment. |
| 223 |
QueryContext []string `protobuf:"bytes,10,rep,name=query_context,json=queryContext,proto3" json:"query_context,omitempty"` |
| 224 |
// The exact creator(s) of the documents to search against. |
| 225 |
// |
| 226 |
// If a value isn't specified, documents within the search results are |
| 227 |
// associated with any creator. If multiple values are specified, documents |
| 228 |
// within the search results may be associated with any of the specified |
| 229 |
// creators. |
| 230 |
DocumentCreatorFilter []string `protobuf:"bytes,11,rep,name=document_creator_filter,json=documentCreatorFilter,proto3" json:"document_creator_filter,omitempty"` |
| 231 |
} |
| 232 |
|
| 233 |
func (x *DocumentQuery) Reset() { |
| 234 |
*x = DocumentQuery{} |
| 235 |
if protoimpl.UnsafeEnabled { |
| 236 |
mi := &file_google_cloud_contentwarehouse_v1_filters_proto_msgTypes[0] |
| 237 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 238 |
ms.StoreMessageInfo(mi) |
| 239 |
} |
| 240 |
} |
| 241 |
|
| 242 |
func (x *DocumentQuery) String() string { |
| 243 |
return protoimpl.X.MessageStringOf(x) |
| 244 |
} |
| 245 |
|
| 246 |
func (*DocumentQuery) ProtoMessage() {} |
| 247 |
|
| 248 |
func (x *DocumentQuery) ProtoReflect() protoreflect.Message { |
| 249 |
mi := &file_google_cloud_contentwarehouse_v1_filters_proto_msgTypes[0] |
| 250 |
if protoimpl.UnsafeEnabled && x != nil { |
| 251 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 252 |
if ms.LoadMessageInfo() == nil { |
| 253 |
ms.StoreMessageInfo(mi) |
| 254 |
} |
| 255 |
return ms |
| 256 |
} |
| 257 |
return mi.MessageOf(x) |
| 258 |
} |
| 259 |
|
| 260 |
// Deprecated: Use DocumentQuery.ProtoReflect.Descriptor instead. |
| 261 |
func (*DocumentQuery) Descriptor() ([]byte, []int) { |
| 262 |
return file_google_cloud_contentwarehouse_v1_filters_proto_rawDescGZIP(), []int{0} |
| 263 |
} |
| 264 |
|
| 265 |
func (x *DocumentQuery) GetQuery() string { |
| 266 |
if x != nil { |
| 267 |
return x.Query |
| 268 |
} |
| 269 |
return "" |
| 270 |
} |
| 271 |
|
| 272 |
func (x *DocumentQuery) GetIsNlQuery() bool { |
| 273 |
if x != nil { |
| 274 |
return x.IsNlQuery |
| 275 |
} |
| 276 |
return false |
| 277 |
} |
| 278 |
|
| 279 |
// Deprecated: Do not use. |
| 280 |
func (x *DocumentQuery) GetCustomPropertyFilter() string { |
| 281 |
if x != nil { |
| 282 |
return x.CustomPropertyFilter |
| 283 |
} |
| 284 |
return "" |
| 285 |
} |
| 286 |
|
| 287 |
func (x *DocumentQuery) GetTimeFilters() []*TimeFilter { |
| 288 |
if x != nil { |
| 289 |
return x.TimeFilters |
| 290 |
} |
| 291 |
return nil |
| 292 |
} |
| 293 |
|
| 294 |
func (x *DocumentQuery) GetDocumentSchemaNames() []string { |
| 295 |
if x != nil { |
| 296 |
return x.DocumentSchemaNames |
| 297 |
} |
| 298 |
return nil |
| 299 |
} |
| 300 |
|
| 301 |
func (x *DocumentQuery) GetPropertyFilter() []*PropertyFilter { |
| 302 |
if x != nil { |
| 303 |
return x.PropertyFilter |
| 304 |
} |
| 305 |
return nil |
| 306 |
} |
| 307 |
|
| 308 |
func (x *DocumentQuery) GetFileTypeFilter() *FileTypeFilter { |
| 309 |
if x != nil { |
| 310 |
return x.FileTypeFilter |
| 311 |
} |
| 312 |
return nil |
| 313 |
} |
| 314 |
|
| 315 |
func (x *DocumentQuery) GetFolderNameFilter() string { |
| 316 |
if x != nil { |
| 317 |
return x.FolderNameFilter |
| 318 |
} |
| 319 |
return "" |
| 320 |
} |
| 321 |
|
| 322 |
func (x *DocumentQuery) GetQueryContext() []string { |
| 323 |
if x != nil { |
| 324 |
return x.QueryContext |
| 325 |
} |
| 326 |
return nil |
| 327 |
} |
| 328 |
|
| 329 |
func (x *DocumentQuery) GetDocumentCreatorFilter() []string { |
| 330 |
if x != nil { |
| 331 |
return x.DocumentCreatorFilter |
| 332 |
} |
| 333 |
return nil |
| 334 |
} |
| 335 |
|
| 336 |
// Filter on create timestamp or update timestamp of documents. |
| 337 |
type TimeFilter struct { |
| 338 |
state protoimpl.MessageState |
| 339 |
sizeCache protoimpl.SizeCache |
| 340 |
unknownFields protoimpl.UnknownFields |
| 341 |
|
| 342 |
TimeRange *interval.Interval `protobuf:"bytes,1,opt,name=time_range,json=timeRange,proto3" json:"time_range,omitempty"` |
| 343 |
// Specifies which time field to filter documents on. |
| 344 |
// |
| 345 |
// Defaults to [TimeField.UPLOAD_TIME][]. |
| 346 |
TimeField TimeFilter_TimeField `protobuf:"varint,2,opt,name=time_field,json=timeField,proto3,enum=google.cloud.contentwarehouse.v1.TimeFilter_TimeField" json:"time_field,omitempty"` |
| 347 |
} |
| 348 |
|
| 349 |
func (x *TimeFilter) Reset() { |
| 350 |
*x = TimeFilter{} |
| 351 |
if protoimpl.UnsafeEnabled { |
| 352 |
mi := &file_google_cloud_contentwarehouse_v1_filters_proto_msgTypes[1] |
| 353 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 354 |
ms.StoreMessageInfo(mi) |
| 355 |
} |
| 356 |
} |
| 357 |
|
| 358 |
func (x *TimeFilter) String() string { |
| 359 |
return protoimpl.X.MessageStringOf(x) |
| 360 |
} |
| 361 |
|
| 362 |
func (*TimeFilter) ProtoMessage() {} |
| 363 |
|
| 364 |
func (x *TimeFilter) ProtoReflect() protoreflect.Message { |
| 365 |
mi := &file_google_cloud_contentwarehouse_v1_filters_proto_msgTypes[1] |
| 366 |
if protoimpl.UnsafeEnabled && x != nil { |
| 367 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 368 |
if ms.LoadMessageInfo() == nil { |
| 369 |
ms.StoreMessageInfo(mi) |
| 370 |
} |
| 371 |
return ms |
| 372 |
} |
| 373 |
return mi.MessageOf(x) |
| 374 |
} |
| 375 |
|
| 376 |
// Deprecated: Use TimeFilter.ProtoReflect.Descriptor instead. |
| 377 |
func (*TimeFilter) Descriptor() ([]byte, []int) { |
| 378 |
return file_google_cloud_contentwarehouse_v1_filters_proto_rawDescGZIP(), []int{1} |
| 379 |
} |
| 380 |
|
| 381 |
func (x *TimeFilter) GetTimeRange() *interval.Interval { |
| 382 |
if x != nil { |
| 383 |
return x.TimeRange |
| 384 |
} |
| 385 |
return nil |
| 386 |
} |
| 387 |
|
| 388 |
func (x *TimeFilter) GetTimeField() TimeFilter_TimeField { |
| 389 |
if x != nil { |
| 390 |
return x.TimeField |
| 391 |
} |
| 392 |
return TimeFilter_TIME_FIELD_UNSPECIFIED |
| 393 |
} |
| 394 |
|
| 395 |
type PropertyFilter struct { |
| 396 |
state protoimpl.MessageState |
| 397 |
sizeCache protoimpl.SizeCache |
| 398 |
unknownFields protoimpl.UnknownFields |
| 399 |
|
| 400 |
// The Document schema name [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name]. |
| 401 |
// Format: |
| 402 |
// projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. |
| 403 |
DocumentSchemaName string `protobuf:"bytes,1,opt,name=document_schema_name,json=documentSchemaName,proto3" json:"document_schema_name,omitempty"` |
| 404 |
// The filter condition. |
| 405 |
// The syntax for this expression is a subset of SQL syntax. |
| 406 |
// |
| 407 |
// Supported operators are: `=`, `!=`, `<`, `<=`, `>`, `>=`, and `~~` where |
| 408 |
// the left of the operator is a property name and the right of the operator |
| 409 |
// is a number or a quoted string. You must escape backslash (\\) and quote |
| 410 |
// (\") characters. |
| 411 |
// |
| 412 |
// `~~` is the LIKE operator. The right of the operator must be a string. The |
| 413 |
// only supported property data type for LIKE is text_values. It provides |
| 414 |
// semantic search functionality by parsing, stemming and doing synonyms |
| 415 |
// expansion against the input query. It matches if the property contains |
| 416 |
// semantic similar content to the query. It is not regex matching or wildcard |
| 417 |
// matching. For example, "property.company ~~ \"google\"" will match records |
| 418 |
// whose property `property.compnay` have values like "Google Inc.", "Google |
| 419 |
// LLC" or "Google Company". |
| 420 |
// |
| 421 |
// Supported functions are `LOWER([property_name])` to perform a |
| 422 |
// case insensitive match and `EMPTY([property_name])` to filter on the |
| 423 |
// existence of a key. |
| 424 |
// |
| 425 |
// Boolean expressions (AND/OR/NOT) are supported up to 3 levels of nesting |
| 426 |
// (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100 |
| 427 |
// comparisons or functions are allowed in the expression. The expression must |
| 428 |
// be < 6000 bytes in length. |
| 429 |
// |
| 430 |
// Only properties that are marked filterable are allowed |
| 431 |
// ([PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable]). Property names do not need to be |
| 432 |
// prefixed by the document schema id (as is the case with histograms), |
| 433 |
// however property names will need to be prefixed by its parent hierarchy, if |
| 434 |
// any. For example: top_property_name.sub_property_name. |
| 435 |
// |
| 436 |
// Sample Query: |
| 437 |
// `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND |
| 438 |
// driving_years > 10` |
| 439 |
// |
| 440 |
// CMEK compliant deployment only supports: |
| 441 |
// |
| 442 |
// * Operators: `=`, `<`, `<=`, `>`, and `>=`. |
| 443 |
// * Boolean expressions: AND and OR. |
| 444 |
Condition string `protobuf:"bytes,2,opt,name=condition,proto3" json:"condition,omitempty"` |
| 445 |
} |
| 446 |
|
| 447 |
func (x *PropertyFilter) Reset() { |
| 448 |
*x = PropertyFilter{} |
| 449 |
if protoimpl.UnsafeEnabled { |
| 450 |
mi := &file_google_cloud_contentwarehouse_v1_filters_proto_msgTypes[2] |
| 451 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 452 |
ms.StoreMessageInfo(mi) |
| 453 |
} |
| 454 |
} |
| 455 |
|
| 456 |
func (x *PropertyFilter) String() string { |
| 457 |
return protoimpl.X.MessageStringOf(x) |
| 458 |
} |
| 459 |
|
| 460 |
func (*PropertyFilter) ProtoMessage() {} |
| 461 |
|
| 462 |
func (x *PropertyFilter) ProtoReflect() protoreflect.Message { |
| 463 |
mi := &file_google_cloud_contentwarehouse_v1_filters_proto_msgTypes[2] |
| 464 |
if protoimpl.UnsafeEnabled && x != nil { |
| 465 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 466 |
if ms.LoadMessageInfo() == nil { |
| 467 |
ms.StoreMessageInfo(mi) |
| 468 |
} |
| 469 |
return ms |
| 470 |
} |
| 471 |
return mi.MessageOf(x) |
| 472 |
} |
| 473 |
|
| 474 |
// Deprecated: Use PropertyFilter.ProtoReflect.Descriptor instead. |
| 475 |
func (*PropertyFilter) Descriptor() ([]byte, []int) { |
| 476 |
return file_google_cloud_contentwarehouse_v1_filters_proto_rawDescGZIP(), []int{2} |
| 477 |
} |
| 478 |
|
| 479 |
func (x *PropertyFilter) GetDocumentSchemaName() string { |
| 480 |
if x != nil { |
| 481 |
return x.DocumentSchemaName |
| 482 |
} |
| 483 |
return "" |
| 484 |
} |
| 485 |
|
| 486 |
func (x *PropertyFilter) GetCondition() string { |
| 487 |
if x != nil { |
| 488 |
return x.Condition |
| 489 |
} |
| 490 |
return "" |
| 491 |
} |
| 492 |
|
| 493 |
// Filter for the specific types of documents returned. |
| 494 |
type FileTypeFilter struct { |
| 495 |
state protoimpl.MessageState |
| 496 |
sizeCache protoimpl.SizeCache |
| 497 |
unknownFields protoimpl.UnknownFields |
| 498 |
|
| 499 |
// The type of files to return. |
| 500 |
FileType FileTypeFilter_FileType `protobuf:"varint,1,opt,name=file_type,json=fileType,proto3,enum=google.cloud.contentwarehouse.v1.FileTypeFilter_FileType" json:"file_type,omitempty"` |
| 501 |
} |
| 502 |
|
| 503 |
func (x *FileTypeFilter) Reset() { |
| 504 |
*x = FileTypeFilter{} |
| 505 |
if protoimpl.UnsafeEnabled { |
| 506 |
mi := &file_google_cloud_contentwarehouse_v1_filters_proto_msgTypes[3] |
| 507 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 508 |
ms.StoreMessageInfo(mi) |
| 509 |
} |
| 510 |
} |
| 511 |
|
| 512 |
func (x *FileTypeFilter) String() string { |
| 513 |
return protoimpl.X.MessageStringOf(x) |
| 514 |
} |
| 515 |
|
| 516 |
func (*FileTypeFilter) ProtoMessage() {} |
| 517 |
|
| 518 |
func (x *FileTypeFilter) ProtoReflect() protoreflect.Message { |
| 519 |
mi := &file_google_cloud_contentwarehouse_v1_filters_proto_msgTypes[3] |
| 520 |
if protoimpl.UnsafeEnabled && x != nil { |
| 521 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 522 |
if ms.LoadMessageInfo() == nil { |
| 523 |
ms.StoreMessageInfo(mi) |
| 524 |
} |
| 525 |
return ms |
| 526 |
} |
| 527 |
return mi.MessageOf(x) |
| 528 |
} |
| 529 |
|
| 530 |
// Deprecated: Use FileTypeFilter.ProtoReflect.Descriptor instead. |
| 531 |
func (*FileTypeFilter) Descriptor() ([]byte, []int) { |
| 532 |
return file_google_cloud_contentwarehouse_v1_filters_proto_rawDescGZIP(), []int{3} |
| 533 |
} |
| 534 |
|
| 535 |
func (x *FileTypeFilter) GetFileType() FileTypeFilter_FileType { |
| 536 |
if x != nil { |
| 537 |
return x.FileType |
| 538 |
} |
| 539 |
return FileTypeFilter_FILE_TYPE_UNSPECIFIED |
| 540 |
} |
| 541 |
|
| 542 |
var File_google_cloud_contentwarehouse_v1_filters_proto protoreflect.FileDescriptor |
| 543 |
|
| 544 |
var file_google_cloud_contentwarehouse_v1_filters_proto_rawDesc = []byte{ |
| 545 |
0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, |
| 546 |
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2f, |
| 547 |
0x76, 0x31, 0x2f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 548 |
0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, |
| 549 |
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, |
| 550 |
0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, |
| 551 |
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x67, |
| 552 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, |
| 553 |
0x76, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc6, 0x04, 0x0a, 0x0d, 0x44, 0x6f, |
| 554 |
0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x71, |
| 555 |
0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, |
| 556 |
0x79, 0x12, 0x1e, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x6c, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, |
| 557 |
0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x4e, 0x6c, 0x51, 0x75, 0x65, 0x72, |
| 558 |
0x79, 0x12, 0x38, 0x0a, 0x16, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x70, 0x72, 0x6f, 0x70, |
| 559 |
0x65, 0x72, 0x74, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, |
| 560 |
0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x14, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x6f, |
| 561 |
0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x0c, 0x74, |
| 562 |
0x69, 0x6d, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, |
| 563 |
0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 564 |
0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, |
| 565 |
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, |
| 566 |
0x0b, 0x74, 0x69, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x32, 0x0a, 0x15, |
| 567 |
0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, |
| 568 |
0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x13, 0x64, 0x6f, 0x63, |
| 569 |
0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x73, |
| 570 |
0x12, 0x59, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x66, 0x69, 0x6c, |
| 571 |
0x74, 0x65, 0x72, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 572 |
0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, |
| 573 |
0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, |
| 574 |
0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x0e, 0x70, 0x72, 0x6f, |
| 575 |
0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x5a, 0x0a, 0x10, 0x66, |
| 576 |
0x69, 0x6c, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, |
| 577 |
0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 578 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, |
| 579 |
0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, |
| 580 |
0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x0e, 0x66, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, |
| 581 |
0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x12, 0x66, 0x6f, 0x6c, 0x64, 0x65, |
| 582 |
0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x09, 0x20, |
| 583 |
0x01, 0x28, 0x09, 0x52, 0x10, 0x66, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x46, |
| 584 |
0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x63, |
| 585 |
0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x71, 0x75, |
| 586 |
0x65, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x6f, |
| 587 |
0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x66, |
| 588 |
0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x15, 0x64, 0x6f, 0x63, |
| 589 |
0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x46, 0x69, 0x6c, 0x74, |
| 590 |
0x65, 0x72, 0x22, 0xe4, 0x01, 0x0a, 0x0a, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, |
| 591 |
0x72, 0x12, 0x34, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, |
| 592 |
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, |
| 593 |
0x79, 0x70, 0x65, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x52, 0x09, 0x74, 0x69, |
| 594 |
0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x55, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x5f, |
| 595 |
0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x67, 0x6f, |
| 596 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, |
| 597 |
0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, |
| 598 |
0x69, 0x6d, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x69, |
| 599 |
0x65, 0x6c, 0x64, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x22, 0x49, |
| 600 |
0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1a, 0x0a, 0x16, 0x54, |
| 601 |
0x49, 0x4d, 0x45, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, |
| 602 |
0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x52, 0x45, 0x41, 0x54, |
| 603 |
0x45, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x50, 0x44, 0x41, |
| 604 |
0x54, 0x45, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x02, 0x22, 0x95, 0x01, 0x0a, 0x0e, 0x50, 0x72, |
| 605 |
0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x65, 0x0a, 0x14, |
| 606 |
0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, |
| 607 |
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, 0xfa, 0x41, 0x30, 0x0a, |
| 608 |
0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, |
| 609 |
0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, |
| 610 |
0x2f, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, |
| 611 |
0x12, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, |
| 612 |
0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, |
| 613 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, |
| 614 |
0x6e, 0x22, 0xb2, 0x01, 0x0a, 0x0e, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, |
| 615 |
0x6c, 0x74, 0x65, 0x72, 0x12, 0x56, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x74, 0x79, 0x70, |
| 616 |
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 617 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, |
| 618 |
0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x54, |
| 619 |
0x79, 0x70, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, |
| 620 |
0x70, 0x65, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x48, 0x0a, 0x08, |
| 621 |
0x46, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x46, 0x49, 0x4c, 0x45, |
| 622 |
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, |
| 623 |
0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, |
| 624 |
0x46, 0x4f, 0x4c, 0x44, 0x45, 0x52, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x4f, 0x43, 0x55, |
| 625 |
0x4d, 0x45, 0x4e, 0x54, 0x10, 0x03, 0x42, 0x88, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, |
| 626 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6e, 0x74, |
| 627 |
0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x42, |
| 628 |
0x0c, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, |
| 629 |
0x50, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, |
| 630 |
0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, |
| 631 |
0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x63, 0x6f, 0x6e, |
| 632 |
0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x2f, 0x76, 0x31, |
| 633 |
0x3b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, |
| 634 |
0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 635 |
} |
| 636 |
|
| 637 |
var ( |
| 638 |
file_google_cloud_contentwarehouse_v1_filters_proto_rawDescOnce sync.Once |
| 639 |
file_google_cloud_contentwarehouse_v1_filters_proto_rawDescData = file_google_cloud_contentwarehouse_v1_filters_proto_rawDesc |
| 640 |
) |
| 641 |
|
| 642 |
func file_google_cloud_contentwarehouse_v1_filters_proto_rawDescGZIP() []byte { |
| 643 |
file_google_cloud_contentwarehouse_v1_filters_proto_rawDescOnce.Do(func() { |
| 644 |
file_google_cloud_contentwarehouse_v1_filters_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_contentwarehouse_v1_filters_proto_rawDescData) |
| 645 |
}) |
| 646 |
return file_google_cloud_contentwarehouse_v1_filters_proto_rawDescData |
| 647 |
} |
| 648 |
|
| 649 |
var file_google_cloud_contentwarehouse_v1_filters_proto_enumTypes = make([]protoimpl.EnumInfo, 2) |
| 650 |
var file_google_cloud_contentwarehouse_v1_filters_proto_msgTypes = make([]protoimpl.MessageInfo, 4) |
| 651 |
var file_google_cloud_contentwarehouse_v1_filters_proto_goTypes = []interface{}{ |
| 652 |
(TimeFilter_TimeField)(0), // 0: google.cloud.contentwarehouse.v1.TimeFilter.TimeField |
| 653 |
(FileTypeFilter_FileType)(0), // 1: google.cloud.contentwarehouse.v1.FileTypeFilter.FileType |
| 654 |
(*DocumentQuery)(nil), // 2: google.cloud.contentwarehouse.v1.DocumentQuery |
| 655 |
(*TimeFilter)(nil), // 3: google.cloud.contentwarehouse.v1.TimeFilter |
| 656 |
(*PropertyFilter)(nil), // 4: google.cloud.contentwarehouse.v1.PropertyFilter |
| 657 |
(*FileTypeFilter)(nil), // 5: google.cloud.contentwarehouse.v1.FileTypeFilter |
| 658 |
(*interval.Interval)(nil), // 6: google.type.Interval |
| 659 |
} |
| 660 |
var file_google_cloud_contentwarehouse_v1_filters_proto_depIdxs = []int32{ |
| 661 |
3, // 0: google.cloud.contentwarehouse.v1.DocumentQuery.time_filters:type_name -> google.cloud.contentwarehouse.v1.TimeFilter |
| 662 |
4, // 1: google.cloud.contentwarehouse.v1.DocumentQuery.property_filter:type_name -> google.cloud.contentwarehouse.v1.PropertyFilter |
| 663 |
5, // 2: google.cloud.contentwarehouse.v1.DocumentQuery.file_type_filter:type_name -> google.cloud.contentwarehouse.v1.FileTypeFilter |
| 664 |
6, // 3: google.cloud.contentwarehouse.v1.TimeFilter.time_range:type_name -> google.type.Interval |
| 665 |
0, // 4: google.cloud.contentwarehouse.v1.TimeFilter.time_field:type_name -> google.cloud.contentwarehouse.v1.TimeFilter.TimeField |
| 666 |
1, // 5: google.cloud.contentwarehouse.v1.FileTypeFilter.file_type:type_name -> google.cloud.contentwarehouse.v1.FileTypeFilter.FileType |
| 667 |
6, // [6:6] is the sub-list for method output_type |
| 668 |
6, // [6:6] is the sub-list for method input_type |
| 669 |
6, // [6:6] is the sub-list for extension type_name |
| 670 |
6, // [6:6] is the sub-list for extension extendee |
| 671 |
0, // [0:6] is the sub-list for field type_name |
| 672 |
} |
| 673 |
|
| 674 |
func init() { file_google_cloud_contentwarehouse_v1_filters_proto_init() } |
| 675 |
func file_google_cloud_contentwarehouse_v1_filters_proto_init() { |
| 676 |
if File_google_cloud_contentwarehouse_v1_filters_proto != nil { |
| 677 |
return |
| 678 |
} |
| 679 |
if !protoimpl.UnsafeEnabled { |
| 680 |
file_google_cloud_contentwarehouse_v1_filters_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 681 |
switch v := v.(*DocumentQuery); i { |
| 682 |
case 0: |
| 683 |
return &v.state |
| 684 |
case 1: |
| 685 |
return &v.sizeCache |
| 686 |
case 2: |
| 687 |
return &v.unknownFields |
| 688 |
default: |
| 689 |
return nil |
| 690 |
} |
| 691 |
} |
| 692 |
file_google_cloud_contentwarehouse_v1_filters_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 693 |
switch v := v.(*TimeFilter); i { |
| 694 |
case 0: |
| 695 |
return &v.state |
| 696 |
case 1: |
| 697 |
return &v.sizeCache |
| 698 |
case 2: |
| 699 |
return &v.unknownFields |
| 700 |
default: |
| 701 |
return nil |
| 702 |
} |
| 703 |
} |
| 704 |
file_google_cloud_contentwarehouse_v1_filters_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 705 |
switch v := v.(*PropertyFilter); i { |
| 706 |
case 0: |
| 707 |
return &v.state |
| 708 |
case 1: |
| 709 |
return &v.sizeCache |
| 710 |
case 2: |
| 711 |
return &v.unknownFields |
| 712 |
default: |
| 713 |
return nil |
| 714 |
} |
| 715 |
} |
| 716 |
file_google_cloud_contentwarehouse_v1_filters_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 717 |
switch v := v.(*FileTypeFilter); i { |
| 718 |
case 0: |
| 719 |
return &v.state |
| 720 |
case 1: |
| 721 |
return &v.sizeCache |
| 722 |
case 2: |
| 723 |
return &v.unknownFields |
| 724 |
default: |
| 725 |
return nil |
| 726 |
} |
| 727 |
} |
| 728 |
} |
| 729 |
type x struct{} |
| 730 |
out := protoimpl.TypeBuilder{ |
| 731 |
File: protoimpl.DescBuilder{ |
| 732 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 733 |
RawDescriptor: file_google_cloud_contentwarehouse_v1_filters_proto_rawDesc, |
| 734 |
NumEnums: 2, |
| 735 |
NumMessages: 4, |
| 736 |
NumExtensions: 0, |
| 737 |
NumServices: 0, |
| 738 |
}, |
| 739 |
GoTypes: file_google_cloud_contentwarehouse_v1_filters_proto_goTypes, |
| 740 |
DependencyIndexes: file_google_cloud_contentwarehouse_v1_filters_proto_depIdxs, |
| 741 |
EnumInfos: file_google_cloud_contentwarehouse_v1_filters_proto_enumTypes, |
| 742 |
MessageInfos: file_google_cloud_contentwarehouse_v1_filters_proto_msgTypes, |
| 743 |
}.Build() |
| 744 |
File_google_cloud_contentwarehouse_v1_filters_proto = out.File |
| 745 |
file_google_cloud_contentwarehouse_v1_filters_proto_rawDesc = nil |
| 746 |
file_google_cloud_contentwarehouse_v1_filters_proto_goTypes = nil |
| 747 |
file_google_cloud_contentwarehouse_v1_filters_proto_depIdxs = nil |
| 748 |
} |