Class Document (2.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 2.79.0 (latest)
- 2.77.0
- 2.76.0
- 2.75.0
- 2.74.0
- 2.73.0
- 2.71.0
- 2.69.0
- 2.68.0
- 2.65.0
- 2.64.0
- 2.63.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.1
- 2.3.4
- 2.2.0
- 2.1.10
publicfinalclass DocumentextendsGeneratedMessageV3implementsDocumentOrBuilderRepresents the input to API methods.
Protobuf type google.cloud.language.v1beta2.Document
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > DocumentImplements
DocumentOrBuilderInherited Members
Static Fields
BOILERPLATE_HANDLING_FIELD_NUMBER
publicstaticfinalintBOILERPLATE_HANDLING_FIELD_NUMBERCONTENT_FIELD_NUMBER
publicstaticfinalintCONTENT_FIELD_NUMBERGCS_CONTENT_URI_FIELD_NUMBER
publicstaticfinalintGCS_CONTENT_URI_FIELD_NUMBERLANGUAGE_FIELD_NUMBER
publicstaticfinalintLANGUAGE_FIELD_NUMBERREFERENCE_WEB_URI_FIELD_NUMBER
publicstaticfinalintREFERENCE_WEB_URI_FIELD_NUMBERTYPE_FIELD_NUMBER
publicstaticfinalintTYPE_FIELD_NUMBERStatic Methods
getDefaultInstance()
publicstaticDocumentgetDefaultInstance()getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()newBuilder()
publicstaticDocument.BuildernewBuilder()newBuilder(Document prototype)
publicstaticDocument.BuildernewBuilder(Documentprototype)parseDelimitedFrom(InputStream input)
publicstaticDocumentparseDelimitedFrom(InputStreaminput)parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticDocumentparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(byte[] data)
publicstaticDocumentparseFrom(byte[]data)data
byte[]parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticDocumentparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)data
byte[]parseFrom(ByteString data)
publicstaticDocumentparseFrom(ByteStringdata)parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticDocumentparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)parseFrom(CodedInputStream input)
publicstaticDocumentparseFrom(CodedInputStreaminput)parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticDocumentparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(InputStream input)
publicstaticDocumentparseFrom(InputStreaminput)parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticDocumentparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(ByteBuffer data)
publicstaticDocumentparseFrom(ByteBufferdata)parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticDocumentparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)parser()
publicstaticParser<Document>parser()Methods
equals(Object obj)
publicbooleanequals(Objectobj)getBoilerplateHandling()
publicDocument.BoilerplateHandlinggetBoilerplateHandling()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
The boilerplateHandling.
getBoilerplateHandlingValue()
publicintgetBoilerplateHandlingValue()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;
int
The enum numeric value on the wire for boilerplateHandling.
getContent()
publicStringgetContent()The content of the input in string format. Cloud audit logging exempt since it is based on user data.
string content = 2;
String
The content.
getContentBytes()
publicByteStringgetContentBytes()The content of the input in string format. Cloud audit logging exempt since it is based on user data.
string content = 2;
ByteString
The bytes for content.
getDefaultInstanceForType()
publicDocumentgetDefaultInstanceForType()getGcsContentUri()
publicStringgetGcsContentUri()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
The gcsContentUri.
getGcsContentUriBytes()
publicByteStringgetGcsContentUriBytes()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
The bytes for gcsContentUri.
getLanguage()
publicStringgetLanguage() 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 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
The language.
getLanguageBytes()
publicByteStringgetLanguageBytes() 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 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
The bytes for language.
getParserForType()
publicParser<Document>getParserForType()getReferenceWebUri()
publicStringgetReferenceWebUri()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;
String
The referenceWebUri.
getReferenceWebUriBytes()
publicByteStringgetReferenceWebUriBytes()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
The bytes for referenceWebUri.
getSerializedSize()
publicintgetSerializedSize()getSourceCase()
publicDocument.SourceCasegetSourceCase()getType()
publicDocument.TypegetType() 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
The type.
getTypeValue()
publicintgetTypeValue() Required. If the type is not set or is TYPE_UNSPECIFIED,
returns an INVALID_ARGUMENT error.
.google.cloud.language.v1beta2.Document.Type type = 1;
int
The enum numeric value on the wire for type.
getUnknownFields()
publicfinalUnknownFieldSetgetUnknownFields()hasContent()
publicbooleanhasContent()The content of the input in string format. Cloud audit logging exempt since it is based on user data.
string content = 2;
boolean
Whether the content field is set.
hasGcsContentUri()
publicbooleanhasGcsContentUri()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;
boolean
Whether the gcsContentUri field is set.
hashCode()
publicinthashCode()internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()isInitialized()
publicfinalbooleanisInitialized()newBuilderForType()
publicDocument.BuildernewBuilderForType()newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedDocument.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)toBuilder()
publicDocument.BuildertoBuilder()writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)