2 Star 0 Fork 0

成都极趣科技/chirpstack-api

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
networkServer.pb.go 37.59 KB
一键复制 编辑 原始数据 按行查看 历史
Arya11111 提交于 2024-04-23 11:06 +08:00 . V1.0
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: as/external/api/networkServer.proto
package api
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type NetworkServer struct {
// Network-server ID.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Network-server name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Network-server server.
// Format: hostname:ip (e.g. localhost:8000).
Server string `protobuf:"bytes,3,opt,name=server,proto3" json:"server,omitempty"`
// CA certificate (optional).
CaCert string `protobuf:"bytes,4,opt,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"`
// TLS (client) certificate for connecting to the network-server (optional).
TlsCert string `protobuf:"bytes,5,opt,name=tls_cert,json=tlsCert,proto3" json:"tls_cert,omitempty"`
// TLS (client) key for connecting to the network-server (optional).
TlsKey string `protobuf:"bytes,6,opt,name=tls_key,json=tlsKey,proto3" json:"tls_key,omitempty"`
// Routing-profile ca certificate (used by the network-server to connect
// back to the application-server) (optional).
RoutingProfileCaCert string `protobuf:"bytes,7,opt,name=routing_profile_ca_cert,json=routingProfileCACert,proto3" json:"routing_profile_ca_cert,omitempty"`
// Routing-profile TLS certificate (used by the network-server to connect
// back to the application-server) (optional).
RoutingProfileTlsCert string `protobuf:"bytes,8,opt,name=routing_profile_tls_cert,json=routingProfileTLSCert,proto3" json:"routing_profile_tls_cert,omitempty"`
// Routing-profile TLS key (used by the network-server to connect
// back to the application-server) (optional).
RoutingProfileTlsKey string `protobuf:"bytes,9,opt,name=routing_profile_tls_key,json=routingProfileTLSKey,proto3" json:"routing_profile_tls_key,omitempty"`
// Enable gateway discovery for this network-server.
GatewayDiscoveryEnabled bool `protobuf:"varint,10,opt,name=gateway_discovery_enabled,json=gatewayDiscoveryEnabled,proto3" json:"gateway_discovery_enabled,omitempty"`
// The number of times per day the gateway discovery 'ping' must be
// broadcasted per gateway.
GatewayDiscoveryInterval uint32 `protobuf:"varint,11,opt,name=gateway_discovery_interval,json=gatewayDiscoveryInterval,proto3" json:"gateway_discovery_interval,omitempty"`
// The frequency (Hz) of the gateway discovery 'ping'.
GatewayDiscoveryTxFrequency uint32 `protobuf:"varint,12,opt,name=gateway_discovery_tx_frequency,json=gatewayDiscoveryTXFrequency,proto3" json:"gateway_discovery_tx_frequency,omitempty"`
// The data-rate of the gateway discovery 'ping'.
GatewayDiscoveryDr uint32 `protobuf:"varint,13,opt,name=gateway_discovery_dr,json=gatewayDiscoveryDR,proto3" json:"gateway_discovery_dr,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NetworkServer) Reset() { *m = NetworkServer{} }
func (m *NetworkServer) String() string { return proto.CompactTextString(m) }
func (*NetworkServer) ProtoMessage() {}
func (*NetworkServer) Descriptor() ([]byte, []int) {
return fileDescriptor_12c681e00a45db98, []int{0}
}
func (m *NetworkServer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NetworkServer.Unmarshal(m, b)
}
func (m *NetworkServer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NetworkServer.Marshal(b, m, deterministic)
}
func (m *NetworkServer) XXX_Merge(src proto.Message) {
xxx_messageInfo_NetworkServer.Merge(m, src)
}
func (m *NetworkServer) XXX_Size() int {
return xxx_messageInfo_NetworkServer.Size(m)
}
func (m *NetworkServer) XXX_DiscardUnknown() {
xxx_messageInfo_NetworkServer.DiscardUnknown(m)
}
var xxx_messageInfo_NetworkServer proto.InternalMessageInfo
func (m *NetworkServer) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
func (m *NetworkServer) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *NetworkServer) GetServer() string {
if m != nil {
return m.Server
}
return ""
}
func (m *NetworkServer) GetCaCert() string {
if m != nil {
return m.CaCert
}
return ""
}
func (m *NetworkServer) GetTlsCert() string {
if m != nil {
return m.TlsCert
}
return ""
}
func (m *NetworkServer) GetTlsKey() string {
if m != nil {
return m.TlsKey
}
return ""
}
func (m *NetworkServer) GetRoutingProfileCaCert() string {
if m != nil {
return m.RoutingProfileCaCert
}
return ""
}
func (m *NetworkServer) GetRoutingProfileTlsCert() string {
if m != nil {
return m.RoutingProfileTlsCert
}
return ""
}
func (m *NetworkServer) GetRoutingProfileTlsKey() string {
if m != nil {
return m.RoutingProfileTlsKey
}
return ""
}
func (m *NetworkServer) GetGatewayDiscoveryEnabled() bool {
if m != nil {
return m.GatewayDiscoveryEnabled
}
return false
}
func (m *NetworkServer) GetGatewayDiscoveryInterval() uint32 {
if m != nil {
return m.GatewayDiscoveryInterval
}
return 0
}
func (m *NetworkServer) GetGatewayDiscoveryTxFrequency() uint32 {
if m != nil {
return m.GatewayDiscoveryTxFrequency
}
return 0
}
func (m *NetworkServer) GetGatewayDiscoveryDr() uint32 {
if m != nil {
return m.GatewayDiscoveryDr
}
return 0
}
type NetworkServerListItem struct {
// Network-server ID.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Network-server name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Network-server server.
// Format: hostname:ip (e.g. localhost:8000).
Server string `protobuf:"bytes,3,opt,name=server,proto3" json:"server,omitempty"`
// Created at timestamp.
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Last update timestamp.
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NetworkServerListItem) Reset() { *m = NetworkServerListItem{} }
func (m *NetworkServerListItem) String() string { return proto.CompactTextString(m) }
func (*NetworkServerListItem) ProtoMessage() {}
func (*NetworkServerListItem) Descriptor() ([]byte, []int) {
return fileDescriptor_12c681e00a45db98, []int{1}
}
func (m *NetworkServerListItem) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NetworkServerListItem.Unmarshal(m, b)
}
func (m *NetworkServerListItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NetworkServerListItem.Marshal(b, m, deterministic)
}
func (m *NetworkServerListItem) XXX_Merge(src proto.Message) {
xxx_messageInfo_NetworkServerListItem.Merge(m, src)
}
func (m *NetworkServerListItem) XXX_Size() int {
return xxx_messageInfo_NetworkServerListItem.Size(m)
}
func (m *NetworkServerListItem) XXX_DiscardUnknown() {
xxx_messageInfo_NetworkServerListItem.DiscardUnknown(m)
}
var xxx_messageInfo_NetworkServerListItem proto.InternalMessageInfo
func (m *NetworkServerListItem) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
func (m *NetworkServerListItem) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *NetworkServerListItem) GetServer() string {
if m != nil {
return m.Server
}
return ""
}
func (m *NetworkServerListItem) GetCreatedAt() *timestamppb.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func (m *NetworkServerListItem) GetUpdatedAt() *timestamppb.Timestamp {
if m != nil {
return m.UpdatedAt
}
return nil
}
type CreateNetworkServerRequest struct {
// Network-server object to create.
NetworkServer *NetworkServer `protobuf:"bytes,1,opt,name=network_server,json=networkServer,proto3" json:"network_server,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateNetworkServerRequest) Reset() { *m = CreateNetworkServerRequest{} }
func (m *CreateNetworkServerRequest) String() string { return proto.CompactTextString(m) }
func (*CreateNetworkServerRequest) ProtoMessage() {}
func (*CreateNetworkServerRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_12c681e00a45db98, []int{2}
}
func (m *CreateNetworkServerRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateNetworkServerRequest.Unmarshal(m, b)
}
func (m *CreateNetworkServerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateNetworkServerRequest.Marshal(b, m, deterministic)
}
func (m *CreateNetworkServerRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateNetworkServerRequest.Merge(m, src)
}
func (m *CreateNetworkServerRequest) XXX_Size() int {
return xxx_messageInfo_CreateNetworkServerRequest.Size(m)
}
func (m *CreateNetworkServerRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateNetworkServerRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateNetworkServerRequest proto.InternalMessageInfo
func (m *CreateNetworkServerRequest) GetNetworkServer() *NetworkServer {
if m != nil {
return m.NetworkServer
}
return nil
}
type CreateNetworkServerResponse struct {
// Network-server ID.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateNetworkServerResponse) Reset() { *m = CreateNetworkServerResponse{} }
func (m *CreateNetworkServerResponse) String() string { return proto.CompactTextString(m) }
func (*CreateNetworkServerResponse) ProtoMessage() {}
func (*CreateNetworkServerResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_12c681e00a45db98, []int{3}
}
func (m *CreateNetworkServerResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateNetworkServerResponse.Unmarshal(m, b)
}
func (m *CreateNetworkServerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateNetworkServerResponse.Marshal(b, m, deterministic)
}
func (m *CreateNetworkServerResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateNetworkServerResponse.Merge(m, src)
}
func (m *CreateNetworkServerResponse) XXX_Size() int {
return xxx_messageInfo_CreateNetworkServerResponse.Size(m)
}
func (m *CreateNetworkServerResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateNetworkServerResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CreateNetworkServerResponse proto.InternalMessageInfo
func (m *CreateNetworkServerResponse) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
type GetNetworkServerRequest struct {
// Network-server ID.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetNetworkServerRequest) Reset() { *m = GetNetworkServerRequest{} }
func (m *GetNetworkServerRequest) String() string { return proto.CompactTextString(m) }
func (*GetNetworkServerRequest) ProtoMessage() {}
func (*GetNetworkServerRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_12c681e00a45db98, []int{4}
}
func (m *GetNetworkServerRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetNetworkServerRequest.Unmarshal(m, b)
}
func (m *GetNetworkServerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetNetworkServerRequest.Marshal(b, m, deterministic)
}
func (m *GetNetworkServerRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetNetworkServerRequest.Merge(m, src)
}
func (m *GetNetworkServerRequest) XXX_Size() int {
return xxx_messageInfo_GetNetworkServerRequest.Size(m)
}
func (m *GetNetworkServerRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetNetworkServerRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetNetworkServerRequest proto.InternalMessageInfo
func (m *GetNetworkServerRequest) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
type GetNetworkServerResponse struct {
// Network-server object.
NetworkServer *NetworkServer `protobuf:"bytes,1,opt,name=network_server,json=networkServer,proto3" json:"network_server,omitempty"`
// Created at timestamp.
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Last update timestamp.
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// The ChirpStack Network Server version.
Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
// The ChirpStack Network Server region configured.
Region string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetNetworkServerResponse) Reset() { *m = GetNetworkServerResponse{} }
func (m *GetNetworkServerResponse) String() string { return proto.CompactTextString(m) }
func (*GetNetworkServerResponse) ProtoMessage() {}
func (*GetNetworkServerResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_12c681e00a45db98, []int{5}
}
func (m *GetNetworkServerResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetNetworkServerResponse.Unmarshal(m, b)
}
func (m *GetNetworkServerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetNetworkServerResponse.Marshal(b, m, deterministic)
}
func (m *GetNetworkServerResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetNetworkServerResponse.Merge(m, src)
}
func (m *GetNetworkServerResponse) XXX_Size() int {
return xxx_messageInfo_GetNetworkServerResponse.Size(m)
}
func (m *GetNetworkServerResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetNetworkServerResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetNetworkServerResponse proto.InternalMessageInfo
func (m *GetNetworkServerResponse) GetNetworkServer() *NetworkServer {
if m != nil {
return m.NetworkServer
}
return nil
}
func (m *GetNetworkServerResponse) GetCreatedAt() *timestamppb.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func (m *GetNetworkServerResponse) GetUpdatedAt() *timestamppb.Timestamp {
if m != nil {
return m.UpdatedAt
}
return nil
}
func (m *GetNetworkServerResponse) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
func (m *GetNetworkServerResponse) GetRegion() string {
if m != nil {
return m.Region
}
return ""
}
type UpdateNetworkServerRequest struct {
// Network-server object to update.
NetworkServer *NetworkServer `protobuf:"bytes,1,opt,name=network_server,json=networkServer,proto3" json:"network_server,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateNetworkServerRequest) Reset() { *m = UpdateNetworkServerRequest{} }
func (m *UpdateNetworkServerRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateNetworkServerRequest) ProtoMessage() {}
func (*UpdateNetworkServerRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_12c681e00a45db98, []int{6}
}
func (m *UpdateNetworkServerRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateNetworkServerRequest.Unmarshal(m, b)
}
func (m *UpdateNetworkServerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateNetworkServerRequest.Marshal(b, m, deterministic)
}
func (m *UpdateNetworkServerRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateNetworkServerRequest.Merge(m, src)
}
func (m *UpdateNetworkServerRequest) XXX_Size() int {
return xxx_messageInfo_UpdateNetworkServerRequest.Size(m)
}
func (m *UpdateNetworkServerRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateNetworkServerRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateNetworkServerRequest proto.InternalMessageInfo
func (m *UpdateNetworkServerRequest) GetNetworkServer() *NetworkServer {
if m != nil {
return m.NetworkServer
}
return nil
}
type DeleteNetworkServerRequest struct {
// Network-server ID.
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteNetworkServerRequest) Reset() { *m = DeleteNetworkServerRequest{} }
func (m *DeleteNetworkServerRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteNetworkServerRequest) ProtoMessage() {}
func (*DeleteNetworkServerRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_12c681e00a45db98, []int{7}
}
func (m *DeleteNetworkServerRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteNetworkServerRequest.Unmarshal(m, b)
}
func (m *DeleteNetworkServerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteNetworkServerRequest.Marshal(b, m, deterministic)
}
func (m *DeleteNetworkServerRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteNetworkServerRequest.Merge(m, src)
}
func (m *DeleteNetworkServerRequest) XXX_Size() int {
return xxx_messageInfo_DeleteNetworkServerRequest.Size(m)
}
func (m *DeleteNetworkServerRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteNetworkServerRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteNetworkServerRequest proto.InternalMessageInfo
func (m *DeleteNetworkServerRequest) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
type ListNetworkServerRequest struct {
// Max number of items to return.
Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
// Offset in the result-set (for pagination).
Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
// Organization id to filter on.
OrganizationId int64 `protobuf:"varint,3,opt,name=organization_id,json=organizationID,proto3" json:"organization_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListNetworkServerRequest) Reset() { *m = ListNetworkServerRequest{} }
func (m *ListNetworkServerRequest) String() string { return proto.CompactTextString(m) }
func (*ListNetworkServerRequest) ProtoMessage() {}
func (*ListNetworkServerRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_12c681e00a45db98, []int{8}
}
func (m *ListNetworkServerRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListNetworkServerRequest.Unmarshal(m, b)
}
func (m *ListNetworkServerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListNetworkServerRequest.Marshal(b, m, deterministic)
}
func (m *ListNetworkServerRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListNetworkServerRequest.Merge(m, src)
}
func (m *ListNetworkServerRequest) XXX_Size() int {
return xxx_messageInfo_ListNetworkServerRequest.Size(m)
}
func (m *ListNetworkServerRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListNetworkServerRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListNetworkServerRequest proto.InternalMessageInfo
func (m *ListNetworkServerRequest) GetLimit() int64 {
if m != nil {
return m.Limit
}
return 0
}
func (m *ListNetworkServerRequest) GetOffset() int64 {
if m != nil {
return m.Offset
}
return 0
}
func (m *ListNetworkServerRequest) GetOrganizationId() int64 {
if m != nil {
return m.OrganizationId
}
return 0
}
type ListNetworkServerResponse struct {
// Total number of network-servers.
TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
// Network-servers within the result-set.
Result []*NetworkServerListItem `protobuf:"bytes,2,rep,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListNetworkServerResponse) Reset() { *m = ListNetworkServerResponse{} }
func (m *ListNetworkServerResponse) String() string { return proto.CompactTextString(m) }
func (*ListNetworkServerResponse) ProtoMessage() {}
func (*ListNetworkServerResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_12c681e00a45db98, []int{9}
}
func (m *ListNetworkServerResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListNetworkServerResponse.Unmarshal(m, b)
}
func (m *ListNetworkServerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListNetworkServerResponse.Marshal(b, m, deterministic)
}
func (m *ListNetworkServerResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListNetworkServerResponse.Merge(m, src)
}
func (m *ListNetworkServerResponse) XXX_Size() int {
return xxx_messageInfo_ListNetworkServerResponse.Size(m)
}
func (m *ListNetworkServerResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListNetworkServerResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListNetworkServerResponse proto.InternalMessageInfo
func (m *ListNetworkServerResponse) GetTotalCount() int64 {
if m != nil {
return m.TotalCount
}
return 0
}
func (m *ListNetworkServerResponse) GetResult() []*NetworkServerListItem {
if m != nil {
return m.Result
}
return nil
}
func init() {
proto.RegisterType((*NetworkServer)(nil), "api.NetworkServer")
proto.RegisterType((*NetworkServerListItem)(nil), "api.NetworkServerListItem")
proto.RegisterType((*CreateNetworkServerRequest)(nil), "api.CreateNetworkServerRequest")
proto.RegisterType((*CreateNetworkServerResponse)(nil), "api.CreateNetworkServerResponse")
proto.RegisterType((*GetNetworkServerRequest)(nil), "api.GetNetworkServerRequest")
proto.RegisterType((*GetNetworkServerResponse)(nil), "api.GetNetworkServerResponse")
proto.RegisterType((*UpdateNetworkServerRequest)(nil), "api.UpdateNetworkServerRequest")
proto.RegisterType((*DeleteNetworkServerRequest)(nil), "api.DeleteNetworkServerRequest")
proto.RegisterType((*ListNetworkServerRequest)(nil), "api.ListNetworkServerRequest")
proto.RegisterType((*ListNetworkServerResponse)(nil), "api.ListNetworkServerResponse")
}
func init() {
proto.RegisterFile("as/external/api/networkServer.proto", fileDescriptor_12c681e00a45db98)
}
var fileDescriptor_12c681e00a45db98 = []byte{
// 868 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x6e, 0xe3, 0x44,
0x14, 0x56, 0x9a, 0x34, 0x6d, 0x4f, 0x69, 0x91, 0x46, 0xd9, 0xc6, 0x71, 0xcb, 0x36, 0x1b, 0x2e,
0x08, 0x2b, 0xea, 0xa0, 0xae, 0x56, 0x88, 0x15, 0x37, 0x25, 0x5d, 0x56, 0x15, 0x15, 0x42, 0x6e,
0x11, 0x68, 0x6f, 0xac, 0xa9, 0x7d, 0x12, 0x46, 0x75, 0x3c, 0xde, 0x99, 0x49, 0x76, 0x03, 0xda,
0x1b, 0x5e, 0x81, 0xf7, 0x40, 0xbc, 0x06, 0xd7, 0xbc, 0x02, 0xaf, 0x81, 0x84, 0xe6, 0xc7, 0xd0,
0x38, 0x36, 0x88, 0x85, 0x9b, 0x28, 0xe3, 0xf3, 0xfd, 0xcc, 0x9c, 0xf3, 0x8d, 0x13, 0x78, 0x97,
0xca, 0x11, 0xbe, 0x52, 0x28, 0x32, 0x9a, 0x8e, 0x68, 0xce, 0x46, 0x19, 0xaa, 0x97, 0x5c, 0xdc,
0x5e, 0xa1, 0x58, 0xa0, 0x08, 0x72, 0xc1, 0x15, 0x27, 0x4d, 0x9a, 0x33, 0xff, 0x68, 0xca, 0xf9,
0x34, 0x45, 0x03, 0xa2, 0x59, 0xc6, 0x15, 0x55, 0x8c, 0x67, 0xd2, 0x42, 0xfc, 0x63, 0x57, 0x35,
0xab, 0x9b, 0xf9, 0x64, 0xa4, 0xd8, 0x0c, 0xa5, 0xa2, 0xb3, 0xdc, 0x01, 0x0e, 0xcb, 0x00, 0x9c,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0xd5, 0xdc, 0x13, 0xff, 0x9d, 0x9a, 0xaa, 0x33, 0x79, 0x60,
0x4c, 0x0e, 0x49, 0xaf, 0xca, 0x64, 0xf4, 0x3d, 0x4b, 0x5e, 0x93, 0x05, 0xb4, 0x6d, 0xb2, 0xdc,
0xa1, 0xea, 0x63, 0xe6, 0x1f, 0xac, 0xa5, 0xfb, 0xa9, 0xfe, 0x51, 0x1d, 0x3c, 0x32, 0x2e, 0x27,
0xfe, 0xb0, 0xda, 0x65, 0x35, 0x9a, 0x01, 0x4b, 0x5e, 0xeb, 0xe3, 0x25, 0xd0, 0xb6, 0xc1, 0x73,
0xbe, 0xf5, 0x29, 0xac, 0xf5, 0x75, 0xa7, 0x7b, 0xf8, 0x37, 0xa7, 0x8b, 0xa1, 0xa5, 0xe7, 0x4b,
0x6c, 0x9f, 0xea, 0xb2, 0xeb, 0xdf, 0xaf, 0x2b, 0xbb, 0x3e, 0x1e, 0x19, 0xa7, 0x03, 0x52, 0x39,
0xac, 0x4f, 0x9f, 0xc3, 0x03, 0xc6, 0x83, 0xf8, 0x5b, 0x26, 0x72, 0xa9, 0x68, 0x7c, 0x6b, 0xc4,
0xa8, 0x0c, 0x8a, 0x3f, 0x3a, 0x7a, 0xfd, 0xfc, 0xf1, 0x94, 0x29, 0xc4, 0x20, 0xe6, 0xb3, 0x51,
0x32, 0x11, 0xfc, 0x86, 0xab, 0x38, 0x19, 0xfd, 0xc5, 0x39, 0xd1, 0xc2, 0x53, 0x3e, 0x2a, 0xfd,
0x3f, 0xba, 0x69, 0x9b, 0x33, 0x3f, 0xfa, 0x23, 0x00, 0x00, 0xff, 0xff, 0x82, 0x28, 0x19, 0xae,
0x39, 0x09, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// NetworkServerServiceClient is the client API for NetworkServerService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type NetworkServerServiceClient interface {
// Create creates the given network-server.
Create(ctx context.Context, in *CreateNetworkServerRequest, opts ...grpc.CallOption) (*CreateNetworkServerResponse, error)
// Get returns the network-server matching the given id.
Get(ctx context.Context, in *GetNetworkServerRequest, opts ...grpc.CallOption) (*GetNetworkServerResponse, error)
// Update updates the given network-server.
Update(ctx context.Context, in *UpdateNetworkServerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Delete deletes the network-server matching the given id.
Delete(ctx context.Context, in *DeleteNetworkServerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// List lists the available network-servers.
List(ctx context.Context, in *ListNetworkServerRequest, opts ...grpc.CallOption) (*ListNetworkServerResponse, error)
}
type networkServerServiceClient struct {
cc grpc.ClientConnInterface
}
func NewNetworkServerServiceClient(cc grpc.ClientConnInterface) NetworkServerServiceClient {
return &networkServerServiceClient{cc}
}
func (c *networkServerServiceClient) Create(ctx context.Context, in *CreateNetworkServerRequest, opts ...grpc.CallOption) (*CreateNetworkServerResponse, error) {
out := new(CreateNetworkServerResponse)
err := c.cc.Invoke(ctx, "/api.NetworkServerService/Create", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *networkServerServiceClient) Get(ctx context.Context, in *GetNetworkServerRequest, opts ...grpc.CallOption) (*GetNetworkServerResponse, error) {
out := new(GetNetworkServerResponse)
err := c.cc.Invoke(ctx, "/api.NetworkServerService/Get", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *networkServerServiceClient) Update(ctx context.Context, in *UpdateNetworkServerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.NetworkServerService/Update", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *networkServerServiceClient) Delete(ctx context.Context, in *DeleteNetworkServerRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.NetworkServerService/Delete", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *networkServerServiceClient) List(ctx context.Context, in *ListNetworkServerRequest, opts ...grpc.CallOption) (*ListNetworkServerResponse, error) {
out := new(ListNetworkServerResponse)
err := c.cc.Invoke(ctx, "/api.NetworkServerService/List", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// NetworkServerServiceServer is the server API for NetworkServerService service.
type NetworkServerServiceServer interface {
// Create creates the given network-server.
Create(context.Context, *CreateNetworkServerRequest) (*CreateNetworkServerResponse, error)
// Get returns the network-server matching the given id.
Get(context.Context, *GetNetworkServerRequest) (*GetNetworkServerResponse, error)
// Update updates the given network-server.
Update(context.Context, *UpdateNetworkServerRequest) (*emptypb.Empty, error)
// Delete deletes the network-server matching the given id.
Delete(context.Context, *DeleteNetworkServerRequest) (*emptypb.Empty, error)
// List lists the available network-servers.
List(context.Context, *ListNetworkServerRequest) (*ListNetworkServerResponse, error)
}
// UnimplementedNetworkServerServiceServer can be embedded to have forward compatible implementations.
type UnimplementedNetworkServerServiceServer struct {
}
func (*UnimplementedNetworkServerServiceServer) Create(ctx context.Context, req *CreateNetworkServerRequest) (*CreateNetworkServerResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
}
func (*UnimplementedNetworkServerServiceServer) Get(ctx context.Context, req *GetNetworkServerRequest) (*GetNetworkServerResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (*UnimplementedNetworkServerServiceServer) Update(ctx context.Context, req *UpdateNetworkServerRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
}
func (*UnimplementedNetworkServerServiceServer) Delete(ctx context.Context, req *DeleteNetworkServerRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
}
func (*UnimplementedNetworkServerServiceServer) List(ctx context.Context, req *ListNetworkServerRequest) (*ListNetworkServerResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}
func RegisterNetworkServerServiceServer(s *grpc.Server, srv NetworkServerServiceServer) {
s.RegisterService(&_NetworkServerService_serviceDesc, srv)
}
func _NetworkServerService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateNetworkServerRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServerServiceServer).Create(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkServerService/Create",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServerServiceServer).Create(ctx, req.(*CreateNetworkServerRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NetworkServerService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetNetworkServerRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServerServiceServer).Get(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkServerService/Get",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServerServiceServer).Get(ctx, req.(*GetNetworkServerRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NetworkServerService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateNetworkServerRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServerServiceServer).Update(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkServerService/Update",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServerServiceServer).Update(ctx, req.(*UpdateNetworkServerRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NetworkServerService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteNetworkServerRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServerServiceServer).Delete(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkServerService/Delete",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServerServiceServer).Delete(ctx, req.(*DeleteNetworkServerRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NetworkServerService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListNetworkServerRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServerServiceServer).List(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkServerService/List",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServerServiceServer).List(ctx, req.(*ListNetworkServerRequest))
}
return interceptor(ctx, in, info, handler)
}
var _NetworkServerService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.NetworkServerService",
HandlerType: (*NetworkServerServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Create",
Handler: _NetworkServerService_Create_Handler,
},
{
MethodName: "Get",
Handler: _NetworkServerService_Get_Handler,
},
{
MethodName: "Update",
Handler: _NetworkServerService_Update_Handler,
},
{
MethodName: "Delete",
Handler: _NetworkServerService_Delete_Handler,
},
{
MethodName: "List",
Handler: _NetworkServerService_List_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "as/external/api/networkServer.proto",
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dfrobotcd/chirpstack-api.git
git@gitee.com:dfrobotcd/chirpstack-api.git
dfrobotcd
chirpstack-api
chirpstack-api
d91e8b8d685d

搜索帮助