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)
Constructs a new
SetSchemaResponse.MigrationFailure .
|
Public Method Summary
AppSearchResult<Void> |
getAppSearchResult()
Returns the
AppSearchResult
that indicates why the post-migrationGenericDocument
failed to be indexed.
|
String |
getDocumentId()
Returns the id of the
GenericDocument
that failed to be migrated.
|
String |
getNamespace()
Returns the namespace of the
GenericDocument
that failed to be migrated.
|
String |
getSchemaType()
Returns the schema type of the
GenericDocument
that failed to be migrated.
|
String |
toString()
|
void |
writeToParcel(Parceldest, int
flags)
|
Inherited Method Summary
Fields
public static finalCreator<SetSchemaResponse.MigrationFailure> CREATOR
Public Constructors
publicMigrationFailure(Stringnamespace,StringdocumentId,StringschemaType,AppSearchResult<?> failedResult)
Constructs a new
SetSchemaResponse.MigrationFailure
.
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 providedfailedResult was 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.