// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/iot/devices/v1/device_data_service.proto

package devices

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type PublishDeviceDataRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of device publishing message
	DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	// Topic where message should be published
	Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
	// Content of the message
	Data          []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PublishDeviceDataRequest) ProtoMessage() {}

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

func (x *PublishDeviceDataRequest) GetDeviceId() string {
	if x != nil {
		return x.DeviceId
	}
	return ""
}

func (x *PublishDeviceDataRequest) GetTopic() string {
	if x != nil {
		return x.Topic
	}
	return ""
}

func (x *PublishDeviceDataRequest) GetData() []byte {
	if x != nil {
		return x.Data
	}
	return nil
}

type PublishDeviceDataResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PublishDeviceDataResponse) ProtoMessage() {}

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

var File_yandex_cloud_iot_devices_v1_device_data_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDesc = "" +
	"\n" +
	"5yandex/cloud/iot/devices/v1/device_data_service.proto\x12\x1byandex.cloud.iot.devices.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dyandex/cloud/validation.proto\"\x8d\x01\n" +
	"\x18PublishDeviceDataRequest\x12)\n" +
	"\tdevice_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\bdeviceId\x12$\n" +
	"\x05topic\x18\x02 \x01(\tB\x0e\xe8\xc71\x01\x8a\xc81\x06<=1024R\x05topic\x12 \n" +
	"\x04data\x18\x03 \x01(\fB\f\x8a\xc81\b<=262144R\x04data\"\x1b\n" +
	"\x19PublishDeviceDataResponse2\xc6\x01\n" +
	"\x11DeviceDataService\x12\xb0\x01\n" +
	"\aPublish\x125.yandex.cloud.iot.devices.v1.PublishDeviceDataRequest\x1a6.yandex.cloud.iot.devices.v1.PublishDeviceDataResponse\"6\x82\xd3\xe4\x93\x020:\x01*\"+/iot-devices/v1/devices/{device_id}/publishBj\n" +
	"\x1fyandex.cloud.api.iot.devices.v1ZGgithub.com/yandex-cloud/go-genproto/yandex/cloud/iot/devices/v1;devicesb\x06proto3"

var (
	file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDescData []byte
)

func file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDesc), len(file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDesc)))
	})
	return file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDescData
}

var file_yandex_cloud_iot_devices_v1_device_data_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_iot_devices_v1_device_data_service_proto_goTypes = []any{
	(*PublishDeviceDataRequest)(nil),  // 0: yandex.cloud.iot.devices.v1.PublishDeviceDataRequest
	(*PublishDeviceDataResponse)(nil), // 1: yandex.cloud.iot.devices.v1.PublishDeviceDataResponse
}
var file_yandex_cloud_iot_devices_v1_device_data_service_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.iot.devices.v1.DeviceDataService.Publish:input_type -> yandex.cloud.iot.devices.v1.PublishDeviceDataRequest
	1, // 1: yandex.cloud.iot.devices.v1.DeviceDataService.Publish:output_type -> yandex.cloud.iot.devices.v1.PublishDeviceDataResponse
	1, // [1:2] is the sub-list for method output_type
	0, // [0:1] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_yandex_cloud_iot_devices_v1_device_data_service_proto_init() }
func file_yandex_cloud_iot_devices_v1_device_data_service_proto_init() {
	if File_yandex_cloud_iot_devices_v1_device_data_service_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDesc), len(file_yandex_cloud_iot_devices_v1_device_data_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_iot_devices_v1_device_data_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_iot_devices_v1_device_data_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_iot_devices_v1_device_data_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_iot_devices_v1_device_data_service_proto = out.File
	file_yandex_cloud_iot_devices_v1_device_data_service_proto_goTypes = nil
	file_yandex_cloud_iot_devices_v1_device_data_service_proto_depIdxs = nil
}
