config.pb.go 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. package srtp
  2. import (
  3. proto "github.com/golang/protobuf/proto"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. )
  9. const (
  10. // Verify that this generated code is sufficiently up-to-date.
  11. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  12. // Verify that runtime/protoimpl is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  14. )
  15. // This is a compile-time assertion that a sufficiently up-to-date version
  16. // of the legacy proto package is being used.
  17. const _ = proto.ProtoPackageIsVersion4
  18. type Config struct {
  19. state protoimpl.MessageState
  20. sizeCache protoimpl.SizeCache
  21. unknownFields protoimpl.UnknownFields
  22. Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
  23. Padding bool `protobuf:"varint,2,opt,name=padding,proto3" json:"padding,omitempty"`
  24. Extension bool `protobuf:"varint,3,opt,name=extension,proto3" json:"extension,omitempty"`
  25. CsrcCount uint32 `protobuf:"varint,4,opt,name=csrc_count,json=csrcCount,proto3" json:"csrc_count,omitempty"`
  26. Marker bool `protobuf:"varint,5,opt,name=marker,proto3" json:"marker,omitempty"`
  27. PayloadType uint32 `protobuf:"varint,6,opt,name=payload_type,json=payloadType,proto3" json:"payload_type,omitempty"`
  28. }
  29. func (x *Config) Reset() {
  30. *x = Config{}
  31. if protoimpl.UnsafeEnabled {
  32. mi := &file_v2ray_com_core_transport_internet_headers_srtp_config_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. }
  37. func (x *Config) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*Config) ProtoMessage() {}
  41. func (x *Config) ProtoReflect() protoreflect.Message {
  42. mi := &file_v2ray_com_core_transport_internet_headers_srtp_config_proto_msgTypes[0]
  43. if protoimpl.UnsafeEnabled && x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  53. func (*Config) Descriptor() ([]byte, []int) {
  54. return file_v2ray_com_core_transport_internet_headers_srtp_config_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *Config) GetVersion() uint32 {
  57. if x != nil {
  58. return x.Version
  59. }
  60. return 0
  61. }
  62. func (x *Config) GetPadding() bool {
  63. if x != nil {
  64. return x.Padding
  65. }
  66. return false
  67. }
  68. func (x *Config) GetExtension() bool {
  69. if x != nil {
  70. return x.Extension
  71. }
  72. return false
  73. }
  74. func (x *Config) GetCsrcCount() uint32 {
  75. if x != nil {
  76. return x.CsrcCount
  77. }
  78. return 0
  79. }
  80. func (x *Config) GetMarker() bool {
  81. if x != nil {
  82. return x.Marker
  83. }
  84. return false
  85. }
  86. func (x *Config) GetPayloadType() uint32 {
  87. if x != nil {
  88. return x.PayloadType
  89. }
  90. return 0
  91. }
  92. var File_v2ray_com_core_transport_internet_headers_srtp_config_proto protoreflect.FileDescriptor
  93. var file_v2ray_com_core_transport_internet_headers_srtp_config_proto_rawDesc = []byte{
  94. 0x0a, 0x3b, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  95. 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
  96. 0x6e, 0x65, 0x74, 0x2f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x73, 0x72, 0x74, 0x70,
  97. 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2a, 0x76,
  98. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  99. 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x65, 0x61,
  100. 0x64, 0x65, 0x72, 0x73, 0x2e, 0x73, 0x72, 0x74, 0x70, 0x22, 0xb4, 0x01, 0x0a, 0x06, 0x43, 0x6f,
  101. 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
  102. 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18,
  103. 0x0a, 0x07, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,
  104. 0x07, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65,
  105. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, 0x78, 0x74,
  106. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x73, 0x72, 0x63, 0x5f, 0x63,
  107. 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x63, 0x73, 0x72, 0x63,
  108. 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x18,
  109. 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x72, 0x12, 0x21, 0x0a,
  110. 0x0c, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20,
  111. 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x79, 0x70, 0x65,
  112. 0x42, 0x65, 0x0a, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  113. 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
  114. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x73, 0x72,
  115. 0x74, 0x70, 0x50, 0x01, 0x5a, 0x04, 0x73, 0x72, 0x74, 0x70, 0xaa, 0x02, 0x2a, 0x56, 0x32, 0x52,
  116. 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  117. 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65,
  118. 0x72, 0x73, 0x2e, 0x53, 0x72, 0x74, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  119. }
  120. var (
  121. file_v2ray_com_core_transport_internet_headers_srtp_config_proto_rawDescOnce sync.Once
  122. file_v2ray_com_core_transport_internet_headers_srtp_config_proto_rawDescData = file_v2ray_com_core_transport_internet_headers_srtp_config_proto_rawDesc
  123. )
  124. func file_v2ray_com_core_transport_internet_headers_srtp_config_proto_rawDescGZIP() []byte {
  125. file_v2ray_com_core_transport_internet_headers_srtp_config_proto_rawDescOnce.Do(func() {
  126. file_v2ray_com_core_transport_internet_headers_srtp_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_transport_internet_headers_srtp_config_proto_rawDescData)
  127. })
  128. return file_v2ray_com_core_transport_internet_headers_srtp_config_proto_rawDescData
  129. }
  130. var file_v2ray_com_core_transport_internet_headers_srtp_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  131. var file_v2ray_com_core_transport_internet_headers_srtp_config_proto_goTypes = []interface{}{
  132. (*Config)(nil), // 0: v2ray.core.transport.internet.headers.srtp.Config
  133. }
  134. var file_v2ray_com_core_transport_internet_headers_srtp_config_proto_depIdxs = []int32{
  135. 0, // [0:0] is the sub-list for method output_type
  136. 0, // [0:0] is the sub-list for method input_type
  137. 0, // [0:0] is the sub-list for extension type_name
  138. 0, // [0:0] is the sub-list for extension extendee
  139. 0, // [0:0] is the sub-list for field type_name
  140. }
  141. func init() { file_v2ray_com_core_transport_internet_headers_srtp_config_proto_init() }
  142. func file_v2ray_com_core_transport_internet_headers_srtp_config_proto_init() {
  143. if File_v2ray_com_core_transport_internet_headers_srtp_config_proto != nil {
  144. return
  145. }
  146. if !protoimpl.UnsafeEnabled {
  147. file_v2ray_com_core_transport_internet_headers_srtp_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  148. switch v := v.(*Config); i {
  149. case 0:
  150. return &v.state
  151. case 1:
  152. return &v.sizeCache
  153. case 2:
  154. return &v.unknownFields
  155. default:
  156. return nil
  157. }
  158. }
  159. }
  160. type x struct{}
  161. out := protoimpl.TypeBuilder{
  162. File: protoimpl.DescBuilder{
  163. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  164. RawDescriptor: file_v2ray_com_core_transport_internet_headers_srtp_config_proto_rawDesc,
  165. NumEnums: 0,
  166. NumMessages: 1,
  167. NumExtensions: 0,
  168. NumServices: 0,
  169. },
  170. GoTypes: file_v2ray_com_core_transport_internet_headers_srtp_config_proto_goTypes,
  171. DependencyIndexes: file_v2ray_com_core_transport_internet_headers_srtp_config_proto_depIdxs,
  172. MessageInfos: file_v2ray_com_core_transport_internet_headers_srtp_config_proto_msgTypes,
  173. }.Build()
  174. File_v2ray_com_core_transport_internet_headers_srtp_config_proto = out.File
  175. file_v2ray_com_core_transport_internet_headers_srtp_config_proto_rawDesc = nil
  176. file_v2ray_com_core_transport_internet_headers_srtp_config_proto_goTypes = nil
  177. file_v2ray_com_core_transport_internet_headers_srtp_config_proto_depIdxs = nil
  178. }