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

package websocket

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 SendToConnectionRequest_DataType int32

const (
	SendToConnectionRequest_DATA_TYPE_UNSPECIFIED SendToConnectionRequest_DataType = 0
	// Binary data.
	SendToConnectionRequest_BINARY SendToConnectionRequest_DataType = 1
	// Text data.
	SendToConnectionRequest_TEXT SendToConnectionRequest_DataType = 2
)

// Enum value maps for SendToConnectionRequest_DataType.
var (
	SendToConnectionRequest_DataType_name = map[int32]string{
		0: "DATA_TYPE_UNSPECIFIED",
		1: "BINARY",
		2: "TEXT",
	}
	SendToConnectionRequest_DataType_value = map[string]int32{
		"DATA_TYPE_UNSPECIFIED": 0,
		"BINARY":                1,
		"TEXT":                  2,
	}
)

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

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

func (SendToConnectionRequest_DataType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_enumTypes[0].Descriptor()
}

func (SendToConnectionRequest_DataType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_enumTypes[0]
}

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

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

type GetConnectionRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the connection to get.
	ConnectionId  string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetConnectionRequest) ProtoMessage() {}

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

func (x *GetConnectionRequest) GetConnectionId() string {
	if x != nil {
		return x.ConnectionId
	}
	return ""
}

type SendToConnectionRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the connection to which send.
	ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	// Data to send.
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// Type of the sending data.
	Type          SendToConnectionRequest_DataType `protobuf:"varint,3,opt,name=type,proto3,enum=yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest_DataType" json:"type,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SendToConnectionRequest) ProtoMessage() {}

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

func (x *SendToConnectionRequest) GetConnectionId() string {
	if x != nil {
		return x.ConnectionId
	}
	return ""
}

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

func (x *SendToConnectionRequest) GetType() SendToConnectionRequest_DataType {
	if x != nil {
		return x.Type
	}
	return SendToConnectionRequest_DATA_TYPE_UNSPECIFIED
}

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

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

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

func (*SendToConnectionResponse) ProtoMessage() {}

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

type DisconnectRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the connection to disconnect.
	ConnectionId  string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DisconnectRequest) ProtoMessage() {}

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

func (x *DisconnectRequest) GetConnectionId() string {
	if x != nil {
		return x.ConnectionId
	}
	return ""
}

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

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

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

func (*DisconnectResponse) ProtoMessage() {}

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

var File_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_rawDesc = "" +
	"\n" +
	"Hyandex/cloud/serverless/apigateway/websocket/v1/connection_service.proto\x12/yandex.cloud.serverless.apigateway.websocket.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dyandex/cloud/validation.proto\x1a@yandex/cloud/serverless/apigateway/websocket/v1/connection.proto\"I\n" +
	"\x14GetConnectionRequest\x121\n" +
	"\rconnection_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\fconnectionId\"\x96\x02\n" +
	"\x17SendToConnectionRequest\x121\n" +
	"\rconnection_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\fconnectionId\x12$\n" +
	"\x04data\x18\x02 \x01(\fB\x10\xe8\xc71\x01\x8a\xc81\b<=131072R\x04data\x12e\n" +
	"\x04type\x18\x03 \x01(\x0e2Q.yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest.DataTypeR\x04type\";\n" +
	"\bDataType\x12\x19\n" +
	"\x15DATA_TYPE_UNSPECIFIED\x10\x00\x12\n" +
	"\n" +
	"\x06BINARY\x10\x01\x12\b\n" +
	"\x04TEXT\x10\x02\"\x1a\n" +
	"\x18SendToConnectionResponse\"F\n" +
	"\x11DisconnectRequest\x121\n" +
	"\rconnection_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\fconnectionId\"\x14\n" +
	"\x12DisconnectResponse2\x9a\x05\n" +
	"\x11ConnectionService\x12\xc8\x01\n" +
	"\x03Get\x12E.yandex.cloud.serverless.apigateway.websocket.v1.GetConnectionRequest\x1a;.yandex.cloud.serverless.apigateway.websocket.v1.Connection\"=\x82\xd3\xe4\x93\x027\x125/apigateways/websocket/v1/connections/{connection_id}\x12\xe2\x01\n" +
	"\x04Send\x12H.yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest\x1aI.yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionResponse\"E\x82\xd3\xe4\x93\x02?:\x01*\":/apigateways/websocket/v1/connections/{connection_id}:send\x12\xd4\x01\n" +
	"\n" +
	"Disconnect\x12B.yandex.cloud.serverless.apigateway.websocket.v1.DisconnectRequest\x1aC.yandex.cloud.serverless.apigateway.websocket.v1.DisconnectResponse\"=\x82\xd3\xe4\x93\x027*5/apigateways/websocket/v1/connections/{connection_id}B\x94\x01\n" +
	"3yandex.cloud.api.serverless.apigateway.websocket.v1Z]github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/apigateway/websocket/v1;websocketb\x06proto3"

var (
	file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_rawDescData []byte
)

func file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_rawDesc), len(file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_rawDesc)))
	})
	return file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_rawDescData
}

var file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_goTypes = []any{
	(SendToConnectionRequest_DataType)(0), // 0: yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest.DataType
	(*GetConnectionRequest)(nil),          // 1: yandex.cloud.serverless.apigateway.websocket.v1.GetConnectionRequest
	(*SendToConnectionRequest)(nil),       // 2: yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest
	(*SendToConnectionResponse)(nil),      // 3: yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionResponse
	(*DisconnectRequest)(nil),             // 4: yandex.cloud.serverless.apigateway.websocket.v1.DisconnectRequest
	(*DisconnectResponse)(nil),            // 5: yandex.cloud.serverless.apigateway.websocket.v1.DisconnectResponse
	(*Connection)(nil),                    // 6: yandex.cloud.serverless.apigateway.websocket.v1.Connection
}
var file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest.type:type_name -> yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest.DataType
	1, // 1: yandex.cloud.serverless.apigateway.websocket.v1.ConnectionService.Get:input_type -> yandex.cloud.serverless.apigateway.websocket.v1.GetConnectionRequest
	2, // 2: yandex.cloud.serverless.apigateway.websocket.v1.ConnectionService.Send:input_type -> yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionRequest
	4, // 3: yandex.cloud.serverless.apigateway.websocket.v1.ConnectionService.Disconnect:input_type -> yandex.cloud.serverless.apigateway.websocket.v1.DisconnectRequest
	6, // 4: yandex.cloud.serverless.apigateway.websocket.v1.ConnectionService.Get:output_type -> yandex.cloud.serverless.apigateway.websocket.v1.Connection
	3, // 5: yandex.cloud.serverless.apigateway.websocket.v1.ConnectionService.Send:output_type -> yandex.cloud.serverless.apigateway.websocket.v1.SendToConnectionResponse
	5, // 6: yandex.cloud.serverless.apigateway.websocket.v1.ConnectionService.Disconnect:output_type -> yandex.cloud.serverless.apigateway.websocket.v1.DisconnectResponse
	4, // [4:7] is the sub-list for method output_type
	1, // [1:4] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_init() }
func file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_init() {
	if File_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto != nil {
		return
	}
	file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_rawDesc), len(file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto = out.File
	file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_goTypes = nil
	file_yandex_cloud_serverless_apigateway_websocket_v1_connection_service_proto_depIdxs = nil
}
