public abstract static class DocWriteResponse.Builder
extends java.lang.Object
DocWriteResponse
builders. These DocWriteResponse.Builder
are used during
xcontent parsing to temporarily store the parsed values, then the build()
method is called to
instantiate the appropriate DocWriteResponse
with the parsed values.Modifier and Type | Field and Description |
---|---|
protected boolean |
forcedRefresh |
protected java.lang.String |
id |
protected DocWriteResponse.Result |
result |
protected ShardId |
shardId |
protected ReplicationResponse.ShardInfo |
shardInfo |
protected java.lang.String |
type |
protected java.lang.Long |
version |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract DocWriteResponse |
build() |
java.lang.String |
getId() |
ShardId |
getShardId() |
java.lang.String |
getType() |
void |
setForcedRefresh(boolean forcedRefresh) |
void |
setId(java.lang.String id) |
void |
setResult(DocWriteResponse.Result result) |
void |
setShardId(ShardId shardId) |
void |
setShardInfo(ReplicationResponse.ShardInfo shardInfo) |
void |
setType(java.lang.String type) |
void |
setVersion(java.lang.Long version) |
protected ShardId shardId
protected java.lang.String type
protected java.lang.String id
protected java.lang.Long version
protected DocWriteResponse.Result result
protected boolean forcedRefresh
protected ReplicationResponse.ShardInfo shardInfo
public ShardId getShardId()
public void setShardId(ShardId shardId)
public java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.String getId()
public void setId(java.lang.String id)
public void setVersion(java.lang.Long version)
public void setResult(DocWriteResponse.Result result)
public void setForcedRefresh(boolean forcedRefresh)
public void setShardInfo(ReplicationResponse.ShardInfo shardInfo)
public abstract DocWriteResponse build()