Reference: protocol.batch.v1

Services

BatchService

Service to batch requests. Fields

Batch

protocol.batch.v1.BatchRequest -> protocol.batch.v1.BatchResponse

Batch requests. Does not support batching stream requests. Batched requests should be verified and an error should be thrown if they are invalid.


BatchRequest

Used in Batch endpoint.

Fields

requests

Type: repeated protocol.batch.v1.AnyRequest

The list of requests to be executed in the batch.


BatchResponse

Used in Batch endpoint.

Fields

responses

Type: repeated bytes

The list of responses to the requests.


BatchSame

protocol.batch.v1.BatchSameRequest -> protocol.batch.v1.BatchSameResponse

BatchSame allows batching for requests using the same endpoint. This allows for additional network optimizations since the endpoint doesn’t have to be sent for every request.


BatchSameRequest

Used in BatchSame endpoint.

Fields

endpoint

Type: optional string

The endpoint to call for all requests.

requests

Type: repeated bytes

The list of requests to be executed in the batch.


BatchSameResponse

Used in BatchSame endpoint.

Fields

responses

Type: repeated bytes

The list of responses to the requests.

Standalone Message Types