// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/serverless/eventrouter/v1/event_service.proto

package eventrouter

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	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 PutEventRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the bus to put event.
	BusId string `protobuf:"bytes,1,opt,name=bus_id,json=busId,proto3" json:"bus_id,omitempty"`
	// Event body.
	Body          string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PutEventRequest) ProtoMessage() {}

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

func (x *PutEventRequest) GetBusId() string {
	if x != nil {
		return x.BusId
	}
	return ""
}

func (x *PutEventRequest) GetBody() string {
	if x != nil {
		return x.Body
	}
	return ""
}

type SendEventsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the connector to send events.
	ConnectorId string `protobuf:"bytes,1,opt,name=connector_id,json=connectorId,proto3" json:"connector_id,omitempty"`
	// Batch of events bodies.
	Message       []string `protobuf:"bytes,2,rep,name=message,proto3" json:"message,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SendEventsRequest) ProtoMessage() {}

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

func (x *SendEventsRequest) GetConnectorId() string {
	if x != nil {
		return x.ConnectorId
	}
	return ""
}

func (x *SendEventsRequest) GetMessage() []string {
	if x != nil {
		return x.Message
	}
	return nil
}

var File_yandex_cloud_serverless_eventrouter_v1_event_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_rawDesc = "" +
	"\n" +
	":yandex/cloud/serverless/eventrouter/v1/event_service.proto\x12&yandex.cloud.serverless.eventrouter.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1dyandex/cloud/validation.proto\"T\n" +
	"\x0fPutEventRequest\x12\x1b\n" +
	"\x06bus_id\x18\x01 \x01(\tB\x04\xe8\xc71\x01R\x05busId\x12$\n" +
	"\x04body\x18\x02 \x01(\tB\x10\xe8\xc71\x01\x8a\xc81\b<=262144R\x04body\"m\n" +
	"\x11SendEventsRequest\x12'\n" +
	"\fconnector_id\x18\x01 \x01(\tB\x04\xe8\xc71\x01R\vconnectorId\x12/\n" +
	"\amessage\x18\x02 \x03(\tB\x15\x82\xc81\x051-100\x8a\xc81\b<=262144R\amessage2\xc1\x01\n" +
	"\fEventService\x12V\n" +
	"\x03Put\x127.yandex.cloud.serverless.eventrouter.v1.PutEventRequest\x1a\x16.google.protobuf.Empty\x12Y\n" +
	"\x04Send\x129.yandex.cloud.serverless.eventrouter.v1.SendEventsRequest\x1a\x16.google.protobuf.EmptyB\x8b\x01\n" +
	"*yandex.cloud.api.serverless.eventrouter.v1B\x05PERESZVgithub.com/yandex-cloud/go-genproto/yandex/cloud/serverless/eventrouter/v1;eventrouterb\x06proto3"

var (
	file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_rawDescData []byte
)

func file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_rawDesc), len(file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_rawDesc)))
	})
	return file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_rawDescData
}

var file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_goTypes = []any{
	(*PutEventRequest)(nil),   // 0: yandex.cloud.serverless.eventrouter.v1.PutEventRequest
	(*SendEventsRequest)(nil), // 1: yandex.cloud.serverless.eventrouter.v1.SendEventsRequest
	(*emptypb.Empty)(nil),     // 2: google.protobuf.Empty
}
var file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.serverless.eventrouter.v1.EventService.Put:input_type -> yandex.cloud.serverless.eventrouter.v1.PutEventRequest
	1, // 1: yandex.cloud.serverless.eventrouter.v1.EventService.Send:input_type -> yandex.cloud.serverless.eventrouter.v1.SendEventsRequest
	2, // 2: yandex.cloud.serverless.eventrouter.v1.EventService.Put:output_type -> google.protobuf.Empty
	2, // 3: yandex.cloud.serverless.eventrouter.v1.EventService.Send:output_type -> google.protobuf.Empty
	2, // [2:4] is the sub-list for method output_type
	0, // [0:2] 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_serverless_eventrouter_v1_event_service_proto_init() }
func file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_init() {
	if File_yandex_cloud_serverless_eventrouter_v1_event_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_serverless_eventrouter_v1_event_service_proto_rawDesc), len(file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_serverless_eventrouter_v1_event_service_proto = out.File
	file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_goTypes = nil
	file_yandex_cloud_serverless_eventrouter_v1_event_service_proto_depIdxs = nil
}
