M
- the type of the messages returned by the requestR
- the type of the request to be postedA
- the type of the builder of the requestB
- the type of this client request (which wraps over type <A>
for
return type covariancepublic abstract class FilteringRequest<M extends com.google.protobuf.Message,R extends com.google.protobuf.Message,A extends TargetBuilder<R,A>,B extends FilteringRequest<M,R,A,B>> extends ClientRequest
This class warps around TargetBuilder
for providing fluent API for
client request composition and placement.
Modifier and Type | Method and Description |
---|---|
B |
byId(java.lang.Integer... ids)
Requests only passed IDs to be included into the result of the request.
|
B |
byId(java.lang.Iterable<?> ids)
Requests only passed IDs to be included into the result of the request.
|
B |
byId(java.lang.Long... ids)
Requests only passed IDs to be included into the result of the request.
|
B |
byId(com.google.protobuf.Message... ids)
Requests only passed IDs to be included into the result of the request.
|
B |
byId(java.lang.String... ids)
Requests only passed IDs to be included into the result of the request.
|
B |
where(io.spine.client.CompositeFilter... filter)
Deprecated.
Please use the overloads from the descendants that rely on strongly-typed
filters.
|
B |
where(io.spine.client.Filter... filter)
Deprecated.
Please use the overloads from the descendants that rely on strongly-typed
filters.
|
B |
withMask(java.lang.Iterable<java.lang.String> fieldNames)
Instructs to populate only fields with the passed names in the results of the request.
|
B |
withMask(java.lang.String... fieldNames)
Instructs to populate only fields with the passed names in the results of the request.
|
client, command, onServerError, onStreamingError, select, subscribeTo, subscribeToEvent, user
public B byId(java.lang.Iterable<?> ids)
The calling code must pass identifiers that are of the same type, which also matches the ID type of the requested messages.
If the passed iterable is empty, all records matching other criteria will be returned.
public B byId(com.google.protobuf.Message... ids)
public B byId(java.lang.Long... ids)
public B byId(java.lang.Integer... ids)
public B byId(java.lang.String... ids)
@Deprecated public B where(io.spine.client.Filter... filter)
@Deprecated public B where(io.spine.client.CompositeFilter... filter)
public B withMask(java.lang.Iterable<java.lang.String> fieldNames)
public B withMask(java.lang.String... fieldNames)