// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v6.30.2
// source: api/device_profile_template.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 DeviceProfileTemplate struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Device-profile template ID.
	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"`
	// Description.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Vendor.
	Vendor string `protobuf:"bytes,4,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Firmware.
	Firmware string `protobuf:"bytes,5,opt,name=firmware,proto3" json:"firmware,omitempty"`
	// Region.
	Region common.Region `protobuf:"varint,6,opt,name=region,proto3,enum=common.Region" json:"region,omitempty"`
	// LoRaWAN mac-version.
	MacVersion common.MacVersion `protobuf:"varint,7,opt,name=mac_version,json=macVersion,proto3,enum=common.MacVersion" json:"mac_version,omitempty"`
	// Regional parameters revision.
	RegParamsRevision common.RegParamsRevision `protobuf:"varint,8,opt,name=reg_params_revision,json=regParamsRevision,proto3,enum=common.RegParamsRevision" json:"reg_params_revision,omitempty"`
	// ADR algorithm ID.
	AdrAlgorithmId string `protobuf:"bytes,9,opt,name=adr_algorithm_id,json=adrAlgorithmId,proto3" json:"adr_algorithm_id,omitempty"`
	// Payload codec runtime.
	PayloadCodecRuntime CodecRuntime `protobuf:"varint,10,opt,name=payload_codec_runtime,json=payloadCodecRuntime,proto3,enum=api.CodecRuntime" json:"payload_codec_runtime,omitempty"`
	// Payload codec script.
	PayloadCodecScript string `protobuf:"bytes,11,opt,name=payload_codec_script,json=payloadCodecScript,proto3" json:"payload_codec_script,omitempty"`
	// Flush queue on device activation.
	FlushQueueOnActivate bool `protobuf:"varint,12,opt,name=flush_queue_on_activate,json=flushQueueOnActivate,proto3" json:"flush_queue_on_activate,omitempty"`
	// Uplink interval (seconds).
	// This defines the expected uplink interval which the device uses for
	// communication. When the uplink interval has expired and no uplink has
	// been received, the device is considered inactive.
	UplinkInterval uint32 `protobuf:"varint,13,opt,name=uplink_interval,json=uplinkInterval,proto3" json:"uplink_interval,omitempty"`
	// Device-status request interval (times / day).
	// This defines the times per day that ChirpStack will request the device-status
	// from the device.
	DeviceStatusReqInterval uint32 `protobuf:"varint,14,opt,name=device_status_req_interval,json=deviceStatusReqInterval,proto3" json:"device_status_req_interval,omitempty"`
	// Supports OTAA.
	SupportsOtaa bool `protobuf:"varint,15,opt,name=supports_otaa,json=supportsOtaa,proto3" json:"supports_otaa,omitempty"`
	// Supports Class B.
	SupportsClassB bool `protobuf:"varint,16,opt,name=supports_class_b,json=supportsClassB,proto3" json:"supports_class_b,omitempty"`
	// Supports Class-C.
	SupportsClassC bool `protobuf:"varint,17,opt,name=supports_class_c,json=supportsClassC,proto3" json:"supports_class_c,omitempty"`
	// Class-B timeout (seconds).
	// This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested).
	ClassBTimeout uint32 `protobuf:"varint,18,opt,name=class_b_timeout,json=classBTimeout,proto3" json:"class_b_timeout,omitempty"`
	// Class-B ping-slot periodicity (only for Class-B).
	// Valid options are: 0 - 7.
	//
	// Number of ping-slots per beacon-period:
	// pingNb = 2^(7-periodicity)
	//
	// Periodicity: 0 = 128 ping-slots per beacon period = ~ every 1 sec
	// Periodicity: 7 = 1 ping-slot per beacon period = ~ every 128 sec
	ClassBPingSlotPeriodicity uint32 `protobuf:"varint,19,opt,name=class_b_ping_slot_periodicity,json=classBPingSlotPeriodicity,proto3" json:"class_b_ping_slot_periodicity,omitempty"`
	// Class-B ping-slot DR.
	ClassBPingSlotDr uint32 `protobuf:"varint,20,opt,name=class_b_ping_slot_dr,json=classBPingSlotDr,proto3" json:"class_b_ping_slot_dr,omitempty"`
	// Class-B ping-slot freq (Hz).
	ClassBPingSlotFreq uint32 `protobuf:"varint,21,opt,name=class_b_ping_slot_freq,json=classBPingSlotFreq,proto3" json:"class_b_ping_slot_freq,omitempty"`
	// Class-C timeout (seconds).
	// This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested).
	ClassCTimeout uint32 `protobuf:"varint,22,opt,name=class_c_timeout,json=classCTimeout,proto3" json:"class_c_timeout,omitempty"`
	// RX1 delay (for ABP).
	AbpRx1Delay uint32 `protobuf:"varint,23,opt,name=abp_rx1_delay,json=abpRx1Delay,proto3" json:"abp_rx1_delay,omitempty"`
	// RX1 DR offset (for ABP).
	AbpRx1DrOffset uint32 `protobuf:"varint,24,opt,name=abp_rx1_dr_offset,json=abpRx1DrOffset,proto3" json:"abp_rx1_dr_offset,omitempty"`
	// RX2 DR (for ABP).
	AbpRx2Dr uint32 `protobuf:"varint,25,opt,name=abp_rx2_dr,json=abpRx2Dr,proto3" json:"abp_rx2_dr,omitempty"`
	// RX2 frequency (for ABP, Hz).
	AbpRx2Freq uint32 `protobuf:"varint,26,opt,name=abp_rx2_freq,json=abpRx2Freq,proto3" json:"abp_rx2_freq,omitempty"`
	// User defined tags.
	Tags map[string]string `protobuf:"bytes,27,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Measurements.
	// If defined, ChirpStack will visualize these metrics in the web-interface.
	Measurements map[string]*Measurement `protobuf:"bytes,28,rep,name=measurements,proto3" json:"measurements,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Auto-detect measurements.
	// If set to true, measurements will be automatically added based on the
	// keys of the decoded payload. In cases where the decoded payload contains
	// random keys in the data, you want to set this to false.
	AutoDetectMeasurements bool `protobuf:"varint,29,opt,name=auto_detect_measurements,json=autoDetectMeasurements,proto3" json:"auto_detect_measurements,omitempty"`
	unknownFields          protoimpl.UnknownFields
	sizeCache              protoimpl.SizeCache
}

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

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

func (*DeviceProfileTemplate) ProtoMessage() {}

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

func (x *DeviceProfileTemplate) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

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

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

func (x *DeviceProfileTemplate) GetVendor() string {
	if x != nil {
		return x.Vendor
	}
	return ""
}

func (x *DeviceProfileTemplate) GetFirmware() string {
	if x != nil {
		return x.Firmware
	}
	return ""
}

func (x *DeviceProfileTemplate) GetRegion() common.Region {
	if x != nil {
		return x.Region
	}
	return common.Region(0)
}

func (x *DeviceProfileTemplate) GetMacVersion() common.MacVersion {
	if x != nil {
		return x.MacVersion
	}
	return common.MacVersion(0)
}

func (x *DeviceProfileTemplate) GetRegParamsRevision() common.RegParamsRevision {
	if x != nil {
		return x.RegParamsRevision
	}
	return common.RegParamsRevision(0)
}

func (x *DeviceProfileTemplate) GetAdrAlgorithmId() string {
	if x != nil {
		return x.AdrAlgorithmId
	}
	return ""
}

func (x *DeviceProfileTemplate) GetPayloadCodecRuntime() CodecRuntime {
	if x != nil {
		return x.PayloadCodecRuntime
	}
	return CodecRuntime_NONE
}

func (x *DeviceProfileTemplate) GetPayloadCodecScript() string {
	if x != nil {
		return x.PayloadCodecScript
	}
	return ""
}

func (x *DeviceProfileTemplate) GetFlushQueueOnActivate() bool {
	if x != nil {
		return x.FlushQueueOnActivate
	}
	return false
}

func (x *DeviceProfileTemplate) GetUplinkInterval() uint32 {
	if x != nil {
		return x.UplinkInterval
	}
	return 0
}

func (x *DeviceProfileTemplate) GetDeviceStatusReqInterval() uint32 {
	if x != nil {
		return x.DeviceStatusReqInterval
	}
	return 0
}

func (x *DeviceProfileTemplate) GetSupportsOtaa() bool {
	if x != nil {
		return x.SupportsOtaa
	}
	return false
}

func (x *DeviceProfileTemplate) GetSupportsClassB() bool {
	if x != nil {
		return x.SupportsClassB
	}
	return false
}

func (x *DeviceProfileTemplate) GetSupportsClassC() bool {
	if x != nil {
		return x.SupportsClassC
	}
	return false
}

func (x *DeviceProfileTemplate) GetClassBTimeout() uint32 {
	if x != nil {
		return x.ClassBTimeout
	}
	return 0
}

func (x *DeviceProfileTemplate) GetClassBPingSlotPeriodicity() uint32 {
	if x != nil {
		return x.ClassBPingSlotPeriodicity
	}
	return 0
}

func (x *DeviceProfileTemplate) GetClassBPingSlotDr() uint32 {
	if x != nil {
		return x.ClassBPingSlotDr
	}
	return 0
}

func (x *DeviceProfileTemplate) GetClassBPingSlotFreq() uint32 {
	if x != nil {
		return x.ClassBPingSlotFreq
	}
	return 0
}

func (x *DeviceProfileTemplate) GetClassCTimeout() uint32 {
	if x != nil {
		return x.ClassCTimeout
	}
	return 0
}

func (x *DeviceProfileTemplate) GetAbpRx1Delay() uint32 {
	if x != nil {
		return x.AbpRx1Delay
	}
	return 0
}

func (x *DeviceProfileTemplate) GetAbpRx1DrOffset() uint32 {
	if x != nil {
		return x.AbpRx1DrOffset
	}
	return 0
}

func (x *DeviceProfileTemplate) GetAbpRx2Dr() uint32 {
	if x != nil {
		return x.AbpRx2Dr
	}
	return 0
}

func (x *DeviceProfileTemplate) GetAbpRx2Freq() uint32 {
	if x != nil {
		return x.AbpRx2Freq
	}
	return 0
}

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

func (x *DeviceProfileTemplate) GetMeasurements() map[string]*Measurement {
	if x != nil {
		return x.Measurements
	}
	return nil
}

func (x *DeviceProfileTemplate) GetAutoDetectMeasurements() bool {
	if x != nil {
		return x.AutoDetectMeasurements
	}
	return false
}

type DeviceProfileTemplateListItem struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Device-profile template ID.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,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"`
	// Name.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Vendor.
	Vendor string `protobuf:"bytes,5,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Firmware.
	Firmware string `protobuf:"bytes,6,opt,name=firmware,proto3" json:"firmware,omitempty"`
	// Region.
	Region common.Region `protobuf:"varint,7,opt,name=region,proto3,enum=common.Region" json:"region,omitempty"`
	// LoRaWAN mac-version.
	MacVersion common.MacVersion `protobuf:"varint,8,opt,name=mac_version,json=macVersion,proto3,enum=common.MacVersion" json:"mac_version,omitempty"`
	// Regional parameters revision.
	RegParamsRevision common.RegParamsRevision `protobuf:"varint,9,opt,name=reg_params_revision,json=regParamsRevision,proto3,enum=common.RegParamsRevision" json:"reg_params_revision,omitempty"`
	// Supports OTAA.
	SupportsOtaa bool `protobuf:"varint,10,opt,name=supports_otaa,json=supportsOtaa,proto3" json:"supports_otaa,omitempty"`
	// Supports Class-B.
	SupportsClassB bool `protobuf:"varint,11,opt,name=supports_class_b,json=supportsClassB,proto3" json:"supports_class_b,omitempty"`
	// Supports Class-C.
	SupportsClassC bool `protobuf:"varint,12,opt,name=supports_class_c,json=supportsClassC,proto3" json:"supports_class_c,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*DeviceProfileTemplateListItem) ProtoMessage() {}

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

