A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/android/reference/com/google/android/gms/appsearch/GenericDocument below:

GenericDocument | Google Play services

Represents a document unit.

Documents contain structured data conforming to their AppSearchSchema type. Each document is uniquely identified by a namespace and a String ID within that namespace.

Documents are constructed by using the GenericDocument.Builder.

Nested Class Summary Protected Constructor Summary Public Method Summary 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()

Protected Constructors protected GenericDocument (GenericDocument document)

Creates a new GenericDocument from an existing instance.

This method should be only used by constructor of a subclass.

Public Methods public boolean equals (Object other) public long getCreationTimestampMillis () public static int getMaxIndexedProperties () public Object getProperty (String path)

Retrieves the property value with the given path as Object.

A path can be a simple property name, such as those returned by getPropertyNames(). It may also be a dot-delimited path through the nested document hierarchy, with nested GenericDocument properties accessed via '.' and repeated properties optionally indexed into via [n].

For example, given the following GenericDocument:

     (Message) {
         from: "sender@example.com"
         to: [{
             name: "Albert Einstein"
             email: "einstein@example.com"
           }, {
             name: "Marie Curie"
             email: "curie@example.com"
           }]
         tags: ["important", "inbox"]
         subject: "Hello"
     }
 

Here are some example paths and their results:

If you know the expected type of the property you are retrieving, it is recommended to use one of the typed versions of this method instead, such as getPropertyString(String) or getPropertyStringArray(String).

If the property was assigned as an empty array using one of the Builder#setProperty functions, this method will return an empty array. If no such property exists at all, this method returns null.

Note: If the property is an empty GenericDocument[] or byte[][], this method will return a null value in versions of Android prior to Android T. Starting in Android T it will return an empty array if the property has been set as an empty array, matching the behavior of other property types.

Parameters path The path to look for. Returns public boolean getPropertyBoolean (String path)

Retrieves a boolean property by path.

See getProperty(String) for a detailed description of the path syntax.

Parameters path The path to look for. Returns public boolean[] getPropertyBooleanArray (String path) Parameters path The path to look for. Returns public byte[] getPropertyBytes (String path)

Retrieves a byte[] property by path.

See getProperty(String) for a detailed description of the path syntax.

Parameters path The path to look for. Returns public byte[][] getPropertyBytesArray (String path) Parameters path The path to look for. Returns public GenericDocument getPropertyDocument (String path) Parameters path The path to look for. Returns public GenericDocument[] getPropertyDocumentArray (String path) Parameters path The path to look for. Returns public double getPropertyDouble (String path)

Retrieves a double property by path.

See getProperty(String) for a detailed description of the path syntax.

Parameters path The path to look for. Returns public double[] getPropertyDoubleArray (String path) Parameters path The path to look for. Returns public long getPropertyLong (String path)

Retrieves a long property by path.

See getProperty(String) for a detailed description of the path syntax.

Parameters path The path to look for. Returns public long[] getPropertyLongArray (String path) Parameters path The path to look for. Returns public Set<String> getPropertyNames ()

Returns the names of all properties defined in this document.

public String getPropertyString (String path) Parameters path The path to look for. Returns public String[] getPropertyStringArray (String path) Parameters path The path to look for. Returns public String getSchemaType () public long getTtlMillis ()

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4