src/server/internal/pb/common.pb.go
12,438 bytes · 439 lines · capsule://quake0day/[email protected]
raw on github
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v5.29.3
// source: common.proto
package pb
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 AudioChunk struct {
state protoimpl.MessageState `protogen:"open.v1"`
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
SampleRate int32 `protobuf:"varint,2,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate,omitempty"`
Channels int32 `protobuf:"varint,3,opt,name=channels,proto3" json:"channels,omitempty"`
Format string `protobuf:"bytes,4,opt,name=format,proto3" json:"format,omitempty"`
IsFinal bool `protobuf:"varint,5,opt,name=is_final,json=isFinal,proto3" json:"is_final,omitempty"`
TimestampMs int64 `protobuf:"varint,6,opt,name=timestamp_ms,json=timestampMs,proto3" json:"timestamp_ms,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AudioChunk) Reset() {
*x = AudioChunk{}
mi := &file_common_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AudioChunk) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AudioChunk) ProtoMessage() {}
func (x *AudioChunk) ProtoReflect() protoreflect.Message {
mi := &file_common_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 AudioChunk.ProtoReflect.Descriptor instead.
func (*AudioChunk) Descriptor() ([]byte, []int) {
return file_common_proto_rawDescGZIP(), []int{0}
}
func (x *AudioChunk) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
func (x *AudioChunk) GetSampleRate() int32 {
if x != nil {
return x.SampleRate
}
return 0
}
func (x *AudioChunk) GetChannels() int32 {
if x != nil {
return x.Channels
}
return 0
}
func (x *AudioChunk) GetFormat() string {
if x != nil {
return x.Format
}
return ""
}
func (x *AudioChunk) GetIsFinal() bool {
if x != nil {
return x.IsFinal
}
return false
}
func (x *AudioChunk) GetTimestampMs() int64 {
if x != nil {
return x.TimestampMs
}
return 0
}
type VideoChunk struct {
state protoimpl.MessageState `protogen:"open.v1"`
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
NumFrames int32 `protobuf:"varint,4,opt,name=num_frames,json=numFrames,proto3" json:"num_frames,omitempty"`
Fps int32 `protobuf:"varint,5,opt,name=fps,proto3" json:"fps,omitempty"`
ChunkIndex int32 `protobuf:"varint,6,opt,name=chunk_index,json=chunkIndex,proto3" json:"chunk_index,omitempty"`
IsFinal bool `protobuf:"varint,7,opt,name=is_final,json=isFinal,proto3" json:"is_final,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *VideoChunk) Reset() {
*x = VideoChunk{}
mi := &file_common_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *VideoChunk) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VideoChunk) ProtoMessage() {}
func (x *VideoChunk) ProtoReflect() protoreflect.Message {
mi := &file_common_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 VideoChunk.ProtoReflect.Descriptor instead.
func (*VideoChunk) Descriptor() ([]byte, []int) {
return file_common_proto_rawDescGZIP(), []int{1}
}
func (x *VideoChunk) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
func (x *VideoChunk) GetWidth() int32 {
if x != nil {
return x.Width
}
return 0
}
func (x *VideoChunk) GetHeight() int32 {
if x != nil {
return x.Height
}
return 0
}
func (x *VideoChunk) GetNumFrames() int32 {
if x != nil {
return x.NumFrames
}
return 0
}
func (x *VideoChunk) GetFps() int32 {
if x != nil {
return x.Fps
}
return 0
}
func (x *VideoChunk) GetChunkIndex() int32 {
if x != nil {
return x.ChunkIndex
}
return 0
}
func (x *VideoChunk) GetIsFinal() bool {
if x != nil {
return x.IsFinal
}
return false
}
type ImageFrame struct {
state protoimpl.MessageState `protogen:"open.v1"`
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
Height int32 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
Source string `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"`
TimestampMs int64 `protobuf:"varint,6,opt,name=timestamp_ms,json=timestampMs,proto3" json:"timestamp_ms,omitempty"`
FrameSeq int64 `protobuf:"varint,7,opt,name=frame_seq,json=frameSeq,proto3" json:"frame_seq,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ImageFrame) Reset() {
*x = ImageFrame{}
mi := &file_common_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ImageFrame) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ImageFrame) ProtoMessage() {}
func (x *ImageFrame) ProtoReflect() protoreflect.Message {
mi := &file_common_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 ImageFrame.ProtoReflect.Descriptor instead.
func (*ImageFrame) Descriptor() ([]byte, []int) {
return file_common_proto_rawDescGZIP(), []int{2}
}
func (x *ImageFrame) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
func (x *ImageFrame) GetMimeType() string {
if x != nil {
return x.MimeType
}
return ""
}
func (x *ImageFrame) GetWidth() int32 {
if x != nil {
return x.Width
}
return 0
}
func (x *ImageFrame) GetHeight() int32 {
if x != nil {
return x.Height
}
return 0
}
func (x *ImageFrame) GetSource() string {
if x != nil {
return x.Source
}
return ""
}
func (x *ImageFrame) GetTimestampMs() int64 {
if x != nil {
return x.TimestampMs
}
return 0
}
func (x *ImageFrame) GetFrameSeq() int64 {
if x != nil {
return x.FrameSeq
}
return 0
}
type PluginConfig struct {
state protoimpl.MessageState `protogen:"open.v1"`
PluginName string `protobuf:"bytes,1,opt,name=plugin_name,json=pluginName,proto3" json:"plugin_name,omitempty"`
Params map[string]string `protobuf:"bytes,2,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PluginConfig) Reset() {
*x = PluginConfig{}
mi := &file_common_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PluginConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PluginConfig) ProtoMessage() {}
func (x *PluginConfig) ProtoReflect() protoreflect.Message {
mi := &file_common_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 PluginConfig.ProtoReflect.Descriptor instead.
func (*PluginConfig) Descriptor() ([]byte, []int) {
return file_common_proto_rawDescGZIP(), []int{3}
}
func (x *PluginConfig) GetPluginName() string {
if x != nil {
return x.PluginName
}
return ""
}
func (x *PluginConfig) GetParams() map[string]string {
if x != nil {
return x.Params
}
return nil
}
var File_common_proto protoreflect.FileDescriptor
const file_common_proto_rawDesc = "" +
"\n" +
"\fcommon.proto\x12\n" +
"cyberverse\"\xb3\x01\n" +
"\n" +
"AudioChunk\x12\x12\n" +
"\x04data\x18\x01 \x01(\fR\x04data\x12\x1f\n" +
"\vsample_rate\x18\x02 \x01(\x05R\n" +
"sampleRate\x12\x1a\n" +
"\bchannels\x18\x03 \x01(\x05R\bchannels\x12\x16\n" +
"\x06format\x18\x04 \x01(\tR\x06format\x12\x19\n" +
"\bis_final\x18\x05 \x01(\bR\aisFinal\x12!\n" +
"\ftimestamp_ms\x18\x06 \x01(\x03R\vtimestampMs\"\xbb\x01\n" +
"\n" +
"VideoChunk\x12\x12\n" +
"\x04data\x18\x01 \x01(\fR\x04data\x12\x14\n" +
"\x05width\x18\x02 \x01(\x05R\x05width\x12\x16\n" +
"\x06height\x18\x03 \x01(\x05R\x06height\x12\x1d\n" +
"\n" +
"num_frames\x18\x04 \x01(\x05R\tnumFrames\x12\x10\n" +
"\x03fps\x18\x05 \x01(\x05R\x03fps\x12\x1f\n" +
"\vchunk_index\x18\x06 \x01(\x05R\n" +
"chunkIndex\x12\x19\n" +
"\bis_final\x18\a \x01(\bR\aisFinal\"\xc3\x01\n" +
"\n" +
"ImageFrame\x12\x12\n" +
"\x04data\x18\x01 \x01(\fR\x04data\x12\x1b\n" +
"\tmime_type\x18\x02 \x01(\tR\bmimeType\x12\x14\n" +
"\x05width\x18\x03 \x01(\x05R\x05width\x12\x16\n" +
"\x06height\x18\x04 \x01(\x05R\x06height\x12\x16\n" +
"\x06source\x18\x05 \x01(\tR\x06source\x12!\n" +
"\ftimestamp_ms\x18\x06 \x01(\x03R\vtimestampMs\x12\x1b\n" +
"\tframe_seq\x18\a \x01(\x03R\bframeSeq\"\xa8\x01\n" +
"\fPluginConfig\x12\x1f\n" +
"\vplugin_name\x18\x01 \x01(\tR\n" +
"pluginName\x12<\n" +
"\x06params\x18\x02 \x03(\v2$.cyberverse.PluginConfig.ParamsEntryR\x06params\x1a9\n" +
"\vParamsEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B*Z(github.com/cyberverse/server/internal/pbb\x06proto3"
var (
file_common_proto_rawDescOnce sync.Once
file_common_proto_rawDescData []byte
)
func file_common_proto_rawDescGZIP() []byte {
file_common_proto_rawDescOnce.Do(func() {
file_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_common_proto_rawDesc), len(file_common_proto_rawDesc)))
})
return file_common_proto_rawDescData
}
var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_common_proto_goTypes = []any{
(*AudioChunk)(nil), // 0: cyberverse.AudioChunk
(*VideoChunk)(nil), // 1: cyberverse.VideoChunk
(*ImageFrame)(nil), // 2: cyberverse.ImageFrame
(*PluginConfig)(nil), // 3: cyberverse.PluginConfig
nil, // 4: cyberverse.PluginConfig.ParamsEntry
}
var file_common_proto_depIdxs = []int32{
4, // 0: cyberverse.PluginConfig.params:type_name -> cyberverse.PluginConfig.ParamsEntry
1, // [1:1] is the sub-list for method output_type
1, // [1:1] 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_common_proto_init() }
func file_common_proto_init() {
if File_common_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_proto_rawDesc), len(file_common_proto_rawDesc)),
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_common_proto_goTypes,
DependencyIndexes: file_common_proto_depIdxs,
MessageInfos: file_common_proto_msgTypes,
}.Build()
File_common_proto = out.File
file_common_proto_goTypes = nil
file_common_proto_depIdxs = nil
}