Corpus class final
A Corpus is a collection of Documents.
A project can create up to 5 corpora.
- Inheritance
-
- Object
- ProtoMessage
- Corpus
Constructors
- Corpus({String name = '', String displayName = '', Timestamp? createTime, Timestamp? updateTime})
- Corpus.fromJson(Object? j)
-
factory
Properties
- createTime → Timestamp?
-
Output only. The Timestamp of when the
Corpuswas created.final - displayName → String
-
Optional. The human-readable display name for the
Corpus. The display name must be no more than 512 characters in length, including spaces. Example: "Docs on Semantic Retriever"final - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Immutable. Identifier. The
Corpusresource name. The ID (name excluding the "corpora/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived fromdisplay_namealong with a 12 character random suffix. Example:corpora/my-awesome-corpora-123a456b789cfinal - qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updateTime → Timestamp?
-
Output only. The Timestamp of when the
Corpuswas last updated.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String