2 Star 0 Fork 0

成都极趣科技/chirpstack-api

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
internal.pb.go 76.52 KB
一键复制 编辑 原始数据 按行查看 历史
Arya11111 提交于 2024-04-23 11:06 +08:00 . V1.0
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: as/external/api/internal.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 ShellCommandRequest struct {
Cmd string `protobuf:"bytes,1,opt,name=cmd,proto3" json:"cmd,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ShellCommandRequest) Reset() { *m = ShellCommandRequest{} }
func (m *ShellCommandRequest) String() string { return proto.CompactTextString(m) }
func (*ShellCommandRequest) ProtoMessage() {}
func (*ShellCommandRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{0}
}
func (m *ShellCommandRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ShellCommandRequest.Unmarshal(m, b)
}
func (m *ShellCommandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ShellCommandRequest.Marshal(b, m, deterministic)
}
func (m *ShellCommandRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ShellCommandRequest.Merge(m, src)
}
func (m *ShellCommandRequest) XXX_Size() int {
return xxx_messageInfo_ShellCommandRequest.Size(m)
}
func (m *ShellCommandRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ShellCommandRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ShellCommandRequest proto.InternalMessageInfo
func (m *ShellCommandRequest) GetCmd() string {
if m != nil {
return m.Cmd
}
return ""
}
type ShellCommandResponse struct {
Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ShellCommandResponse) Reset() { *m = ShellCommandResponse{} }
func (m *ShellCommandResponse) String() string { return proto.CompactTextString(m) }
func (*ShellCommandResponse) ProtoMessage() {}
func (*ShellCommandResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{1}
}
func (m *ShellCommandResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ShellCommandResponse.Unmarshal(m, b)
}
func (m *ShellCommandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ShellCommandResponse.Marshal(b, m, deterministic)
}
func (m *ShellCommandResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ShellCommandResponse.Merge(m, src)
}
func (m *ShellCommandResponse) XXX_Size() int {
return xxx_messageInfo_ShellCommandResponse.Size(m)
}
func (m *ShellCommandResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ShellCommandResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ShellCommandResponse proto.InternalMessageInfo
func (m *ShellCommandResponse) GetResult() string {
if m != nil {
return m.Result
}
return ""
}
type APIKey struct {
// API key ID.
// This value will be automatically generated on create.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Name.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Is global admin key.
IsAdmin bool `protobuf:"varint,3,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
// Organization ID.
// In case this API key is to manage resources within a single organization
// set this to the ID of this organization.
OrganizationId int64 `protobuf:"varint,4,opt,name=organization_id,json=organizationID,proto3" json:"organization_id,omitempty"`
// Application ID.
// In case the API key is to manage resources within an application, set
// this to the ID of this application.message
ApplicationId int64 `protobuf:"varint,5,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *APIKey) Reset() { *m = APIKey{} }
func (m *APIKey) String() string { return proto.CompactTextString(m) }
func (*APIKey) ProtoMessage() {}
func (*APIKey) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{2}
}
func (m *APIKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_APIKey.Unmarshal(m, b)
}
func (m *APIKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_APIKey.Marshal(b, m, deterministic)
}
func (m *APIKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_APIKey.Merge(m, src)
}
func (m *APIKey) XXX_Size() int {
return xxx_messageInfo_APIKey.Size(m)
}
func (m *APIKey) XXX_DiscardUnknown() {
xxx_messageInfo_APIKey.DiscardUnknown(m)
}
var xxx_messageInfo_APIKey proto.InternalMessageInfo
func (m *APIKey) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *APIKey) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *APIKey) GetIsAdmin() bool {
if m != nil {
return m.IsAdmin
}
return false
}
func (m *APIKey) GetOrganizationId() int64 {
if m != nil {
return m.OrganizationId
}
return 0
}
func (m *APIKey) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type CreateAPIKeyRequest struct {
// The API key to create.
ApiKey *APIKey `protobuf:"bytes,1,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateAPIKeyRequest) Reset() { *m = CreateAPIKeyRequest{} }
func (m *CreateAPIKeyRequest) String() string { return proto.CompactTextString(m) }
func (*CreateAPIKeyRequest) ProtoMessage() {}
func (*CreateAPIKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{3}
}
func (m *CreateAPIKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateAPIKeyRequest.Unmarshal(m, b)
}
func (m *CreateAPIKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateAPIKeyRequest.Marshal(b, m, deterministic)
}
func (m *CreateAPIKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateAPIKeyRequest.Merge(m, src)
}
func (m *CreateAPIKeyRequest) XXX_Size() int {
return xxx_messageInfo_CreateAPIKeyRequest.Size(m)
}
func (m *CreateAPIKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateAPIKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateAPIKeyRequest proto.InternalMessageInfo
func (m *CreateAPIKeyRequest) GetApiKey() *APIKey {
if m != nil {
return m.ApiKey
}
return nil
}
type CreateAPIKeyResponse struct {
// API key ID.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// JWT token for this API Key.
JwtToken string `protobuf:"bytes,2,opt,name=jwt_token,json=jwtToken,proto3" json:"jwt_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateAPIKeyResponse) Reset() { *m = CreateAPIKeyResponse{} }
func (m *CreateAPIKeyResponse) String() string { return proto.CompactTextString(m) }
func (*CreateAPIKeyResponse) ProtoMessage() {}
func (*CreateAPIKeyResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{4}
}
func (m *CreateAPIKeyResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateAPIKeyResponse.Unmarshal(m, b)
}
func (m *CreateAPIKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateAPIKeyResponse.Marshal(b, m, deterministic)
}
func (m *CreateAPIKeyResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateAPIKeyResponse.Merge(m, src)
}
func (m *CreateAPIKeyResponse) XXX_Size() int {
return xxx_messageInfo_CreateAPIKeyResponse.Size(m)
}
func (m *CreateAPIKeyResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateAPIKeyResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CreateAPIKeyResponse proto.InternalMessageInfo
func (m *CreateAPIKeyResponse) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *CreateAPIKeyResponse) GetJwtToken() string {
if m != nil {
return m.JwtToken
}
return ""
}
type DeleteAPIKeyRequest struct {
// API key ID.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteAPIKeyRequest) Reset() { *m = DeleteAPIKeyRequest{} }
func (m *DeleteAPIKeyRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteAPIKeyRequest) ProtoMessage() {}
func (*DeleteAPIKeyRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{5}
}
func (m *DeleteAPIKeyRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteAPIKeyRequest.Unmarshal(m, b)
}
func (m *DeleteAPIKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteAPIKeyRequest.Marshal(b, m, deterministic)
}
func (m *DeleteAPIKeyRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteAPIKeyRequest.Merge(m, src)
}
func (m *DeleteAPIKeyRequest) XXX_Size() int {
return xxx_messageInfo_DeleteAPIKeyRequest.Size(m)
}
func (m *DeleteAPIKeyRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteAPIKeyRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteAPIKeyRequest proto.InternalMessageInfo
func (m *DeleteAPIKeyRequest) GetId() string {
if m != nil {
return m.Id
}
return ""
}
type ListAPIKeysRequest 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"`
// Return only admin keys.
IsAdmin bool `protobuf:"varint,3,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
// Filter on organization ID.
OrganizationId int64 `protobuf:"varint,4,opt,name=organization_id,json=organizationID,proto3" json:"organization_id,omitempty"`
// Filter on application ID.
ApplicationId int64 `protobuf:"varint,5,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListAPIKeysRequest) Reset() { *m = ListAPIKeysRequest{} }
func (m *ListAPIKeysRequest) String() string { return proto.CompactTextString(m) }
func (*ListAPIKeysRequest) ProtoMessage() {}
func (*ListAPIKeysRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{6}
}
func (m *ListAPIKeysRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListAPIKeysRequest.Unmarshal(m, b)
}
func (m *ListAPIKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListAPIKeysRequest.Marshal(b, m, deterministic)
}
func (m *ListAPIKeysRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListAPIKeysRequest.Merge(m, src)
}
func (m *ListAPIKeysRequest) XXX_Size() int {
return xxx_messageInfo_ListAPIKeysRequest.Size(m)
}
func (m *ListAPIKeysRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListAPIKeysRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListAPIKeysRequest proto.InternalMessageInfo
func (m *ListAPIKeysRequest) GetLimit() int64 {
if m != nil {
return m.Limit
}
return 0
}
func (m *ListAPIKeysRequest) GetOffset() int64 {
if m != nil {
return m.Offset
}
return 0
}
func (m *ListAPIKeysRequest) GetIsAdmin() bool {
if m != nil {
return m.IsAdmin
}
return false
}
func (m *ListAPIKeysRequest) GetOrganizationId() int64 {
if m != nil {
return m.OrganizationId
}
return 0
}
func (m *ListAPIKeysRequest) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
type ListAPIKeysResponse struct {
// Total number of API keys.
TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
Result []*APIKey `protobuf:"bytes,2,rep,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListAPIKeysResponse) Reset() { *m = ListAPIKeysResponse{} }
func (m *ListAPIKeysResponse) String() string { return proto.CompactTextString(m) }
func (*ListAPIKeysResponse) ProtoMessage() {}
func (*ListAPIKeysResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{7}
}
func (m *ListAPIKeysResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListAPIKeysResponse.Unmarshal(m, b)
}
func (m *ListAPIKeysResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListAPIKeysResponse.Marshal(b, m, deterministic)
}
func (m *ListAPIKeysResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListAPIKeysResponse.Merge(m, src)
}
func (m *ListAPIKeysResponse) XXX_Size() int {
return xxx_messageInfo_ListAPIKeysResponse.Size(m)
}
func (m *ListAPIKeysResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListAPIKeysResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListAPIKeysResponse proto.InternalMessageInfo
func (m *ListAPIKeysResponse) GetTotalCount() int64 {
if m != nil {
return m.TotalCount
}
return 0
}
func (m *ListAPIKeysResponse) GetResult() []*APIKey {
if m != nil {
return m.Result
}
return nil
}
// Defines an organization to which an user is associated.
type OrganizationLink struct {
// Organization ID.
OrganizationId int64 `protobuf:"varint,1,opt,name=organization_id,json=organizationID,proto3" json:"organization_id,omitempty"`
// Organization name.
OrganizationName string `protobuf:"bytes,2,opt,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"`
// User is admin within the context of this organization.
// There is no need to set the is_device_admin and is_gateway_admin flags.
IsAdmin bool `protobuf:"varint,3,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
// User is able to modify device related resources (applications,
// device-profiles, devices, multicast-groups).
IsDeviceAdmin bool `protobuf:"varint,6,opt,name=is_device_admin,json=isDeviceAdmin,proto3" json:"is_device_admin,omitempty"`
// User is able to modify gateways.
IsGatewayAdmin bool `protobuf:"varint,7,opt,name=is_gateway_admin,json=isGatewayAdmin,proto3" json:"is_gateway_admin,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 *OrganizationLink) Reset() { *m = OrganizationLink{} }
func (m *OrganizationLink) String() string { return proto.CompactTextString(m) }
func (*OrganizationLink) ProtoMessage() {}
func (*OrganizationLink) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{8}
}
func (m *OrganizationLink) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrganizationLink.Unmarshal(m, b)
}
func (m *OrganizationLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrganizationLink.Marshal(b, m, deterministic)
}
func (m *OrganizationLink) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrganizationLink.Merge(m, src)
}
func (m *OrganizationLink) XXX_Size() int {
return xxx_messageInfo_OrganizationLink.Size(m)
}
func (m *OrganizationLink) XXX_DiscardUnknown() {
xxx_messageInfo_OrganizationLink.DiscardUnknown(m)
}
var xxx_messageInfo_OrganizationLink proto.InternalMessageInfo
func (m *OrganizationLink) GetOrganizationId() int64 {
if m != nil {
return m.OrganizationId
}
return 0
}
func (m *OrganizationLink) GetOrganizationName() string {
if m != nil {
return m.OrganizationName
}
return ""
}
func (m *OrganizationLink) GetIsAdmin() bool {
if m != nil {
return m.IsAdmin
}
return false
}
func (m *OrganizationLink) GetIsDeviceAdmin() bool {
if m != nil {
return m.IsDeviceAdmin
}
return false
}
func (m *OrganizationLink) GetIsGatewayAdmin() bool {
if m != nil {
return m.IsGatewayAdmin
}
return false
}
func (m *OrganizationLink) GetCreatedAt() *timestamppb.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func (m *OrganizationLink) GetUpdatedAt() *timestamppb.Timestamp {
if m != nil {
return m.UpdatedAt
}
return nil
}
type LoginRequest struct {
// Email of the user.
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
// Password of the user.
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LoginRequest) Reset() { *m = LoginRequest{} }
func (m *LoginRequest) String() string { return proto.CompactTextString(m) }
func (*LoginRequest) ProtoMessage() {}
func (*LoginRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{9}
}
func (m *LoginRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LoginRequest.Unmarshal(m, b)
}
func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LoginRequest.Marshal(b, m, deterministic)
}
func (m *LoginRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_LoginRequest.Merge(m, src)
}
func (m *LoginRequest) XXX_Size() int {
return xxx_messageInfo_LoginRequest.Size(m)
}
func (m *LoginRequest) XXX_DiscardUnknown() {
xxx_messageInfo_LoginRequest.DiscardUnknown(m)
}
var xxx_messageInfo_LoginRequest proto.InternalMessageInfo
func (m *LoginRequest) GetEmail() string {
if m != nil {
return m.Email
}
return ""
}
func (m *LoginRequest) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
type LoginResponse struct {
// The JWT tag to be used to access chirpstack-application-server interfaces.
Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"`
Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
First bool `protobuf:"varint,3,opt,name=first,proto3" json:"first,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LoginResponse) Reset() { *m = LoginResponse{} }
func (m *LoginResponse) String() string { return proto.CompactTextString(m) }
func (*LoginResponse) ProtoMessage() {}
func (*LoginResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{10}
}
func (m *LoginResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LoginResponse.Unmarshal(m, b)
}
func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LoginResponse.Marshal(b, m, deterministic)
}
func (m *LoginResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_LoginResponse.Merge(m, src)
}
func (m *LoginResponse) XXX_Size() int {
return xxx_messageInfo_LoginResponse.Size(m)
}
func (m *LoginResponse) XXX_DiscardUnknown() {
xxx_messageInfo_LoginResponse.DiscardUnknown(m)
}
var xxx_messageInfo_LoginResponse proto.InternalMessageInfo
func (m *LoginResponse) GetJwt() string {
if m != nil {
return m.Jwt
}
return ""
}
func (m *LoginResponse) GetId() int64 {
if m != nil {
return m.Id
}
return 0
}
func (m *LoginResponse) GetFirst() bool {
if m != nil {
return m.First
}
return false
}
type QuitRequest struct {
Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *QuitRequest) Reset() { *m = QuitRequest{} }
func (m *QuitRequest) String() string { return proto.CompactTextString(m) }
func (*QuitRequest) ProtoMessage() {}
func (*QuitRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{11}
}
func (m *QuitRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QuitRequest.Unmarshal(m, b)
}
func (m *QuitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QuitRequest.Marshal(b, m, deterministic)
}
func (m *QuitRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_QuitRequest.Merge(m, src)
}
func (m *QuitRequest) XXX_Size() int {
return xxx_messageInfo_QuitRequest.Size(m)
}
func (m *QuitRequest) XXX_DiscardUnknown() {
xxx_messageInfo_QuitRequest.DiscardUnknown(m)
}
var xxx_messageInfo_QuitRequest proto.InternalMessageInfo
func (m *QuitRequest) GetJwt() string {
if m != nil {
return m.Jwt
}
return ""
}
type ProfileResponse struct {
// User object.
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
// Organizations to which the user is associated.
Organizations []*OrganizationLink `protobuf:"bytes,3,rep,name=organizations,proto3" json:"organizations,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProfileResponse) Reset() { *m = ProfileResponse{} }
func (m *ProfileResponse) String() string { return proto.CompactTextString(m) }
func (*ProfileResponse) ProtoMessage() {}
func (*ProfileResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{12}
}
func (m *ProfileResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProfileResponse.Unmarshal(m, b)
}
func (m *ProfileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProfileResponse.Marshal(b, m, deterministic)
}
func (m *ProfileResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProfileResponse.Merge(m, src)
}
func (m *ProfileResponse) XXX_Size() int {
return xxx_messageInfo_ProfileResponse.Size(m)
}
func (m *ProfileResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ProfileResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ProfileResponse proto.InternalMessageInfo
func (m *ProfileResponse) GetUser() *User {
if m != nil {
return m.User
}
return nil
}
func (m *ProfileResponse) GetOrganizations() []*OrganizationLink {
if m != nil {
return m.Organizations
}
return nil
}
type GlobalSearchRequest struct {
// Search query.
Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"`
// Max number of results to return.
Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
// Offset offset of the result-set (for pagination).
Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GlobalSearchRequest) Reset() { *m = GlobalSearchRequest{} }
func (m *GlobalSearchRequest) String() string { return proto.CompactTextString(m) }
func (*GlobalSearchRequest) ProtoMessage() {}
func (*GlobalSearchRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{13}
}
func (m *GlobalSearchRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GlobalSearchRequest.Unmarshal(m, b)
}
func (m *GlobalSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GlobalSearchRequest.Marshal(b, m, deterministic)
}
func (m *GlobalSearchRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GlobalSearchRequest.Merge(m, src)
}
func (m *GlobalSearchRequest) XXX_Size() int {
return xxx_messageInfo_GlobalSearchRequest.Size(m)
}
func (m *GlobalSearchRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GlobalSearchRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GlobalSearchRequest proto.InternalMessageInfo
func (m *GlobalSearchRequest) GetSearch() string {
if m != nil {
return m.Search
}
return ""
}
func (m *GlobalSearchRequest) GetLimit() int64 {
if m != nil {
return m.Limit
}
return 0
}
func (m *GlobalSearchRequest) GetOffset() int64 {
if m != nil {
return m.Offset
}
return 0
}
type GlobalSearchResponse struct {
Result []*GlobalSearchResult `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GlobalSearchResponse) Reset() { *m = GlobalSearchResponse{} }
func (m *GlobalSearchResponse) String() string { return proto.CompactTextString(m) }
func (*GlobalSearchResponse) ProtoMessage() {}
func (*GlobalSearchResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{14}
}
func (m *GlobalSearchResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GlobalSearchResponse.Unmarshal(m, b)
}
func (m *GlobalSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GlobalSearchResponse.Marshal(b, m, deterministic)
}
func (m *GlobalSearchResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GlobalSearchResponse.Merge(m, src)
}
func (m *GlobalSearchResponse) XXX_Size() int {
return xxx_messageInfo_GlobalSearchResponse.Size(m)
}
func (m *GlobalSearchResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GlobalSearchResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GlobalSearchResponse proto.InternalMessageInfo
func (m *GlobalSearchResponse) GetResult() []*GlobalSearchResult {
if m != nil {
return m.Result
}
return nil
}
type GlobalSearchResult struct {
// Record kind.
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
// Search score.
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
// Organization id.
OrganizationId int64 `protobuf:"varint,3,opt,name=organization_id,json=organizationID,proto3" json:"organization_id,omitempty"`
// Organization name.
OrganizationName string `protobuf:"bytes,4,opt,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"`
// Application id.
ApplicationId int64 `protobuf:"varint,5,opt,name=application_id,json=applicationID,proto3" json:"application_id,omitempty"`
// Application name.
ApplicationName string `protobuf:"bytes,6,opt,name=application_name,json=applicationName,proto3" json:"application_name,omitempty"`
// Device DevEUI (hex encoded).
DeviceDevEui string `protobuf:"bytes,7,opt,name=device_dev_eui,json=deviceDevEUI,proto3" json:"device_dev_eui,omitempty"`
// Device name.
DeviceName string `protobuf:"bytes,8,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"`
// Gateway MAC (hex encoded).
GatewayMac string `protobuf:"bytes,9,opt,name=gateway_mac,json=gatewayMAC,proto3" json:"gateway_mac,omitempty"`
// Gateway name.
GatewayName string `protobuf:"bytes,10,opt,name=gateway_name,json=gatewayName,proto3" json:"gateway_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GlobalSearchResult) Reset() { *m = GlobalSearchResult{} }
func (m *GlobalSearchResult) String() string { return proto.CompactTextString(m) }
func (*GlobalSearchResult) ProtoMessage() {}
func (*GlobalSearchResult) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{15}
}
func (m *GlobalSearchResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GlobalSearchResult.Unmarshal(m, b)
}
func (m *GlobalSearchResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GlobalSearchResult.Marshal(b, m, deterministic)
}
func (m *GlobalSearchResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_GlobalSearchResult.Merge(m, src)
}
func (m *GlobalSearchResult) XXX_Size() int {
return xxx_messageInfo_GlobalSearchResult.Size(m)
}
func (m *GlobalSearchResult) XXX_DiscardUnknown() {
xxx_messageInfo_GlobalSearchResult.DiscardUnknown(m)
}
var xxx_messageInfo_GlobalSearchResult proto.InternalMessageInfo
func (m *GlobalSearchResult) GetKind() string {
if m != nil {
return m.Kind
}
return ""
}
func (m *GlobalSearchResult) GetScore() float32 {
if m != nil {
return m.Score
}
return 0
}
func (m *GlobalSearchResult) GetOrganizationId() int64 {
if m != nil {
return m.OrganizationId
}
return 0
}
func (m *GlobalSearchResult) GetOrganizationName() string {
if m != nil {
return m.OrganizationName
}
return ""
}
func (m *GlobalSearchResult) GetApplicationId() int64 {
if m != nil {
return m.ApplicationId
}
return 0
}
func (m *GlobalSearchResult) GetApplicationName() string {
if m != nil {
return m.ApplicationName
}
return ""
}
func (m *GlobalSearchResult) GetDeviceDevEui() string {
if m != nil {
return m.DeviceDevEui
}
return ""
}
func (m *GlobalSearchResult) GetDeviceName() string {
if m != nil {
return m.DeviceName
}
return ""
}
func (m *GlobalSearchResult) GetGatewayMac() string {
if m != nil {
return m.GatewayMac
}
return ""
}
func (m *GlobalSearchResult) GetGatewayName() string {
if m != nil {
return m.GatewayName
}
return ""
}
type SettingsResponse struct {
// Branding settings.
Branding *Branding `protobuf:"bytes,2,opt,name=branding,proto3" json:"branding,omitempty"`
// OpenID Connect settings.
OpenidConnect *OpenIDConnect `protobuf:"bytes,3,opt,name=openid_connect,json=openidConnect,proto3" json:"openid_connect,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SettingsResponse) Reset() { *m = SettingsResponse{} }
func (m *SettingsResponse) String() string { return proto.CompactTextString(m) }
func (*SettingsResponse) ProtoMessage() {}
func (*SettingsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{16}
}
func (m *SettingsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SettingsResponse.Unmarshal(m, b)
}
func (m *SettingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SettingsResponse.Marshal(b, m, deterministic)
}
func (m *SettingsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SettingsResponse.Merge(m, src)
}
func (m *SettingsResponse) XXX_Size() int {
return xxx_messageInfo_SettingsResponse.Size(m)
}
func (m *SettingsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SettingsResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SettingsResponse proto.InternalMessageInfo
func (m *SettingsResponse) GetBranding() *Branding {
if m != nil {
return m.Branding
}
return nil
}
func (m *SettingsResponse) GetOpenidConnect() *OpenIDConnect {
if m != nil {
return m.OpenidConnect
}
return nil
}
type Branding struct {
// Registration html.
Registration string `protobuf:"bytes,1,opt,name=registration,proto3" json:"registration,omitempty"`
// Footer html.
Footer string `protobuf:"bytes,2,opt,name=footer,proto3" json:"footer,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Branding) Reset() { *m = Branding{} }
func (m *Branding) String() string { return proto.CompactTextString(m) }
func (*Branding) ProtoMessage() {}
func (*Branding) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{17}
}
func (m *Branding) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Branding.Unmarshal(m, b)
}
func (m *Branding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Branding.Marshal(b, m, deterministic)
}
func (m *Branding) XXX_Merge(src proto.Message) {
xxx_messageInfo_Branding.Merge(m, src)
}
func (m *Branding) XXX_Size() int {
return xxx_messageInfo_Branding.Size(m)
}
func (m *Branding) XXX_DiscardUnknown() {
xxx_messageInfo_Branding.DiscardUnknown(m)
}
var xxx_messageInfo_Branding proto.InternalMessageInfo
func (m *Branding) GetRegistration() string {
if m != nil {
return m.Registration
}
return ""
}
func (m *Branding) GetFooter() string {
if m != nil {
return m.Footer
}
return ""
}
type OpenIDConnect struct {
// Enable OpenID Connect authentication.
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
// Login url.
LoginUrl string `protobuf:"bytes,2,opt,name=login_url,json=loginURL,proto3" json:"login_url,omitempty"`
// Login label.
LoginLabel string `protobuf:"bytes,3,opt,name=login_label,json=loginLabel,proto3" json:"login_label,omitempty"`
// Logout url.
LogoutUrl string `protobuf:"bytes,4,opt,name=logout_url,json=logoutURL,proto3" json:"logout_url,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OpenIDConnect) Reset() { *m = OpenIDConnect{} }
func (m *OpenIDConnect) String() string { return proto.CompactTextString(m) }
func (*OpenIDConnect) ProtoMessage() {}
func (*OpenIDConnect) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{18}
}
func (m *OpenIDConnect) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OpenIDConnect.Unmarshal(m, b)
}
func (m *OpenIDConnect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OpenIDConnect.Marshal(b, m, deterministic)
}
func (m *OpenIDConnect) XXX_Merge(src proto.Message) {
xxx_messageInfo_OpenIDConnect.Merge(m, src)
}
func (m *OpenIDConnect) XXX_Size() int {
return xxx_messageInfo_OpenIDConnect.Size(m)
}
func (m *OpenIDConnect) XXX_DiscardUnknown() {
xxx_messageInfo_OpenIDConnect.DiscardUnknown(m)
}
var xxx_messageInfo_OpenIDConnect proto.InternalMessageInfo
func (m *OpenIDConnect) GetEnabled() bool {
if m != nil {
return m.Enabled
}
return false
}
func (m *OpenIDConnect) GetLoginUrl() string {
if m != nil {
return m.LoginUrl
}
return ""
}
func (m *OpenIDConnect) GetLoginLabel() string {
if m != nil {
return m.LoginLabel
}
return ""
}
func (m *OpenIDConnect) GetLogoutUrl() string {
if m != nil {
return m.LogoutUrl
}
return ""
}
type OpenIDConnectLoginRequest struct {
// OpenID Connect callback code.
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// OpenID Connect callback state.
State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OpenIDConnectLoginRequest) Reset() { *m = OpenIDConnectLoginRequest{} }
func (m *OpenIDConnectLoginRequest) String() string { return proto.CompactTextString(m) }
func (*OpenIDConnectLoginRequest) ProtoMessage() {}
func (*OpenIDConnectLoginRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{19}
}
func (m *OpenIDConnectLoginRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OpenIDConnectLoginRequest.Unmarshal(m, b)
}
func (m *OpenIDConnectLoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OpenIDConnectLoginRequest.Marshal(b, m, deterministic)
}
func (m *OpenIDConnectLoginRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_OpenIDConnectLoginRequest.Merge(m, src)
}
func (m *OpenIDConnectLoginRequest) XXX_Size() int {
return xxx_messageInfo_OpenIDConnectLoginRequest.Size(m)
}
func (m *OpenIDConnectLoginRequest) XXX_DiscardUnknown() {
xxx_messageInfo_OpenIDConnectLoginRequest.DiscardUnknown(m)
}
var xxx_messageInfo_OpenIDConnectLoginRequest proto.InternalMessageInfo
func (m *OpenIDConnectLoginRequest) GetCode() string {
if m != nil {
return m.Code
}
return ""
}
func (m *OpenIDConnectLoginRequest) GetState() string {
if m != nil {
return m.State
}
return ""
}
type OpenIDConnectLoginResponse struct {
// JWT token to use for authentication.
JwtToken string `protobuf:"bytes,1,opt,name=jwt_token,json=jwtToken,proto3" json:"jwt_token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OpenIDConnectLoginResponse) Reset() { *m = OpenIDConnectLoginResponse{} }
func (m *OpenIDConnectLoginResponse) String() string { return proto.CompactTextString(m) }
func (*OpenIDConnectLoginResponse) ProtoMessage() {}
func (*OpenIDConnectLoginResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{20}
}
func (m *OpenIDConnectLoginResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OpenIDConnectLoginResponse.Unmarshal(m, b)
}
func (m *OpenIDConnectLoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OpenIDConnectLoginResponse.Marshal(b, m, deterministic)
}
func (m *OpenIDConnectLoginResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_OpenIDConnectLoginResponse.Merge(m, src)
}
func (m *OpenIDConnectLoginResponse) XXX_Size() int {
return xxx_messageInfo_OpenIDConnectLoginResponse.Size(m)
}
func (m *OpenIDConnectLoginResponse) XXX_DiscardUnknown() {
xxx_messageInfo_OpenIDConnectLoginResponse.DiscardUnknown(m)
}
var xxx_messageInfo_OpenIDConnectLoginResponse proto.InternalMessageInfo
func (m *OpenIDConnectLoginResponse) GetJwtToken() string {
if m != nil {
return m.JwtToken
}
return ""
}
type GetDevicesSummaryRequest struct {
// Organization ID.
OrganizationId int64 `protobuf:"varint,1,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 *GetDevicesSummaryRequest) Reset() { *m = GetDevicesSummaryRequest{} }
func (m *GetDevicesSummaryRequest) String() string { return proto.CompactTextString(m) }
func (*GetDevicesSummaryRequest) ProtoMessage() {}
func (*GetDevicesSummaryRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{21}
}
func (m *GetDevicesSummaryRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetDevicesSummaryRequest.Unmarshal(m, b)
}
func (m *GetDevicesSummaryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetDevicesSummaryRequest.Marshal(b, m, deterministic)
}
func (m *GetDevicesSummaryRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetDevicesSummaryRequest.Merge(m, src)
}
func (m *GetDevicesSummaryRequest) XXX_Size() int {
return xxx_messageInfo_GetDevicesSummaryRequest.Size(m)
}
func (m *GetDevicesSummaryRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetDevicesSummaryRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetDevicesSummaryRequest proto.InternalMessageInfo
func (m *GetDevicesSummaryRequest) GetOrganizationId() int64 {
if m != nil {
return m.OrganizationId
}
return 0
}
type GetDevicesSummaryResponse struct {
// Active count.
ActiveCount uint32 `protobuf:"varint,1,opt,name=active_count,json=activeCount,proto3" json:"active_count,omitempty"`
// Inactive count.
InactiveCount uint32 `protobuf:"varint,2,opt,name=inactive_count,json=inactiveCount,proto3" json:"inactive_count,omitempty"`
// per data-rate count.
// Devices that have never been seen are excluded.
DrCount map[uint32]uint32 `protobuf:"bytes,3,rep,name=dr_count,json=drCount,proto3" json:"dr_count,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
// Never seen count.
NeverSeenCount uint32 `protobuf:"varint,4,opt,name=never_seen_count,json=neverSeenCount,proto3" json:"never_seen_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetDevicesSummaryResponse) Reset() { *m = GetDevicesSummaryResponse{} }
func (m *GetDevicesSummaryResponse) String() string { return proto.CompactTextString(m) }
func (*GetDevicesSummaryResponse) ProtoMessage() {}
func (*GetDevicesSummaryResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{22}
}
func (m *GetDevicesSummaryResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetDevicesSummaryResponse.Unmarshal(m, b)
}
func (m *GetDevicesSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetDevicesSummaryResponse.Marshal(b, m, deterministic)
}
func (m *GetDevicesSummaryResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetDevicesSummaryResponse.Merge(m, src)
}
func (m *GetDevicesSummaryResponse) XXX_Size() int {
return xxx_messageInfo_GetDevicesSummaryResponse.Size(m)
}
func (m *GetDevicesSummaryResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetDevicesSummaryResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetDevicesSummaryResponse proto.InternalMessageInfo
func (m *GetDevicesSummaryResponse) GetActiveCount() uint32 {
if m != nil {
return m.ActiveCount
}
return 0
}
func (m *GetDevicesSummaryResponse) GetInactiveCount() uint32 {
if m != nil {
return m.InactiveCount
}
return 0
}
func (m *GetDevicesSummaryResponse) GetDrCount() map[uint32]uint32 {
if m != nil {
return m.DrCount
}
return nil
}
func (m *GetDevicesSummaryResponse) GetNeverSeenCount() uint32 {
if m != nil {
return m.NeverSeenCount
}
return 0
}
type GetGatewaysSummaryRequest struct {
// Organization ID.
OrganizationId int64 `protobuf:"varint,1,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 *GetGatewaysSummaryRequest) Reset() { *m = GetGatewaysSummaryRequest{} }
func (m *GetGatewaysSummaryRequest) String() string { return proto.CompactTextString(m) }
func (*GetGatewaysSummaryRequest) ProtoMessage() {}
func (*GetGatewaysSummaryRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{23}
}
func (m *GetGatewaysSummaryRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetGatewaysSummaryRequest.Unmarshal(m, b)
}
func (m *GetGatewaysSummaryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetGatewaysSummaryRequest.Marshal(b, m, deterministic)
}
func (m *GetGatewaysSummaryRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetGatewaysSummaryRequest.Merge(m, src)
}
func (m *GetGatewaysSummaryRequest) XXX_Size() int {
return xxx_messageInfo_GetGatewaysSummaryRequest.Size(m)
}
func (m *GetGatewaysSummaryRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetGatewaysSummaryRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetGatewaysSummaryRequest proto.InternalMessageInfo
func (m *GetGatewaysSummaryRequest) GetOrganizationId() int64 {
if m != nil {
return m.OrganizationId
}
return 0
}
type GetGatewaysSummaryResponse struct {
// Active count.
ActiveCount uint32 `protobuf:"varint,1,opt,name=active_count,json=activeCount,proto3" json:"active_count,omitempty"`
// Inactive count.
InactiveCount uint32 `protobuf:"varint,2,opt,name=inactive_count,json=inactiveCount,proto3" json:"inactive_count,omitempty"`
// Never seen count.
NeverSeenCount uint32 `protobuf:"varint,3,opt,name=never_seen_count,json=neverSeenCount,proto3" json:"never_seen_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetGatewaysSummaryResponse) Reset() { *m = GetGatewaysSummaryResponse{} }
func (m *GetGatewaysSummaryResponse) String() string { return proto.CompactTextString(m) }
func (*GetGatewaysSummaryResponse) ProtoMessage() {}
func (*GetGatewaysSummaryResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_2d2de8ef40b5c6ca, []int{24}
}
func (m *GetGatewaysSummaryResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetGatewaysSummaryResponse.Unmarshal(m, b)
}
func (m *GetGatewaysSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetGatewaysSummaryResponse.Marshal(b, m, deterministic)
}
func (m *GetGatewaysSummaryResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetGatewaysSummaryResponse.Merge(m, src)
}
func (m *GetGatewaysSummaryResponse) XXX_Size() int {
return xxx_messageInfo_GetGatewaysSummaryResponse.Size(m)
}
func (m *GetGatewaysSummaryResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetGatewaysSummaryResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetGatewaysSummaryResponse proto.InternalMessageInfo
func (m *GetGatewaysSummaryResponse) GetActiveCount() uint32 {
if m != nil {
return m.ActiveCount
}
return 0
}
func (m *GetGatewaysSummaryResponse) GetInactiveCount() uint32 {
if m != nil {
return m.InactiveCount
}
return 0
}
func (m *GetGatewaysSummaryResponse) GetNeverSeenCount() uint32 {
if m != nil {
return m.NeverSeenCount
}
return 0
}
func init() {
proto.RegisterType((*ShellCommandRequest)(nil), "api.ShellCommandRequest")
proto.RegisterType((*ShellCommandResponse)(nil), "api.ShellCommandResponse")
proto.RegisterType((*APIKey)(nil), "api.APIKey")
proto.RegisterType((*CreateAPIKeyRequest)(nil), "api.CreateAPIKeyRequest")
proto.RegisterType((*CreateAPIKeyResponse)(nil), "api.CreateAPIKeyResponse")
proto.RegisterType((*DeleteAPIKeyRequest)(nil), "api.DeleteAPIKeyRequest")
proto.RegisterType((*ListAPIKeysRequest)(nil), "api.ListAPIKeysRequest")
proto.RegisterType((*ListAPIKeysResponse)(nil), "api.ListAPIKeysResponse")
proto.RegisterType((*OrganizationLink)(nil), "api.OrganizationLink")
proto.RegisterType((*LoginRequest)(nil), "api.LoginRequest")
proto.RegisterType((*LoginResponse)(nil), "api.LoginResponse")
proto.RegisterType((*QuitRequest)(nil), "api.QuitRequest")
proto.RegisterType((*ProfileResponse)(nil), "api.ProfileResponse")
proto.RegisterType((*GlobalSearchRequest)(nil), "api.GlobalSearchRequest")
proto.RegisterType((*GlobalSearchResponse)(nil), "api.GlobalSearchResponse")
proto.RegisterType((*GlobalSearchResult)(nil), "api.GlobalSearchResult")
proto.RegisterType((*SettingsResponse)(nil), "api.SettingsResponse")
proto.RegisterType((*Branding)(nil), "api.Branding")
proto.RegisterType((*OpenIDConnect)(nil), "api.OpenIDConnect")
proto.RegisterType((*OpenIDConnectLoginRequest)(nil), "api.OpenIDConnectLoginRequest")
proto.RegisterType((*OpenIDConnectLoginResponse)(nil), "api.OpenIDConnectLoginResponse")
proto.RegisterType((*GetDevicesSummaryRequest)(nil), "api.GetDevicesSummaryRequest")
proto.RegisterType((*GetDevicesSummaryResponse)(nil), "api.GetDevicesSummaryResponse")
proto.RegisterMapType((map[uint32]uint32)(nil), "api.GetDevicesSummaryResponse.DrCountEntry")
proto.RegisterType((*GetGatewaysSummaryRequest)(nil), "api.GetGatewaysSummaryRequest")
proto.RegisterType((*GetGatewaysSummaryResponse)(nil), "api.GetGatewaysSummaryResponse")
}
func init() {
proto.RegisterFile("as/external/api/internal.proto", fileDescriptor_2d2de8ef40b5c6ca)
}
var fileDescriptor_2d2de8ef40b5c6ca = []byte{
// 1583 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcd, 0x6e, 0xdb, 0xc6,
0x16, 0x86, 0x24, 0xff, 0x48, 0x47, 0x3f, 0x56, 0xc6, 0x8e, 0x23, 0xcb, 0xf1, 0x1f, 0x13, 0x27,
0x4e, 0x82, 0x48, 0x80, 0x2f, 0x2e, 0x70, 0xe3, 0x6c, 0xae, 0x63, 0x39, 0x86, 0x11, 0xdf, 0x24,
0x97, 0x8e, 0x0b, 0x34, 0x5d, 0xa8, 0x63, 0x72, 0xa4, 0x4c, 0x4c, 0x72, 0x18, 0xce, 0xc8, 0x8e,
0x5a, 0x64, 0xd3, 0x45, 0xd7, 0x05, 0xb2, 0xe8, 0x53, 0xf4, 0x49, 0xba, 0x2a, 0xfa, 0x0a, 0x7d,
0x81, 0xbe, 0x41, 0x31, 0x3f, 0xb4, 0x49, 0x89, 0x6a, 0x82, 0xa2, 0xe8, 0x8e, 0xe7, 0xcc, 0x37,
0xdf, 0x39, 0x73, 0xe6, 0xfc, 0x8c, 0x04, 0xab, 0x98, 0xb7, 0xc9, 0x7b, 0x41, 0xa2, 0x00, 0x7b,
0x6d, 0x1c, 0xd2, 0x36, 0x0d, 0xb4, 0xd0, 0x0a, 0x23, 0x26, 0x18, 0x2a, 0xe0, 0x90, 0x36, 0x6f,
0xf6, 0x19, 0xeb, 0x7b, 0x44, 0xad, 0xe3, 0x20,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0x35, 0x81, 0x86, 0x70, 0x6d, 0xac, 0xcd, 0xa1, 0x95,
0x49, 0xed, 0x4f, 0x9b, 0x5d, 0xfd, 0xf3, 0xee, 0x68, 0x6d, 0x2a, 0xab, 0x6b, 0x68, 0x25, 0x6d,
0x55, 0xbf, 0x17, 0x78, 0x9b, 0x1b, 0x2b, 0x1f, 0x00, 0x8d, 0x77, 0x20, 0x74, 0x49, 0x9e, 0xdd,
0xe1, 0xcc, 0x99, 0x27, 0xb7, 0x2e, 0xeb, 0x8e, 0xb2, 0xbe, 0x8e, 0x56, 0xd3, 0xd6, 0xcd, 0x53,
0xe3, 0xca, 0xbc, 0x03, 0x95, 0xe4, 0x4f, 0x6e, 0x93, 0x96, 0x19, 0x3f, 0xd7, 0x4d, 0xfa, 0x67,
0xfd, 0x3e, 0x9f, 0xd4, 0x6f, 0xb8, 0xc4, 0xee, 0xe4, 0xee, 0x3f, 0x79, 0x0d, 0x1b, 0x94, 0xb5,
0x9c, 0x37, 0x34, 0x0a, 0xb9, 0xc0, 0xce, 0x99, 0x62, 0xc2, 0xbc, 0x15, 0xff, 0x61, 0x20, 0xe5,
0xd7, 0xff, 0xee, 0x53, 0x41, 0x48, 0xcb, 0x61, 0x7e, 0xdb, 0xed, 0x45, 0xec, 0x94, 0x09, 0xc7,
0x6d, 0x5f, 0xed, 0x79, 0x28, 0xa9, 0xfb, 0xac, 0x3d, 0xf2, 0x3f, 0xc3, 0xe9, 0x8c, 0x4a, 0xbd,
0x7f, 0xfd, 0x11, 0x00, 0x00, 0xff, 0xff, 0xde, 0xc7, 0x80, 0x53, 0x02, 0x11, 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
// InternalServiceClient is the client API for InternalService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type InternalServiceClient interface {
// Log in a user
Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
Quit(ctx context.Context, in *QuitRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Get the current user's profile
Profile(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ProfileResponse, error)
// Perform a global search.
GlobalSearch(ctx context.Context, in *GlobalSearchRequest, opts ...grpc.CallOption) (*GlobalSearchResponse, error)
// CreateAPIKey creates the given API key.
CreateAPIKey(ctx context.Context, in *CreateAPIKeyRequest, opts ...grpc.CallOption) (*CreateAPIKeyResponse, error)
// DeleteAPIKey deletes the API key.
DeleteAPIKey(ctx context.Context, in *DeleteAPIKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// ListAPIKeys lists the available API keys.
ListAPIKeys(ctx context.Context, in *ListAPIKeysRequest, opts ...grpc.CallOption) (*ListAPIKeysResponse, error)
// Get the global settings.
Settings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SettingsResponse, error)
// OpenID Connect login.
OpenIDConnectLogin(ctx context.Context, in *OpenIDConnectLoginRequest, opts ...grpc.CallOption) (*OpenIDConnectLoginResponse, error)
// GetDevicesSummary returns an aggregated summary of the devices.
GetDevicesSummary(ctx context.Context, in *GetDevicesSummaryRequest, opts ...grpc.CallOption) (*GetDevicesSummaryResponse, error)
// GetGatewaysSummary returns an aggregated summary of the gateways.
GetGatewaysSummary(ctx context.Context, in *GetGatewaysSummaryRequest, opts ...grpc.CallOption) (*GetGatewaysSummaryResponse, error)
ShellCommand(ctx context.Context, in *ShellCommandRequest, opts ...grpc.CallOption) (*ShellCommandResponse, error)
}
type internalServiceClient struct {
cc grpc.ClientConnInterface
}
func NewInternalServiceClient(cc grpc.ClientConnInterface) InternalServiceClient {
return &internalServiceClient{cc}
}
func (c *internalServiceClient) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) {
out := new(LoginResponse)
err := c.cc.Invoke(ctx, "/api.InternalService/Login", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *internalServiceClient) Quit(ctx context.Context, in *QuitRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.InternalService/Quit", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *internalServiceClient) Profile(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ProfileResponse, error) {
out := new(ProfileResponse)
err := c.cc.Invoke(ctx, "/api.InternalService/Profile", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *internalServiceClient) GlobalSearch(ctx context.Context, in *GlobalSearchRequest, opts ...grpc.CallOption) (*GlobalSearchResponse, error) {
out := new(GlobalSearchResponse)
err := c.cc.Invoke(ctx, "/api.InternalService/GlobalSearch", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *internalServiceClient) CreateAPIKey(ctx context.Context, in *CreateAPIKeyRequest, opts ...grpc.CallOption) (*CreateAPIKeyResponse, error) {
out := new(CreateAPIKeyResponse)
err := c.cc.Invoke(ctx, "/api.InternalService/CreateAPIKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *internalServiceClient) DeleteAPIKey(ctx context.Context, in *DeleteAPIKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.InternalService/DeleteAPIKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *internalServiceClient) ListAPIKeys(ctx context.Context, in *ListAPIKeysRequest, opts ...grpc.CallOption) (*ListAPIKeysResponse, error) {
out := new(ListAPIKeysResponse)
err := c.cc.Invoke(ctx, "/api.InternalService/ListAPIKeys", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *internalServiceClient) Settings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SettingsResponse, error) {
out := new(SettingsResponse)
err := c.cc.Invoke(ctx, "/api.InternalService/Settings", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *internalServiceClient) OpenIDConnectLogin(ctx context.Context, in *OpenIDConnectLoginRequest, opts ...grpc.CallOption) (*OpenIDConnectLoginResponse, error) {
out := new(OpenIDConnectLoginResponse)
err := c.cc.Invoke(ctx, "/api.InternalService/OpenIDConnectLogin", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *internalServiceClient) GetDevicesSummary(ctx context.Context, in *GetDevicesSummaryRequest, opts ...grpc.CallOption) (*GetDevicesSummaryResponse, error) {
out := new(GetDevicesSummaryResponse)
err := c.cc.Invoke(ctx, "/api.InternalService/GetDevicesSummary", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *internalServiceClient) GetGatewaysSummary(ctx context.Context, in *GetGatewaysSummaryRequest, opts ...grpc.CallOption) (*GetGatewaysSummaryResponse, error) {
out := new(GetGatewaysSummaryResponse)
err := c.cc.Invoke(ctx, "/api.InternalService/GetGatewaysSummary", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *internalServiceClient) ShellCommand(ctx context.Context, in *ShellCommandRequest, opts ...grpc.CallOption) (*ShellCommandResponse, error) {
out := new(ShellCommandResponse)
err := c.cc.Invoke(ctx, "/api.InternalService/ShellCommand", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// InternalServiceServer is the server API for InternalService service.
type InternalServiceServer interface {
// Log in a user
Login(context.Context, *LoginRequest) (*LoginResponse, error)
Quit(context.Context, *QuitRequest) (*emptypb.Empty, error)
// Get the current user's profile
Profile(context.Context, *emptypb.Empty) (*ProfileResponse, error)
// Perform a global search.
GlobalSearch(context.Context, *GlobalSearchRequest) (*GlobalSearchResponse, error)
// CreateAPIKey creates the given API key.
CreateAPIKey(context.Context, *CreateAPIKeyRequest) (*CreateAPIKeyResponse, error)
// DeleteAPIKey deletes the API key.
DeleteAPIKey(context.Context, *DeleteAPIKeyRequest) (*emptypb.Empty, error)
// ListAPIKeys lists the available API keys.
ListAPIKeys(context.Context, *ListAPIKeysRequest) (*ListAPIKeysResponse, error)
// Get the global settings.
Settings(context.Context, *emptypb.Empty) (*SettingsResponse, error)
// OpenID Connect login.
OpenIDConnectLogin(context.Context, *OpenIDConnectLoginRequest) (*OpenIDConnectLoginResponse, error)
// GetDevicesSummary returns an aggregated summary of the devices.
GetDevicesSummary(context.Context, *GetDevicesSummaryRequest) (*GetDevicesSummaryResponse, error)
// GetGatewaysSummary returns an aggregated summary of the gateways.
GetGatewaysSummary(context.Context, *GetGatewaysSummaryRequest) (*GetGatewaysSummaryResponse, error)
ShellCommand(context.Context, *ShellCommandRequest) (*ShellCommandResponse, error)
}
// UnimplementedInternalServiceServer can be embedded to have forward compatible implementations.
type UnimplementedInternalServiceServer struct {
}
func (*UnimplementedInternalServiceServer) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
}
func (*UnimplementedInternalServiceServer) Quit(ctx context.Context, req *QuitRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method Quit not implemented")
}
func (*UnimplementedInternalServiceServer) Profile(ctx context.Context, req *emptypb.Empty) (*ProfileResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Profile not implemented")
}
func (*UnimplementedInternalServiceServer) GlobalSearch(ctx context.Context, req *GlobalSearchRequest) (*GlobalSearchResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GlobalSearch not implemented")
}
func (*UnimplementedInternalServiceServer) CreateAPIKey(ctx context.Context, req *CreateAPIKeyRequest) (*CreateAPIKeyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateAPIKey not implemented")
}
func (*UnimplementedInternalServiceServer) DeleteAPIKey(ctx context.Context, req *DeleteAPIKeyRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteAPIKey not implemented")
}
func (*UnimplementedInternalServiceServer) ListAPIKeys(ctx context.Context, req *ListAPIKeysRequest) (*ListAPIKeysResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAPIKeys not implemented")
}
func (*UnimplementedInternalServiceServer) Settings(ctx context.Context, req *emptypb.Empty) (*SettingsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Settings not implemented")
}
func (*UnimplementedInternalServiceServer) OpenIDConnectLogin(ctx context.Context, req *OpenIDConnectLoginRequest) (*OpenIDConnectLoginResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method OpenIDConnectLogin not implemented")
}
func (*UnimplementedInternalServiceServer) GetDevicesSummary(ctx context.Context, req *GetDevicesSummaryRequest) (*GetDevicesSummaryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetDevicesSummary not implemented")
}
func (*UnimplementedInternalServiceServer) GetGatewaysSummary(ctx context.Context, req *GetGatewaysSummaryRequest) (*GetGatewaysSummaryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetGatewaysSummary not implemented")
}
func (*UnimplementedInternalServiceServer) ShellCommand(ctx context.Context, req *ShellCommandRequest) (*ShellCommandResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ShellCommand not implemented")
}
func RegisterInternalServiceServer(s *grpc.Server, srv InternalServiceServer) {
s.RegisterService(&_InternalService_serviceDesc, srv)
}
func _InternalService_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LoginRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalServiceServer).Login(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.InternalService/Login",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalServiceServer).Login(ctx, req.(*LoginRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InternalService_Quit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QuitRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalServiceServer).Quit(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.InternalService/Quit",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalServiceServer).Quit(ctx, req.(*QuitRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InternalService_Profile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalServiceServer).Profile(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.InternalService/Profile",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalServiceServer).Profile(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _InternalService_GlobalSearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GlobalSearchRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalServiceServer).GlobalSearch(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.InternalService/GlobalSearch",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalServiceServer).GlobalSearch(ctx, req.(*GlobalSearchRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InternalService_CreateAPIKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateAPIKeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalServiceServer).CreateAPIKey(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.InternalService/CreateAPIKey",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalServiceServer).CreateAPIKey(ctx, req.(*CreateAPIKeyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InternalService_DeleteAPIKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteAPIKeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalServiceServer).DeleteAPIKey(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.InternalService/DeleteAPIKey",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalServiceServer).DeleteAPIKey(ctx, req.(*DeleteAPIKeyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InternalService_ListAPIKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListAPIKeysRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalServiceServer).ListAPIKeys(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.InternalService/ListAPIKeys",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalServiceServer).ListAPIKeys(ctx, req.(*ListAPIKeysRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InternalService_Settings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalServiceServer).Settings(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.InternalService/Settings",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalServiceServer).Settings(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _InternalService_OpenIDConnectLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(OpenIDConnectLoginRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalServiceServer).OpenIDConnectLogin(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.InternalService/OpenIDConnectLogin",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalServiceServer).OpenIDConnectLogin(ctx, req.(*OpenIDConnectLoginRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InternalService_GetDevicesSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetDevicesSummaryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalServiceServer).GetDevicesSummary(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.InternalService/GetDevicesSummary",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalServiceServer).GetDevicesSummary(ctx, req.(*GetDevicesSummaryRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InternalService_GetGatewaysSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetGatewaysSummaryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalServiceServer).GetGatewaysSummary(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.InternalService/GetGatewaysSummary",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalServiceServer).GetGatewaysSummary(ctx, req.(*GetGatewaysSummaryRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InternalService_ShellCommand_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ShellCommandRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalServiceServer).ShellCommand(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.InternalService/ShellCommand",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalServiceServer).ShellCommand(ctx, req.(*ShellCommandRequest))
}
return interceptor(ctx, in, info, handler)
}
var _InternalService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.InternalService",
HandlerType: (*InternalServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Login",
Handler: _InternalService_Login_Handler,
},
{
MethodName: "Quit",
Handler: _InternalService_Quit_Handler,
},
{
MethodName: "Profile",
Handler: _InternalService_Profile_Handler,
},
{
MethodName: "GlobalSearch",
Handler: _InternalService_GlobalSearch_Handler,
},
{
MethodName: "CreateAPIKey",
Handler: _InternalService_CreateAPIKey_Handler,
},
{
MethodName: "DeleteAPIKey",
Handler: _InternalService_DeleteAPIKey_Handler,
},
{
MethodName: "ListAPIKeys",
Handler: _InternalService_ListAPIKeys_Handler,
},
{
MethodName: "Settings",
Handler: _InternalService_Settings_Handler,
},
{
MethodName: "OpenIDConnectLogin",
Handler: _InternalService_OpenIDConnectLogin_Handler,
},
{
MethodName: "GetDevicesSummary",
Handler: _InternalService_GetDevicesSummary_Handler,
},
{
MethodName: "GetGatewaysSummary",
Handler: _InternalService_GetGatewaysSummary_Handler,
},
{
MethodName: "ShellCommand",
Handler: _InternalService_ShellCommand_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "as/external/api/internal.proto",
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dfrobotcd/chirpstack-api.git
git@gitee.com:dfrobotcd/chirpstack-api.git
dfrobotcd
chirpstack-api
chirpstack-api
d91e8b8d685d

搜索帮助