// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v6.30.2
// source: api/gateway.proto

package api

import (
	common "github.com/chirpstack/chirpstack/api/go/v4/common"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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 GatewayState int32

const (
	// The gateway has never sent any stats.
	GatewayState_NEVER_SEEN GatewayState = 0
	// Online.
	GatewayState_ONLINE GatewayState = 1
	// Offline.
	GatewayState_OFFLINE GatewayState = 2
)

// Enum value maps for GatewayState.
var (
	GatewayState_name = map[int32]string{
		0: "NEVER_SEEN",
		1: "ONLINE",
		2: "OFFLINE",
	}
	GatewayState_value = map[string]int32{
		"NEVER_SEEN": 0,
		"ONLINE":     1,
		"OFFLINE":    2,
	}
)

func (x GatewayState) Enum() *GatewayState {
	p := new(GatewayState)
	*p = x
	return p
}

func (x GatewayState) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (GatewayState) Descriptor() protoreflect.EnumDescriptor {
	return file_api_gateway_proto_enumTypes[0].Descriptor()
}

func (GatewayState) Type() protoreflect.EnumType {
	return &file_api_gateway_proto_enumTypes[0]
}

func (x GatewayState) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use GatewayState.Descriptor instead.
func (GatewayState) EnumDescriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{0}
}

type ListGatewaysRequest_OrderBy int32

const (
	ListGatewaysRequest_NAME         ListGatewaysRequest_OrderBy = 0
	ListGatewaysRequest_GATEWAY_ID   ListGatewaysRequest_OrderBy = 1
	ListGatewaysRequest_LAST_SEEN_AT ListGatewaysRequest_OrderBy = 2
)

// Enum value maps for ListGatewaysRequest_OrderBy.
var (
	ListGatewaysRequest_OrderBy_name = map[int32]string{
		0: "NAME",
		1: "GATEWAY_ID",
		2: "LAST_SEEN_AT",
	}
	ListGatewaysRequest_OrderBy_value = map[string]int32{
		"NAME":         0,
		"GATEWAY_ID":   1,
		"LAST_SEEN_AT": 2,
	}
)

func (x ListGatewaysRequest_OrderBy) Enum() *ListGatewaysRequest_OrderBy {
	p := new(ListGatewaysRequest_OrderBy)
	*p = x
	return p
}

func (x ListGatewaysRequest_OrderBy) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (ListGatewaysRequest_OrderBy) Descriptor() protoreflect.EnumDescriptor {
	return file_api_gateway_proto_enumTypes[1].Descriptor()
}

func (ListGatewaysRequest_OrderBy) Type() protoreflect.EnumType {
	return &file_api_gateway_proto_enumTypes[1]
}

func (x ListGatewaysRequest_OrderBy) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use ListGatewaysRequest_OrderBy.Descriptor instead.
func (ListGatewaysRequest_OrderBy) EnumDescriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{7, 0}
}

type Gateway struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Gateway ID (EUI64).
	GatewayId string `protobuf:"bytes,1,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	// Name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Description.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Gateway location.
	Location *common.Location `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
	// Tenant ID (UUID).
	TenantId string `protobuf:"bytes,5,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// Tags.
	Tags map[string]string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Metadata (provided by the gateway).
	Metadata map[string]string `protobuf:"bytes,7,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Stats interval (seconds).
	// This defines the expected interval in which the gateway sends its
	// statistics.
	StatsInterval uint32 `protobuf:"varint,8,opt,name=stats_interval,json=statsInterval,proto3" json:"stats_interval,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Gateway) Reset() {
	*x = Gateway{}
	mi := &file_api_gateway_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *Gateway) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Gateway) ProtoMessage() {}

func (x *Gateway) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_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 Gateway.ProtoReflect.Descriptor instead.
func (*Gateway) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{0}
}

func (x *Gateway) GetGatewayId() string {
	if x != nil {
		return x.GatewayId
	}
	return ""
}

func (x *Gateway) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *Gateway) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *Gateway) GetLocation() *common.Location {
	if x != nil {
		return x.Location
	}
	return nil
}

func (x *Gateway) GetTenantId() string {
	if x != nil {
		return x.TenantId
	}
	return ""
}

func (x *Gateway) GetTags() map[string]string {
	if x != nil {
		return x.Tags
	}
	return nil
}

func (x *Gateway) GetMetadata() map[string]string {
	if x != nil {
		return x.Metadata
	}
	return nil
}

func (x *Gateway) GetStatsInterval() uint32 {
	if x != nil {
		return x.StatsInterval
	}
	return 0
}

type GatewayListItem struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Tenant ID.
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// Gateway ID (EUI64).
	GatewayId string `protobuf:"bytes,2,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	// Name.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Description.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Location.
	Location *common.Location `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"`
	// Gateway properties.
	Properties map[string]string `protobuf:"bytes,6,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Created at timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Last update timestamp.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Last seen at timestamp.
	LastSeenAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=last_seen_at,json=lastSeenAt,proto3" json:"last_seen_at,omitempty"`
	// Gateway state.
	// Please note that the state of the gateway is driven by the stats
	// packages that are sent by the gateway.
	State         GatewayState `protobuf:"varint,10,opt,name=state,proto3,enum=api.GatewayState" json:"state,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GatewayListItem) Reset() {
	*x = GatewayListItem{}
	mi := &file_api_gateway_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GatewayListItem) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GatewayListItem) ProtoMessage() {}

func (x *GatewayListItem) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_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 GatewayListItem.ProtoReflect.Descriptor instead.
func (*GatewayListItem) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{1}
}

func (x *GatewayListItem) GetTenantId() string {
	if x != nil {
		return x.TenantId
	}
	return ""
}

func (x *GatewayListItem) GetGatewayId() string {
	if x != nil {
		return x.GatewayId
	}
	return ""
}

func (x *GatewayListItem) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *GatewayListItem) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *GatewayListItem) GetLocation() *common.Location {
	if x != nil {
		return x.Location
	}
	return nil
}

func (x *GatewayListItem) GetProperties() map[string]string {
	if x != nil {
		return x.Properties
	}
	return nil
}

func (x *GatewayListItem) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *GatewayListItem) GetUpdatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdatedAt
	}
	return nil
}

func (x *GatewayListItem) GetLastSeenAt() *timestamppb.Timestamp {
	if x != nil {
		return x.LastSeenAt
	}
	return nil
}

func (x *GatewayListItem) GetState() GatewayState {
	if x != nil {
		return x.State
	}
	return GatewayState_NEVER_SEEN
}

type CreateGatewayRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Gateway object.
	Gateway       *Gateway `protobuf:"bytes,1,opt,name=gateway,proto3" json:"gateway,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreateGatewayRequest) Reset() {
	*x = CreateGatewayRequest{}
	mi := &file_api_gateway_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CreateGatewayRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CreateGatewayRequest) ProtoMessage() {}

func (x *CreateGatewayRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_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 CreateGatewayRequest.ProtoReflect.Descriptor instead.
func (*CreateGatewayRequest) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{2}
}

func (x *CreateGatewayRequest) GetGateway() *Gateway {
	if x != nil {
		return x.Gateway
	}
	return nil
}

type GetGatewayRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Gateway ID (EUI64).
	GatewayId     string `protobuf:"bytes,1,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetGatewayRequest) Reset() {
	*x = GetGatewayRequest{}
	mi := &file_api_gateway_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetGatewayRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetGatewayRequest) ProtoMessage() {}

func (x *GetGatewayRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_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 GetGatewayRequest.ProtoReflect.Descriptor instead.
func (*GetGatewayRequest) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{3}
}

func (x *GetGatewayRequest) GetGatewayId() string {
	if x != nil {
		return x.GatewayId
	}
	return ""
}

type GetGatewayResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Gateway object.
	Gateway *Gateway `protobuf:"bytes,1,opt,name=gateway,proto3" json:"gateway,omitempty"`
	// Created at timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Last update timestamp.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Last seen at timestamp.
	LastSeenAt    *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_seen_at,json=lastSeenAt,proto3" json:"last_seen_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetGatewayResponse) Reset() {
	*x = GetGatewayResponse{}
	mi := &file_api_gateway_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetGatewayResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetGatewayResponse) ProtoMessage() {}

func (x *GetGatewayResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_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 GetGatewayResponse.ProtoReflect.Descriptor instead.
func (*GetGatewayResponse) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{4}
}

func (x *GetGatewayResponse) GetGateway() *Gateway {
	if x != nil {
		return x.Gateway
	}
	return nil
}

func (x *GetGatewayResponse) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *GetGatewayResponse) GetUpdatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdatedAt
	}
	return nil
}

func (x *GetGatewayResponse) GetLastSeenAt() *timestamppb.Timestamp {
	if x != nil {
		return x.LastSeenAt
	}
	return nil
}

type UpdateGatewayRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Gateway object.
	Gateway       *Gateway `protobuf:"bytes,1,opt,name=gateway,proto3" json:"gateway,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UpdateGatewayRequest) Reset() {
	*x = UpdateGatewayRequest{}
	mi := &file_api_gateway_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *UpdateGatewayRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UpdateGatewayRequest) ProtoMessage() {}

func (x *UpdateGatewayRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_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 UpdateGatewayRequest.ProtoReflect.Descriptor instead.
func (*UpdateGatewayRequest) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{5}
}

func (x *UpdateGatewayRequest) GetGateway() *Gateway {
	if x != nil {
		return x.Gateway
	}
	return nil
}

type DeleteGatewayRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Gateway ID (EUI64).
	GatewayId     string `protobuf:"bytes,1,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeleteGatewayRequest) Reset() {
	*x = DeleteGatewayRequest{}
	mi := &file_api_gateway_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DeleteGatewayRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DeleteGatewayRequest) ProtoMessage() {}

func (x *DeleteGatewayRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_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 DeleteGatewayRequest.ProtoReflect.Descriptor instead.
func (*DeleteGatewayRequest) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{6}
}

func (x *DeleteGatewayRequest) GetGatewayId() string {
	if x != nil {
		return x.GatewayId
	}
	return ""
}

type ListGatewaysRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Max number of gateways to return in the result-set.
	// If not set, it will be treated as 0, and the response will only return the total_count.
	Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	// Offset in the result-set (for pagination).
	Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// If set, the given string will be used to search on name (optional).
	Search string `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"`
	// Tenant ID (UUID) to filter gateways on.
	// To list all gateways as a global admin user, this field can be left blank.
	TenantId string `protobuf:"bytes,4,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// Multicast-group ID (UUID) to filter gateways on.
	MulticastGroupId string `protobuf:"bytes,5,opt,name=multicast_group_id,json=multicastGroupId,proto3" json:"multicast_group_id,omitempty"`
	// If set, the given value will be used to sort by (optional).
	OrderBy ListGatewaysRequest_OrderBy `protobuf:"varint,6,opt,name=order_by,json=orderBy,proto3,enum=api.ListGatewaysRequest_OrderBy" json:"order_by,omitempty"`
	// If set, the sorting direction will be decending (default = ascending) (optional).
	OrderByDesc   bool `protobuf:"varint,7,opt,name=order_by_desc,json=orderByDesc,proto3" json:"order_by_desc,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListGatewaysRequest) Reset() {
	*x = ListGatewaysRequest{}
	mi := &file_api_gateway_proto_msgTypes[7]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListGatewaysRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListGatewaysRequest) ProtoMessage() {}

func (x *ListGatewaysRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_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 ListGatewaysRequest.ProtoReflect.Descriptor instead.
func (*ListGatewaysRequest) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{7}
}

func (x *ListGatewaysRequest) GetLimit() uint32 {
	if x != nil {
		return x.Limit
	}
	return 0
}

func (x *ListGatewaysRequest) GetOffset() uint32 {
	if x != nil {
		return x.Offset
	}
	return 0
}

func (x *ListGatewaysRequest) GetSearch() string {
	if x != nil {
		return x.Search
	}
	return ""
}

func (x *ListGatewaysRequest) GetTenantId() string {
	if x != nil {
		return x.TenantId
	}
	return ""
}

func (x *ListGatewaysRequest) GetMulticastGroupId() string {
	if x != nil {
		return x.MulticastGroupId
	}
	return ""
}

func (x *ListGatewaysRequest) GetOrderBy() ListGatewaysRequest_OrderBy {
	if x != nil {
		return x.OrderBy
	}
	return ListGatewaysRequest_NAME
}

func (x *ListGatewaysRequest) GetOrderByDesc() bool {
	if x != nil {
		return x.OrderByDesc
	}
	return false
}

type ListGatewaysResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Total number of gateways.
	TotalCount uint32 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// Result-set.
	Result        []*GatewayListItem `protobuf:"bytes,2,rep,name=result,proto3" json:"result,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListGatewaysResponse) Reset() {
	*x = ListGatewaysResponse{}
	mi := &file_api_gateway_proto_msgTypes[8]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListGatewaysResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListGatewaysResponse) ProtoMessage() {}

func (x *ListGatewaysResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_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 ListGatewaysResponse.ProtoReflect.Descriptor instead.
func (*ListGatewaysResponse) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{8}
}

func (x *ListGatewaysResponse) GetTotalCount() uint32 {
	if x != nil {
		return x.TotalCount
	}
	return 0
}

func (x *ListGatewaysResponse) GetResult() []*GatewayListItem {
	if x != nil {
		return x.Result
	}
	return nil
}

type GenerateGatewayClientCertificateRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Gateway ID (EUI64).
	GatewayId     string `protobuf:"bytes,1,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GenerateGatewayClientCertificateRequest) Reset() {
	*x = GenerateGatewayClientCertificateRequest{}
	mi := &file_api_gateway_proto_msgTypes[9]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GenerateGatewayClientCertificateRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GenerateGatewayClientCertificateRequest) ProtoMessage() {}

func (x *GenerateGatewayClientCertificateRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_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 GenerateGatewayClientCertificateRequest.ProtoReflect.Descriptor instead.
func (*GenerateGatewayClientCertificateRequest) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{9}
}

func (x *GenerateGatewayClientCertificateRequest) GetGatewayId() string {
	if x != nil {
		return x.GatewayId
	}
	return ""
}

type GenerateGatewayClientCertificateResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// TLS certificate.
	TlsCert string `protobuf:"bytes,1,opt,name=tls_cert,json=tlsCert,proto3" json:"tls_cert,omitempty"`
	// TLS key.
	TlsKey string `protobuf:"bytes,2,opt,name=tls_key,json=tlsKey,proto3" json:"tls_key,omitempty"`
	// CA certificate.
	CaCert string `protobuf:"bytes,3,opt,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"`
	// Expires at defines the expiration date of the certificate.
	ExpiresAt     *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GenerateGatewayClientCertificateResponse) Reset() {
	*x = GenerateGatewayClientCertificateResponse{}
	mi := &file_api_gateway_proto_msgTypes[10]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GenerateGatewayClientCertificateResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GenerateGatewayClientCertificateResponse) ProtoMessage() {}

func (x *GenerateGatewayClientCertificateResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_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 GenerateGatewayClientCertificateResponse.ProtoReflect.Descriptor instead.
func (*GenerateGatewayClientCertificateResponse) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{10}
}

func (x *GenerateGatewayClientCertificateResponse) GetTlsCert() string {
	if x != nil {
		return x.TlsCert
	}
	return ""
}

func (x *GenerateGatewayClientCertificateResponse) GetTlsKey() string {
	if x != nil {
		return x.TlsKey
	}
	return ""
}

func (x *GenerateGatewayClientCertificateResponse) GetCaCert() string {
	if x != nil {
		return x.CaCert
	}
	return ""
}

func (x *GenerateGatewayClientCertificateResponse) GetExpiresAt() *timestamppb.Timestamp {
	if x != nil {
		return x.ExpiresAt
	}
	return nil
}

type GetGatewayMetricsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Gateway ID (EUI64).
	GatewayId string `protobuf:"bytes,1,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	// Interval start timestamp.
	Start *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
	// Interval end timestamp.
	End *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
	// Aggregation.
	Aggregation   common.Aggregation `protobuf:"varint,4,opt,name=aggregation,proto3,enum=common.Aggregation" json:"aggregation,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetGatewayMetricsRequest) Reset() {
	*x = GetGatewayMetricsRequest{}
	mi := &file_api_gateway_proto_msgTypes[11]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetGatewayMetricsRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetGatewayMetricsRequest) ProtoMessage() {}

func (x *GetGatewayMetricsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_proto_msgTypes[11]
	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 GetGatewayMetricsRequest.ProtoReflect.Descriptor instead.
func (*GetGatewayMetricsRequest) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{11}
}

func (x *GetGatewayMetricsRequest) GetGatewayId() string {
	if x != nil {
		return x.GatewayId
	}
	return ""
}

func (x *GetGatewayMetricsRequest) GetStart() *timestamppb.Timestamp {
	if x != nil {
		return x.Start
	}
	return nil
}

func (x *GetGatewayMetricsRequest) GetEnd() *timestamppb.Timestamp {
	if x != nil {
		return x.End
	}
	return nil
}

func (x *GetGatewayMetricsRequest) GetAggregation() common.Aggregation {
	if x != nil {
		return x.Aggregation
	}
	return common.Aggregation(0)
}

type GetGatewayMetricsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// RX packets.
	RxPackets *common.Metric `protobuf:"bytes,1,opt,name=rx_packets,json=rxPackets,proto3" json:"rx_packets,omitempty"`
	// TX packets.
	TxPackets *common.Metric `protobuf:"bytes,2,opt,name=tx_packets,json=txPackets,proto3" json:"tx_packets,omitempty"`
	// TX packets / frequency.
	TxPacketsPerFreq *common.Metric `protobuf:"bytes,3,opt,name=tx_packets_per_freq,json=txPacketsPerFreq,proto3" json:"tx_packets_per_freq,omitempty"`
	// RX packets / frequency.
	RxPacketsPerFreq *common.Metric `protobuf:"bytes,4,opt,name=rx_packets_per_freq,json=rxPacketsPerFreq,proto3" json:"rx_packets_per_freq,omitempty"`
	// TX packets / DR.
	TxPacketsPerDr *common.Metric `protobuf:"bytes,5,opt,name=tx_packets_per_dr,json=txPacketsPerDr,proto3" json:"tx_packets_per_dr,omitempty"`
	// RX packets / DR.
	RxPacketsPerDr *common.Metric `protobuf:"bytes,6,opt,name=rx_packets_per_dr,json=rxPacketsPerDr,proto3" json:"rx_packets_per_dr,omitempty"`
	// TX packets per status.
	TxPacketsPerStatus *common.Metric `protobuf:"bytes,7,opt,name=tx_packets_per_status,json=txPacketsPerStatus,proto3" json:"tx_packets_per_status,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

func (x *GetGatewayMetricsResponse) Reset() {
	*x = GetGatewayMetricsResponse{}
	mi := &file_api_gateway_proto_msgTypes[12]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetGatewayMetricsResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetGatewayMetricsResponse) ProtoMessage() {}

func (x *GetGatewayMetricsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_proto_msgTypes[12]
	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 GetGatewayMetricsResponse.ProtoReflect.Descriptor instead.
func (*GetGatewayMetricsResponse) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{12}
}

func (x *GetGatewayMetricsResponse) GetRxPackets() *common.Metric {
	if x != nil {
		return x.RxPackets
	}
	return nil
}

func (x *GetGatewayMetricsResponse) GetTxPackets() *common.Metric {
	if x != nil {
		return x.TxPackets
	}
	return nil
}

func (x *GetGatewayMetricsResponse) GetTxPacketsPerFreq() *common.Metric {
	if x != nil {
		return x.TxPacketsPerFreq
	}
	return nil
}

func (x *GetGatewayMetricsResponse) GetRxPacketsPerFreq() *common.Metric {
	if x != nil {
		return x.RxPacketsPerFreq
	}
	return nil
}

func (x *GetGatewayMetricsResponse) GetTxPacketsPerDr() *common.Metric {
	if x != nil {
		return x.TxPacketsPerDr
	}
	return nil
}

func (x *GetGatewayMetricsResponse) GetRxPacketsPerDr() *common.Metric {
	if x != nil {
		return x.RxPacketsPerDr
	}
	return nil
}

func (x *GetGatewayMetricsResponse) GetTxPacketsPerStatus() *common.Metric {
	if x != nil {
		return x.TxPacketsPerStatus
	}
	return nil
}

type GetGatewayDutyCycleMetricsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Gateway ID (EUI64).
	GatewayId string `protobuf:"bytes,1,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	// Interval start timestamp.
	Start *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
	// Interval end timestamp.
	End           *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetGatewayDutyCycleMetricsRequest) Reset() {
	*x = GetGatewayDutyCycleMetricsRequest{}
	mi := &file_api_gateway_proto_msgTypes[13]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetGatewayDutyCycleMetricsRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetGatewayDutyCycleMetricsRequest) ProtoMessage() {}

func (x *GetGatewayDutyCycleMetricsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_proto_msgTypes[13]
	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 GetGatewayDutyCycleMetricsRequest.ProtoReflect.Descriptor instead.
func (*GetGatewayDutyCycleMetricsRequest) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{13}
}

func (x *GetGatewayDutyCycleMetricsRequest) GetGatewayId() string {
	if x != nil {
		return x.GatewayId
	}
	return ""
}

func (x *GetGatewayDutyCycleMetricsRequest) GetStart() *timestamppb.Timestamp {
	if x != nil {
		return x.Start
	}
	return nil
}

func (x *GetGatewayDutyCycleMetricsRequest) GetEnd() *timestamppb.Timestamp {
	if x != nil {
		return x.End
	}
	return nil
}

type GetGatewayDutyCycleMetricsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Percentage relative to max load.
	MaxLoadPercentage *common.Metric `protobuf:"bytes,1,opt,name=max_load_percentage,json=maxLoadPercentage,proto3" json:"max_load_percentage,omitempty"`
	// Percentage relative to tracking window.
	WindowPercentage *common.Metric `protobuf:"bytes,2,opt,name=window_percentage,json=windowPercentage,proto3" json:"window_percentage,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

func (x *GetGatewayDutyCycleMetricsResponse) Reset() {
	*x = GetGatewayDutyCycleMetricsResponse{}
	mi := &file_api_gateway_proto_msgTypes[14]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetGatewayDutyCycleMetricsResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetGatewayDutyCycleMetricsResponse) ProtoMessage() {}

func (x *GetGatewayDutyCycleMetricsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_proto_msgTypes[14]
	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 GetGatewayDutyCycleMetricsResponse.ProtoReflect.Descriptor instead.
func (*GetGatewayDutyCycleMetricsResponse) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{14}
}

func (x *GetGatewayDutyCycleMetricsResponse) GetMaxLoadPercentage() *common.Metric {
	if x != nil {
		return x.MaxLoadPercentage
	}
	return nil
}

func (x *GetGatewayDutyCycleMetricsResponse) GetWindowPercentage() *common.Metric {
	if x != nil {
		return x.WindowPercentage
	}
	return nil
}

type GetRelayGatewayRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Tenant ID (UUID).
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// Relay ID (4 byte HEX).
	RelayId       string `protobuf:"bytes,2,opt,name=relay_id,json=relayId,proto3" json:"relay_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetRelayGatewayRequest) Reset() {
	*x = GetRelayGatewayRequest{}
	mi := &file_api_gateway_proto_msgTypes[15]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetRelayGatewayRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetRelayGatewayRequest) ProtoMessage() {}

func (x *GetRelayGatewayRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_proto_msgTypes[15]
	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 GetRelayGatewayRequest.ProtoReflect.Descriptor instead.
func (*GetRelayGatewayRequest) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{15}
}

func (x *GetRelayGatewayRequest) GetTenantId() string {
	if x != nil {
		return x.TenantId
	}
	return ""
}

func (x *GetRelayGatewayRequest) GetRelayId() string {
	if x != nil {
		return x.RelayId
	}
	return ""
}

type GetRelayGatewayResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Relay Gateway object.
	RelayGateway *RelayGateway `protobuf:"bytes,1,opt,name=relay_gateway,json=relayGateway,proto3" json:"relay_gateway,omitempty"`
	// Created at timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Last update timestamp.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Last seen at timestamp.
	LastSeenAt    *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_seen_at,json=lastSeenAt,proto3" json:"last_seen_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetRelayGatewayResponse) Reset() {
	*x = GetRelayGatewayResponse{}
	mi := &file_api_gateway_proto_msgTypes[16]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetRelayGatewayResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetRelayGatewayResponse) ProtoMessage() {}

func (x *GetRelayGatewayResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_proto_msgTypes[16]
	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 GetRelayGatewayResponse.ProtoReflect.Descriptor instead.
func (*GetRelayGatewayResponse) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{16}
}

func (x *GetRelayGatewayResponse) GetRelayGateway() *RelayGateway {
	if x != nil {
		return x.RelayGateway
	}
	return nil
}

func (x *GetRelayGatewayResponse) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *GetRelayGatewayResponse) GetUpdatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdatedAt
	}
	return nil
}

func (x *GetRelayGatewayResponse) GetLastSeenAt() *timestamppb.Timestamp {
	if x != nil {
		return x.LastSeenAt
	}
	return nil
}

type ListRelayGatewaysRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Max number of relay-gateways to return in the result-set.
	// If not set, it will be treated as 0, and the response will only return the total_count.
	Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	// Offset in the result-set (for pagination).
	Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// Tenant ID (UUID) to filter relay-gateways on.
	// To list all relay-gateways as a global admin user, this field can be left blank.
	TenantId      string `protobuf:"bytes,3,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListRelayGatewaysRequest) Reset() {
	*x = ListRelayGatewaysRequest{}
	mi := &file_api_gateway_proto_msgTypes[17]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListRelayGatewaysRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListRelayGatewaysRequest) ProtoMessage() {}

func (x *ListRelayGatewaysRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_proto_msgTypes[17]
	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 ListRelayGatewaysRequest.ProtoReflect.Descriptor instead.
func (*ListRelayGatewaysRequest) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{17}
}

func (x *ListRelayGatewaysRequest) GetLimit() uint32 {
	if x != nil {
		return x.Limit
	}
	return 0
}

func (x *ListRelayGatewaysRequest) GetOffset() uint32 {
	if x != nil {
		return x.Offset
	}
	return 0
}

func (x *ListRelayGatewaysRequest) GetTenantId() string {
	if x != nil {
		return x.TenantId
	}
	return ""
}

type ListRelayGatewaysResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Total number of relay-gateways.
	TotalCount uint32 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// Result-set.
	Result        []*RelayGatewayListItem `protobuf:"bytes,2,rep,name=result,proto3" json:"result,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListRelayGatewaysResponse) Reset() {
	*x = ListRelayGatewaysResponse{}
	mi := &file_api_gateway_proto_msgTypes[18]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListRelayGatewaysResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListRelayGatewaysResponse) ProtoMessage() {}

func (x *ListRelayGatewaysResponse) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_proto_msgTypes[18]
	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 ListRelayGatewaysResponse.ProtoReflect.Descriptor instead.
func (*ListRelayGatewaysResponse) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{18}
}

func (x *ListRelayGatewaysResponse) GetTotalCount() uint32 {
	if x != nil {
		return x.TotalCount
	}
	return 0
}

func (x *ListRelayGatewaysResponse) GetResult() []*RelayGatewayListItem {
	if x != nil {
		return x.Result
	}
	return nil
}

type RelayGatewayListItem struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Tenant ID.
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// Relay ID (4 byte HEX).
	RelayId string `protobuf:"bytes,2,opt,name=relay_id,json=relayId,proto3" json:"relay_id,omitempty"`
	// Name.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Description.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Created at timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Last update timestamp.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Last seen at timestamp.
	LastSeenAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_seen_at,json=lastSeenAt,proto3" json:"last_seen_at,omitempty"`
	// Gateway state.
	// Please note that the state of the relay is driven by the last
	// received stats packet sent by the relay-gateway.
	State GatewayState `protobuf:"varint,10,opt,name=state,proto3,enum=api.GatewayState" json:"state,omitempty"`
	// Region configuration ID.
	RegionConfigId string `protobuf:"bytes,11,opt,name=region_config_id,json=regionConfigId,proto3" json:"region_config_id,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

func (x *RelayGatewayListItem) Reset() {
	*x = RelayGatewayListItem{}
	mi := &file_api_gateway_proto_msgTypes[19]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *RelayGatewayListItem) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*RelayGatewayListItem) ProtoMessage() {}

func (x *RelayGatewayListItem) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_proto_msgTypes[19]
	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 RelayGatewayListItem.ProtoReflect.Descriptor instead.
func (*RelayGatewayListItem) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{19}
}

func (x *RelayGatewayListItem) GetTenantId() string {
	if x != nil {
		return x.TenantId
	}
	return ""
}

func (x *RelayGatewayListItem) GetRelayId() string {
	if x != nil {
		return x.RelayId
	}
	return ""
}

func (x *RelayGatewayListItem) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *RelayGatewayListItem) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *RelayGatewayListItem) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *RelayGatewayListItem) GetUpdatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdatedAt
	}
	return nil
}

func (x *RelayGatewayListItem) GetLastSeenAt() *timestamppb.Timestamp {
	if x != nil {
		return x.LastSeenAt
	}
	return nil
}

func (x *RelayGatewayListItem) GetState() GatewayState {
	if x != nil {
		return x.State
	}
	return GatewayState_NEVER_SEEN
}

func (x *RelayGatewayListItem) GetRegionConfigId() string {
	if x != nil {
		return x.RegionConfigId
	}
	return ""
}

type UpdateRelayGatewayRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Relay Gateway object.
	RelayGateway  *RelayGateway `protobuf:"bytes,1,opt,name=relay_gateway,json=relayGateway,proto3" json:"relay_gateway,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *UpdateRelayGatewayRequest) Reset() {
	*x = UpdateRelayGatewayRequest{}
	mi := &file_api_gateway_proto_msgTypes[20]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *UpdateRelayGatewayRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*UpdateRelayGatewayRequest) ProtoMessage() {}

func (x *UpdateRelayGatewayRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_proto_msgTypes[20]
	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 UpdateRelayGatewayRequest.ProtoReflect.Descriptor instead.
func (*UpdateRelayGatewayRequest) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{20}
}

func (x *UpdateRelayGatewayRequest) GetRelayGateway() *RelayGateway {
	if x != nil {
		return x.RelayGateway
	}
	return nil
}

type DeleteRelayGatewayRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Tenant ID.
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// Relay ID (4 byte HEX).
	RelayId       string `protobuf:"bytes,2,opt,name=relay_id,json=relayId,proto3" json:"relay_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *DeleteRelayGatewayRequest) Reset() {
	*x = DeleteRelayGatewayRequest{}
	mi := &file_api_gateway_proto_msgTypes[21]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *DeleteRelayGatewayRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*DeleteRelayGatewayRequest) ProtoMessage() {}

func (x *DeleteRelayGatewayRequest) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_proto_msgTypes[21]
	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 DeleteRelayGatewayRequest.ProtoReflect.Descriptor instead.
func (*DeleteRelayGatewayRequest) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{21}
}

func (x *DeleteRelayGatewayRequest) GetTenantId() string {
	if x != nil {
		return x.TenantId
	}
	return ""
}

func (x *DeleteRelayGatewayRequest) GetRelayId() string {
	if x != nil {
		return x.RelayId
	}
	return ""
}

type RelayGateway struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Tenant ID.
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// Relay ID (4 byte HEX).
	RelayId string `protobuf:"bytes,2,opt,name=relay_id,json=relayId,proto3" json:"relay_id,omitempty"`
	// Name.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Description.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// Stats interval (seconds).
	// This defines the expected interval in which the gateway sends its
	// statistics.
	StatsInterval uint32 `protobuf:"varint,5,opt,name=stats_interval,json=statsInterval,proto3" json:"stats_interval,omitempty"`
	// Region configuration ID.
	RegionConfigId string `protobuf:"bytes,6,opt,name=region_config_id,json=regionConfigId,proto3" json:"region_config_id,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

func (x *RelayGateway) Reset() {
	*x = RelayGateway{}
	mi := &file_api_gateway_proto_msgTypes[22]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *RelayGateway) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*RelayGateway) ProtoMessage() {}

func (x *RelayGateway) ProtoReflect() protoreflect.Message {
	mi := &file_api_gateway_proto_msgTypes[22]
	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 RelayGateway.ProtoReflect.Descriptor instead.
func (*RelayGateway) Descriptor() ([]byte, []int) {
	return file_api_gateway_proto_rawDescGZIP(), []int{22}
}

func (x *RelayGateway) GetTenantId() string {
	if x != nil {
		return x.TenantId
	}
	return ""
}

func (x *RelayGateway) GetRelayId() string {
	if x != nil {
		return x.RelayId
	}
	return ""
}

func (x *RelayGateway) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *RelayGateway) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *RelayGateway) GetStatsInterval() uint32 {
	if x != nil {
		return x.StatsInterval
	}
	return 0
}

func (x *RelayGateway) GetRegionConfigId() string {
	if x != nil {
		return x.RegionConfigId
	}
	return ""
}

var File_api_gateway_proto protoreflect.FileDescriptor

