mirror of https://github.com/v2ray/v2ray-core
102 lines
3.8 KiB
Go
102 lines
3.8 KiB
Go
package srtp
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type Config struct {
|
|
Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
|
|
Padding bool `protobuf:"varint,2,opt,name=padding" json:"padding,omitempty"`
|
|
Extension bool `protobuf:"varint,3,opt,name=extension" json:"extension,omitempty"`
|
|
CsrcCount uint32 `protobuf:"varint,4,opt,name=csrc_count,json=csrcCount" json:"csrc_count,omitempty"`
|
|
Marker bool `protobuf:"varint,5,opt,name=marker" json:"marker,omitempty"`
|
|
PayloadType uint32 `protobuf:"varint,6,opt,name=payload_type,json=payloadType" json:"payload_type,omitempty"`
|
|
}
|
|
|
|
func (m *Config) Reset() { *m = Config{} }
|
|
func (m *Config) String() string { return proto.CompactTextString(m) }
|
|
func (*Config) ProtoMessage() {}
|
|
func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
func (m *Config) GetVersion() uint32 {
|
|
if m != nil {
|
|
return m.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Config) GetPadding() bool {
|
|
if m != nil {
|
|
return m.Padding
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *Config) GetExtension() bool {
|
|
if m != nil {
|
|
return m.Extension
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *Config) GetCsrcCount() uint32 {
|
|
if m != nil {
|
|
return m.CsrcCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Config) GetMarker() bool {
|
|
if m != nil {
|
|
return m.Marker
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *Config) GetPayloadType() uint32 {
|
|
if m != nil {
|
|
return m.PayloadType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.headers.srtp.Config")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("v2ray.com/core/transport/internet/headers/srtp/config.proto", fileDescriptor0)
|
|
}
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 264 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0xd0, 0xb1, 0x4f, 0x03, 0x21,
|
|
0x14, 0x06, 0xf0, 0x5c, 0xad, 0xa7, 0xa5, 0xba, 0x30, 0x18, 0x06, 0x4d, 0xaa, 0x53, 0xd3, 0x01,
|
|
0x92, 0x3a, 0xba, 0xb5, 0x8b, 0x6e, 0xe6, 0x6c, 0x1c, 0x5c, 0x1a, 0xe4, 0x9e, 0xf5, 0xa2, 0x05,
|
|
0xf2, 0x78, 0x36, 0xf2, 0x2f, 0x39, 0xfb, 0x07, 0x1a, 0xf0, 0xa8, 0xab, 0xe3, 0xf7, 0x91, 0x1f,
|
|
0xc9, 0xfb, 0xd8, 0xcd, 0x6e, 0x8e, 0x3a, 0x4a, 0xe3, 0xb6, 0xca, 0x38, 0x04, 0x45, 0xa8, 0x6d,
|
|
0xf0, 0x0e, 0x49, 0x75, 0x96, 0x00, 0x2d, 0x90, 0x7a, 0x05, 0xdd, 0x02, 0x06, 0x15, 0x90, 0xbc,
|
|
0x32, 0xce, 0xbe, 0x74, 0x1b, 0xe9, 0xd1, 0x91, 0xe3, 0xb3, 0x82, 0x11, 0xe4, 0x1e, 0xca, 0x02,
|
|
0x65, 0x0f, 0x65, 0x82, 0x57, 0xdf, 0x15, 0xab, 0x97, 0x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