func (x *DeviceProfileTemplateListItem) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

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

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

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

func (x *DeviceProfileTemplateListItem) GetVendor() string {
	if x != nil {
		return x.Vendor
	}
	return ""
}

func (x *DeviceProfileTemplateListItem) GetFirmware() string {
	if x != nil {
		return x.Firmware
	}
	return ""
}

func (x *DeviceProfileTemplateListItem) GetRegion() common.Region {
	if x != nil {
		return x.Region
	}
	return common.Region(0)
}

func (x *DeviceProfileTemplateListItem) GetMacVersion() common.MacVersion {
	if x != nil {
		return x.MacVersion
	}
	return common.MacVersion(0)
}

func (x *DeviceProfileTemplateListItem) GetRegParamsRevision() common.RegParamsRevision {
	if x != nil {
		return x.RegParamsRevision
	}
	return common.RegParamsRevision(0)
}

func (x *DeviceProfileTemplateListItem) GetSupportsOtaa() bool {
	if x != nil {
		return x.SupportsOtaa
	}
	return false
}

func (x *DeviceProfileTemplateListItem) GetSupportsClassB() bool {
	if x != nil {
		return x.SupportsClassB
	}
	return false
}

func (x *DeviceProfileTemplateListItem) GetSupportsClassC() bool {
	if x != nil {
		return x.SupportsClassC
	}
	return false
}

type CreateDeviceProfileTemplateRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Object to create.
	DeviceProfileTemplate *DeviceProfileTemplate `protobuf:"bytes,1,opt,name=device_profile_template,json=deviceProfileTemplate,proto3" json:"device_profile_template,omitempty"`
	unknownFields         protoimpl.UnknownFields
	sizeCache             protoimpl.SizeCache
}

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

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

func (*CreateDeviceProfileTemplateRequest) ProtoMessage() {}

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

func (x *CreateDeviceProfileTemplateRequest) GetDeviceProfileTemplate() *DeviceProfileTemplate {
	if x != nil {
		return x.DeviceProfileTemplate
	}
	return nil
}

type GetDeviceProfileTemplateRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID.
	Id            string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetDeviceProfileTemplateRequest) ProtoMessage() {}

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

func (x *GetDeviceProfileTemplateRequest) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

type GetDeviceProfileTemplateResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Device-profile template object.
	DeviceProfileTemplate *DeviceProfileTemplate `protobuf:"bytes,1,opt,name=device_profile_template,json=deviceProfileTemplate,proto3" json:"device_profile_template,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"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetDeviceProfileTemplateResponse) ProtoMessage() {}

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

func (x *GetDeviceProfileTemplateResponse) GetDeviceProfileTemplate() *DeviceProfileTemplate {
	if x != nil {
		return x.DeviceProfileTemplate
	}
	return nil
}

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

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

type UpdateDeviceProfileTemplateRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Object to update.
	DeviceProfileTemplate *DeviceProfileTemplate `protobuf:"bytes,1,opt,name=device_profile_template,json=deviceProfileTemplate,proto3" json:"device_profile_template,omitempty"`
	unknownFields         protoimpl.UnknownFields
	sizeCache             protoimpl.SizeCache
}

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

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

func (*UpdateDeviceProfileTemplateRequest) ProtoMessage() {}

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

func (x *UpdateDeviceProfileTemplateRequest) GetDeviceProfileTemplate() *DeviceProfileTemplate {
	if x != nil {
		return x.DeviceProfileTemplate
	}
	return nil
}

type DeleteDeviceProfileTemplateRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID.
	Id            string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeleteDeviceProfileTemplateRequest) ProtoMessage() {}

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

func (x *DeleteDeviceProfileTemplateRequest) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

type ListDeviceProfileTemplatesRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Max number of device-profile templates 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"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListDeviceProfileTemplatesRequest) ProtoMessage() {}

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

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

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

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

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

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

func (*ListDeviceProfileTemplatesResponse) ProtoMessage() {}

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

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

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

var File_api_device_profile_template_proto protoreflect.FileDescriptor

const file_api_device_profile_template_proto_rawDesc = "" +
	"\n" +
	"!api/device_profile_template.proto\x12\x03api\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x13common/common.proto\x1a\x18api/device_profile.proto\"\xc9\v\n" +
	"\x15DeviceProfileTemplate\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x16\n" +
	"\x06vendor\x18\x04 \x01(\tR\x06vendor\x12\x1a\n" +
	"\bfirmware\x18\x05 \x01(\tR\bfirmware\x12&\n" +
	"\x06region\x18\x06 \x01(\x0e2\x0e.common.RegionR\x06region\x123\n" +
	"\vmac_version\x18\a \x01(\x0e2\x12.common.MacVersionR\n" +
	"macVersion\x12I\n" +
	"\x13reg_params_revision\x18\b \x01(\x0e2\x19.common.RegParamsRevisionR\x11regParamsRevision\x12(\n" +
	"\x10adr_algorithm_id\x18\t \x01(\tR\x0eadrAlgorithmId\x12E\n" +
	"\x15payload_codec_runtime\x18\n" +
	" \x01(\x0e2\x11.api.CodecRuntimeR\x13payloadCodecRuntime\x120\n" +
	"\x14payload_codec_script\x18\v \x01(\tR\x12payloadCodecScript\x125\n" +
	"\x17flush_queue_on_activate\x18\f \x01(\bR\x14flushQueueOnActivate\x12'\n" +
	"\x0fuplink_interval\x18\r \x01(\rR\x0euplinkInterval\x12;\n" +
	"\x1adevice_status_req_interval\x18\x0e \x01(\rR\x17deviceStatusReqInterval\x12#\n" +
	"\rsupports_otaa\x18\x0f \x01(\bR\fsupportsOtaa\x12(\n" +
	"\x10supports_class_b\x18\x10 \x01(\bR\x0esupportsClassB\x12(\n" +
	"\x10supports_class_c\x18\x11 \x01(\bR\x0esupportsClassC\x12&\n" +
	"\x0fclass_b_timeout\x18\x12 \x01(\rR\rclassBTimeout\x12@\n" +
	"\x1dclass_b_ping_slot_periodicity\x18\x13 \x01(\rR\x19classBPingSlotPeriodicity\x12.\n" +
	"\x14class_b_ping_slot_dr\x18\x14 \x01(\rR\x10classBPingSlotDr\x122\n" +
	"\x16class_b_ping_slot_freq\x18\x15 \x01(\rR\x12classBPingSlotFreq\x12&\n" +
	"\x0fclass_c_timeout\x18\x16 \x01(\rR\rclassCTimeout\x12\"\n" +
	"\rabp_rx1_delay\x18\x17 \x01(\rR\vabpRx1Delay\x12)\n" +
	"\x11abp_rx1_dr_offset\x18\x18 \x01(\rR\x0eabpRx1DrOffset\x12\x1c\n" +
	"\n" +
	"abp_rx2_dr\x18\x19 \x01(\rR\babpRx2Dr\x12 \n" +
	"\fabp_rx2_freq\x18\x1a \x01(\rR\n" +
	"abpRx2Freq\x128\n" +
	"\x04tags\x18\x1b \x03(\v2$.api.DeviceProfileTemplate.TagsEntryR\x04tags\x12P\n" +
	"\fmeasurements\x18\x1c \x03(\v2,.api.DeviceProfileTemplate.MeasurementsEntryR\fmeasurements\x128\n" +
	"\x18auto_detect_measurements\x18\x1d \x01(\bR\x16autoDetectMeasurements\x1a7\n" +
	"\tTagsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aQ\n" +
	"\x11MeasurementsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12&\n" +
	"\x05value\x18\x02 \x01(\v2\x10.api.MeasurementR\x05value:\x028\x01\"\x8e\x04\n" +
	"\x1dDeviceProfileTemplateListItem\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\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\x12\n" +
	"\x04name\x18\x04 \x01(\tR\x04name\x12\x16\n" +
	"\x06vendor\x18\x05 \x01(\tR\x06vendor\x12\x1a\n" +
	"\bfirmware\x18\x06 \x01(\tR\bfirmware\x12&\n" +
	"\x06region\x18\a \x01(\x0e2\x0e.common.RegionR\x06region\x123\n" +
	"\vmac_version\x18\b \x01(\x0e2\x12.common.MacVersionR\n" +
	"macVersion\x12I\n" +
	"\x13reg_params_revision\x18\t \x01(\x0e2\x19.common.RegParamsRevisionR\x11regParamsRevision\x12#\n" +
	"\rsupports_otaa\x18\n" +
	" \x01(\bR\fsupportsOtaa\x12(\n" +
	"\x10supports_class_b\x18\v \x01(\bR\x0esupportsClassB\x12(\n" +
	"\x10supports_class_c\x18\f \x01(\bR\x0esupportsClassC\"x\n" +
	"\"CreateDeviceProfileTemplateRequest\x12R\n" +
	"\x17device_profile_template\x18\x01 \x01(\v2\x1a.api.DeviceProfileTemplateR\x15deviceProfileTemplate\"1\n" +
	"\x1fGetDeviceProfileTemplateRequest\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\"\xec\x01\n" +
	" GetDeviceProfileTemplateResponse\x12R\n" +
	"\x17device_profile_template\x18\x01 \x01(\v2\x1a.api.DeviceProfileTemplateR\x15deviceProfileTemplate\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\"x\n" +
	"\"UpdateDeviceProfileTemplateRequest\x12R\n" +
	"\x17device_profile_template\x18\x01 \x01(\v2\x1a.api.DeviceProfileTemplateR\x15deviceProfileTemplate\"4\n" +
	"\"DeleteDeviceProfileTemplateRequest\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\"Q\n" +
	"!ListDeviceProfileTemplatesRequest\x12\x14\n" +
	"\x05limit\x18\x01 \x01(\rR\x05limit\x12\x16\n" +
	"\x06offset\x18\x02 \x01(\rR\x06offset\"\x81\x01\n" +
	"\"ListDeviceProfileTemplatesResponse\x12\x1f\n" +
	"\vtotal_count\x18\x01 \x01(\rR\n" +
	"totalCount\x12:\n" +
	"\x06result\x18\x02 \x03(\v2\".api.DeviceProfileTemplateListItemR\x06result2\x9d\x05\n" +
	"\x1cDeviceProfileTemplateService\x12s\n" +
	"\x06Create\x12'.api.CreateDeviceProfileTemplateRequest\x1a\x16.google.protobuf.Empty\"(\x82\xd3\xe4\x93\x02\":\x01*\"\x1d/api/device-profile-templates\x12~\n" +
	"\x03Get\x12$.api.GetDeviceProfileTemplateRequest\x1a%.api.GetDeviceProfileTemplateResponse\"*\x82\xd3\xe4\x93\x02$\x12\"/api/device-profile-templates/{id}\x12\x90\x01\n" +
	"\x06Update\x12'.api.UpdateDeviceProfileTemplateRequest\x1a\x16.google.protobuf.Empty\"E\x82\xd3\xe4\x93\x02?:\x01*\x1a:/api/device-profile-templates/{device_profile_template.id}\x12u\n" +
	"\x06Delete\x12'.api.DeleteDeviceProfileTemplateRequest\x1a\x16.google.protobuf.Empty\"*\x82\xd3\xe4\x93\x02$*\"/api/device-profile-templates/{id}\x12~\n" +
	"\x04List\x12&.api.ListDeviceProfileTemplatesRequest\x1a'.api.ListDeviceProfileTemplatesResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/api/device-profile-templatesB\xa0\x01\n" +
	"\x11io.chirpstack.apiB\x1aDeviceProfileTemplateProtoP\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_device_profile_template_proto_rawDescOnce sync.Once
	file_api_device_profile_template_proto_rawDescData []byte
)

func file_api_device_profile_template_proto_rawDescGZIP() []byte {
	file_api_device_profile_template_proto_rawDescOnce.Do(func() {
		file_api_device_profile_template_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_device_profile_template_proto_rawDesc), len(file_api_device_profile_template_proto_rawDesc)))
	})
	return file_api_device_profile_template_proto_rawDescData
}

var file_api_device_profile_template_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_api_device_profile_template_proto_goTypes = []any{
	(*DeviceProfileTemplate)(nil),              // 0: api.DeviceProfileTemplate
	(*DeviceProfileTemplateListItem)(nil),      // 1: api.DeviceProfileTemplateListItem
	(*CreateDeviceProfileTemplateRequest)(nil), // 2: api.CreateDeviceProfileTemplateRequest
	(*GetDeviceProfileTemplateRequest)(nil),    // 3: api.GetDeviceProfileTemplateRequest
	(*GetDeviceProfileTemplateResponse)(nil),   // 4: api.GetDeviceProfileTemplateResponse
	(*UpdateDeviceProfileTemplateRequest)(nil), // 5: api.UpdateDeviceProfileTemplateRequest
	(*DeleteDeviceProfileTemplateRequest)(nil), // 6: api.DeleteDeviceProfileTemplateRequest
	(*ListDeviceProfileTemplatesRequest)(nil),  // 7: api.ListDeviceProfileTemplatesRequest
	(*ListDeviceProfileTemplatesResponse)(nil), // 8: api.ListDeviceProfileTemplatesResponse
	nil,                           // 9: api.DeviceProfileTemplate.TagsEntry
	nil,                           // 10: api.DeviceProfileTemplate.MeasurementsEntry
	(common.Region)(0),            // 11: common.Region
	(common.MacVersion)(0),        // 12: common.MacVersion
	(common.RegParamsRevision)(0), // 13: common.RegParamsRevision
	(CodecRuntime)(0),             // 14: api.CodecRuntime
	(*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp
	(*Measurement)(nil),           // 16: api.Measurement
	(*emptypb.Empty)(nil),         // 17: google.protobuf.Empty
}
var file_api_device_profile_template_proto_depIdxs = []int32{
	11, // 0: api.DeviceProfileTemplate.region:type_name -> common.Region
	12, // 1: api.DeviceProfileTemplate.mac_version:type_name -> common.MacVersion
	13, // 2: api.DeviceProfileTemplate.reg_params_revision:type_name -> common.RegParamsRevision
	14, // 3: api.DeviceProfileTemplate.payload_codec_runtime:type_name -> api.CodecRuntime
	9,  // 4: api.DeviceProfileTemplate.tags:type_name -> api.DeviceProfileTemplate.TagsEntry
	10, // 5: api.DeviceProfileTemplate.measurements:type_name -> api.DeviceProfileTemplate.MeasurementsEntry
	15, // 6: api.DeviceProfileTemplateListItem.created_at:type_name -> google.protobuf.Timestamp
	15, // 7: api.DeviceProfileTemplateListItem.updated_at:type_name -> google.protobuf.Timestamp
	11, // 8: api.DeviceProfileTemplateListItem.region:type_name -> common.Region
	12, // 9: api.DeviceProfileTemplateListItem.mac_version:type_name -> common.MacVersion
	13, // 10: api.DeviceProfileTemplateListItem.reg_params_revision:type_name -> common.RegParamsRevision
	0,  // 11: api.CreateDeviceProfileTemplateRequest.device_profile_template:type_name -> api.DeviceProfileTemplate
	0,  // 12: api.GetDeviceProfileTemplateResponse.device_profile_template:type_name -> api.DeviceProfileTemplate
	15, // 13: api.GetDeviceProfileTemplateResponse.created_at:type_name -> google.protobuf.Timestamp
	15, // 14: api.GetDeviceProfileTemplateResponse.updated_at:type_name -> google.protobuf.Timestamp
	0,  // 15: api.UpdateDeviceProfileTemplateRequest.device_profile_template:type_name -> api.DeviceProfileTemplate
	1,  // 16: api.ListDeviceProfileTemplatesResponse.result:type_name -> api.DeviceProfileTemplateListItem
	16, // 17: api.DeviceProfileTemplate.MeasurementsEntry.value:type_name -> api.Measurement
	2,  // 18: api.DeviceProfileTemplateService.Create:input_type -> api.CreateDeviceProfileTemplateRequest
	3,  // 19: api.DeviceProfileTemplateService.Get:input_type -> api.GetDeviceProfileTemplateRequest
	5,  // 20: api.DeviceProfileTemplateService.Update:input_type -> api.UpdateDeviceProfileTemplateRequest
	6,  // 21: api.DeviceProfileTemplateService.Delete:input_type -> api.DeleteDeviceProfileTemplateRequest
	7,  // 22: api.DeviceProfileTemplateService.List:input_type -> api.ListDeviceProfileTemplatesRequest
	17, // 23: api.DeviceProfileTemplateService.Create:output_type -> google.protobuf.Empty
	4,  // 24: api.DeviceProfileTemplateService.Get:output_type -> api.GetDeviceProfileTemplateResponse
	17, // 25: api.DeviceProfileTemplateService.Update:output_type -> google.protobuf.Empty
	17, // 26: api.DeviceProfileTemplateService.Delete:output_type -> google.protobuf.Empty
	8,  // 27: api.DeviceProfileTemplateService.List:output_type -> api.ListDeviceProfileTemplatesResponse
	23, // [23:28] is the sub-list for method output_type
	18, // [18:23] is the sub-list for method input_type
	18, // [18:18] is the sub-list for extension type_name
	18, // [18:18] is the sub-list for extension extendee
	0,  // [0:18] is the sub-list for field type_name
}

func init() { file_api_device_profile_template_proto_init() }
func file_api_device_profile_template_proto_init() {
	if File_api_device_profile_template_proto != nil {
		return
	}
	file_api_device_profile_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_device_profile_template_proto_rawDesc), len(file_api_device_profile_template_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   11,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_api_device_profile_template_proto_goTypes,
		DependencyIndexes: file_api_device_profile_template_proto_depIdxs,
		MessageInfos:      file_api_device_profile_template_proto_msgTypes,
	}.Build()
	File_api_device_profile_template_proto = out.File
	file_api_device_profile_template_proto_goTypes = nil
	file_api_device_profile_template_proto_depIdxs = nil
}
