api: Add BackendInterfacesRequest stream message.

This commit is contained in:
Orne Brocaar
2023-11-02 08:36:57 +00:00
parent 36e6d5ccb9
commit 6931e9adb5
17 changed files with 1502 additions and 0 deletions

1
api/python/Makefile vendored
View File

@ -45,3 +45,4 @@ stream:
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/stream/meta.proto
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/stream/frame.proto
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/stream/api_request.proto
$(PROTOC) ${PROTOC_ARGS} chirpstack-api/stream/backend_interfaces.proto

View File

@ -0,0 +1,40 @@
syntax = "proto3";
package stream;
option go_package = "github.com/chirpstack/chirpstack/api/go/v4/stream";
option java_package = "io.chirpstack.api.stream";
option java_multiple_files = true;
option java_outer_classname = "BackendInterfacesProto";
option csharp_namespace = "Chirpstack.Stream";
import "google/protobuf/timestamp.proto";
message BackendInterfacesRequest {
// Sender ID.
string sender_id = 1;
// Receiver ID.
string receiver_id = 2;
// Timestamp.
google.protobuf.Timestamp time = 3;
// Transaction ID.
uint32 transaction_id = 4;
// Message-type.
string message_type = 5;
// Result code.
string result_code = 6;
// Request body.
string request_body = 7;
// Request error.
string request_error = 8;
// Response body.
string response_body = 9;
}

View File

@ -1,3 +1,4 @@
from .frame_pb2 import *
from .meta_pb2 import *
from .api_request_pb2 import *
from .backend_interfaces_pb2 import *

View File

@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: chirpstack-api/stream/backend_interfaces.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.chirpstack-api/stream/backend_interfaces.proto\x12\x06stream\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf3\x01\n\x18\x42\x61\x63kendInterfacesRequest\x12\x11\n\tsender_id\x18\x01 \x01(\t\x12\x13\n\x0breceiver_id\x18\x02 \x01(\t\x12(\n\x04time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0etransaction_id\x18\x04 \x01(\r\x12\x14\n\x0cmessage_type\x18\x05 \x01(\t\x12\x13\n\x0bresult_code\x18\x06 \x01(\t\x12\x14\n\x0crequest_body\x18\x07 \x01(\t\x12\x15\n\rrequest_error\x18\x08 \x01(\t\x12\x15\n\rresponse_body\x18\t \x01(\tB{\n\x18io.chirpstack.api.streamB\x16\x42\x61\x63kendInterfacesProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/stream\xaa\x02\x11\x43hirpstack.Streamb\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.stream.backend_interfaces_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
DESCRIPTOR._serialized_options = b'\n\030io.chirpstack.api.streamB\026BackendInterfacesProtoP\001Z1github.com/chirpstack/chirpstack/api/go/v4/stream\252\002\021Chirpstack.Stream'
_globals['_BACKENDINTERFACESREQUEST']._serialized_start=92
_globals['_BACKENDINTERFACESREQUEST']._serialized_end=335
# @@protoc_insertion_point(module_scope)

View File

@ -0,0 +1,28 @@
from google.protobuf import timestamp_pb2 as _timestamp_pb2
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
DESCRIPTOR: _descriptor.FileDescriptor
class BackendInterfacesRequest(_message.Message):
__slots__ = ["sender_id", "receiver_id", "time", "transaction_id", "message_type", "result_code", "request_body", "request_error", "response_body"]
SENDER_ID_FIELD_NUMBER: _ClassVar[int]
RECEIVER_ID_FIELD_NUMBER: _ClassVar[int]
TIME_FIELD_NUMBER: _ClassVar[int]
TRANSACTION_ID_FIELD_NUMBER: _ClassVar[int]
MESSAGE_TYPE_FIELD_NUMBER: _ClassVar[int]
RESULT_CODE_FIELD_NUMBER: _ClassVar[int]
REQUEST_BODY_FIELD_NUMBER: _ClassVar[int]
REQUEST_ERROR_FIELD_NUMBER: _ClassVar[int]
RESPONSE_BODY_FIELD_NUMBER: _ClassVar[int]
sender_id: str
receiver_id: str
time: _timestamp_pb2.Timestamp
transaction_id: int
message_type: str
result_code: str
request_body: str
request_error: str
response_body: str
def __init__(self, sender_id: _Optional[str] = ..., receiver_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., transaction_id: _Optional[int] = ..., message_type: _Optional[str] = ..., result_code: _Optional[str] = ..., request_body: _Optional[str] = ..., request_error: _Optional[str] = ..., response_body: _Optional[str] = ...) -> None: ...

View File

@ -0,0 +1,4 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc