// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/iot/broker/v1/broker_data_service.proto

package broker

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 PublishBrokerDataRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of broker publishing message
	BrokerId string `protobuf:"bytes,1,opt,name=broker_id,json=brokerId,proto3" json:"broker_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 *PublishBrokerDataRequest) Reset() {
	*x = PublishBrokerDataRequest{}
	mi := &file_yandex_cloud_iot_broker_v1_broker_data_service_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*PublishBrokerDataRequest) ProtoMessage() {}

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

func (x *PublishBrokerDataRequest) GetBrokerId() string {
	if x != nil {
		return x.BrokerId
	}
	return ""
}

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

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

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

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

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

func (*PublishBrokerDataResponse) ProtoMessage() {}

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

var File_yandex_cloud_iot_broker_v1_broker_data_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_iot_broker_v1_broker_data_service_proto_rawDesc = "" +
	"\n" +
	"4yandex/cloud/iot/broker/v1/broker_data_service.proto\x12\x1ayandex.cloud.iot.broker.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dyandex/cloud/validation.proto\"\x8d\x01\n" +
	"\x18PublishBrokerDataRequest\x12)\n" +
	"\tbroker_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\bbrokerId\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" +
	"\x19PublishBrokerDataResponse2\xc3\x01\n" +
	"\x11BrokerDataService\x12\xad\x01\n" +
	"\aPublish\x124.yandex.cloud.iot.broker.v1.PublishBrokerDataRequest\x1a5.yandex.cloud.iot.broker.v1.PublishBrokerDataResponse\"5\x82\xd3\xe4\x93\x02/:\x01*\"*/iot-broker/v1/brokers/{broker_id}/publishBg\n" +
	"\x1eyandex.cloud.api.iot.broker.v1ZEgithub.com/yandex-cloud/go-genproto/yandex/cloud/iot/broker/v1;brokerb\x06proto3"

var (
	file_yandex_cloud_iot_broker_v1_broker_data_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_iot_broker_v1_broker_data_service_proto_rawDescData []byte
)

func file_yandex_cloud_iot_broker_v1_broker_data_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_iot_broker_v1_broker_data_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_iot_broker_v1_broker_data_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_iot_broker_v1_broker_data_service_proto_rawDesc), len(file_yandex_cloud_iot_broker_v1_broker_data_service_proto_rawDesc)))
	})
	return file_yandex_cloud_iot_broker_v1_broker_data_service_proto_rawDescData
}

var file_yandex_cloud_iot_broker_v1_broker_data_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_iot_broker_v1_broker_data_service_proto_goTypes = []any{
	(*PublishBrokerDataRequest)(nil),  // 0: yandex.cloud.iot.broker.v1.PublishBrokerDataRequest
	(*PublishBrokerDataResponse)(nil), // 1: yandex.cloud.iot.broker.v1.PublishBrokerDataResponse
}
var file_yandex_cloud_iot_broker_v1_broker_data_service_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.iot.broker.v1.BrokerDataService.Publish:input_type -> yandex.cloud.iot.broker.v1.PublishBrokerDataRequest
	1, // 1: yandex.cloud.iot.broker.v1.BrokerDataService.Publish:output_type -> yandex.cloud.iot.broker.v1.PublishBrokerDataResponse
	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_broker_v1_broker_data_service_proto_init() }
func file_yandex_cloud_iot_broker_v1_broker_data_service_proto_init() {
	if File_yandex_cloud_iot_broker_v1_broker_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_broker_v1_broker_data_service_proto_rawDesc), len(file_yandex_cloud_iot_broker_v1_broker_data_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_iot_broker_v1_broker_data_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_iot_broker_v1_broker_data_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_iot_broker_v1_broker_data_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_iot_broker_v1_broker_data_service_proto = out.File
	file_yandex_cloud_iot_broker_v1_broker_data_service_proto_goTypes = nil
	file_yandex_cloud_iot_broker_v1_broker_data_service_proto_depIdxs = nil
}
