| // Copyright 2024 Google LLC |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.34.1 |
| // protoc v4.25.3 |
| // source: google/cloud/documentai/v1beta3/document_schema.proto |
| |
| package documentaipb |
| |
| import ( |
| reflect "reflect" |
| sync "sync" |
| |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| ) |
| |
| const ( |
| // Verify that this generated code is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| // Verify that runtime/protoimpl is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| ) |
| |
| // The Length enum. |
| type SummaryOptions_Length int32 |
| |
| const ( |
| // Default. |
| SummaryOptions_LENGTH_UNSPECIFIED SummaryOptions_Length = 0 |
| // A brief summary of one or two sentences. |
| SummaryOptions_BRIEF SummaryOptions_Length = 1 |
| // A paragraph-length summary. |
| SummaryOptions_MODERATE SummaryOptions_Length = 2 |
| // The longest option available. |
| SummaryOptions_COMPREHENSIVE SummaryOptions_Length = 3 |
| ) |
| |
| // Enum value maps for SummaryOptions_Length. |
| var ( |
| SummaryOptions_Length_name = map[int32]string{ |
| 0: "LENGTH_UNSPECIFIED", |
| 1: "BRIEF", |
| 2: "MODERATE", |
| 3: "COMPREHENSIVE", |
| } |
| SummaryOptions_Length_value = map[string]int32{ |
| "LENGTH_UNSPECIFIED": 0, |
| "BRIEF": 1, |
| "MODERATE": 2, |
| "COMPREHENSIVE": 3, |
| } |
| ) |
| |
| func (x SummaryOptions_Length) Enum() *SummaryOptions_Length { |
| p := new(SummaryOptions_Length) |
| *p = x |
| return p |
| } |
| |
| func (x SummaryOptions_Length) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (SummaryOptions_Length) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_enumTypes[0].Descriptor() |
| } |
| |
| func (SummaryOptions_Length) Type() protoreflect.EnumType { |
| return &file_google_cloud_documentai_v1beta3_document_schema_proto_enumTypes[0] |
| } |
| |
| func (x SummaryOptions_Length) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use SummaryOptions_Length.Descriptor instead. |
| func (SummaryOptions_Length) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| // The Format enum. |
| type SummaryOptions_Format int32 |
| |
| const ( |
| // Default. |
| SummaryOptions_FORMAT_UNSPECIFIED SummaryOptions_Format = 0 |
| // Format the output in paragraphs. |
| SummaryOptions_PARAGRAPH SummaryOptions_Format = 1 |
| // Format the output in bullets. |
| SummaryOptions_BULLETS SummaryOptions_Format = 2 |
| ) |
| |
| // Enum value maps for SummaryOptions_Format. |
| var ( |
| SummaryOptions_Format_name = map[int32]string{ |
| 0: "FORMAT_UNSPECIFIED", |
| 1: "PARAGRAPH", |
| 2: "BULLETS", |
| } |
| SummaryOptions_Format_value = map[string]int32{ |
| "FORMAT_UNSPECIFIED": 0, |
| "PARAGRAPH": 1, |
| "BULLETS": 2, |
| } |
| ) |
| |
| func (x SummaryOptions_Format) Enum() *SummaryOptions_Format { |
| p := new(SummaryOptions_Format) |
| *p = x |
| return p |
| } |
| |
| func (x SummaryOptions_Format) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (SummaryOptions_Format) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_enumTypes[1].Descriptor() |
| } |
| |
| func (SummaryOptions_Format) Type() protoreflect.EnumType { |
| return &file_google_cloud_documentai_v1beta3_document_schema_proto_enumTypes[1] |
| } |
| |
| func (x SummaryOptions_Format) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use SummaryOptions_Format.Descriptor instead. |
| func (SummaryOptions_Format) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescGZIP(), []int{0, 1} |
| } |
| |
| // Types of occurrences of the entity type in the document. This |
| // represents the number of instances, not mentions, of an entity. |
| // For example, a bank statement might only have one |
| // `account_number`, but this account number can be mentioned in several |
| // places on the document. In this case, the `account_number` is |
| // considered a `REQUIRED_ONCE` entity type. If, on the other hand, we |
| // expect a bank statement to contain the status of multiple different |
| // accounts for the customers, the occurrence type is set to |
| // `REQUIRED_MULTIPLE`. |
| type DocumentSchema_EntityType_Property_OccurrenceType int32 |
| |
| const ( |
| // Unspecified occurrence type. |
| DocumentSchema_EntityType_Property_OCCURRENCE_TYPE_UNSPECIFIED DocumentSchema_EntityType_Property_OccurrenceType = 0 |
| // There will be zero or one instance of this entity type. The same |
| // entity instance may be mentioned multiple times. |
| DocumentSchema_EntityType_Property_OPTIONAL_ONCE DocumentSchema_EntityType_Property_OccurrenceType = 1 |
| // The entity type will appear zero or multiple times. |
| DocumentSchema_EntityType_Property_OPTIONAL_MULTIPLE DocumentSchema_EntityType_Property_OccurrenceType = 2 |
| // The entity type will only appear exactly once. The same |
| // entity instance may be mentioned multiple times. |
| DocumentSchema_EntityType_Property_REQUIRED_ONCE DocumentSchema_EntityType_Property_OccurrenceType = 3 |
| // The entity type will appear once or more times. |
| DocumentSchema_EntityType_Property_REQUIRED_MULTIPLE DocumentSchema_EntityType_Property_OccurrenceType = 4 |
| ) |
| |
| // Enum value maps for DocumentSchema_EntityType_Property_OccurrenceType. |
| var ( |
| DocumentSchema_EntityType_Property_OccurrenceType_name = map[int32]string{ |
| 0: "OCCURRENCE_TYPE_UNSPECIFIED", |
| 1: "OPTIONAL_ONCE", |
| 2: "OPTIONAL_MULTIPLE", |
| 3: "REQUIRED_ONCE", |
| 4: "REQUIRED_MULTIPLE", |
| } |
| DocumentSchema_EntityType_Property_OccurrenceType_value = map[string]int32{ |
| "OCCURRENCE_TYPE_UNSPECIFIED": 0, |
| "OPTIONAL_ONCE": 1, |
| "OPTIONAL_MULTIPLE": 2, |
| "REQUIRED_ONCE": 3, |
| "REQUIRED_MULTIPLE": 4, |
| } |
| ) |
| |
| func (x DocumentSchema_EntityType_Property_OccurrenceType) Enum() *DocumentSchema_EntityType_Property_OccurrenceType { |
| p := new(DocumentSchema_EntityType_Property_OccurrenceType) |
| *p = x |
| return p |
| } |
| |
| func (x DocumentSchema_EntityType_Property_OccurrenceType) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (DocumentSchema_EntityType_Property_OccurrenceType) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_enumTypes[2].Descriptor() |
| } |
| |
| func (DocumentSchema_EntityType_Property_OccurrenceType) Type() protoreflect.EnumType { |
| return &file_google_cloud_documentai_v1beta3_document_schema_proto_enumTypes[2] |
| } |
| |
| func (x DocumentSchema_EntityType_Property_OccurrenceType) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use DocumentSchema_EntityType_Property_OccurrenceType.Descriptor instead. |
| func (DocumentSchema_EntityType_Property_OccurrenceType) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescGZIP(), []int{4, 0, 1, 0} |
| } |
| |
| // Metadata for document summarization. |
| type SummaryOptions struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // How long the summary should be. |
| Length SummaryOptions_Length `protobuf:"varint,1,opt,name=length,proto3,enum=google.cloud.documentai.v1beta3.SummaryOptions_Length" json:"length,omitempty"` |
| // The format the summary should be in. |
| Format SummaryOptions_Format `protobuf:"varint,2,opt,name=format,proto3,enum=google.cloud.documentai.v1beta3.SummaryOptions_Format" json:"format,omitempty"` |
| } |
| |
| func (x *SummaryOptions) Reset() { |
| *x = SummaryOptions{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *SummaryOptions) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*SummaryOptions) ProtoMessage() {} |
| |
| func (x *SummaryOptions) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[0] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use SummaryOptions.ProtoReflect.Descriptor instead. |
| func (*SummaryOptions) Descriptor() ([]byte, []int) { |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *SummaryOptions) GetLength() SummaryOptions_Length { |
| if x != nil { |
| return x.Length |
| } |
| return SummaryOptions_LENGTH_UNSPECIFIED |
| } |
| |
| func (x *SummaryOptions) GetFormat() SummaryOptions_Format { |
| if x != nil { |
| return x.Format |
| } |
| return SummaryOptions_FORMAT_UNSPECIFIED |
| } |
| |
| // Metadata for how this field value is extracted. |
| type FieldExtractionMetadata struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Summary options config. |
| SummaryOptions *SummaryOptions `protobuf:"bytes,2,opt,name=summary_options,json=summaryOptions,proto3" json:"summary_options,omitempty"` |
| } |
| |
| func (x *FieldExtractionMetadata) Reset() { |
| *x = FieldExtractionMetadata{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *FieldExtractionMetadata) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*FieldExtractionMetadata) ProtoMessage() {} |
| |
| func (x *FieldExtractionMetadata) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[1] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use FieldExtractionMetadata.ProtoReflect.Descriptor instead. |
| func (*FieldExtractionMetadata) Descriptor() ([]byte, []int) { |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *FieldExtractionMetadata) GetSummaryOptions() *SummaryOptions { |
| if x != nil { |
| return x.SummaryOptions |
| } |
| return nil |
| } |
| |
| // Metadata about a property. |
| type PropertyMetadata struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Whether the property should be considered as "inactive". |
| Inactive bool `protobuf:"varint,3,opt,name=inactive,proto3" json:"inactive,omitempty"` |
| // Field extraction metadata on the property. |
| FieldExtractionMetadata *FieldExtractionMetadata `protobuf:"bytes,9,opt,name=field_extraction_metadata,json=fieldExtractionMetadata,proto3" json:"field_extraction_metadata,omitempty"` |
| } |
| |
| func (x *PropertyMetadata) Reset() { |
| *x = PropertyMetadata{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *PropertyMetadata) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*PropertyMetadata) ProtoMessage() {} |
| |
| func (x *PropertyMetadata) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[2] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use PropertyMetadata.ProtoReflect.Descriptor instead. |
| func (*PropertyMetadata) Descriptor() ([]byte, []int) { |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescGZIP(), []int{2} |
| } |
| |
| func (x *PropertyMetadata) GetInactive() bool { |
| if x != nil { |
| return x.Inactive |
| } |
| return false |
| } |
| |
| func (x *PropertyMetadata) GetFieldExtractionMetadata() *FieldExtractionMetadata { |
| if x != nil { |
| return x.FieldExtractionMetadata |
| } |
| return nil |
| } |
| |
| // Metadata about an entity type. |
| type EntityTypeMetadata struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Whether the entity type should be considered inactive. |
| Inactive bool `protobuf:"varint,5,opt,name=inactive,proto3" json:"inactive,omitempty"` |
| } |
| |
| func (x *EntityTypeMetadata) Reset() { |
| *x = EntityTypeMetadata{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[3] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *EntityTypeMetadata) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*EntityTypeMetadata) ProtoMessage() {} |
| |
| func (x *EntityTypeMetadata) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[3] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use EntityTypeMetadata.ProtoReflect.Descriptor instead. |
| func (*EntityTypeMetadata) Descriptor() ([]byte, []int) { |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescGZIP(), []int{3} |
| } |
| |
| func (x *EntityTypeMetadata) GetInactive() bool { |
| if x != nil { |
| return x.Inactive |
| } |
| return false |
| } |
| |
| // The schema defines the output of the processed document by a processor. |
| type DocumentSchema struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Display name to show to users. |
| DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` |
| // Description of the schema. |
| Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` |
| // Entity types of the schema. |
| EntityTypes []*DocumentSchema_EntityType `protobuf:"bytes,3,rep,name=entity_types,json=entityTypes,proto3" json:"entity_types,omitempty"` |
| // Metadata of the schema. |
| Metadata *DocumentSchema_Metadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` |
| } |
| |
| func (x *DocumentSchema) Reset() { |
| *x = DocumentSchema{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[4] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DocumentSchema) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DocumentSchema) ProtoMessage() {} |
| |
| func (x *DocumentSchema) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[4] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use DocumentSchema.ProtoReflect.Descriptor instead. |
| func (*DocumentSchema) Descriptor() ([]byte, []int) { |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescGZIP(), []int{4} |
| } |
| |
| func (x *DocumentSchema) GetDisplayName() string { |
| if x != nil { |
| return x.DisplayName |
| } |
| return "" |
| } |
| |
| func (x *DocumentSchema) GetDescription() string { |
| if x != nil { |
| return x.Description |
| } |
| return "" |
| } |
| |
| func (x *DocumentSchema) GetEntityTypes() []*DocumentSchema_EntityType { |
| if x != nil { |
| return x.EntityTypes |
| } |
| return nil |
| } |
| |
| func (x *DocumentSchema) GetMetadata() *DocumentSchema_Metadata { |
| if x != nil { |
| return x.Metadata |
| } |
| return nil |
| } |
| |
| // EntityType is the wrapper of a label of the corresponding model with |
| // detailed attributes and limitations for entity-based processors. Multiple |
| // types can also compose a dependency tree to represent nested types. |
| type DocumentSchema_EntityType struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Types that are assignable to ValueSource: |
| // |
| // *DocumentSchema_EntityType_EnumValues_ |
| ValueSource isDocumentSchema_EntityType_ValueSource `protobuf_oneof:"value_source"` |
| // User defined name for the type. |
| DisplayName string `protobuf:"bytes,13,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` |
| // Name of the type. It must be unique within the schema file and |
| // cannot be a "Common Type". The following naming conventions are used: |
| // |
| // - Use `snake_casing`. |
| // - Name matching is case-sensitive. |
| // - Maximum 64 characters. |
| // - Must start with a letter. |
| // - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward |
| // compatibility internal infrastructure and tooling can handle any ascii |
| // character.) |
| // - The `/` is sometimes used to denote a property of a type. For example |
| // `line_item/amount`. This convention is deprecated, but will still be |
| // honored for backward compatibility. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // The entity type that this type is derived from. For now, one and only |
| // one should be set. |
| BaseTypes []string `protobuf:"bytes,2,rep,name=base_types,json=baseTypes,proto3" json:"base_types,omitempty"` |
| // Description the nested structure, or composition of an entity. |
| Properties []*DocumentSchema_EntityType_Property `protobuf:"bytes,6,rep,name=properties,proto3" json:"properties,omitempty"` |
| // Metadata for the entity type. |
| EntityTypeMetadata *EntityTypeMetadata `protobuf:"bytes,11,opt,name=entity_type_metadata,json=entityTypeMetadata,proto3" json:"entity_type_metadata,omitempty"` |
| } |
| |
| func (x *DocumentSchema_EntityType) Reset() { |
| *x = DocumentSchema_EntityType{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[5] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DocumentSchema_EntityType) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DocumentSchema_EntityType) ProtoMessage() {} |
| |
| func (x *DocumentSchema_EntityType) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[5] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use DocumentSchema_EntityType.ProtoReflect.Descriptor instead. |
| func (*DocumentSchema_EntityType) Descriptor() ([]byte, []int) { |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescGZIP(), []int{4, 0} |
| } |
| |
| func (m *DocumentSchema_EntityType) GetValueSource() isDocumentSchema_EntityType_ValueSource { |
| if m != nil { |
| return m.ValueSource |
| } |
| return nil |
| } |
| |
| func (x *DocumentSchema_EntityType) GetEnumValues() *DocumentSchema_EntityType_EnumValues { |
| if x, ok := x.GetValueSource().(*DocumentSchema_EntityType_EnumValues_); ok { |
| return x.EnumValues |
| } |
| return nil |
| } |
| |
| func (x *DocumentSchema_EntityType) GetDisplayName() string { |
| if x != nil { |
| return x.DisplayName |
| } |
| return "" |
| } |
| |
| func (x *DocumentSchema_EntityType) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| func (x *DocumentSchema_EntityType) GetBaseTypes() []string { |
| if x != nil { |
| return x.BaseTypes |
| } |
| return nil |
| } |
| |
| func (x *DocumentSchema_EntityType) GetProperties() []*DocumentSchema_EntityType_Property { |
| if x != nil { |
| return x.Properties |
| } |
| return nil |
| } |
| |
| func (x *DocumentSchema_EntityType) GetEntityTypeMetadata() *EntityTypeMetadata { |
| if x != nil { |
| return x.EntityTypeMetadata |
| } |
| return nil |
| } |
| |
| type isDocumentSchema_EntityType_ValueSource interface { |
| isDocumentSchema_EntityType_ValueSource() |
| } |
| |
| type DocumentSchema_EntityType_EnumValues_ struct { |
| // If specified, lists all the possible values for this entity. This |
| // should not be more than a handful of values. If the number of values |
| // is >10 or could change frequently use the `EntityType.value_ontology` |
| // field and specify a list of all possible values in a value ontology |
| // file. |
| EnumValues *DocumentSchema_EntityType_EnumValues `protobuf:"bytes,14,opt,name=enum_values,json=enumValues,proto3,oneof"` |
| } |
| |
| func (*DocumentSchema_EntityType_EnumValues_) isDocumentSchema_EntityType_ValueSource() {} |
| |
| // Metadata for global schema behavior. |
| type DocumentSchema_Metadata struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // If true, a `document` entity type can be applied to subdocument |
| // (splitting). Otherwise, it can only be applied to the entire document |
| // (classification). |
| DocumentSplitter bool `protobuf:"varint,1,opt,name=document_splitter,json=documentSplitter,proto3" json:"document_splitter,omitempty"` |
| // If true, on a given page, there can be multiple `document` annotations |
| // covering it. |
| DocumentAllowMultipleLabels bool `protobuf:"varint,2,opt,name=document_allow_multiple_labels,json=documentAllowMultipleLabels,proto3" json:"document_allow_multiple_labels,omitempty"` |
| // If set, all the nested entities must be prefixed with the parents. |
| PrefixedNamingOnProperties bool `protobuf:"varint,6,opt,name=prefixed_naming_on_properties,json=prefixedNamingOnProperties,proto3" json:"prefixed_naming_on_properties,omitempty"` |
| // If set, we will skip the naming format validation in the schema. So the |
| // string values in `DocumentSchema.EntityType.name` and |
| // `DocumentSchema.EntityType.Property.name` will not be checked. |
| SkipNamingValidation bool `protobuf:"varint,7,opt,name=skip_naming_validation,json=skipNamingValidation,proto3" json:"skip_naming_validation,omitempty"` |
| } |
| |
| func (x *DocumentSchema_Metadata) Reset() { |
| *x = DocumentSchema_Metadata{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[6] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DocumentSchema_Metadata) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DocumentSchema_Metadata) ProtoMessage() {} |
| |
| func (x *DocumentSchema_Metadata) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[6] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use DocumentSchema_Metadata.ProtoReflect.Descriptor instead. |
| func (*DocumentSchema_Metadata) Descriptor() ([]byte, []int) { |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescGZIP(), []int{4, 1} |
| } |
| |
| func (x *DocumentSchema_Metadata) GetDocumentSplitter() bool { |
| if x != nil { |
| return x.DocumentSplitter |
| } |
| return false |
| } |
| |
| func (x *DocumentSchema_Metadata) GetDocumentAllowMultipleLabels() bool { |
| if x != nil { |
| return x.DocumentAllowMultipleLabels |
| } |
| return false |
| } |
| |
| func (x *DocumentSchema_Metadata) GetPrefixedNamingOnProperties() bool { |
| if x != nil { |
| return x.PrefixedNamingOnProperties |
| } |
| return false |
| } |
| |
| func (x *DocumentSchema_Metadata) GetSkipNamingValidation() bool { |
| if x != nil { |
| return x.SkipNamingValidation |
| } |
| return false |
| } |
| |
| // Defines the a list of enum values. |
| type DocumentSchema_EntityType_EnumValues struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The individual values that this enum values type can include. |
| Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` |
| } |
| |
| func (x *DocumentSchema_EntityType_EnumValues) Reset() { |
| *x = DocumentSchema_EntityType_EnumValues{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[7] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DocumentSchema_EntityType_EnumValues) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DocumentSchema_EntityType_EnumValues) ProtoMessage() {} |
| |
| func (x *DocumentSchema_EntityType_EnumValues) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[7] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use DocumentSchema_EntityType_EnumValues.ProtoReflect.Descriptor instead. |
| func (*DocumentSchema_EntityType_EnumValues) Descriptor() ([]byte, []int) { |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescGZIP(), []int{4, 0, 0} |
| } |
| |
| func (x *DocumentSchema_EntityType_EnumValues) GetValues() []string { |
| if x != nil { |
| return x.Values |
| } |
| return nil |
| } |
| |
| // Defines properties that can be part of the entity type. |
| type DocumentSchema_EntityType_Property struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // The name of the property. Follows the same guidelines as the |
| // EntityType name. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // User defined name for the property. |
| DisplayName string `protobuf:"bytes,6,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` |
| // A reference to the value type of the property. This type is subject |
| // to the same conventions as the `Entity.base_types` field. |
| ValueType string `protobuf:"bytes,2,opt,name=value_type,json=valueType,proto3" json:"value_type,omitempty"` |
| // Occurrence type limits the number of instances an entity type appears |
| // in the document. |
| OccurrenceType DocumentSchema_EntityType_Property_OccurrenceType `protobuf:"varint,3,opt,name=occurrence_type,json=occurrenceType,proto3,enum=google.cloud.documentai.v1beta3.DocumentSchema_EntityType_Property_OccurrenceType" json:"occurrence_type,omitempty"` |
| // Any additional metadata about the property can be added here. |
| PropertyMetadata *PropertyMetadata `protobuf:"bytes,5,opt,name=property_metadata,json=propertyMetadata,proto3" json:"property_metadata,omitempty"` |
| } |
| |
| func (x *DocumentSchema_EntityType_Property) Reset() { |
| *x = DocumentSchema_EntityType_Property{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[8] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DocumentSchema_EntityType_Property) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DocumentSchema_EntityType_Property) ProtoMessage() {} |
| |
| func (x *DocumentSchema_EntityType_Property) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[8] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use DocumentSchema_EntityType_Property.ProtoReflect.Descriptor instead. |
| func (*DocumentSchema_EntityType_Property) Descriptor() ([]byte, []int) { |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescGZIP(), []int{4, 0, 1} |
| } |
| |
| func (x *DocumentSchema_EntityType_Property) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| func (x *DocumentSchema_EntityType_Property) GetDisplayName() string { |
| if x != nil { |
| return x.DisplayName |
| } |
| return "" |
| } |
| |
| func (x *DocumentSchema_EntityType_Property) GetValueType() string { |
| if x != nil { |
| return x.ValueType |
| } |
| return "" |
| } |
| |
| func (x *DocumentSchema_EntityType_Property) GetOccurrenceType() DocumentSchema_EntityType_Property_OccurrenceType { |
| if x != nil { |
| return x.OccurrenceType |
| } |
| return DocumentSchema_EntityType_Property_OCCURRENCE_TYPE_UNSPECIFIED |
| } |
| |
| func (x *DocumentSchema_EntityType_Property) GetPropertyMetadata() *PropertyMetadata { |
| if x != nil { |
| return x.PropertyMetadata |
| } |
| return nil |
| } |
| |
| var File_google_cloud_documentai_v1beta3_document_schema_proto protoreflect.FileDescriptor |
| |
| var file_google_cloud_documentai_v1beta3_document_schema_proto_rawDesc = []byte{ |
| 0x0a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x64, |
| 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, |
| 0x33, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, |
| 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, |
| 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x22, 0xbc, 0x02, 0x0a, 0x0e, 0x53, 0x75, 0x6d, |
| 0x6d, 0x61, 0x72, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4e, 0x0a, 0x06, 0x6c, |
| 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x67, 0x6f, |
| 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, |
| 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x53, 0x75, |
| 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4c, 0x65, 0x6e, |
| 0x67, 0x74, 0x68, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x4e, 0x0a, 0x06, 0x66, |
| 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x67, 0x6f, |
| 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, |
| 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x53, 0x75, |
| 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x46, 0x6f, 0x72, |
| 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x4c, 0x0a, 0x06, 0x4c, |
| 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x12, 0x4c, 0x45, 0x4e, 0x47, 0x54, 0x48, 0x5f, |
| 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, |
| 0x05, 0x42, 0x52, 0x49, 0x45, 0x46, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x4f, 0x44, 0x45, |
| 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x4f, 0x4d, 0x50, 0x52, 0x45, |
| 0x48, 0x45, 0x4e, 0x53, 0x49, 0x56, 0x45, 0x10, 0x03, 0x22, 0x3c, 0x0a, 0x06, 0x46, 0x6f, 0x72, |
| 0x6d, 0x61, 0x74, 0x12, 0x16, 0x0a, 0x12, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, 0x4e, |
| 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x50, |
| 0x41, 0x52, 0x41, 0x47, 0x52, 0x41, 0x50, 0x48, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x55, |
| 0x4c, 0x4c, 0x45, 0x54, 0x53, 0x10, 0x02, 0x22, 0x73, 0x0a, 0x17, 0x46, 0x69, 0x65, 0x6c, 0x64, |
| 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, |
| 0x74, 0x61, 0x12, 0x58, 0x0a, 0x0f, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x6f, 0x70, |
| 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, |
| 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, |
| 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x53, 0x75, |
| 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0e, 0x73, 0x75, |
| 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xa4, 0x01, 0x0a, |
| 0x10, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, |
| 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, |
| 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x6e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x74, 0x0a, |
| 0x19, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, |
| 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, |
| 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, |
| 0x61, 0x33, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, |
| 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x17, 0x66, 0x69, 0x65, 0x6c, |
| 0x64, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, |
| 0x61, 0x74, 0x61, 0x22, 0x30, 0x0a, 0x12, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, |
| 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x61, |
| 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x6e, 0x61, |
| 0x63, 0x74, 0x69, 0x76, 0x65, 0x22, 0x9b, 0x0b, 0x0a, 0x0e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, |
| 0x6e, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, |
| 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, |
| 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, |
| 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, |
| 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5d, 0x0a, |
| 0x0c, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, |
| 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, |
| 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, |
| 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x63, |
| 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, |
| 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x54, 0x0a, 0x08, |
| 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, |
| 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, |
| 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, |
| 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, |
| 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, |
| 0x74, 0x61, 0x1a, 0x96, 0x07, 0x0a, 0x0a, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, |
| 0x65, 0x12, 0x68, 0x0a, 0x0b, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, |
| 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, |
| 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, |
| 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, |
| 0x70, 0x65, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x48, 0x00, 0x52, |
| 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x64, |
| 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, |
| 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, |
| 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, |
| 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, |
| 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, |
| 0x73, 0x12, 0x63, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, |
| 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, |
| 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, |
| 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, |
| 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, |
| 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x65, 0x0a, 0x14, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, |
| 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0b, |
| 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, |
| 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, |
| 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x12, 0x65, 0x6e, 0x74, 0x69, 0x74, |
| 0x79, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x24, 0x0a, |
| 0x0a, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x76, |
| 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, |
| 0x75, 0x65, 0x73, 0x1a, 0xc5, 0x03, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, |
| 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, |
| 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, |
| 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, |
| 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, |
| 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x7b, 0x0a, 0x0f, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, |
| 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, |
| 0x52, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, |
| 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, |
| 0x33, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, |
| 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x70, |
| 0x65, 0x72, 0x74, 0x79, 0x2e, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x54, |
| 0x79, 0x70, 0x65, 0x52, 0x0e, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x54, |
| 0x79, 0x70, 0x65, 0x12, 0x5e, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, |
| 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, |
| 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, |
| 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, |
| 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, |
| 0x61, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, |
| 0x61, 0x74, 0x61, 0x22, 0x85, 0x01, 0x0a, 0x0e, 0x4f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, |
| 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x4f, 0x43, 0x43, 0x55, 0x52, 0x52, |
| 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, |
| 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x4f, 0x50, 0x54, 0x49, 0x4f, |
| 0x4e, 0x41, 0x4c, 0x5f, 0x4f, 0x4e, 0x43, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x4f, 0x50, |
| 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x50, 0x4c, 0x45, 0x10, |
| 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x45, 0x51, 0x55, 0x49, 0x52, 0x45, 0x44, 0x5f, 0x4f, 0x4e, |
| 0x43, 0x45, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x51, 0x55, 0x49, 0x52, 0x45, 0x44, |
| 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x50, 0x4c, 0x45, 0x10, 0x04, 0x42, 0x0e, 0x0a, 0x0c, 0x76, |
| 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0xf5, 0x01, 0x0a, 0x08, |
| 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x6f, 0x63, 0x75, |
| 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, |
| 0x01, 0x28, 0x08, 0x52, 0x10, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x6c, |
| 0x69, 0x74, 0x74, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x1e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, |
| 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, |
| 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1b, 0x64, |
| 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x4d, 0x75, 0x6c, 0x74, |
| 0x69, 0x70, 0x6c, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x41, 0x0a, 0x1d, 0x70, 0x72, |
| 0x65, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x6e, |
| 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, |
| 0x08, 0x52, 0x1a, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x69, 0x6e, |
| 0x67, 0x4f, 0x6e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x34, 0x0a, |
| 0x16, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, |
| 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x73, |
| 0x6b, 0x69, 0x70, 0x4e, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, |
| 0x69, 0x6f, 0x6e, 0x42, 0xef, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, |
| 0x74, 0x61, 0x69, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, 0x42, 0x18, 0x44, 0x6f, 0x63, |
| 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x69, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x53, |
| 0x63, 0x68, 0x65, 0x6d, 0x61, 0x50, 0x01, 0x5a, 0x43, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, |
| 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x64, 0x6f, 0x63, |
| 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, |
| 0x61, 0x33, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x70, 0x62, 0x3b, |
| 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x69, 0x70, 0x62, 0xaa, 0x02, 0x1f, 0x47, |
| 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x44, 0x6f, 0x63, 0x75, |
| 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x49, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x33, 0xca, 0x02, |
| 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x44, 0x6f, |
| 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x49, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x33, |
| 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, |
| 0x3a, 0x3a, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x49, 0x3a, 0x3a, 0x56, 0x31, |
| 0x62, 0x65, 0x74, 0x61, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| } |
| |
| var ( |
| file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescOnce sync.Once |
| file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescData = file_google_cloud_documentai_v1beta3_document_schema_proto_rawDesc |
| ) |
| |
| func file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescGZIP() []byte { |
| file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescOnce.Do(func() { |
| file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescData) |
| }) |
| return file_google_cloud_documentai_v1beta3_document_schema_proto_rawDescData |
| } |
| |
| var file_google_cloud_documentai_v1beta3_document_schema_proto_enumTypes = make([]protoimpl.EnumInfo, 3) |
| var file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes = make([]protoimpl.MessageInfo, 9) |
| var file_google_cloud_documentai_v1beta3_document_schema_proto_goTypes = []interface{}{ |
| (SummaryOptions_Length)(0), // 0: google.cloud.documentai.v1beta3.SummaryOptions.Length |
| (SummaryOptions_Format)(0), // 1: google.cloud.documentai.v1beta3.SummaryOptions.Format |
| (DocumentSchema_EntityType_Property_OccurrenceType)(0), // 2: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType |
| (*SummaryOptions)(nil), // 3: google.cloud.documentai.v1beta3.SummaryOptions |
| (*FieldExtractionMetadata)(nil), // 4: google.cloud.documentai.v1beta3.FieldExtractionMetadata |
| (*PropertyMetadata)(nil), // 5: google.cloud.documentai.v1beta3.PropertyMetadata |
| (*EntityTypeMetadata)(nil), // 6: google.cloud.documentai.v1beta3.EntityTypeMetadata |
| (*DocumentSchema)(nil), // 7: google.cloud.documentai.v1beta3.DocumentSchema |
| (*DocumentSchema_EntityType)(nil), // 8: google.cloud.documentai.v1beta3.DocumentSchema.EntityType |
| (*DocumentSchema_Metadata)(nil), // 9: google.cloud.documentai.v1beta3.DocumentSchema.Metadata |
| (*DocumentSchema_EntityType_EnumValues)(nil), // 10: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues |
| (*DocumentSchema_EntityType_Property)(nil), // 11: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property |
| } |
| var file_google_cloud_documentai_v1beta3_document_schema_proto_depIdxs = []int32{ |
| 0, // 0: google.cloud.documentai.v1beta3.SummaryOptions.length:type_name -> google.cloud.documentai.v1beta3.SummaryOptions.Length |
| 1, // 1: google.cloud.documentai.v1beta3.SummaryOptions.format:type_name -> google.cloud.documentai.v1beta3.SummaryOptions.Format |
| 3, // 2: google.cloud.documentai.v1beta3.FieldExtractionMetadata.summary_options:type_name -> google.cloud.documentai.v1beta3.SummaryOptions |
| 4, // 3: google.cloud.documentai.v1beta3.PropertyMetadata.field_extraction_metadata:type_name -> google.cloud.documentai.v1beta3.FieldExtractionMetadata |
| 8, // 4: google.cloud.documentai.v1beta3.DocumentSchema.entity_types:type_name -> google.cloud.documentai.v1beta3.DocumentSchema.EntityType |
| 9, // 5: google.cloud.documentai.v1beta3.DocumentSchema.metadata:type_name -> google.cloud.documentai.v1beta3.DocumentSchema.Metadata |
| 10, // 6: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.enum_values:type_name -> google.cloud.documentai.v1beta3.DocumentSchema.EntityType.EnumValues |
| 11, // 7: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.properties:type_name -> google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property |
| 6, // 8: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.entity_type_metadata:type_name -> google.cloud.documentai.v1beta3.EntityTypeMetadata |
| 2, // 9: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.occurrence_type:type_name -> google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType |
| 5, // 10: google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.property_metadata:type_name -> google.cloud.documentai.v1beta3.PropertyMetadata |
| 11, // [11:11] is the sub-list for method output_type |
| 11, // [11:11] is the sub-list for method input_type |
| 11, // [11:11] is the sub-list for extension type_name |
| 11, // [11:11] is the sub-list for extension extendee |
| 0, // [0:11] is the sub-list for field type_name |
| } |
| |
| func init() { file_google_cloud_documentai_v1beta3_document_schema_proto_init() } |
| func file_google_cloud_documentai_v1beta3_document_schema_proto_init() { |
| if File_google_cloud_documentai_v1beta3_document_schema_proto != nil { |
| return |
| } |
| if !protoimpl.UnsafeEnabled { |
| file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*SummaryOptions); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*FieldExtractionMetadata); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*PropertyMetadata); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*EntityTypeMetadata); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DocumentSchema); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DocumentSchema_EntityType); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DocumentSchema_Metadata); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DocumentSchema_EntityType_EnumValues); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DocumentSchema_EntityType_Property); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| } |
| file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes[5].OneofWrappers = []interface{}{ |
| (*DocumentSchema_EntityType_EnumValues_)(nil), |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: file_google_cloud_documentai_v1beta3_document_schema_proto_rawDesc, |
| NumEnums: 3, |
| NumMessages: 9, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_google_cloud_documentai_v1beta3_document_schema_proto_goTypes, |
| DependencyIndexes: file_google_cloud_documentai_v1beta3_document_schema_proto_depIdxs, |
| EnumInfos: file_google_cloud_documentai_v1beta3_document_schema_proto_enumTypes, |
| MessageInfos: file_google_cloud_documentai_v1beta3_document_schema_proto_msgTypes, |
| }.Build() |
| File_google_cloud_documentai_v1beta3_document_schema_proto = out.File |
| file_google_cloud_documentai_v1beta3_document_schema_proto_rawDesc = nil |
| file_google_cloud_documentai_v1beta3_document_schema_proto_goTypes = nil |
| file_google_cloud_documentai_v1beta3_document_schema_proto_depIdxs = nil |
| } |