core/src/main/java/org/elasticsearch/action/support/replication/ReplicationRequest.java
public
    @Nullable
    ShardId shardId() {
        return shardId;
    }
/**
     * @return the shardId of the shard where this operation should be executed on.
     * can be null if the shardID has not yet been resolved
     */
@return the shardId of the shard where this operation should be executed on.
can be null if the shardID has not yet been resolved
@return the shardId of the shard where this operation should be executed on . can be null if the shardID has not yet been resolved
public
    @Nullable
    ShardId shardId() {
        return shardId;
    }
public @ Nullable ShardId shardId ( ) { return shardId ; }
@return the shardId of the shard where this operation should be executed on.
@return the shardId of the shard where this operation should be executed on .