mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-16 17:38:45 -05:00
124 lines
4.5 KiB
Go
124 lines
4.5 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,proto3" json:"version,omitempty"`
|
|
Padding bool `protobuf:"varint,2,opt,name=padding,proto3" json:"padding,omitempty"`
|
|
Extension bool `protobuf:"varint,3,opt,name=extension,proto3" json:"extension,omitempty"`
|
|
CsrcCount uint32 `protobuf:"varint,4,opt,name=csrc_count,json=csrcCount,proto3" json:"csrc_count,omitempty"`
|
|
Marker bool `protobuf:"varint,5,opt,name=marker,proto3" json:"marker,omitempty"`
|
|
PayloadType uint32 `protobuf:"varint,6,opt,name=payload_type,json=payloadType,proto3" json:"payload_type,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Config) Reset() { *m = Config{} }
|
|
func (m *Config) String() string { return proto.CompactTextString(m) }
|
|
func (*Config) ProtoMessage() {}
|
|
func (*Config) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_config_0f831e3f54b6bef6, []int{0}
|
|
}
|
|
func (m *Config) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Config.Unmarshal(m, b)
|
|
}
|
|
func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Config.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *Config) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Config.Merge(dst, src)
|
|
}
|
|
func (m *Config) XXX_Size() int {
|
|
return xxx_messageInfo_Config.Size(m)
|
|
}
|
|
func (m *Config) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Config.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Config proto.InternalMessageInfo
|
|
|
|
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", fileDescriptor_config_0f831e3f54b6bef6)
|
|
}
|
|
|
|
var fileDescriptor_config_0f831e3f54b6bef6 = []byte{
|
|
// 260 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0xd0, 0x31, 0x4b, 0x03, 0x31,
|
|
0x14, 0x07, 0x70, 0xae, 0xd6, 0xd3, 0x46, 0x5d, 0x32, 0x48, 0x06, 0x85, 0xea, 0x54, 0x3a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