Change command exec_id to uint32.

This commit is contained in:
Orne Brocaar 2022-07-22 20:29:07 +01:00
parent f7f2fa82f2
commit d10551bce1
7 changed files with 166 additions and 371 deletions

209
api/go/gw/gw.pb.go vendored
View File

@ -2923,10 +2923,10 @@ type GatewayCommandExecRequest struct {
// Command to execute. // Command to execute.
// This command must be pre-configured in the LoRa Gateway Bridge configuration. // This command must be pre-configured in the LoRa Gateway Bridge configuration.
Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
// Execution request ID (UUID). // Execution request ID.
// The same token will be returned when the execution of the command has // The same will be returned when the execution of the command has
// completed. // completed.
ExecId []byte `protobuf:"bytes,3,opt,name=ExecId,proto3" json:"ExecId,omitempty"` ExecId uint32 `protobuf:"varint,7,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
// Standard input. // Standard input.
Stdin []byte `protobuf:"bytes,4,opt,name=stdin,proto3" json:"stdin,omitempty"` Stdin []byte `protobuf:"bytes,4,opt,name=stdin,proto3" json:"stdin,omitempty"`
// Environment variables. // Environment variables.
@ -2986,11 +2986,11 @@ func (x *GatewayCommandExecRequest) GetCommand() string {
return "" return ""
} }
func (x *GatewayCommandExecRequest) GetExecId() []byte { func (x *GatewayCommandExecRequest) GetExecId() uint32 {
if x != nil { if x != nil {
return x.ExecId return x.ExecId
} }
return nil return 0
} }
func (x *GatewayCommandExecRequest) GetStdin() []byte { func (x *GatewayCommandExecRequest) GetStdin() []byte {
@ -3017,8 +3017,8 @@ type GatewayCommandExecResponse struct {
GatewayIdLegacy []byte `protobuf:"bytes,1,opt,name=gateway_id_legacy,json=gatewayIdLegacy,proto3" json:"gateway_id_legacy,omitempty"` GatewayIdLegacy []byte `protobuf:"bytes,1,opt,name=gateway_id_legacy,json=gatewayIdLegacy,proto3" json:"gateway_id_legacy,omitempty"`
// Gateway ID. // Gateway ID.
GatewayId string `protobuf:"bytes,6,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"` GatewayId string `protobuf:"bytes,6,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
// Execution request ID (UUID). // Execution request ID.
ExecId []byte `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` ExecId uint32 `protobuf:"varint,7,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
// Standard output. // Standard output.
Stdout []byte `protobuf:"bytes,3,opt,name=stdout,proto3" json:"stdout,omitempty"` Stdout []byte `protobuf:"bytes,3,opt,name=stdout,proto3" json:"stdout,omitempty"`
// Standard error. // Standard error.
@ -3073,11 +3073,11 @@ func (x *GatewayCommandExecResponse) GetGatewayId() string {
return "" return ""
} }
func (x *GatewayCommandExecResponse) GetExecId() []byte { func (x *GatewayCommandExecResponse) GetExecId() uint32 {
if x != nil { if x != nil {
return x.ExecId return x.ExecId
} }
return nil return 0
} }
func (x *GatewayCommandExecResponse) GetStdout() []byte { func (x *GatewayCommandExecResponse) GetStdout() []byte {
@ -3114,8 +3114,6 @@ type RawPacketForwarderEvent struct {
GatewayIdLegacy []byte `protobuf:"bytes,1,opt,name=gateway_id_legacy,json=gatewayIdLegacy,proto3" json:"gateway_id_legacy,omitempty"` GatewayIdLegacy []byte `protobuf:"bytes,1,opt,name=gateway_id_legacy,json=gatewayIdLegacy,proto3" json:"gateway_id_legacy,omitempty"`
// Gateway ID. // Gateway ID.
GatewayId string `protobuf:"bytes,4,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"` GatewayId string `protobuf:"bytes,4,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
// Raw ID (UUID).
RawId []byte `protobuf:"bytes,2,opt,name=raw_id,json=rawId,proto3" json:"raw_id,omitempty"`
// Payload contains the raw payload. // Payload contains the raw payload.
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
} }
@ -3166,13 +3164,6 @@ func (x *RawPacketForwarderEvent) GetGatewayId() string {
return "" return ""
} }
func (x *RawPacketForwarderEvent) GetRawId() []byte {
if x != nil {
return x.RawId
}
return nil
}
func (x *RawPacketForwarderEvent) GetPayload() []byte { func (x *RawPacketForwarderEvent) GetPayload() []byte {
if x != nil { if x != nil {
return x.Payload return x.Payload
@ -3193,8 +3184,6 @@ type RawPacketForwarderCommand struct {
GatewayIdLegacy []byte `protobuf:"bytes,1,opt,name=gateway_id_legacy,json=gatewayIdLegacy,proto3" json:"gateway_id_legacy,omitempty"` GatewayIdLegacy []byte `protobuf:"bytes,1,opt,name=gateway_id_legacy,json=gatewayIdLegacy,proto3" json:"gateway_id_legacy,omitempty"`
// Gateway ID. // Gateway ID.
GatewayId string `protobuf:"bytes,4,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"` GatewayId string `protobuf:"bytes,4,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
// Raw ID (UUID).
RawId []byte `protobuf:"bytes,2,opt,name=raw_id,json=rawId,proto3" json:"raw_id,omitempty"`
// Payload contains the raw payload. // Payload contains the raw payload.
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
} }
@ -3245,13 +3234,6 @@ func (x *RawPacketForwarderCommand) GetGatewayId() string {
return "" return ""
} }
func (x *RawPacketForwarderCommand) GetRawId() []byte {
if x != nil {
return x.RawId
}
return nil
}
func (x *RawPacketForwarderCommand) GetPayload() []byte { func (x *RawPacketForwarderCommand) GetPayload() []byte {
if x != nil { if x != nil {
return x.Payload return x.Payload
@ -3789,7 +3771,7 @@ var file_gw_gw_proto_rawDesc = []byte{
0x1c, 0x0a, 0x09, 0x62, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x1c, 0x0a, 0x09, 0x62, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01,
0x28, 0x0d, 0x52, 0x09, 0x62, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x18, 0x0a, 0x28, 0x0d, 0x52, 0x09, 0x62, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x12, 0x18, 0x0a,
0x07, 0x62, 0x69, 0x74, 0x72, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x07, 0x62, 0x69, 0x74, 0x72, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07,
0x62, 0x69, 0x74, 0x72, 0x61, 0x74, 0x65, 0x22, 0xc0, 0x02, 0x0a, 0x19, 0x47, 0x61, 0x74, 0x65, 0x62, 0x69, 0x74, 0x72, 0x61, 0x74, 0x65, 0x22, 0xc1, 0x02, 0x0a, 0x19, 0x47, 0x61, 0x74, 0x65,
0x77, 0x61, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x77, 0x61, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
0x5f, 0x69, 0x64, 0x5f, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x5f, 0x69, 0x64, 0x5f, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
@ -3797,98 +3779,95 @@ var file_gw_gw_proto_rawDesc = []byte{
0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x18,
0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64,
0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x45, 0x78, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x78,
0x65, 0x63, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x45, 0x78, 0x65, 0x63, 0x65, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x65, 0x78, 0x65,
0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x63, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01,
0x0c, 0x52, 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x12, 0x50, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x28, 0x0c, 0x52, 0x05, 0x73, 0x74, 0x64, 0x69, 0x6e, 0x12, 0x50, 0x0a, 0x0b, 0x65, 0x6e, 0x76,
0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e,
0x67, 0x77, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x2e, 0x67, 0x77, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
0x64, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x45, 0x6e, 0x76, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x45, 0x6e,
0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x65, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b,
0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x1a, 0x3e, 0x0a, 0x10, 0x45, 0x6e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x1a, 0x3e, 0x0a, 0x10, 0x45,
0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc6, 0x01, 0x0a, 0x1a, 0x47, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc6, 0x01, 0x0a, 0x1a,
0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78, 0x65, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x45, 0x78,
0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x67, 0x61, 0x74, 0x65, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x67, 0x61,
0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x5f, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x18, 0x01, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x5f, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x18,
0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x4c, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64,
0x65, 0x67, 0x61, 0x63, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61,
0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x65, 0x77, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x65,
0x61, 0x79, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x78, 0x65, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x77, 0x61, 0x79, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x78, 0x65, 0x63, 0x5f, 0x69, 0x64,
0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x65, 0x78, 0x65, 0x63, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x65, 0x78, 0x65, 0x63, 0x49, 0x64, 0x12, 0x16,
0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06,
0x74, 0x64, 0x6f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, 0x18, 0x73, 0x74, 0x64, 0x6f, 0x75, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72,
0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, 0x12, 0x14, 0x0a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x74, 0x64, 0x65, 0x72, 0x72, 0x12, 0x14,
0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65,
0x72, 0x6f, 0x72, 0x22, 0x95, 0x01, 0x0a, 0x17, 0x52, 0x61, 0x77, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x7e, 0x0a, 0x17, 0x52, 0x61, 0x77, 0x50, 0x61, 0x63, 0x6b, 0x65,
0x74, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x74, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12,
0x2a, 0x0a, 0x11, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x5f, 0x6c, 0x65, 0x2a, 0x0a, 0x11, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x5f, 0x6c, 0x65,
0x67, 0x61, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x67, 0x61, 0x74, 0x65, 0x67, 0x61, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x67, 0x61, 0x74, 0x65,
0x77, 0x61, 0x79, 0x49, 0x64, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x77, 0x61, 0x79, 0x49, 0x64, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x67,
0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
0x09, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x61, 0x09, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61,
0x77, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x72, 0x61, 0x77, 0x49, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79,
0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x80, 0x01, 0x0a, 0x19, 0x52, 0x61, 0x77, 0x50, 0x61, 0x63, 0x6b,
0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x97, 0x01, 0x0a, 0x19, 0x65, 0x74, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
0x52, 0x61, 0x77, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x6e, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x64,
0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x67, 0x61, 0x74, 0x5f, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x67,
0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x5f, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x18, 0x01, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x12, 0x1d,
0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x4c, 0x0a, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01,
0x65, 0x67, 0x61, 0x63, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x12, 0x18, 0x0a,
0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x65, 0x77, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07,
0x61, 0x79, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x61, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xa3, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x6e,
0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x72, 0x61, 0x77, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x5f, 0x69, 0x64, 0x5f, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xa3, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x6e, 0x53, 0x74, 0x52, 0x0f, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x4c, 0x65, 0x67, 0x61, 0x63,
0x61, 0x74, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x18,
0x64, 0x5f, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64,
0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x12, 0x12, 0x29, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32,
0x1d, 0x0a, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x13, 0x2e, 0x67, 0x77, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53,
0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x12, 0x29, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x20, 0x0a, 0x05, 0x53,
0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x46, 0x46, 0x4c, 0x49, 0x4e, 0x45, 0x10,
0x67, 0x77, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x2a, 0x88, 0x01,
0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x20, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x0a, 0x08, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x52,
0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x46, 0x46, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06,
0x0a, 0x0a, 0x06, 0x4f, 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x2a, 0x88, 0x01, 0x0a, 0x08, 0x43, 0x52, 0x5f, 0x34, 0x5f, 0x35, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x5f, 0x34,
0x43, 0x6f, 0x64, 0x65, 0x52, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x52, 0x5f, 0x55, 0x5f, 0x36, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x5f, 0x34, 0x5f, 0x37, 0x10, 0x03,
0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x5f, 0x34, 0x5f, 0x38, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06,
0x5f, 0x34, 0x5f, 0x35, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x5f, 0x34, 0x5f, 0x36, 0x43, 0x52, 0x5f, 0x33, 0x5f, 0x38, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x5f, 0x32,
0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x5f, 0x34, 0x5f, 0x37, 0x10, 0x03, 0x12, 0x0a, 0x5f, 0x36, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x5f, 0x31, 0x5f, 0x34, 0x10, 0x07,
0x0a, 0x06, 0x43, 0x52, 0x5f, 0x34, 0x5f, 0x38, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x5f, 0x31, 0x5f, 0x36, 0x10, 0x08, 0x12, 0x0a, 0x0a, 0x06,
0x5f, 0x33, 0x5f, 0x38, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x5f, 0x32, 0x5f, 0x36, 0x43, 0x52, 0x5f, 0x35, 0x5f, 0x36, 0x10, 0x09, 0x2a, 0x3b, 0x0a, 0x0e, 0x44, 0x6f, 0x77, 0x6e,
0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x5f, 0x31, 0x5f, 0x34, 0x10, 0x07, 0x12, 0x0a, 0x6c, 0x69, 0x6e, 0x6b, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x4d,
0x0a, 0x06, 0x43, 0x52, 0x5f, 0x31, 0x5f, 0x36, 0x10, 0x08, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x54, 0x45, 0x4c, 0x59, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x44,
0x5f, 0x35, 0x5f, 0x36, 0x10, 0x09, 0x2a, 0x3b, 0x0a, 0x0e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x45, 0x4c, 0x41, 0x59, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x47, 0x50, 0x53, 0x5f, 0x45, 0x50,
0x6e, 0x6b, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x4d, 0x4d, 0x45, 0x4f, 0x43, 0x48, 0x10, 0x02, 0x2a, 0x37, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x69, 0x6d,
0x44, 0x49, 0x41, 0x54, 0x45, 0x4c, 0x59, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x45, 0x4c, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f,
0x41, 0x59, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x47, 0x50, 0x53, 0x5f, 0x45, 0x50, 0x4f, 0x43, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50, 0x54, 0x45,
0x48, 0x10, 0x02, 0x2a, 0x37, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x44, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, 0x02, 0x2a, 0x30,
0x74, 0x61, 0x6d, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x0a, 0x09, 0x43, 0x52, 0x43, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x4e,
0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50, 0x54, 0x45, 0x44, 0x10, 0x4f, 0x5f, 0x43, 0x52, 0x43, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x44, 0x5f, 0x43,
0x01, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, 0x02, 0x2a, 0x30, 0x0a, 0x09, 0x52, 0x43, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x43, 0x5f, 0x4f, 0x4b, 0x10, 0x02,
0x43, 0x52, 0x43, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x5f, 0x2a, 0xbc, 0x01, 0x0a, 0x0b, 0x54, 0x78, 0x41, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
0x43, 0x52, 0x43, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x44, 0x5f, 0x43, 0x52, 0x43, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a,
0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x43, 0x5f, 0x4f, 0x4b, 0x10, 0x02, 0x2a, 0xbc, 0x02, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x4f, 0x4f, 0x5f, 0x4c, 0x41, 0x54,
0x01, 0x0a, 0x0b, 0x54, 0x78, 0x41, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x45, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x4f, 0x4f, 0x5f, 0x45, 0x41, 0x52, 0x4c, 0x59,
0x0a, 0x07, 0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4f, 0x4c, 0x4c, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f,
0x4b, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x4f, 0x4f, 0x5f, 0x4c, 0x41, 0x54, 0x45, 0x10, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4f, 0x4c, 0x4c,
0x02, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x4f, 0x4f, 0x5f, 0x45, 0x41, 0x52, 0x4c, 0x59, 0x10, 0x03, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x42, 0x45, 0x41, 0x43, 0x4f, 0x4e, 0x10, 0x05, 0x12, 0x0b,
0x12, 0x14, 0x0a, 0x10, 0x43, 0x4f, 0x4c, 0x4c, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x0a, 0x07, 0x54, 0x58, 0x5f, 0x46, 0x52, 0x45, 0x51, 0x10, 0x06, 0x12, 0x0c, 0x0a, 0x08, 0x54,
0x43, 0x4b, 0x45, 0x54, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4f, 0x4c, 0x4c, 0x49, 0x53, 0x58, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x07, 0x12, 0x10, 0x0a, 0x0c, 0x47, 0x50, 0x53,
0x49, 0x4f, 0x4e, 0x5f, 0x42, 0x45, 0x41, 0x43, 0x4f, 0x4e, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x5f, 0x55, 0x4e, 0x4c, 0x4f, 0x43, 0x4b, 0x45, 0x44, 0x10, 0x08, 0x12, 0x0e, 0x0a, 0x0a, 0x51,
0x54, 0x58, 0x5f, 0x46, 0x52, 0x45, 0x51, 0x10, 0x06, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x58, 0x5f, 0x55, 0x45, 0x55, 0x45, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x09, 0x12, 0x12, 0x0a, 0x0e, 0x49,
0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x07, 0x12, 0x10, 0x0a, 0x0c, 0x47, 0x50, 0x53, 0x5f, 0x55, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x0a, 0x42,
0x4e, 0x4c, 0x4f, 0x43, 0x4b, 0x45, 0x44, 0x10, 0x08, 0x12, 0x0e, 0x0a, 0x0a, 0x51, 0x55, 0x45, 0x55, 0x0a, 0x14, 0x69, 0x6f, 0x2e, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b,
0x55, 0x45, 0x5f, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x09, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x4e, 0x54, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x77, 0x42, 0x0c, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79,
0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x0a, 0x42, 0x55, 0x0a, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x14, 0x69, 0x6f, 0x2e, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x61, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x63,
0x70, 0x69, 0x2e, 0x67, 0x77, 0x42, 0x0c, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x50, 0x72, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f,
0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x2f, 0x76, 0x34, 0x2f, 0x67, 0x77, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x6d, 0x2f, 0x63, 0x68, 0x69, 0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x63, 0x68, 0x69,
0x72, 0x70, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x76,
0x34, 0x2f, 0x67, 0x77, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (

28
api/js/gw/gw_pb.d.ts vendored
View File

@ -1191,10 +1191,8 @@ export class GatewayCommandExecRequest extends jspb.Message {
getCommand(): string; getCommand(): string;
setCommand(value: string): void; setCommand(value: string): void;
getExecid(): Uint8Array | string; getExecId(): number;
getExecid_asU8(): Uint8Array; setExecId(value: number): void;
getExecid_asB64(): string;
setExecid(value: Uint8Array | string): void;
getStdin(): Uint8Array | string; getStdin(): Uint8Array | string;
getStdin_asU8(): Uint8Array; getStdin_asU8(): Uint8Array;
@ -1218,7 +1216,7 @@ export namespace GatewayCommandExecRequest {
gatewayIdLegacy: Uint8Array | string, gatewayIdLegacy: Uint8Array | string,
gatewayId: string, gatewayId: string,
command: string, command: string,
execid: Uint8Array | string, execId: number,
stdin: Uint8Array | string, stdin: Uint8Array | string,
environmentMap: Array<[string, string]>, environmentMap: Array<[string, string]>,
} }
@ -1233,10 +1231,8 @@ export class GatewayCommandExecResponse extends jspb.Message {
getGatewayId(): string; getGatewayId(): string;
setGatewayId(value: string): void; setGatewayId(value: string): void;
getExecId(): Uint8Array | string; getExecId(): number;
getExecId_asU8(): Uint8Array; setExecId(value: number): void;
getExecId_asB64(): string;
setExecId(value: Uint8Array | string): void;
getStdout(): Uint8Array | string; getStdout(): Uint8Array | string;
getStdout_asU8(): Uint8Array; getStdout_asU8(): Uint8Array;
@ -1265,7 +1261,7 @@ export namespace GatewayCommandExecResponse {
export type AsObject = { export type AsObject = {
gatewayIdLegacy: Uint8Array | string, gatewayIdLegacy: Uint8Array | string,
gatewayId: string, gatewayId: string,
execId: Uint8Array | string, execId: number,
stdout: Uint8Array | string, stdout: Uint8Array | string,
stderr: Uint8Array | string, stderr: Uint8Array | string,
error: string, error: string,
@ -1281,11 +1277,6 @@ export class RawPacketForwarderEvent extends jspb.Message {
getGatewayId(): string; getGatewayId(): string;
setGatewayId(value: string): void; setGatewayId(value: string): void;
getRawId(): Uint8Array | string;
getRawId_asU8(): Uint8Array;
getRawId_asB64(): string;
setRawId(value: Uint8Array | string): void;
getPayload(): Uint8Array | string; getPayload(): Uint8Array | string;
getPayload_asU8(): Uint8Array; getPayload_asU8(): Uint8Array;
getPayload_asB64(): string; getPayload_asB64(): string;
@ -1305,7 +1296,6 @@ export namespace RawPacketForwarderEvent {
export type AsObject = { export type AsObject = {
gatewayIdLegacy: Uint8Array | string, gatewayIdLegacy: Uint8Array | string,
gatewayId: string, gatewayId: string,
rawId: Uint8Array | string,
payload: Uint8Array | string, payload: Uint8Array | string,
} }
} }
@ -1319,11 +1309,6 @@ export class RawPacketForwarderCommand extends jspb.Message {
getGatewayId(): string; getGatewayId(): string;
setGatewayId(value: string): void; setGatewayId(value: string): void;
getRawId(): Uint8Array | string;
getRawId_asU8(): Uint8Array;
getRawId_asB64(): string;
setRawId(value: Uint8Array | string): void;
getPayload(): Uint8Array | string; getPayload(): Uint8Array | string;
getPayload_asU8(): Uint8Array; getPayload_asU8(): Uint8Array;
getPayload_asB64(): string; getPayload_asB64(): string;
@ -1343,7 +1328,6 @@ export namespace RawPacketForwarderCommand {
export type AsObject = { export type AsObject = {
gatewayIdLegacy: Uint8Array | string, gatewayIdLegacy: Uint8Array | string,
gatewayId: string, gatewayId: string,
rawId: Uint8Array | string,
payload: Uint8Array | string, payload: Uint8Array | string,
} }
} }

204
api/js/gw/gw_pb.js vendored
View File

@ -8890,7 +8890,7 @@ proto.gw.GatewayCommandExecRequest.toObject = function(includeInstance, msg) {
gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(), gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(),
gatewayId: msg.getGatewayId(), gatewayId: msg.getGatewayId(),
command: msg.getCommand(), command: msg.getCommand(),
execid: msg.getExecid_asB64(), execId: msg.getExecId(),
stdin: msg.getStdin_asB64(), stdin: msg.getStdin_asB64(),
environmentMap: (f = msg.getEnvironmentMap(true)) ? f.toArray() : [] environmentMap: (f = msg.getEnvironmentMap(true)) ? f.toArray() : []
}; };
@ -8941,9 +8941,9 @@ proto.gw.GatewayCommandExecRequest.deserializeBinaryFromReader = function(msg, r
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.setCommand(value); msg.setCommand(value);
break; break;
case 3: case 7:
var value = /** @type {!Uint8Array} */ (reader.readBytes()); var value = /** @type {number} */ (reader.readUint32());
msg.setExecid(value); msg.setExecId(value);
break; break;
case 4: case 4:
var value = /** @type {!Uint8Array} */ (reader.readBytes()); var value = /** @type {!Uint8Array} */ (reader.readBytes());
@ -9014,10 +9014,10 @@ proto.gw.GatewayCommandExecRequest.prototype.serializeBinaryToWriter = function
f f
); );
} }
f = this.getExecid_asU8(); f = this.getExecId();
if (f.length > 0) { if (f !== 0) {
writer.writeBytes( writer.writeUint32(
3, 7,
f f
); );
} }
@ -9114,41 +9114,17 @@ proto.gw.GatewayCommandExecRequest.prototype.setCommand = function(value) {
/** /**
* optional bytes ExecId = 3; * optional uint32 exec_id = 7;
* @return {!(string|Uint8Array)} * @return {number}
*/ */
proto.gw.GatewayCommandExecRequest.prototype.getExecid = function() { proto.gw.GatewayCommandExecRequest.prototype.getExecId = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldProto3(this, 3, "")); return /** @type {number} */ (jspb.Message.getFieldProto3(this, 7, 0));
}; };
/** /** @param {number} value */
* optional bytes ExecId = 3; proto.gw.GatewayCommandExecRequest.prototype.setExecId = function(value) {
* This is a type-conversion wrapper around `getExecid()` jspb.Message.setField(this, 7, value);
* @return {string}
*/
proto.gw.GatewayCommandExecRequest.prototype.getExecid_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getExecid()));
};
/**
* optional bytes ExecId = 3;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getExecid()`
* @return {!Uint8Array}
*/
proto.gw.GatewayCommandExecRequest.prototype.getExecid_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getExecid()));
};
/** @param {!(string|Uint8Array)} value */
proto.gw.GatewayCommandExecRequest.prototype.setExecid = function(value) {
jspb.Message.setField(this, 3, value);
}; };
@ -9252,7 +9228,7 @@ proto.gw.GatewayCommandExecResponse.toObject = function(includeInstance, msg) {
var f, obj = { var f, obj = {
gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(), gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(),
gatewayId: msg.getGatewayId(), gatewayId: msg.getGatewayId(),
execId: msg.getExecId_asB64(), execId: msg.getExecId(),
stdout: msg.getStdout_asB64(), stdout: msg.getStdout_asB64(),
stderr: msg.getStderr_asB64(), stderr: msg.getStderr_asB64(),
error: msg.getError() error: msg.getError()
@ -9300,8 +9276,8 @@ proto.gw.GatewayCommandExecResponse.deserializeBinaryFromReader = function(msg,
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.setGatewayId(value); msg.setGatewayId(value);
break; break;
case 2: case 7:
var value = /** @type {!Uint8Array} */ (reader.readBytes()); var value = /** @type {number} */ (reader.readUint32());
msg.setExecId(value); msg.setExecId(value);
break; break;
case 3: case 3:
@ -9368,10 +9344,10 @@ proto.gw.GatewayCommandExecResponse.prototype.serializeBinaryToWriter = function
f f
); );
} }
f = this.getExecId_asU8(); f = this.getExecId();
if (f.length > 0) { if (f !== 0) {
writer.writeBytes( writer.writeUint32(
2, 7,
f f
); );
} }
@ -9463,41 +9439,17 @@ proto.gw.GatewayCommandExecResponse.prototype.setGatewayId = function(value) {
/** /**
* optional bytes exec_id = 2; * optional uint32 exec_id = 7;
* @return {!(string|Uint8Array)} * @return {number}
*/ */
proto.gw.GatewayCommandExecResponse.prototype.getExecId = function() { proto.gw.GatewayCommandExecResponse.prototype.getExecId = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldProto3(this, 2, "")); return /** @type {number} */ (jspb.Message.getFieldProto3(this, 7, 0));
}; };
/** /** @param {number} value */
* optional bytes exec_id = 2;
* This is a type-conversion wrapper around `getExecId()`
* @return {string}
*/
proto.gw.GatewayCommandExecResponse.prototype.getExecId_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getExecId()));
};
/**
* optional bytes exec_id = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getExecId()`
* @return {!Uint8Array}
*/
proto.gw.GatewayCommandExecResponse.prototype.getExecId_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getExecId()));
};
/** @param {!(string|Uint8Array)} value */
proto.gw.GatewayCommandExecResponse.prototype.setExecId = function(value) { proto.gw.GatewayCommandExecResponse.prototype.setExecId = function(value) {
jspb.Message.setField(this, 2, value); jspb.Message.setField(this, 7, value);
}; };
@ -9642,7 +9594,6 @@ proto.gw.RawPacketForwarderEvent.toObject = function(includeInstance, msg) {
var f, obj = { var f, obj = {
gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(), gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(),
gatewayId: msg.getGatewayId(), gatewayId: msg.getGatewayId(),
rawId: msg.getRawId_asB64(),
payload: msg.getPayload_asB64() payload: msg.getPayload_asB64()
}; };
@ -9688,10 +9639,6 @@ proto.gw.RawPacketForwarderEvent.deserializeBinaryFromReader = function(msg, rea
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.setGatewayId(value); msg.setGatewayId(value);
break; break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setRawId(value);
break;
case 3: case 3:
var value = /** @type {!Uint8Array} */ (reader.readBytes()); var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setPayload(value); msg.setPayload(value);
@ -9748,13 +9695,6 @@ proto.gw.RawPacketForwarderEvent.prototype.serializeBinaryToWriter = function (w
f f
); );
} }
f = this.getRawId_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = this.getPayload_asU8(); f = this.getPayload_asU8();
if (f.length > 0) { if (f.length > 0) {
writer.writeBytes( writer.writeBytes(
@ -9828,45 +9768,6 @@ proto.gw.RawPacketForwarderEvent.prototype.setGatewayId = function(value) {
}; };
/**
* optional bytes raw_id = 2;
* @return {!(string|Uint8Array)}
*/
proto.gw.RawPacketForwarderEvent.prototype.getRawId = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldProto3(this, 2, ""));
};
/**
* optional bytes raw_id = 2;
* This is a type-conversion wrapper around `getRawId()`
* @return {string}
*/
proto.gw.RawPacketForwarderEvent.prototype.getRawId_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getRawId()));
};
/**
* optional bytes raw_id = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getRawId()`
* @return {!Uint8Array}
*/
proto.gw.RawPacketForwarderEvent.prototype.getRawId_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getRawId()));
};
/** @param {!(string|Uint8Array)} value */
proto.gw.RawPacketForwarderEvent.prototype.setRawId = function(value) {
jspb.Message.setField(this, 2, value);
};
/** /**
* optional bytes payload = 3; * optional bytes payload = 3;
* @return {!(string|Uint8Array)} * @return {!(string|Uint8Array)}
@ -9954,7 +9855,6 @@ proto.gw.RawPacketForwarderCommand.toObject = function(includeInstance, msg) {
var f, obj = { var f, obj = {
gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(), gatewayIdLegacy: msg.getGatewayIdLegacy_asB64(),
gatewayId: msg.getGatewayId(), gatewayId: msg.getGatewayId(),
rawId: msg.getRawId_asB64(),
payload: msg.getPayload_asB64() payload: msg.getPayload_asB64()
}; };
@ -10000,10 +9900,6 @@ proto.gw.RawPacketForwarderCommand.deserializeBinaryFromReader = function(msg, r
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.setGatewayId(value); msg.setGatewayId(value);
break; break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setRawId(value);
break;
case 3: case 3:
var value = /** @type {!Uint8Array} */ (reader.readBytes()); var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setPayload(value); msg.setPayload(value);
@ -10060,13 +9956,6 @@ proto.gw.RawPacketForwarderCommand.prototype.serializeBinaryToWriter = function
f f
); );
} }
f = this.getRawId_asU8();
if (f.length > 0) {
writer.writeBytes(
2,
f
);
}
f = this.getPayload_asU8(); f = this.getPayload_asU8();
if (f.length > 0) { if (f.length > 0) {
writer.writeBytes( writer.writeBytes(
@ -10140,45 +10029,6 @@ proto.gw.RawPacketForwarderCommand.prototype.setGatewayId = function(value) {
}; };
/**
* optional bytes raw_id = 2;
* @return {!(string|Uint8Array)}
*/
proto.gw.RawPacketForwarderCommand.prototype.getRawId = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldProto3(this, 2, ""));
};
/**
* optional bytes raw_id = 2;
* This is a type-conversion wrapper around `getRawId()`
* @return {string}
*/
proto.gw.RawPacketForwarderCommand.prototype.getRawId_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getRawId()));
};
/**
* optional bytes raw_id = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getRawId()`
* @return {!Uint8Array}
*/
proto.gw.RawPacketForwarderCommand.prototype.getRawId_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getRawId()));
};
/** @param {!(string|Uint8Array)} value */
proto.gw.RawPacketForwarderCommand.prototype.setRawId = function(value) {
jspb.Message.setField(this, 2, value);
};
/** /**
* optional bytes payload = 3; * optional bytes payload = 3;
* @return {!(string|Uint8Array)} * @return {!(string|Uint8Array)}

16
api/proto/gw/gw.proto vendored
View File

@ -608,10 +608,10 @@ message GatewayCommandExecRequest {
// This command must be pre-configured in the LoRa Gateway Bridge configuration. // This command must be pre-configured in the LoRa Gateway Bridge configuration.
string command = 2; string command = 2;
// Execution request ID (UUID). // Execution request ID.
// The same token will be returned when the execution of the command has // The same will be returned when the execution of the command has
// completed. // completed.
bytes ExecId = 3; uint32 exec_id = 7;
// Standard input. // Standard input.
bytes stdin = 4; bytes stdin = 4;
@ -628,8 +628,8 @@ message GatewayCommandExecResponse {
// Gateway ID. // Gateway ID.
string gateway_id = 6; string gateway_id = 6;
// Execution request ID (UUID). // Execution request ID.
bytes exec_id = 2; uint32 exec_id = 7;
// Standard output. // Standard output.
bytes stdout = 3; bytes stdout = 3;
@ -652,9 +652,6 @@ message RawPacketForwarderEvent {
// Gateway ID. // Gateway ID.
string gateway_id = 4; string gateway_id = 4;
// Raw ID (UUID).
bytes raw_id = 2;
// Payload contains the raw payload. // Payload contains the raw payload.
bytes payload = 3; bytes payload = 3;
} }
@ -670,9 +667,6 @@ message RawPacketForwarderCommand {
// Gateway ID. // Gateway ID.
string gateway_id = 4; string gateway_id = 4;
// Raw ID (UUID).
bytes raw_id = 2;
// Payload contains the raw payload. // Payload contains the raw payload.
bytes payload = 3; bytes payload = 3;
} }

View File

@ -608,10 +608,10 @@ message GatewayCommandExecRequest {
// This command must be pre-configured in the LoRa Gateway Bridge configuration. // This command must be pre-configured in the LoRa Gateway Bridge configuration.
string command = 2; string command = 2;
// Execution request ID (UUID). // Execution request ID.
// The same token will be returned when the execution of the command has // The same will be returned when the execution of the command has
// completed. // completed.
bytes ExecId = 3; uint32 exec_id = 7;
// Standard input. // Standard input.
bytes stdin = 4; bytes stdin = 4;
@ -628,8 +628,8 @@ message GatewayCommandExecResponse {
// Gateway ID. // Gateway ID.
string gateway_id = 6; string gateway_id = 6;
// Execution request ID (UUID). // Execution request ID.
bytes exec_id = 2; uint32 exec_id = 7;
// Standard output. // Standard output.
bytes stdout = 3; bytes stdout = 3;
@ -652,9 +652,6 @@ message RawPacketForwarderEvent {
// Gateway ID. // Gateway ID.
string gateway_id = 4; string gateway_id = 4;
// Raw ID (UUID).
bytes raw_id = 2;
// Payload contains the raw payload. // Payload contains the raw payload.
bytes payload = 3; bytes payload = 3;
} }
@ -670,9 +667,6 @@ message RawPacketForwarderCommand {
// Gateway ID. // Gateway ID.
string gateway_id = 4; string gateway_id = 4;
// Raw ID (UUID).
bytes raw_id = 2;
// Payload contains the raw payload. // Payload contains the raw payload.
bytes payload = 3; bytes payload = 3;
} }

File diff suppressed because one or more lines are too long

View File

@ -608,10 +608,10 @@ message GatewayCommandExecRequest {
// This command must be pre-configured in the LoRa Gateway Bridge configuration. // This command must be pre-configured in the LoRa Gateway Bridge configuration.
string command = 2; string command = 2;
// Execution request ID (UUID). // Execution request ID.
// The same token will be returned when the execution of the command has // The same will be returned when the execution of the command has
// completed. // completed.
bytes ExecId = 3; uint32 exec_id = 7;
// Standard input. // Standard input.
bytes stdin = 4; bytes stdin = 4;
@ -628,8 +628,8 @@ message GatewayCommandExecResponse {
// Gateway ID. // Gateway ID.
string gateway_id = 6; string gateway_id = 6;
// Execution request ID (UUID). // Execution request ID.
bytes exec_id = 2; uint32 exec_id = 7;
// Standard output. // Standard output.
bytes stdout = 3; bytes stdout = 3;
@ -652,9 +652,6 @@ message RawPacketForwarderEvent {
// Gateway ID. // Gateway ID.
string gateway_id = 4; string gateway_id = 4;
// Raw ID (UUID).
bytes raw_id = 2;
// Payload contains the raw payload. // Payload contains the raw payload.
bytes payload = 3; bytes payload = 3;
} }
@ -670,9 +667,6 @@ message RawPacketForwarderCommand {
// Gateway ID. // Gateway ID.
string gateway_id = 4; string gateway_id = 4;
// Raw ID (UUID).
bytes raw_id = 2;
// Payload contains the raw payload. // Payload contains the raw payload.
bytes payload = 3; bytes payload = 3;
} }