Class Document
Represents the input to API methods.
Implements
Inherited Members
Namespace: Google.Apis.CloudNaturalLanguage.v1beta2.Data
Assembly: Google.Apis.CloudNaturalLanguage.v1beta2.dll
Syntax
public class Document : IDirectResponseSchema
Properties
BoilerplateHandling
Indicates how detected boilerplate(e.g. advertisements, copyright declarations, banners) should be handled for this document. If not specified, boilerplate will be treated the same as content.
Declaration
[JsonProperty("boilerplateHandling")]
public virtual string BoilerplateHandling { get; set; }
Property Value
Type | Description |
---|---|
string |
Content
The content of the input in string format. Cloud audit logging exempt since it is based on user data.
Declaration
[JsonProperty("content")]
public virtual string Content { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
GcsContentUri
The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.
Declaration
[JsonProperty("gcsContentUri")]
public virtual string GcsContentUri { get; set; }
Property Value
Type | Description |
---|---|
string |
Language
The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47
language codes are accepted. Language Support
lists currently supported languages for each API method. If the language (either specified by the caller or
automatically detected) is not supported by the called API method, an INVALID_ARGUMENT
error is returned.
Declaration
[JsonProperty("language")]
public virtual string Language { get; set; }
Property Value
Type | Description |
---|---|
string |
ReferenceWebUri
The web URI where the document comes from. This URI is not used for fetching the content, but as a hint for analyzing the document.
Declaration
[JsonProperty("referenceWebUri")]
public virtual string ReferenceWebUri { get; set; }
Property Value
Type | Description |
---|---|
string |
Type
Required. If the type is not set or is TYPE_UNSPECIFIED
, returns an INVALID_ARGUMENT
error.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type | Description |
---|---|
string |