dest_params.pb.go 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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.psiphond/dest_params.proto
  6. package psiphond
  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 DestParams struct {
  21. state protoimpl.MessageState `protogen:"open.v1"`
  22. ClientAsn *string `protobuf:"bytes,1,opt,name=client_asn,json=clientAsn,proto3,oneof" json:"client_asn,omitempty"`
  23. ClientPlatform *string `protobuf:"bytes,2,opt,name=client_platform,json=clientPlatform,proto3,oneof" json:"client_platform,omitempty"`
  24. ClientRegion *string `protobuf:"bytes,3,opt,name=client_region,json=clientRegion,proto3,oneof" json:"client_region,omitempty"`
  25. DeviceRegion *string `protobuf:"bytes,4,opt,name=device_region,json=deviceRegion,proto3,oneof" json:"device_region,omitempty"`
  26. SponsorId *string `protobuf:"bytes,5,opt,name=sponsor_id,json=sponsorId,proto3,oneof" json:"sponsor_id,omitempty"`
  27. unknownFields protoimpl.UnknownFields
  28. sizeCache protoimpl.SizeCache
  29. }
  30. func (x *DestParams) Reset() {
  31. *x = DestParams{}
  32. mi := &file_ca_psiphon_psiphond_dest_params_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. func (x *DestParams) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*DestParams) ProtoMessage() {}
  40. func (x *DestParams) ProtoReflect() protoreflect.Message {
  41. mi := &file_ca_psiphon_psiphond_dest_params_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 DestParams.ProtoReflect.Descriptor instead.
  52. func (*DestParams) Descriptor() ([]byte, []int) {
  53. return file_ca_psiphon_psiphond_dest_params_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *DestParams) GetClientAsn() string {
  56. if x != nil && x.ClientAsn != nil {
  57. return *x.ClientAsn
  58. }
  59. return ""
  60. }
  61. func (x *DestParams) GetClientPlatform() string {
  62. if x != nil && x.ClientPlatform != nil {
  63. return *x.ClientPlatform
  64. }
  65. return ""
  66. }
  67. func (x *DestParams) GetClientRegion() string {
  68. if x != nil && x.ClientRegion != nil {
  69. return *x.ClientRegion
  70. }
  71. return ""
  72. }
  73. func (x *DestParams) GetDeviceRegion() string {
  74. if x != nil && x.DeviceRegion != nil {
  75. return *x.DeviceRegion
  76. }
  77. return ""
  78. }
  79. func (x *DestParams) GetSponsorId() string {
  80. if x != nil && x.SponsorId != nil {
  81. return *x.SponsorId
  82. }
  83. return ""
  84. }
  85. var File_ca_psiphon_psiphond_dest_params_proto protoreflect.FileDescriptor
  86. const file_ca_psiphon_psiphond_dest_params_proto_rawDesc = "" +
  87. "\n" +
  88. "%ca.psiphon.psiphond/dest_params.proto\x12\x13ca.psiphon.psiphond\"\xac\x02\n" +
  89. "\n" +
  90. "DestParams\x12\"\n" +
  91. "\n" +
  92. "client_asn\x18\x01 \x01(\tH\x00R\tclientAsn\x88\x01\x01\x12,\n" +
  93. "\x0fclient_platform\x18\x02 \x01(\tH\x01R\x0eclientPlatform\x88\x01\x01\x12(\n" +
  94. "\rclient_region\x18\x03 \x01(\tH\x02R\fclientRegion\x88\x01\x01\x12(\n" +
  95. "\rdevice_region\x18\x04 \x01(\tH\x03R\fdeviceRegion\x88\x01\x01\x12\"\n" +
  96. "\n" +
  97. "sponsor_id\x18\x05 \x01(\tH\x04R\tsponsorId\x88\x01\x01B\r\n" +
  98. "\v_client_asnB\x12\n" +
  99. "\x10_client_platformB\x10\n" +
  100. "\x0e_client_regionB\x10\n" +
  101. "\x0e_device_regionB\r\n" +
  102. "\v_sponsor_idBHZFgithub.com/Psiphon-Labs/psiphon-tunnel-core/psiphon/server/pb/psiphondb\x06proto3"
  103. var (
  104. file_ca_psiphon_psiphond_dest_params_proto_rawDescOnce sync.Once
  105. file_ca_psiphon_psiphond_dest_params_proto_rawDescData []byte
  106. )
  107. func file_ca_psiphon_psiphond_dest_params_proto_rawDescGZIP() []byte {
  108. file_ca_psiphon_psiphond_dest_params_proto_rawDescOnce.Do(func() {
  109. file_ca_psiphon_psiphond_dest_params_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ca_psiphon_psiphond_dest_params_proto_rawDesc), len(file_ca_psiphon_psiphond_dest_params_proto_rawDesc)))
  110. })
  111. return file_ca_psiphon_psiphond_dest_params_proto_rawDescData
  112. }
  113. var file_ca_psiphon_psiphond_dest_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  114. var file_ca_psiphon_psiphond_dest_params_proto_goTypes = []any{
  115. (*DestParams)(nil), // 0: ca.psiphon.psiphond.DestParams
  116. }
  117. var file_ca_psiphon_psiphond_dest_params_proto_depIdxs = []int32{
  118. 0, // [0:0] is the sub-list for method output_type
  119. 0, // [0:0] is the sub-list for method input_type
  120. 0, // [0:0] is the sub-list for extension type_name
  121. 0, // [0:0] is the sub-list for extension extendee
  122. 0, // [0:0] is the sub-list for field type_name
  123. }
  124. func init() { file_ca_psiphon_psiphond_dest_params_proto_init() }
  125. func file_ca_psiphon_psiphond_dest_params_proto_init() {
  126. if File_ca_psiphon_psiphond_dest_params_proto != nil {
  127. return
  128. }
  129. file_ca_psiphon_psiphond_dest_params_proto_msgTypes[0].OneofWrappers = []any{}
  130. type x struct{}
  131. out := protoimpl.TypeBuilder{
  132. File: protoimpl.DescBuilder{
  133. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  134. RawDescriptor: unsafe.Slice(unsafe.StringData(file_ca_psiphon_psiphond_dest_params_proto_rawDesc), len(file_ca_psiphon_psiphond_dest_params_proto_rawDesc)),
  135. NumEnums: 0,
  136. NumMessages: 1,
  137. NumExtensions: 0,
  138. NumServices: 0,
  139. },
  140. GoTypes: file_ca_psiphon_psiphond_dest_params_proto_goTypes,
  141. DependencyIndexes: file_ca_psiphon_psiphond_dest_params_proto_depIdxs,
  142. MessageInfos: file_ca_psiphon_psiphond_dest_params_proto_msgTypes,
  143. }.Build()
  144. File_ca_psiphon_psiphond_dest_params_proto = out.File
  145. file_ca_psiphon_psiphond_dest_params_proto_goTypes = nil
  146. file_ca_psiphon_psiphond_dest_params_proto_depIdxs = nil
  147. }