Class Status

    • Method Detail

      • documentId

        public final String documentId()

        The identifier of the document.

        Returns:
        The identifier of the document.
      • documentStatus

        public final DocumentStatus documentStatus()

        The current status of a document.

        If the document was submitted for deletion, the status is NOT_FOUND after the document is deleted.

        If the service returns an enum value that is not available in the current SDK version, documentStatus will return DocumentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from documentStatusAsString().

        Returns:
        The current status of a document.

        If the document was submitted for deletion, the status is NOT_FOUND after the document is deleted.

        See Also:
        DocumentStatus
      • documentStatusAsString

        public final String documentStatusAsString()

        The current status of a document.

        If the document was submitted for deletion, the status is NOT_FOUND after the document is deleted.

        If the service returns an enum value that is not available in the current SDK version, documentStatus will return DocumentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from documentStatusAsString().

        Returns:
        The current status of a document.

        If the document was submitted for deletion, the status is NOT_FOUND after the document is deleted.

        See Also:
        DocumentStatus
      • failureCode

        public final String failureCode()

        Indicates the source of the error.

        Returns:
        Indicates the source of the error.
      • failureReason

        public final String failureReason()

        Provides detailed information about why the document couldn't be indexed. Use this information to correct the error before you resubmit the document for indexing.

        Returns:
        Provides detailed information about why the document couldn't be indexed. Use this information to correct the error before you resubmit the document for indexing.
      • serializableBuilderClass

        public static Class<? extends Status.Builder> serializableBuilderClass()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)