SetSchemaResponse.MigrationFailure

public static classSetSchemaResponse.MigrationFailureextendsObject
implementsParcelable

The class represents a post-migratedGenericDocument that failed to be saved by AppSearchClient.setSchema(SetSchemaRequest, String).

Inherited Constant Summary

Field Summary

public static finalCreator<SetSchemaResponse.MigrationFailure> CREATOR

Public Constructor Summary

MigrationFailure(Stringnamespace, String documentId,StringschemaType, AppSearchResult<?> failedResult)

Public Method Summary

AppSearchResult<Void>
getAppSearchResult()
Returns theAppSearchResult that indicates why the post-migrationGenericDocument failed to be indexed.
String
getDocumentId()
Returns the id of theGenericDocument that failed to be migrated.
String
getNamespace()
Returns the namespace of theGenericDocument that failed to be migrated.
String
getSchemaType()
Returns the schema type of theGenericDocument that failed to be migrated.
String
void
writeToParcel(Parceldest, int flags)

Inherited Method Summary

Fields

public static finalCreator<SetSchemaResponse.MigrationFailure> CREATOR

Public Constructors

publicMigrationFailure(Stringnamespace,StringdocumentId,StringschemaType,AppSearchResult<?> failedResult)

Parameters
namespace The namespace of the document which failed to be migrated.
documentId The id of the document which failed to be migrated.
schemaType The type of the document which failed to be migrated.
failedResult The reason why the document failed to be indexed.
Throws
IllegalArgumentException if the providedfailedResultwas not a failure.

Public Methods

publicAppSearchResult<Void> getAppSearchResult()

Returns theAppSearchResult that indicates why the post-migrationGenericDocument failed to be indexed.

publicStringgetDocumentId()

Returns the id of theGenericDocument that failed to be migrated.

publicStringgetNamespace()

Returns the namespace of theGenericDocument that failed to be migrated.

publicStringgetSchemaType()

Returns the schema type of theGenericDocument that failed to be migrated.

publicStringtoString()

public voidwriteToParcel(Parceldest, int flags)