const file_api_gateway_proto_rawDesc = "" +
	"\n" +
	"\x11api/gateway.proto\x12\x03api\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x13common/common.proto\"\xaa\x03\n" +
	"\aGateway\x12\x1d\n" +
	"\n" +
	"gateway_id\x18\x01 \x01(\tR\tgatewayId\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x03 \x01(\tR\vdescription\x12,\n" +
	"\blocation\x18\x04 \x01(\v2\x10.common.LocationR\blocation\x12\x1b\n" +
	"\ttenant_id\x18\x05 \x01(\tR\btenantId\x12*\n" +
	"\x04tags\x18\x06 \x03(\v2\x16.api.Gateway.TagsEntryR\x04tags\x126\n" +
	"\bmetadata\x18\a \x03(\v2\x1a.api.Gateway.MetadataEntryR\bmetadata\x12%\n" +
	"\x0estats_interval\x18\b \x01(\rR\rstatsInterval\x1a7\n" +
	"\tTagsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a;\n" +
	"\rMetadataEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x93\x04\n" +
	"\x0fGatewayListItem\x12\x1b\n" +
	"\ttenant_id\x18\x01 \x01(\tR\btenantId\x12\x1d\n" +
	"\n" +
	"gateway_id\x18\x02 \x01(\tR\tgatewayId\x12\x12\n" +
	"\x04name\x18\x03 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x04 \x01(\tR\vdescription\x12,\n" +
	"\blocation\x18\x05 \x01(\v2\x10.common.LocationR\blocation\x12D\n" +
	"\n" +
	"properties\x18\x06 \x03(\v2$.api.GatewayListItem.PropertiesEntryR\n" +
	"properties\x129\n" +
	"\n" +
	"created_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
	"\n" +
	"updated_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12<\n" +
	"\flast_seen_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\n" +
	"lastSeenAt\x12'\n" +
	"\x05state\x18\n" +
	" \x01(\x0e2\x11.api.GatewayStateR\x05state\x1a=\n" +
	"\x0fPropertiesEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\">\n" +
	"\x14CreateGatewayRequest\x12&\n" +
	"\agateway\x18\x01 \x01(\v2\f.api.GatewayR\agateway\"2\n" +
	"\x11GetGatewayRequest\x12\x1d\n" +
	"\n" +
	"gateway_id\x18\x01 \x01(\tR\tgatewayId\"\xf0\x01\n" +
	"\x12GetGatewayResponse\x12&\n" +
	"\agateway\x18\x01 \x01(\v2\f.api.GatewayR\agateway\x129\n" +
	"\n" +
	"created_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
	"\n" +
	"updated_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12<\n" +
	"\flast_seen_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\n" +
	"lastSeenAt\">\n" +
	"\x14UpdateGatewayRequest\x12&\n" +
	"\agateway\x18\x01 \x01(\v2\f.api.GatewayR\agateway\"5\n" +
	"\x14DeleteGatewayRequest\x12\x1d\n" +
	"\n" +
	"gateway_id\x18\x01 \x01(\tR\tgatewayId\"\xbe\x02\n" +
	"\x13ListGatewaysRequest\x12\x14\n" +
	"\x05limit\x18\x01 \x01(\rR\x05limit\x12\x16\n" +
	"\x06offset\x18\x02 \x01(\rR\x06offset\x12\x16\n" +
	"\x06search\x18\x03 \x01(\tR\x06search\x12\x1b\n" +
	"\ttenant_id\x18\x04 \x01(\tR\btenantId\x12,\n" +
	"\x12multicast_group_id\x18\x05 \x01(\tR\x10multicastGroupId\x12;\n" +
	"\border_by\x18\x06 \x01(\x0e2 .api.ListGatewaysRequest.OrderByR\aorderBy\x12\"\n" +
	"\rorder_by_desc\x18\a \x01(\bR\vorderByDesc\"5\n" +
	"\aOrderBy\x12\b\n" +
	"\x04NAME\x10\x00\x12\x0e\n" +
	"\n" +
	"GATEWAY_ID\x10\x01\x12\x10\n" +
	"\fLAST_SEEN_AT\x10\x02\"e\n" +
	"\x14ListGatewaysResponse\x12\x1f\n" +
	"\vtotal_count\x18\x01 \x01(\rR\n" +
	"totalCount\x12,\n" +
	"\x06result\x18\x02 \x03(\v2\x14.api.GatewayListItemR\x06result\"H\n" +
	"'GenerateGatewayClientCertificateRequest\x12\x1d\n" +
	"\n" +
	"gateway_id\x18\x01 \x01(\tR\tgatewayId\"\xb2\x01\n" +
	"(GenerateGatewayClientCertificateResponse\x12\x19\n" +
	"\btls_cert\x18\x01 \x01(\tR\atlsCert\x12\x17\n" +
	"\atls_key\x18\x02 \x01(\tR\x06tlsKey\x12\x17\n" +
	"\aca_cert\x18\x03 \x01(\tR\x06caCert\x129\n" +
	"\n" +
	"expires_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\"\xd0\x01\n" +
	"\x18GetGatewayMetricsRequest\x12\x1d\n" +
	"\n" +
	"gateway_id\x18\x01 \x01(\tR\tgatewayId\x120\n" +
	"\x05start\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x05start\x12,\n" +
	"\x03end\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x03end\x125\n" +
	"\vaggregation\x18\x04 \x01(\x0e2\x13.common.AggregationR\vaggregation\"\xb0\x03\n" +
	"\x19GetGatewayMetricsResponse\x12-\n" +
	"\n" +
	"rx_packets\x18\x01 \x01(\v2\x0e.common.MetricR\trxPackets\x12-\n" +
	"\n" +
	"tx_packets\x18\x02 \x01(\v2\x0e.common.MetricR\ttxPackets\x12=\n" +
	"\x13tx_packets_per_freq\x18\x03 \x01(\v2\x0e.common.MetricR\x10txPacketsPerFreq\x12=\n" +
	"\x13rx_packets_per_freq\x18\x04 \x01(\v2\x0e.common.MetricR\x10rxPacketsPerFreq\x129\n" +
	"\x11tx_packets_per_dr\x18\x05 \x01(\v2\x0e.common.MetricR\x0etxPacketsPerDr\x129\n" +
	"\x11rx_packets_per_dr\x18\x06 \x01(\v2\x0e.common.MetricR\x0erxPacketsPerDr\x12A\n" +
	"\x15tx_packets_per_status\x18\a \x01(\v2\x0e.common.MetricR\x12txPacketsPerStatus\"\xa2\x01\n" +
	"!GetGatewayDutyCycleMetricsRequest\x12\x1d\n" +
	"\n" +
	"gateway_id\x18\x01 \x01(\tR\tgatewayId\x120\n" +
	"\x05start\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x05start\x12,\n" +
	"\x03end\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x03end\"\xa1\x01\n" +
	"\"GetGatewayDutyCycleMetricsResponse\x12>\n" +
	"\x13max_load_percentage\x18\x01 \x01(\v2\x0e.common.MetricR\x11maxLoadPercentage\x12;\n" +
	"\x11window_percentage\x18\x02 \x01(\v2\x0e.common.MetricR\x10windowPercentage\"P\n" +
	"\x16GetRelayGatewayRequest\x12\x1b\n" +
	"\ttenant_id\x18\x01 \x01(\tR\btenantId\x12\x19\n" +
	"\brelay_id\x18\x02 \x01(\tR\arelayId\"\x85\x02\n" +
	"\x17GetRelayGatewayResponse\x126\n" +
	"\rrelay_gateway\x18\x01 \x01(\v2\x11.api.RelayGatewayR\frelayGateway\x129\n" +
	"\n" +
	"created_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
	"\n" +
	"updated_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12<\n" +
	"\flast_seen_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\n" +
	"lastSeenAt\"e\n" +
	"\x18ListRelayGatewaysRequest\x12\x14\n" +
	"\x05limit\x18\x01 \x01(\rR\x05limit\x12\x16\n" +
	"\x06offset\x18\x02 \x01(\rR\x06offset\x12\x1b\n" +
	"\ttenant_id\x18\x03 \x01(\tR\btenantId\"o\n" +
	"\x19ListRelayGatewaysResponse\x12\x1f\n" +
	"\vtotal_count\x18\x01 \x01(\rR\n" +
	"totalCount\x121\n" +
	"\x06result\x18\x02 \x03(\v2\x19.api.RelayGatewayListItemR\x06result\"\x8b\x03\n" +
	"\x14RelayGatewayListItem\x12\x1b\n" +
	"\ttenant_id\x18\x01 \x01(\tR\btenantId\x12\x19\n" +
	"\brelay_id\x18\x02 \x01(\tR\arelayId\x12\x12\n" +
	"\x04name\x18\x03 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x04 \x01(\tR\vdescription\x129\n" +
	"\n" +
	"created_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
	"\n" +
	"updated_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12<\n" +
	"\flast_seen_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\n" +
	"lastSeenAt\x12'\n" +
	"\x05state\x18\n" +
	" \x01(\x0e2\x11.api.GatewayStateR\x05state\x12(\n" +
	"\x10region_config_id\x18\v \x01(\tR\x0eregionConfigId\"S\n" +
	"\x19UpdateRelayGatewayRequest\x126\n" +
	"\rrelay_gateway\x18\x01 \x01(\v2\x11.api.RelayGatewayR\frelayGateway\"S\n" +
	"\x19DeleteRelayGatewayRequest\x12\x1b\n" +
	"\ttenant_id\x18\x01 \x01(\tR\btenantId\x12\x19\n" +
	"\brelay_id\x18\x02 \x01(\tR\arelayId\"\xcd\x01\n" +
	"\fRelayGateway\x12\x1b\n" +
	"\ttenant_id\x18\x01 \x01(\tR\btenantId\x12\x19\n" +
	"\brelay_id\x18\x02 \x01(\tR\arelayId\x12\x12\n" +
	"\x04name\x18\x03 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x04 \x01(\tR\vdescription\x12%\n" +
	"\x0estats_interval\x18\x05 \x01(\rR\rstatsInterval\x12(\n" +
	"\x10region_config_id\x18\x06 \x01(\tR\x0eregionConfigId*7\n" +
	"\fGatewayState\x12\x0e\n" +
	"\n" +
	"NEVER_SEEN\x10\x00\x12\n" +
	"\n" +
	"\x06ONLINE\x10\x01\x12\v\n" +
	"\aOFFLINE\x10\x022\xee\v\n" +
	"\x0eGatewayService\x12U\n" +
	"\x06Create\x12\x19.api.CreateGatewayRequest\x1a\x16.google.protobuf.Empty\"\x18\x82\xd3\xe4\x93\x02\x12:\x01*\"\r/api/gateways\x12Z\n" +
	"\x03Get\x12\x16.api.GetGatewayRequest\x1a\x17.api.GetGatewayResponse\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/api/gateways/{gateway_id}\x12j\n" +
	"\x06Update\x12\x19.api.UpdateGatewayRequest\x1a\x16.google.protobuf.Empty\"-\x82\xd3\xe4\x93\x02':\x01*\x1a\"/api/gateways/{gateway.gateway_id}\x12_\n" +
	"\x06Delete\x12\x19.api.DeleteGatewayRequest\x1a\x16.google.protobuf.Empty\"\"\x82\xd3\xe4\x93\x02\x1c*\x1a/api/gateways/{gateway_id}\x12R\n" +
	"\x04List\x12\x18.api.ListGatewaysRequest\x1a\x19.api.ListGatewaysResponse\"\x15\x82\xd3\xe4\x93\x02\x0f\x12\r/api/gateways\x12\xb1\x01\n" +
	"\x19GenerateClientCertificate\x12,.api.GenerateGatewayClientCertificateRequest\x1a-.api.GenerateGatewayClientCertificateResponse\"7\x82\xd3\xe4\x93\x021\"//api/gateways/{gateway_id}/generate-certificate\x12w\n" +
	"\n" +
	"GetMetrics\x12\x1d.api.GetGatewayMetricsRequest\x1a\x1e.api.GetGatewayMetricsResponse\"*\x82\xd3\xe4\x93\x02$\x12\"/api/gateways/{gateway_id}/metrics\x12\x9d\x01\n" +
	"\x13GetDutyCycleMetrics\x12&.api.GetGatewayDutyCycleMetricsRequest\x1a'.api.GetGatewayDutyCycleMetricsResponse\"5\x82\xd3\xe4\x93\x02/\x12-/api/gateways/{gateway_id}/duty-cycle-metrics\x12\x89\x01\n" +
	"\x0fGetRelayGateway\x12\x1b.api.GetRelayGatewayRequest\x1a\x1c.api.GetRelayGatewayResponse\";\x82\xd3\xe4\x93\x025\x123/api/gateways/relay-gateways/{tenant_id}/{relay_id}\x12x\n" +
	"\x11ListRelayGateways\x12\x1d.api.ListRelayGatewaysRequest\x1a\x1e.api.ListRelayGatewaysResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/api/gateways/relay-gateways\x12\xa8\x01\n" +
	"\x12UpdateRelayGateway\x12\x1e.api.UpdateRelayGatewayRequest\x1a\x16.google.protobuf.Empty\"Z\x82\xd3\xe4\x93\x02T:\x01*\x1aO/api/gateways/relay-gateways/{relay_gateway.tenant_id}/{relay_gateway.relay_id}\x12\x89\x01\n" +
	"\x12DeleteRelayGateway\x12\x1e.api.DeleteRelayGatewayRequest\x1a\x16.google.protobuf.Empty\";\x82\xd3\xe4\x93\x025*3/api/gateways/relay-gateways/{tenant_id}/{relay_id}B\x92\x01\n" +
	"\x11io.chirpstack.apiB\fGatewayProtoP\x01Z.github.com/chirpstack/chirpstack/api/go/v4/api\xaa\x02\x0eChirpstack.Api\xca\x02\x0eChirpstack\\Api\xe2\x02\x1aGPBMetadata\\Chirpstack\\Apib\x06proto3"

