Field | Type | Label | Description |
---|---|---|---|
type | int32 | ||
idx | int32 |
Field | Type | Label | Description |
---|---|---|---|
base | cwspb.Physical | ||
id | Id | ||
heat_transfer_coef | double |
Field | Type | Label | Description |
---|---|---|---|
x | int32 | ||
y | int32 |
Field | Type | Label | Description |
---|---|---|---|
width | int32 | ||
height | int32 |
Field | Type | Label | Description |
---|---|---|---|
value | double |
Field | Type | Label | Description |
---|---|---|---|
value | double |
Field | Type | Label | Description |
---|---|---|---|
value | double |
Field | Type | Label | Description |
---|---|---|---|
airs | cwspb.air.Plain | repeated |
Field | Type | Label | Description |
---|---|---|---|
illumination | cwspb.Illumination |
Field | Type | Label | Description |
---|---|---|---|
light_obstruction | cwspb.Obstruction | ||
air_obstruction | cwspb.Obstruction | ||
wireless_obstruction | cwspb.Obstruction |
Field | Type | Label | Description |
---|---|---|---|
subjects | cwspb.subject.Any | repeated |
Field | Type | Label | Description |
---|---|---|---|
transmitables | cwspb.network.WirelessContainer | repeated | |
receivables | cwspb.network.WirelessContainer | repeated |
Field | Type | Label | Description |
---|---|---|---|
coordinates | Coordinates | ||
air | layer.Air | ||
illumination | layer.Illumination | ||
wireless_network | layer.WirelessNetwork | ||
obstruction | layer.Obstruction | ||
subject | layer.Subject |
Field | Type | Label | Description |
---|---|---|---|
dimension | Dimension | ||
cells | Cell | repeated |
Field | Type | Label | Description |
---|---|---|---|
content | bytes |
Field | Type | Label | Description |
---|---|---|---|
packet | Packet | ||
signal_power | double |
Field | Type | Label | Description |
---|---|---|---|
weight | double | ||
heat_capacity | double | ||
temperature | Temperature | ||
light_obstruction | Obstruction | ||
wireless_obstruction | Obstruction |
Field | Type | Label | Description |
---|---|---|---|
coordinates | Coordinates | ||
id | air.Id |
Field | Type | Label | Description |
---|---|---|---|
coordinates | Coordinates | ||
id | subject.Id |
Field | Type | Label | Description |
---|---|---|---|
status | Status |
Field | Type | Label | Description |
---|---|---|---|
text | string | optional | |
type | ErrorType | optional |
Name | Number | Description |
---|---|---|
ERROR_TYPE_UNSPECIFIED | 0 | |
ERROR_TYPE_BAD_REQUEST | 1 |
Field | Type | Label | Description |
---|---|---|---|
base | Request | ||
id | SubjectId |
Field | Type | Label | Description |
---|---|---|---|
base | RequestDevice | ||
id | SubjectId | ||
packets | network.Packet | repeated |
Field | Type | Label | Description |
---|---|---|---|
base | Request | ||
id | SubjectId | ||
turnable_status | int32 |
Field | Type | Label | Description |
---|---|---|---|
base | Response | ||
visible_subjects | SubjectId | repeated |
Field | Type | Label | Description |
---|---|---|---|
base | Response | ||
packets | network.Packet | repeated |
Field | Type | Label | Description |
---|---|---|---|
base | Response | ||
temp | Temperature |
Field | Type | Label | Description |
---|---|---|---|
base | Response | ||
illumination | Illumination |
Method Name | Request Type | Response Type | Description |
---|---|---|---|
GetAirTemperature | RequestDevice | ResponseSensorAirTemperature | |
GetIllumination | RequestDevice | ResponseSensorIllumination | |
GetCameraInfo | RequestDevice | ResponseCameraInfo | |
TransmitPacket | RequestTransmitPackets | Response | |
ReceivePackets | RequestDevice | ResponseReceivedPackets | |
TurnDevice | RequestTurnDevice | Response |
Field | Type | Label | Description |
---|---|---|---|
base | Request | ||
coordinates | Coordinates |
Field | Type | Label | Description |
---|---|---|---|
base | Request | ||
dimension | Dimension |
Field | Type | Label | Description |
---|---|---|---|
base | Request | ||
coordinates | Coordinates | ||
air | air.Plain |
Field | Type | Label | Description |
---|---|---|---|
base | Request | ||
modify_type | SubjectModifyType | ||
id | SubjectId | before | |
subject | subject.Any | after |
Field | Type | Label | Description |
---|---|---|---|
base | Request | ||
id | AirId |
Field | Type | Label | Description |
---|---|---|---|
base | Request | ||
id | SubjectId |
Field | Type | Label | Description |
---|---|---|---|
base | Response | ||
cell | Cell |
Field | Type | Label | Description |
---|---|---|---|
base | Response | ||
dimension | Dimension |
Field | Type | Label | Description |
---|---|---|---|
base | Response | ||
map | Map |
Field | Type | Label | Description |
---|---|---|---|
base | Response | ||
air | air.Plain |
Field | Type | Label | Description |
---|---|---|---|
base | Response | ||
subject | subject.Any |
Name | Number | Description |
---|---|---|
SUBJECT_MODIFY_TYPE_UNSPECIFIED | 0 | |
SUBJECT_MODIFY_TYPE_INSERT | 1 | |
SUBJECT_MODIFY_TYPE_UPDATE | 2 | |
SUBJECT_MODIFY_TYPE_DELETE | 3 |
Method Name | Request Type | Response Type | Description |
---|---|---|---|
GetMapDimension | Request | ResponseDimension | |
CreateMap | RequestDimension | Response | aka SetMapDimension |
GetCell | RequestCell | ResponseCell | |
GetMap | Request | ResponseMap | |
GetMapCells | Request | ResponseCell stream | |
GetSubject | RequestSelectSubject | ResponseSelectSubject | |
SetSubject | RequestModifySubject | Response | |
GetAir | RequestSelectAir | ResponseSelectAir | |
InsertAir | RequestInsertAir | Response |
Field | Type | Label | Description |
---|---|---|---|
state | SimulationState |
Field | Type | Label | Description |
---|---|---|---|
base | Response | ||
state | SimulationState |
Field | Type | Label | Description |
---|---|---|---|
status | int32 | optional | |
type | int32 | optional | |
task_frequency | double | optional | |
current_tick | int32 | optional | |
last_tick | int32 | optional |
Method Name | Request Type | Response Type | Description |
---|---|---|---|
GetSimulationState | Request | ResponseSimulationState | |
SetSimulationState | RequestSimulationState | Response |
Field | Type | Label | Description |
---|---|---|---|
plain | Plain | ||
temp_emitter | TempEmitter | ||
turnable_temp_emitter | TurnableTempEmitter | ||
light_emitter | LightEmitter | ||
turnable_light_emitter | TurnableLightEmitter | ||
wireless_network_device | WirelessNetworkDevice | ||
infrared_camera | InfraredCamera | ||
light_camera | LightCamera | ||
turnable | Turnable | ||
sensor_air_temperature | SensorAirTemperature | ||
sensor_illumination | SensorIllumination |
Field | Type | Label | Description |
---|---|---|---|
base | Plain | ||
power | double | ||
power_threshold | double |
Field | Type | Label | Description |
---|---|---|---|
type | int32 | ||
idx | int32 |
Field | Type | Label | Description |
---|---|---|---|
base | BaseCamera |
Field | Type | Label | Description |
---|---|---|---|
base | BaseCamera | ||
light_threshold | double |
Field | Type | Label | Description |
---|---|---|---|
base | Plain | ||
temp_params | TempSourceParams | ||
light_params | LightSourceParams |
Field | Type | Label | Description |
---|---|---|---|
raw_illumination | cwspb.Illumination |
Field | Type | Label | Description |
---|---|---|---|
base | cwspb.Physical | ||
id | Id | ||
surface_area | double | ||
air_obstruction | cwspb.Obstruction |
Field | Type | Label | Description |
---|---|---|---|
base | Plain | ||
air_temperature | cwspb.Temperature |
Field | Type | Label | Description |
---|---|---|---|
base | Plain | ||
cell_illumination | cwspb.Illumination |
Field | Type | Label | Description |
---|---|---|---|
base | Plain | ||
temp_params | TempSourceParams |
Field | Type | Label | Description |
---|---|---|---|
heat_production | double |
Field | Type | Label | Description |
---|---|---|---|
base | Plain | ||
turnable_status | int32 | ||
off_light_obs | cwspb.Obstruction | ||
off_wireless_obs | cwspb.Obstruction | ||
off_air_obs | cwspb.Obstruction |
Field | Type | Label | Description |
---|---|---|---|
base | LightEmitter | ||
turnable_status | int32 | ||
off_light_params | LightSourceParams | ||
off_temp_params | TempSourceParams |
Field | Type | Label | Description |
---|---|---|---|
base | TempEmitter | ||
turnable_status | int32 | ||
off_temp_params | TempSourceParams |
Field | Type | Label | Description |
---|---|---|---|
base | Plain | ||
transmit_packets | cwspb.network.Packet | repeated | |
received_packets | cwspb.network.Packet | repeated | |
transmit_power | double | ||
receive_threshold | double |
.proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby |
---|---|---|---|---|---|---|---|---|
double | double | double | float | float64 | double | float | Float | |
float | float | float | float | float32 | float | float | Float | |
int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum |
uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) |
uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) |
sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum |
fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) |
fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum |
sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum |
bool | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass | |
string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) |
bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) |