mirror of
https://github.com/absmach/magistrala.git
synced 2026-06-23 04:10:28 +00:00
61d0427898
Signed-off-by: dusan <borovcanindusan1@gmail.com>
692 lines
20 KiB
Go
692 lines
20 KiB
Go
// Copyright (c) Abstract Machines
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v6.33.0
|
|
// source: common/v1/common.proto
|
|
|
|
package v1
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type RetrieveEntitiesReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RetrieveEntitiesReq) Reset() {
|
|
*x = RetrieveEntitiesReq{}
|
|
mi := &file_common_v1_common_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RetrieveEntitiesReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RetrieveEntitiesReq) ProtoMessage() {}
|
|
|
|
func (x *RetrieveEntitiesReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_v1_common_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RetrieveEntitiesReq.ProtoReflect.Descriptor instead.
|
|
func (*RetrieveEntitiesReq) Descriptor() ([]byte, []int) {
|
|
return file_common_v1_common_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *RetrieveEntitiesReq) GetIds() []string {
|
|
if x != nil {
|
|
return x.Ids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RetrieveEntitiesRes struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
|
Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
Entities []*EntityBasic `protobuf:"bytes,4,rep,name=entities,proto3" json:"entities,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RetrieveEntitiesRes) Reset() {
|
|
*x = RetrieveEntitiesRes{}
|
|
mi := &file_common_v1_common_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RetrieveEntitiesRes) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RetrieveEntitiesRes) ProtoMessage() {}
|
|
|
|
func (x *RetrieveEntitiesRes) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_v1_common_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RetrieveEntitiesRes.ProtoReflect.Descriptor instead.
|
|
func (*RetrieveEntitiesRes) Descriptor() ([]byte, []int) {
|
|
return file_common_v1_common_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *RetrieveEntitiesRes) GetTotal() uint64 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RetrieveEntitiesRes) GetLimit() uint64 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RetrieveEntitiesRes) GetOffset() uint64 {
|
|
if x != nil {
|
|
return x.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RetrieveEntitiesRes) GetEntities() []*EntityBasic {
|
|
if x != nil {
|
|
return x.Entities
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RetrieveEntityReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RetrieveEntityReq) Reset() {
|
|
*x = RetrieveEntityReq{}
|
|
mi := &file_common_v1_common_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RetrieveEntityReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RetrieveEntityReq) ProtoMessage() {}
|
|
|
|
func (x *RetrieveEntityReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_v1_common_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RetrieveEntityReq.ProtoReflect.Descriptor instead.
|
|
func (*RetrieveEntityReq) Descriptor() ([]byte, []int) {
|
|
return file_common_v1_common_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *RetrieveEntityReq) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RetrieveEntityRes struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Entity *EntityBasic `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RetrieveEntityRes) Reset() {
|
|
*x = RetrieveEntityRes{}
|
|
mi := &file_common_v1_common_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RetrieveEntityRes) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RetrieveEntityRes) ProtoMessage() {}
|
|
|
|
func (x *RetrieveEntityRes) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_v1_common_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RetrieveEntityRes.ProtoReflect.Descriptor instead.
|
|
func (*RetrieveEntityRes) Descriptor() ([]byte, []int) {
|
|
return file_common_v1_common_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *RetrieveEntityRes) GetEntity() *EntityBasic {
|
|
if x != nil {
|
|
return x.Entity
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type EntityBasic struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
|
|
ParentGroupId string `protobuf:"bytes,3,opt,name=parent_group_id,json=parentGroupId,proto3" json:"parent_group_id,omitempty"`
|
|
Status uint32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EntityBasic) Reset() {
|
|
*x = EntityBasic{}
|
|
mi := &file_common_v1_common_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EntityBasic) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EntityBasic) ProtoMessage() {}
|
|
|
|
func (x *EntityBasic) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_v1_common_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EntityBasic.ProtoReflect.Descriptor instead.
|
|
func (*EntityBasic) Descriptor() ([]byte, []int) {
|
|
return file_common_v1_common_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *EntityBasic) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EntityBasic) GetDomainId() string {
|
|
if x != nil {
|
|
return x.DomainId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EntityBasic) GetParentGroupId() string {
|
|
if x != nil {
|
|
return x.ParentGroupId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EntityBasic) GetStatus() uint32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AddConnectionsReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Connections []*Connection `protobuf:"bytes,1,rep,name=connections,proto3" json:"connections,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AddConnectionsReq) Reset() {
|
|
*x = AddConnectionsReq{}
|
|
mi := &file_common_v1_common_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AddConnectionsReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AddConnectionsReq) ProtoMessage() {}
|
|
|
|
func (x *AddConnectionsReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_v1_common_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AddConnectionsReq.ProtoReflect.Descriptor instead.
|
|
func (*AddConnectionsReq) Descriptor() ([]byte, []int) {
|
|
return file_common_v1_common_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *AddConnectionsReq) GetConnections() []*Connection {
|
|
if x != nil {
|
|
return x.Connections
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AddConnectionsRes struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AddConnectionsRes) Reset() {
|
|
*x = AddConnectionsRes{}
|
|
mi := &file_common_v1_common_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AddConnectionsRes) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AddConnectionsRes) ProtoMessage() {}
|
|
|
|
func (x *AddConnectionsRes) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_v1_common_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AddConnectionsRes.ProtoReflect.Descriptor instead.
|
|
func (*AddConnectionsRes) Descriptor() ([]byte, []int) {
|
|
return file_common_v1_common_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *AddConnectionsRes) GetOk() bool {
|
|
if x != nil {
|
|
return x.Ok
|
|
}
|
|
return false
|
|
}
|
|
|
|
type RemoveConnectionsReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Connections []*Connection `protobuf:"bytes,1,rep,name=connections,proto3" json:"connections,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RemoveConnectionsReq) Reset() {
|
|
*x = RemoveConnectionsReq{}
|
|
mi := &file_common_v1_common_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RemoveConnectionsReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RemoveConnectionsReq) ProtoMessage() {}
|
|
|
|
func (x *RemoveConnectionsReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_v1_common_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RemoveConnectionsReq.ProtoReflect.Descriptor instead.
|
|
func (*RemoveConnectionsReq) Descriptor() ([]byte, []int) {
|
|
return file_common_v1_common_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *RemoveConnectionsReq) GetConnections() []*Connection {
|
|
if x != nil {
|
|
return x.Connections
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RemoveConnectionsRes struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RemoveConnectionsRes) Reset() {
|
|
*x = RemoveConnectionsRes{}
|
|
mi := &file_common_v1_common_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RemoveConnectionsRes) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RemoveConnectionsRes) ProtoMessage() {}
|
|
|
|
func (x *RemoveConnectionsRes) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_v1_common_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RemoveConnectionsRes.ProtoReflect.Descriptor instead.
|
|
func (*RemoveConnectionsRes) Descriptor() ([]byte, []int) {
|
|
return file_common_v1_common_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *RemoveConnectionsRes) GetOk() bool {
|
|
if x != nil {
|
|
return x.Ok
|
|
}
|
|
return false
|
|
}
|
|
|
|
type Connection struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
|
|
ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
|
|
DomainId string `protobuf:"bytes,3,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
|
|
Type uint32 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Connection) Reset() {
|
|
*x = Connection{}
|
|
mi := &file_common_v1_common_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Connection) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Connection) ProtoMessage() {}
|
|
|
|
func (x *Connection) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_v1_common_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Connection.ProtoReflect.Descriptor instead.
|
|
func (*Connection) Descriptor() ([]byte, []int) {
|
|
return file_common_v1_common_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *Connection) GetClientId() string {
|
|
if x != nil {
|
|
return x.ClientId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Connection) GetChannelId() string {
|
|
if x != nil {
|
|
return x.ChannelId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Connection) GetDomainId() string {
|
|
if x != nil {
|
|
return x.DomainId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Connection) GetType() uint32 {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RetrieveIDByRouteReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Route string `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"`
|
|
DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RetrieveIDByRouteReq) Reset() {
|
|
*x = RetrieveIDByRouteReq{}
|
|
mi := &file_common_v1_common_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RetrieveIDByRouteReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RetrieveIDByRouteReq) ProtoMessage() {}
|
|
|
|
func (x *RetrieveIDByRouteReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_common_v1_common_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RetrieveIDByRouteReq.ProtoReflect.Descriptor instead.
|
|
func (*RetrieveIDByRouteReq) Descriptor() ([]byte, []int) {
|
|
return file_common_v1_common_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *RetrieveIDByRouteReq) GetRoute() string {
|
|
if x != nil {
|
|
return x.Route
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RetrieveIDByRouteReq) GetDomainId() string {
|
|
if x != nil {
|
|
return x.DomainId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_common_v1_common_proto protoreflect.FileDescriptor
|
|
|
|
const file_common_v1_common_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x16common/v1/common.proto\x12\tcommon.v1\"'\n" +
|
|
"\x13RetrieveEntitiesReq\x12\x10\n" +
|
|
"\x03ids\x18\x01 \x03(\tR\x03ids\"\x8d\x01\n" +
|
|
"\x13RetrieveEntitiesRes\x12\x14\n" +
|
|
"\x05total\x18\x01 \x01(\x04R\x05total\x12\x14\n" +
|
|
"\x05limit\x18\x02 \x01(\x04R\x05limit\x12\x16\n" +
|
|
"\x06offset\x18\x03 \x01(\x04R\x06offset\x122\n" +
|
|
"\bentities\x18\x04 \x03(\v2\x16.common.v1.EntityBasicR\bentities\"#\n" +
|
|
"\x11RetrieveEntityReq\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"C\n" +
|
|
"\x11RetrieveEntityRes\x12.\n" +
|
|
"\x06entity\x18\x01 \x01(\v2\x16.common.v1.EntityBasicR\x06entity\"z\n" +
|
|
"\vEntityBasic\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
|
|
"\tdomain_id\x18\x02 \x01(\tR\bdomainId\x12&\n" +
|
|
"\x0fparent_group_id\x18\x03 \x01(\tR\rparentGroupId\x12\x16\n" +
|
|
"\x06status\x18\x04 \x01(\rR\x06status\"L\n" +
|
|
"\x11AddConnectionsReq\x127\n" +
|
|
"\vconnections\x18\x01 \x03(\v2\x15.common.v1.ConnectionR\vconnections\"#\n" +
|
|
"\x11AddConnectionsRes\x12\x0e\n" +
|
|
"\x02ok\x18\x01 \x01(\bR\x02ok\"O\n" +
|
|
"\x14RemoveConnectionsReq\x127\n" +
|
|
"\vconnections\x18\x01 \x03(\v2\x15.common.v1.ConnectionR\vconnections\"&\n" +
|
|
"\x14RemoveConnectionsRes\x12\x0e\n" +
|
|
"\x02ok\x18\x01 \x01(\bR\x02ok\"y\n" +
|
|
"\n" +
|
|
"Connection\x12\x1b\n" +
|
|
"\tclient_id\x18\x01 \x01(\tR\bclientId\x12\x1d\n" +
|
|
"\n" +
|
|
"channel_id\x18\x02 \x01(\tR\tchannelId\x12\x1b\n" +
|
|
"\tdomain_id\x18\x03 \x01(\tR\bdomainId\x12\x12\n" +
|
|
"\x04type\x18\x04 \x01(\rR\x04type\"I\n" +
|
|
"\x14RetrieveIDByRouteReq\x12\x14\n" +
|
|
"\x05route\x18\x01 \x01(\tR\x05route\x12\x1b\n" +
|
|
"\tdomain_id\x18\x02 \x01(\tR\bdomainIdB2Z0github.com/absmach/magistrala/api/grpc/common/v1b\x06proto3"
|
|
|
|
var (
|
|
file_common_v1_common_proto_rawDescOnce sync.Once
|
|
file_common_v1_common_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_common_v1_common_proto_rawDescGZIP() []byte {
|
|
file_common_v1_common_proto_rawDescOnce.Do(func() {
|
|
file_common_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_common_v1_common_proto_rawDesc), len(file_common_v1_common_proto_rawDesc)))
|
|
})
|
|
return file_common_v1_common_proto_rawDescData
|
|
}
|
|
|
|
var file_common_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
|
var file_common_v1_common_proto_goTypes = []any{
|
|
(*RetrieveEntitiesReq)(nil), // 0: common.v1.RetrieveEntitiesReq
|
|
(*RetrieveEntitiesRes)(nil), // 1: common.v1.RetrieveEntitiesRes
|
|
(*RetrieveEntityReq)(nil), // 2: common.v1.RetrieveEntityReq
|
|
(*RetrieveEntityRes)(nil), // 3: common.v1.RetrieveEntityRes
|
|
(*EntityBasic)(nil), // 4: common.v1.EntityBasic
|
|
(*AddConnectionsReq)(nil), // 5: common.v1.AddConnectionsReq
|
|
(*AddConnectionsRes)(nil), // 6: common.v1.AddConnectionsRes
|
|
(*RemoveConnectionsReq)(nil), // 7: common.v1.RemoveConnectionsReq
|
|
(*RemoveConnectionsRes)(nil), // 8: common.v1.RemoveConnectionsRes
|
|
(*Connection)(nil), // 9: common.v1.Connection
|
|
(*RetrieveIDByRouteReq)(nil), // 10: common.v1.RetrieveIDByRouteReq
|
|
}
|
|
var file_common_v1_common_proto_depIdxs = []int32{
|
|
4, // 0: common.v1.RetrieveEntitiesRes.entities:type_name -> common.v1.EntityBasic
|
|
4, // 1: common.v1.RetrieveEntityRes.entity:type_name -> common.v1.EntityBasic
|
|
9, // 2: common.v1.AddConnectionsReq.connections:type_name -> common.v1.Connection
|
|
9, // 3: common.v1.RemoveConnectionsReq.connections:type_name -> common.v1.Connection
|
|
4, // [4:4] is the sub-list for method output_type
|
|
4, // [4:4] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_common_v1_common_proto_init() }
|
|
func file_common_v1_common_proto_init() {
|
|
if File_common_v1_common_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_v1_common_proto_rawDesc), len(file_common_v1_common_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 11,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_common_v1_common_proto_goTypes,
|
|
DependencyIndexes: file_common_v1_common_proto_depIdxs,
|
|
MessageInfos: file_common_v1_common_proto_msgTypes,
|
|
}.Build()
|
|
File_common_v1_common_proto = out.File
|
|
file_common_v1_common_proto_goTypes = nil
|
|
file_common_v1_common_proto_depIdxs = nil
|
|
}
|