var (
	file_api_gateway_proto_rawDescOnce sync.Once
	file_api_gateway_proto_rawDescData []byte
)

func file_api_gateway_proto_rawDescGZIP() []byte {
	file_api_gateway_proto_rawDescOnce.Do(func() {
		file_api_gateway_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_gateway_proto_rawDesc), len(file_api_gateway_proto_rawDesc)))
	})
	return file_api_gateway_proto_rawDescData
}

var file_api_gateway_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_api_gateway_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
var file_api_gateway_proto_goTypes = []any{
	(GatewayState)(0),                                // 0: api.GatewayState
	(ListGatewaysRequest_OrderBy)(0),                 // 1: api.ListGatewaysRequest.OrderBy
	(*Gateway)(nil),                                  // 2: api.Gateway
	(*GatewayListItem)(nil),                          // 3: api.GatewayListItem
	(*CreateGatewayRequest)(nil),                     // 4: api.CreateGatewayRequest
	(*GetGatewayRequest)(nil),                        // 5: api.GetGatewayRequest
	(*GetGatewayResponse)(nil),                       // 6: api.GetGatewayResponse
	(*UpdateGatewayRequest)(nil),                     // 7: api.UpdateGatewayRequest
	(*DeleteGatewayRequest)(nil),                     // 8: api.DeleteGatewayRequest
	(*ListGatewaysRequest)(nil),                      // 9: api.ListGatewaysRequest
	(*ListGatewaysResponse)(nil),                     // 10: api.ListGatewaysResponse
	(*GenerateGatewayClientCertificateRequest)(nil),  // 11: api.GenerateGatewayClientCertificateRequest
	(*GenerateGatewayClientCertificateResponse)(nil), // 12: api.GenerateGatewayClientCertificateResponse
	(*GetGatewayMetricsRequest)(nil),                 // 13: api.GetGatewayMetricsRequest
	(*GetGatewayMetricsResponse)(nil),                // 14: api.GetGatewayMetricsResponse
	(*GetGatewayDutyCycleMetricsRequest)(nil),        // 15: api.GetGatewayDutyCycleMetricsRequest
	(*GetGatewayDutyCycleMetricsResponse)(nil),       // 16: api.GetGatewayDutyCycleMetricsResponse
	(*GetRelayGatewayRequest)(nil),                   // 17: api.GetRelayGatewayRequest
	(*GetRelayGatewayResponse)(nil),                  // 18: api.GetRelayGatewayResponse
	(*ListRelayGatewaysRequest)(nil),                 // 19: api.ListRelayGatewaysRequest
	(*ListRelayGatewaysResponse)(nil),                // 20: api.ListRelayGatewaysResponse
	(*RelayGatewayListItem)(nil),                     // 21: api.RelayGatewayListItem
	(*UpdateRelayGatewayRequest)(nil),                // 22: api.UpdateRelayGatewayRequest
	(*DeleteRelayGatewayRequest)(nil),                // 23: api.DeleteRelayGatewayRequest
	(*RelayGateway)(nil),                             // 24: api.RelayGateway
	nil,                                              // 25: api.Gateway.TagsEntry
	nil,                                              // 26: api.Gateway.MetadataEntry
	nil,                                              // 27: api.GatewayListItem.PropertiesEntry
	(*common.Location)(nil),                          // 28: common.Location
	(*timestamppb.Timestamp)(nil),                    // 29: google.protobuf.Timestamp
	(common.Aggregation)(0),                          // 30: common.Aggregation
	(*common.Metric)(nil),                            // 31: common.Metric
	(*emptypb.Empty)(nil),                            // 32: google.protobuf.Empty
}
var file_api_gateway_proto_depIdxs = []int32{
	28, // 0: api.Gateway.location:type_name -> common.Location
	25, // 1: api.Gateway.tags:type_name -> api.Gateway.TagsEntry
	26, // 2: api.Gateway.metadata:type_name -> api.Gateway.MetadataEntry
	28, // 3: api.GatewayListItem.location:type_name -> common.Location
	27, // 4: api.GatewayListItem.properties:type_name -> api.GatewayListItem.PropertiesEntry
	29, // 5: api.GatewayListItem.created_at:type_name -> google.protobuf.Timestamp
	29, // 6: api.GatewayListItem.updated_at:type_name -> google.protobuf.Timestamp
	29, // 7: api.GatewayListItem.last_seen_at:type_name -> google.protobuf.Timestamp
	0,  // 8: api.GatewayListItem.state:type_name -> api.GatewayState
	2,  // 9: api.CreateGatewayRequest.gateway:type_name -> api.Gateway
	2,  // 10: api.GetGatewayResponse.gateway:type_name -> api.Gateway
	29, // 11: api.GetGatewayResponse.created_at:type_name -> google.protobuf.Timestamp
	29, // 12: api.GetGatewayResponse.updated_at:type_name -> google.protobuf.Timestamp
	29, // 13: api.GetGatewayResponse.last_seen_at:type_name -> google.protobuf.Timestamp
	2,  // 14: api.UpdateGatewayRequest.gateway:type_name -> api.Gateway
	1,  // 15: api.ListGatewaysRequest.order_by:type_name -> api.ListGatewaysRequest.OrderBy
	3,  // 16: api.ListGatewaysResponse.result:type_name -> api.GatewayListItem
	29, // 17: api.GenerateGatewayClientCertificateResponse.expires_at:type_name -> google.protobuf.Timestamp
	29, // 18: api.GetGatewayMetricsRequest.start:type_name -> google.protobuf.Timestamp
	29, // 19: api.GetGatewayMetricsRequest.end:type_name -> google.protobuf.Timestamp
	30, // 20: api.GetGatewayMetricsRequest.aggregation:type_name -> common.Aggregation
	31, // 21: api.GetGatewayMetricsResponse.rx_packets:type_name -> common.Metric
	31, // 22: api.GetGatewayMetricsResponse.tx_packets:type_name -> common.Metric
	31, // 23: api.GetGatewayMetricsResponse.tx_packets_per_freq:type_name -> common.Metric
	31, // 24: api.GetGatewayMetricsResponse.rx_packets_per_freq:type_name -> common.Metric
	31, // 25: api.GetGatewayMetricsResponse.tx_packets_per_dr:type_name -> common.Metric
	31, // 26: api.GetGatewayMetricsResponse.rx_packets_per_dr:type_name -> common.Metric
	31, // 27: api.GetGatewayMetricsResponse.tx_packets_per_status:type_name -> common.Metric
	29, // 28: api.GetGatewayDutyCycleMetricsRequest.start:type_name -> google.protobuf.Timestamp
	29, // 29: api.GetGatewayDutyCycleMetricsRequest.end:type_name -> google.protobuf.Timestamp
	31, // 30: api.GetGatewayDutyCycleMetricsResponse.max_load_percentage:type_name -> common.Metric
	31, // 31: api.GetGatewayDutyCycleMetricsResponse.window_percentage:type_name -> common.Metric
	24, // 32: api.GetRelayGatewayResponse.relay_gateway:type_name -> api.RelayGateway
	29, // 33: api.GetRelayGatewayResponse.created_at:type_name -> google.protobuf.Timestamp
	29, // 34: api.GetRelayGatewayResponse.updated_at:type_name -> google.protobuf.Timestamp
	29, // 35: api.GetRelayGatewayResponse.last_seen_at:type_name -> google.protobuf.Timestamp
	21, // 36: api.ListRelayGatewaysResponse.result:type_name -> api.RelayGatewayListItem
	29, // 37: api.RelayGatewayListItem.created_at:type_name -> google.protobuf.Timestamp
	29, // 38: api.RelayGatewayListItem.updated_at:type_name -> google.protobuf.Timestamp
	29, // 39: api.RelayGatewayListItem.last_seen_at:type_name -> google.protobuf.Timestamp
	0,  // 40: api.RelayGatewayListItem.state:type_name -> api.GatewayState
	24, // 41: api.UpdateRelayGatewayRequest.relay_gateway:type_name -> api.RelayGateway
	4,  // 42: api.GatewayService.Create:input_type -> api.CreateGatewayRequest
	5,  // 43: api.GatewayService.Get:input_type -> api.GetGatewayRequest
	7,  // 44: api.GatewayService.Update:input_type -> api.UpdateGatewayRequest
	8,  // 45: api.GatewayService.Delete:input_type -> api.DeleteGatewayRequest
	9,  // 46: api.GatewayService.List:input_type -> api.ListGatewaysRequest
	11, // 47: api.GatewayService.GenerateClientCertificate:input_type -> api.GenerateGatewayClientCertificateRequest
	13, // 48: api.GatewayService.GetMetrics:input_type -> api.GetGatewayMetricsRequest
	15, // 49: api.GatewayService.GetDutyCycleMetrics:input_type -> api.GetGatewayDutyCycleMetricsRequest
	17, // 50: api.GatewayService.GetRelayGateway:input_type -> api.GetRelayGatewayRequest
	19, // 51: api.GatewayService.ListRelayGateways:input_type -> api.ListRelayGatewaysRequest
	22, // 52: api.GatewayService.UpdateRelayGateway:input_type -> api.UpdateRelayGatewayRequest
	23, // 53: api.GatewayService.DeleteRelayGateway:input_type -> api.DeleteRelayGatewayRequest
	32, // 54: api.GatewayService.Create:output_type -> google.protobuf.Empty
	6,  // 55: api.GatewayService.Get:output_type -> api.GetGatewayResponse
	32, // 56: api.GatewayService.Update:output_type -> google.protobuf.Empty
	32, // 57: api.GatewayService.Delete:output_type -> google.protobuf.Empty
	10, // 58: api.GatewayService.List:output_type -> api.ListGatewaysResponse
	12, // 59: api.GatewayService.GenerateClientCertificate:output_type -> api.GenerateGatewayClientCertificateResponse
	14, // 60: api.GatewayService.GetMetrics:output_type -> api.GetGatewayMetricsResponse
	16, // 61: api.GatewayService.GetDutyCycleMetrics:output_type -> api.GetGatewayDutyCycleMetricsResponse
	18, // 62: api.GatewayService.GetRelayGateway:output_type -> api.GetRelayGatewayResponse
	20, // 63: api.GatewayService.ListRelayGateways:output_type -> api.ListRelayGatewaysResponse
	32, // 64: api.GatewayService.UpdateRelayGateway:output_type -> google.protobuf.Empty
	32, // 65: api.GatewayService.DeleteRelayGateway:output_type -> google.protobuf.Empty
	54, // [54:66] is the sub-list for method output_type
	42, // [42:54] is the sub-list for method input_type
	42, // [42:42] is the sub-list for extension type_name
	42, // [42:42] is the sub-list for extension extendee
	0,  // [0:42] is the sub-list for field type_name
}

func init() { file_api_gateway_proto_init() }
func file_api_gateway_proto_init() {
	if File_api_gateway_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_gateway_proto_rawDesc), len(file_api_gateway_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   26,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_api_gateway_proto_goTypes,
		DependencyIndexes: file_api_gateway_proto_depIdxs,
		EnumInfos:         file_api_gateway_proto_enumTypes,
		MessageInfos:      file_api_gateway_proto_msgTypes,
	}.Build()
	File_api_gateway_proto = out.File
	file_api_gateway_proto_goTypes = nil
	file_api_gateway_proto_depIdxs = nil
}
