DigitalDocumentBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Methods
Sets authors of the digital document.
Parameters
personBuilders |
The authors of this digital document. |
Sets the date on which the digital document was created.
Parameters
dateCreated |
The date on which the digital document was created. |
Sets the date on which the digital document was last edited.
Parameters
dateModified |
The date on which the digital document was last edited. |
Sets the permission related to the access to this digital document
(e.g. permission to read or write). For a public digital document, specify a
grantee with an Audience with audienceType equal to "public".
Parameters
permissions |
The permissions related to the access to this digital document. |
Sets the textual content of the digital document.
Parameters
text |
The textual content of the digital document. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-02-11 UTC.
[null,null,["Last updated 2021-02-11 UTC."],[],[],null,["public final class **DigitalDocumentBuilder** extends [IndexableBuilder](/docs/reference/android/com/google/firebase/appindexing/builders/IndexableBuilder)\\\u003c[DigitalDocumentBuilder](/docs/reference/android/com/google/firebase/appindexing/builders/DigitalDocumentBuilder)\\\u003e \nBuilder to construct an [Indexable](/docs/reference/android/com/google/firebase/appindexing/Indexable)\nfor a digital document of different types.\n\nFor reference, see: \u003c//schema.org/DigitalDocument\u003e. \n\nPublic Method Summary\n\nInherited Method Summary \nFrom class [com.google.firebase.appindexing.builders.IndexableBuilder](/docs/reference/android/com/google/firebase/appindexing/builders/IndexableBuilder) \n\nFrom class java.lang.Object \n\nPublic Methods \n\npublic [DigitalDocumentBuilder](/docs/reference/android/com/google/firebase/appindexing/builders/DigitalDocumentBuilder) **setAuthor**\n([PersonBuilder...](/docs/reference/android/com/google/firebase/appindexing/builders/PersonBuilder) personBuilders) \nSets authors of the digital document. \n\nParameters\n\npublic [DigitalDocumentBuilder](/docs/reference/android/com/google/firebase/appindexing/builders/DigitalDocumentBuilder) **setDateCreated** ([Date](//developer.android.com/reference/java/util/Date.html) dateCreated) \nSets the date on which the digital document was created. \n\nParameters\n\npublic [DigitalDocumentBuilder](/docs/reference/android/com/google/firebase/appindexing/builders/DigitalDocumentBuilder) **setDateModified** ([Date](//developer.android.com/reference/java/util/Date.html) dateModified) \nSets the date on which the digital document was last edited. \n\nParameters\n\npublic [DigitalDocumentBuilder](/docs/reference/android/com/google/firebase/appindexing/builders/DigitalDocumentBuilder) **setHasDigitalDocumentPermission** ([DigitalDocumentPermissionBuilder...](/docs/reference/android/com/google/firebase/appindexing/builders/DigitalDocumentPermissionBuilder) permissions) \nSets the permission related to the access to this digital document\n(e.g. permission to read or write). For a public digital document, specify a\ngrantee with an Audience with audienceType equal to \"public\". \n\nParameters\n\npublic [DigitalDocumentBuilder](/docs/reference/android/com/google/firebase/appindexing/builders/DigitalDocumentBuilder) **setText**\n([String](//developer.android.com/reference/java/lang/String.html) text) \nSets the textual content of the digital document. \n\nParameters"]]