Message: Request

File: cqg_api/cqg_request.proto

Description

Request to the new CQG data delivery system.

Used in

ClientMsg

Fields

request_id

Type: uint64

Description: Unique ID of the request.

It should be unique among all sent requests. Avoid reusing the same ID in subsequent requests.

Maximum allowed value is 2^52 - 1.

request_kind

Type: Kind

Description: Request kind.

A list of supported kinds is documented in the comments of specific request types.

request_protocol_version

Type: uint32

Description: Request protocol version must be set to the request_protocol_version option of the corresponding request type.

This field is required for all requests, except those with KIND_DROP. Requests with KIND_DROP may omit or include this field; the value is ignored.

Example: SpecificRequest::descriptor()->options().GetExtension(request_protocol_version)

request_type_id

Type: uint32

Description: Request type ID must be set to the request_type_id option of the corresponding request type.

This field is required for all requests, including those with KIND_DROP.

Example: SpecificRequest::descriptor()->options().GetExtension(request_type_id)

serialized_request

Type: bytes

Description: Serialized request message of the above specified type.

This field is required for all requests, except those with KIND_DROP. Requests with KIND_DROP may omit or include this field; the value is ignored.

Enum Kind

Values

      KIND_UNSPECIFIED = 0

      KIND_GET = 1

      KIND_ACTION = 2

      KIND_SUBSCRIBE = 3

      KIND_DROP = 4