public interface DocumentOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
Document.BoilerplateHandling |
getBoilerplateHandling()
Indicates how detected boilerplate(e.g.
|
int |
getBoilerplateHandlingValue()
Indicates how detected boilerplate(e.g.
|
String |
getContent()
The content of the input in string format.
|
ByteString |
getContentBytes()
The content of the input in string format.
|
String |
getGcsContentUri()
The Google Cloud Storage URI where the file content is located.
|
ByteString |
getGcsContentUriBytes()
The Google Cloud Storage URI where the file content is located.
|
String |
getLanguage()
The language of the document (if not specified, the language is
automatically detected).
|
ByteString |
getLanguageBytes()
The language of the document (if not specified, the language is
automatically detected).
|
String |
getReferenceWebUri()
The web URI where the document comes from.
|
ByteString |
getReferenceWebUriBytes()
The web URI where the document comes from.
|
Document.SourceCase |
getSourceCase() |
Document.Type |
getType()
Required.
|
int |
getTypeValue()
Required.
|
boolean |
hasContent()
The content of the input in string format.
|
boolean |
hasGcsContentUri()
The Google Cloud Storage URI where the file content is located.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
int getTypeValue()
Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `INVALID_ARGUMENT` error.
.google.cloud.language.v1beta2.Document.Type type = 1;
Document.Type getType()
Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `INVALID_ARGUMENT` error.
.google.cloud.language.v1beta2.Document.Type type = 1;
boolean hasContent()
The content of the input in string format. Cloud audit logging exempt since it is based on user data.
string content = 2;
String getContent()
The content of the input in string format. Cloud audit logging exempt since it is based on user data.
string content = 2;
ByteString getContentBytes()
The content of the input in string format. Cloud audit logging exempt since it is based on user data.
string content = 2;
boolean hasGcsContentUri()
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.
string gcs_content_uri = 3;
String getGcsContentUri()
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.
string gcs_content_uri = 3;
ByteString getGcsContentUriBytes()
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.
string gcs_content_uri = 3;
String getLanguage()
The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted.<br> [Language Support](https://cloud.google.com/natural-language/docs/languages) 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.
string language = 4;
ByteString getLanguageBytes()
The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted.<br> [Language Support](https://cloud.google.com/natural-language/docs/languages) 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.
string language = 4;
String getReferenceWebUri()
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.
string reference_web_uri = 5;
ByteString getReferenceWebUriBytes()
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.
string reference_web_uri = 5;
int getBoilerplateHandlingValue()
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.
.google.cloud.language.v1beta2.Document.BoilerplateHandling boilerplate_handling = 6;
Document.BoilerplateHandling getBoilerplateHandling()
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.
.google.cloud.language.v1beta2.Document.BoilerplateHandling boilerplate_handling = 6;
Document.SourceCase getSourceCase()
Copyright © 2022 Google LLC. All rights reserved.