router.pb.go 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.10
  4. // protoc v6.33.0
  5. // source: ca.psiphon.router/router.proto
  6. package router
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. unsafe "unsafe"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type Router struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. Destination *string `protobuf:"bytes,1,opt,name=destination,proto3,oneof" json:"destination,omitempty"`
  23. MessageType *string `protobuf:"bytes,2,opt,name=message_type,json=messageType,proto3,oneof" json:"message_type,omitempty"`
  24. Key []byte `protobuf:"bytes,3,opt,name=key,proto3,oneof" json:"key,omitempty"`
  25. Value []byte `protobuf:"bytes,4,opt,name=value,proto3,oneof" json:"value,omitempty"`
  26. Metadata map[string][]byte `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  27. unknownFields protoimpl.UnknownFields
  28. sizeCache protoimpl.SizeCache
  29. }
  30. func (x *Router) Reset() {
  31. *x = Router{}
  32. mi := &file_ca_psiphon_router_router_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. func (x *Router) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*Router) ProtoMessage() {}
  40. func (x *Router) ProtoReflect() protoreflect.Message {
  41. mi := &file_ca_psiphon_router_router_proto_msgTypes[0]
  42. if x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use Router.ProtoReflect.Descriptor instead.
  52. func (*Router) Descriptor() ([]byte, []int) {
  53. return file_ca_psiphon_router_router_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *Router) GetDestination() string {
  56. if x != nil && x.Destination != nil {
  57. return *x.Destination
  58. }
  59. return ""
  60. }
  61. func (x *Router) GetMessageType() string {
  62. if x != nil && x.MessageType != nil {
  63. return *x.MessageType
  64. }
  65. return ""
  66. }
  67. func (x *Router) GetKey() []byte {
  68. if x != nil {
  69. return x.Key
  70. }
  71. return nil
  72. }
  73. func (x *Router) GetValue() []byte {
  74. if x != nil {
  75. return x.Value
  76. }
  77. return nil
  78. }
  79. func (x *Router) GetMetadata() map[string][]byte {
  80. if x != nil {
  81. return x.Metadata
  82. }
  83. return nil
  84. }
  85. var File_ca_psiphon_router_router_proto protoreflect.FileDescriptor
  86. const file_ca_psiphon_router_router_proto_rawDesc = "" +
  87. "\n" +
  88. "\x1eca.psiphon.router/router.proto\x12\x11ca.psiphon.router\"\xbe\x02\n" +
  89. "\x06Router\x12%\n" +
  90. "\vdestination\x18\x01 \x01(\tH\x00R\vdestination\x88\x01\x01\x12&\n" +
  91. "\fmessage_type\x18\x02 \x01(\tH\x01R\vmessageType\x88\x01\x01\x12\x15\n" +
  92. "\x03key\x18\x03 \x01(\fH\x02R\x03key\x88\x01\x01\x12\x19\n" +
  93. "\x05value\x18\x04 \x01(\fH\x03R\x05value\x88\x01\x01\x12C\n" +
  94. "\bmetadata\x18\x05 \x03(\v2'.ca.psiphon.router.Router.MetadataEntryR\bmetadata\x1a;\n" +
  95. "\rMetadataEntry\x12\x10\n" +
  96. "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
  97. "\x05value\x18\x02 \x01(\fR\x05value:\x028\x01B\x0e\n" +
  98. "\f_destinationB\x0f\n" +
  99. "\r_message_typeB\x06\n" +
  100. "\x04_keyB\b\n" +
  101. "\x06_valueBFZDgithub.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/server/pb/routerb\x06proto3"
  102. var (
  103. file_ca_psiphon_router_router_proto_rawDescOnce sync.Once
  104. file_ca_psiphon_router_router_proto_rawDescData []byte
  105. )
  106. func file_ca_psiphon_router_router_proto_rawDescGZIP() []byte {
  107. file_ca_psiphon_router_router_proto_rawDescOnce.Do(func() {
  108. file_ca_psiphon_router_router_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ca_psiphon_router_router_proto_rawDesc), len(file_ca_psiphon_router_router_proto_rawDesc)))
  109. })
  110. return file_ca_psiphon_router_router_proto_rawDescData
  111. }
  112. var file_ca_psiphon_router_router_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  113. var file_ca_psiphon_router_router_proto_goTypes = []any{
  114. (*Router)(nil), // 0: ca.psiphon.router.Router
  115. nil, // 1: ca.psiphon.router.Router.MetadataEntry
  116. }
  117. var file_ca_psiphon_router_router_proto_depIdxs = []int32{
  118. 1, // 0: ca.psiphon.router.Router.metadata:type_name -> ca.psiphon.router.Router.MetadataEntry
  119. 1, // [1:1] is the sub-list for method output_type
  120. 1, // [1:1] is the sub-list for method input_type
  121. 1, // [1:1] is the sub-list for extension type_name
  122. 1, // [1:1] is the sub-list for extension extendee
  123. 0, // [0:1] is the sub-list for field type_name
  124. }
  125. func init() { file_ca_psiphon_router_router_proto_init() }
  126. func file_ca_psiphon_router_router_proto_init() {
  127. if File_ca_psiphon_router_router_proto != nil {
  128. return
  129. }
  130. file_ca_psiphon_router_router_proto_msgTypes[0].OneofWrappers = []any{}
  131. type x struct{}
  132. out := protoimpl.TypeBuilder{
  133. File: protoimpl.DescBuilder{
  134. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  135. RawDescriptor: unsafe.Slice(unsafe.StringData(file_ca_psiphon_router_router_proto_rawDesc), len(file_ca_psiphon_router_router_proto_rawDesc)),
  136. NumEnums: 0,
  137. NumMessages: 2,
  138. NumExtensions: 0,
  139. NumServices: 0,
  140. },
  141. GoTypes: file_ca_psiphon_router_router_proto_goTypes,
  142. DependencyIndexes: file_ca_psiphon_router_router_proto_depIdxs,
  143. MessageInfos: file_ca_psiphon_router_router_proto_msgTypes,
  144. }.Build()
  145. File_ca_psiphon_router_router_proto = out.File
  146. file_ca_psiphon_router_router_proto_goTypes = nil
  147. file_ca_psiphon_router_router_proto_depIdxs = nil
  148. }