// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v3.21.12
// source: proto/voice.proto

package v1

import (
	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 VoicePacket struct {
	state           protoimpl.MessageState `protogen:"open.v1"`
	SourceUserId    string                 `protobuf:"bytes,1,opt,name=source_user_id,json=sourceUserId,proto3" json:"source_user_id,omitempty"`
	ChannelId       string                 `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	SequenceNumber  uint32                 `protobuf:"varint,3,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
	Timestamp       uint32                 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Ssrc            uint32                 `protobuf:"varint,5,opt,name=ssrc,proto3" json:"ssrc,omitempty"`
	Payload         []byte                 `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"`
	PayloadLength   int32                  `protobuf:"varint,7,opt,name=payload_length,json=payloadLength,proto3" json:"payload_length,omitempty"`
	ClientTimestamp int64                  `protobuf:"varint,8,opt,name=client_timestamp,json=clientTimestamp,proto3" json:"client_timestamp,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

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

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

func (*VoicePacket) ProtoMessage() {}

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

func (x *VoicePacket) GetSourceUserId() string {
	if x != nil {
		return x.SourceUserId
	}
	return ""
}

func (x *VoicePacket) GetChannelId() string {
	if x != nil {
		return x.ChannelId
	}
	return ""
}

func (x *VoicePacket) GetSequenceNumber() uint32 {
	if x != nil {
		return x.SequenceNumber
	}
	return 0
}

func (x *VoicePacket) GetTimestamp() uint32 {
	if x != nil {
		return x.Timestamp
	}
	return 0
}

func (x *VoicePacket) GetSsrc() uint32 {
	if x != nil {
		return x.Ssrc
	}
	return 0
}

func (x *VoicePacket) GetPayload() []byte {
	if x != nil {
		return x.Payload
	}
	return nil
}

func (x *VoicePacket) GetPayloadLength() int32 {
	if x != nil {
		return x.PayloadLength
	}
	return 0
}

func (x *VoicePacket) GetClientTimestamp() int64 {
	if x != nil {
		return x.ClientTimestamp
	}
	return 0
}

type PublishVoiceResponse struct {
	state                protoimpl.MessageState `protogen:"open.v1"`
	Success              bool                   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	ErrorMessage         string                 `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	LastReceivedSequence uint32                 `protobuf:"varint,3,opt,name=last_received_sequence,json=lastReceivedSequence,proto3" json:"last_received_sequence,omitempty"`
	unknownFields        protoimpl.UnknownFields
	sizeCache            protoimpl.SizeCache
}

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

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

func (*PublishVoiceResponse) ProtoMessage() {}

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

func (x *PublishVoiceResponse) GetSuccess() bool {
	if x != nil {
		return x.Success
	}
	return false
}

func (x *PublishVoiceResponse) GetErrorMessage() string {
	if x != nil {
		return x.ErrorMessage
	}
	return ""
}

func (x *PublishVoiceResponse) GetLastReceivedSequence() uint32 {
	if x != nil {
		return x.LastReceivedSequence
	}
	return 0
}

type SubscribeVoiceRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	ChannelId     string                 `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SubscribeVoiceRequest) ProtoMessage() {}

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

func (x *SubscribeVoiceRequest) GetChannelId() string {
	if x != nil {
		return x.ChannelId
	}
	return ""
}

var File_proto_voice_proto protoreflect.FileDescriptor

const file_proto_voice_proto_rawDesc = "" +
	"\n" +
	"\x11proto/voice.proto\x12\fopenspeak.v1\"\x99\x02\n" +
	"\vVoicePacket\x12$\n" +
	"\x0esource_user_id\x18\x01 \x01(\tR\fsourceUserId\x12\x1d\n" +
	"\n" +
	"channel_id\x18\x02 \x01(\tR\tchannelId\x12'\n" +
	"\x0fsequence_number\x18\x03 \x01(\rR\x0esequenceNumber\x12\x1c\n" +
	"\ttimestamp\x18\x04 \x01(\rR\ttimestamp\x12\x12\n" +
	"\x04ssrc\x18\x05 \x01(\rR\x04ssrc\x12\x18\n" +
	"\apayload\x18\x06 \x01(\fR\apayload\x12%\n" +
	"\x0epayload_length\x18\a \x01(\x05R\rpayloadLength\x12)\n" +
	"\x10client_timestamp\x18\b \x01(\x03R\x0fclientTimestamp\"\x8b\x01\n" +
	"\x14PublishVoiceResponse\x12\x18\n" +
	"\asuccess\x18\x01 \x01(\bR\asuccess\x12#\n" +
	"\rerror_message\x18\x02 \x01(\tR\ferrorMessage\x124\n" +
	"\x16last_received_sequence\x18\x03 \x01(\rR\x14lastReceivedSequence\"6\n" +
	"\x15SubscribeVoiceRequest\x12\x1d\n" +
	"\n" +
	"channel_id\x18\x01 \x01(\tR\tchannelId2\xc1\x01\n" +
	"\fVoiceService\x12W\n" +
	"\x12PublishVoiceStream\x12\x19.openspeak.v1.VoicePacket\x1a\".openspeak.v1.PublishVoiceResponse(\x010\x01\x12X\n" +
	"\x14SubscribeVoiceStream\x12#.openspeak.v1.SubscribeVoiceRequest\x1a\x19.openspeak.v1.VoicePacket0\x01B1Z/github.com/sorti/openspeak/pkg/api/openspeak/v1b\x06proto3"

var (
	file_proto_voice_proto_rawDescOnce sync.Once
	file_proto_voice_proto_rawDescData []byte
)

func file_proto_voice_proto_rawDescGZIP() []byte {
	file_proto_voice_proto_rawDescOnce.Do(func() {
		file_proto_voice_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_voice_proto_rawDesc), len(file_proto_voice_proto_rawDesc)))
	})
	return file_proto_voice_proto_rawDescData
}

var file_proto_voice_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_proto_voice_proto_goTypes = []any{
	(*VoicePacket)(nil),           // 0: openspeak.v1.VoicePacket
	(*PublishVoiceResponse)(nil),  // 1: openspeak.v1.PublishVoiceResponse
	(*SubscribeVoiceRequest)(nil), // 2: openspeak.v1.SubscribeVoiceRequest
}
var file_proto_voice_proto_depIdxs = []int32{
	0, // 0: openspeak.v1.VoiceService.PublishVoiceStream:input_type -> openspeak.v1.VoicePacket
	2, // 1: openspeak.v1.VoiceService.SubscribeVoiceStream:input_type -> openspeak.v1.SubscribeVoiceRequest
	1, // 2: openspeak.v1.VoiceService.PublishVoiceStream:output_type -> openspeak.v1.PublishVoiceResponse
	0, // 3: openspeak.v1.VoiceService.SubscribeVoiceStream:output_type -> openspeak.v1.VoicePacket
	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_proto_voice_proto_init() }
func file_proto_voice_proto_init() {
	if File_proto_voice_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_voice_proto_rawDesc), len(file_proto_voice_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_proto_voice_proto_goTypes,
		DependencyIndexes: file_proto_voice_proto_depIdxs,
		MessageInfos:      file_proto_voice_proto_msgTypes,
	}.Build()
	File_proto_voice_proto = out.File
	file_proto_voice_proto_goTypes = nil
	file_proto_voice_proto_depIdxs = nil
}
