2
0

probability.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.32.0
  4. // protoc v4.25.1
  5. // source: proto/probability.proto
  6. package sentio
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  11. reflect "reflect"
  12. sync "sync"
  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 Action int32
  21. const (
  22. Action_DOUBLE_SELL Action = 0
  23. Action_SELL Action = 1
  24. Action_HOLD Action = 2
  25. Action_BUY Action = 3
  26. Action_DOUBLE_BUY Action = 4
  27. )
  28. // Enum value maps for Action.
  29. var (
  30. Action_name = map[int32]string{
  31. 0: "DOUBLE_SELL",
  32. 1: "SELL",
  33. 2: "HOLD",
  34. 3: "BUY",
  35. 4: "DOUBLE_BUY",
  36. }
  37. Action_value = map[string]int32{
  38. "DOUBLE_SELL": 0,
  39. "SELL": 1,
  40. "HOLD": 2,
  41. "BUY": 3,
  42. "DOUBLE_BUY": 4,
  43. }
  44. )
  45. func (x Action) Enum() *Action {
  46. p := new(Action)
  47. *p = x
  48. return p
  49. }
  50. func (x Action) String() string {
  51. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  52. }
  53. func (Action) Descriptor() protoreflect.EnumDescriptor {
  54. return file_proto_probability_proto_enumTypes[0].Descriptor()
  55. }
  56. func (Action) Type() protoreflect.EnumType {
  57. return &file_proto_probability_proto_enumTypes[0]
  58. }
  59. func (x Action) Number() protoreflect.EnumNumber {
  60. return protoreflect.EnumNumber(x)
  61. }
  62. // Deprecated: Use Action.Descriptor instead.
  63. func (Action) EnumDescriptor() ([]byte, []int) {
  64. return file_proto_probability_proto_rawDescGZIP(), []int{0}
  65. }
  66. type Probability struct {
  67. state protoimpl.MessageState
  68. sizeCache protoimpl.SizeCache
  69. unknownFields protoimpl.UnknownFields
  70. Stamps []*Probability_Stamp `protobuf:"bytes,10,rep,name=stamps,proto3" json:"stamps,omitempty"`
  71. }
  72. func (x *Probability) Reset() {
  73. *x = Probability{}
  74. if protoimpl.UnsafeEnabled {
  75. mi := &file_proto_probability_proto_msgTypes[0]
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. ms.StoreMessageInfo(mi)
  78. }
  79. }
  80. func (x *Probability) String() string {
  81. return protoimpl.X.MessageStringOf(x)
  82. }
  83. func (*Probability) ProtoMessage() {}
  84. func (x *Probability) ProtoReflect() protoreflect.Message {
  85. mi := &file_proto_probability_proto_msgTypes[0]
  86. if protoimpl.UnsafeEnabled && x != nil {
  87. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  88. if ms.LoadMessageInfo() == nil {
  89. ms.StoreMessageInfo(mi)
  90. }
  91. return ms
  92. }
  93. return mi.MessageOf(x)
  94. }
  95. // Deprecated: Use Probability.ProtoReflect.Descriptor instead.
  96. func (*Probability) Descriptor() ([]byte, []int) {
  97. return file_proto_probability_proto_rawDescGZIP(), []int{0}
  98. }
  99. func (x *Probability) GetStamps() []*Probability_Stamp {
  100. if x != nil {
  101. return x.Stamps
  102. }
  103. return nil
  104. }
  105. type Turn struct {
  106. state protoimpl.MessageState
  107. sizeCache protoimpl.SizeCache
  108. unknownFields protoimpl.UnknownFields
  109. Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
  110. Action Action `protobuf:"varint,2,opt,name=action,proto3,enum=sentio.Action" json:"action,omitempty"`
  111. }
  112. func (x *Turn) Reset() {
  113. *x = Turn{}
  114. if protoimpl.UnsafeEnabled {
  115. mi := &file_proto_probability_proto_msgTypes[1]
  116. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  117. ms.StoreMessageInfo(mi)
  118. }
  119. }
  120. func (x *Turn) String() string {
  121. return protoimpl.X.MessageStringOf(x)
  122. }
  123. func (*Turn) ProtoMessage() {}
  124. func (x *Turn) ProtoReflect() protoreflect.Message {
  125. mi := &file_proto_probability_proto_msgTypes[1]
  126. if protoimpl.UnsafeEnabled && x != nil {
  127. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  128. if ms.LoadMessageInfo() == nil {
  129. ms.StoreMessageInfo(mi)
  130. }
  131. return ms
  132. }
  133. return mi.MessageOf(x)
  134. }
  135. // Deprecated: Use Turn.ProtoReflect.Descriptor instead.
  136. func (*Turn) Descriptor() ([]byte, []int) {
  137. return file_proto_probability_proto_rawDescGZIP(), []int{1}
  138. }
  139. func (x *Turn) GetTime() *timestamppb.Timestamp {
  140. if x != nil {
  141. return x.Time
  142. }
  143. return nil
  144. }
  145. func (x *Turn) GetAction() Action {
  146. if x != nil {
  147. return x.Action
  148. }
  149. return Action_DOUBLE_SELL
  150. }
  151. type Probability_Stamp struct {
  152. state protoimpl.MessageState
  153. sizeCache protoimpl.SizeCache
  154. unknownFields protoimpl.UnknownFields
  155. Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
  156. Value float32 `protobuf:"fixed32,2,opt,name=value,proto3" json:"value,omitempty"`
  157. }
  158. func (x *Probability_Stamp) Reset() {
  159. *x = Probability_Stamp{}
  160. if protoimpl.UnsafeEnabled {
  161. mi := &file_proto_probability_proto_msgTypes[2]
  162. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  163. ms.StoreMessageInfo(mi)
  164. }
  165. }
  166. func (x *Probability_Stamp) String() string {
  167. return protoimpl.X.MessageStringOf(x)
  168. }
  169. func (*Probability_Stamp) ProtoMessage() {}
  170. func (x *Probability_Stamp) ProtoReflect() protoreflect.Message {
  171. mi := &file_proto_probability_proto_msgTypes[2]
  172. if protoimpl.UnsafeEnabled && x != nil {
  173. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  174. if ms.LoadMessageInfo() == nil {
  175. ms.StoreMessageInfo(mi)
  176. }
  177. return ms
  178. }
  179. return mi.MessageOf(x)
  180. }
  181. // Deprecated: Use Probability_Stamp.ProtoReflect.Descriptor instead.
  182. func (*Probability_Stamp) Descriptor() ([]byte, []int) {
  183. return file_proto_probability_proto_rawDescGZIP(), []int{0, 0}
  184. }
  185. func (x *Probability_Stamp) GetTime() *timestamppb.Timestamp {
  186. if x != nil {
  187. return x.Time
  188. }
  189. return nil
  190. }
  191. func (x *Probability_Stamp) GetValue() float32 {
  192. if x != nil {
  193. return x.Value
  194. }
  195. return 0
  196. }
  197. var File_proto_probability_proto protoreflect.FileDescriptor
  198. var file_proto_probability_proto_rawDesc = []byte{
  199. 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69, 0x6c,
  200. 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x73, 0x65, 0x6e, 0x74, 0x69,
  201. 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  202. 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f,
  203. 0x74, 0x6f, 0x22, 0x8f, 0x01, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69,
  204. 0x74, 0x79, 0x12, 0x31, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x73, 0x18, 0x0a, 0x20, 0x03,
  205. 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x62,
  206. 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2e, 0x53, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x06, 0x73,
  207. 0x74, 0x61, 0x6d, 0x70, 0x73, 0x1a, 0x4d, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2e,
  208. 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
  209. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
  210. 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14,
  211. 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x76,
  212. 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5e, 0x0a, 0x04, 0x54, 0x75, 0x72, 0x6e, 0x12, 0x2e, 0x0a, 0x04,
  213. 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
  214. 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
  215. 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x06,
  216. 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0e, 0x2e, 0x73,
  217. 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63,
  218. 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x46, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0f,
  219. 0x0a, 0x0b, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x5f, 0x53, 0x45, 0x4c, 0x4c, 0x10, 0x00, 0x12,
  220. 0x08, 0x0a, 0x04, 0x53, 0x45, 0x4c, 0x4c, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x4f, 0x4c,
  221. 0x44, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x42, 0x55, 0x59, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a,
  222. 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x5f, 0x42, 0x55, 0x59, 0x10, 0x04, 0x42, 0x0a, 0x5a, 0x08,
  223. 0x2e, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  224. }
  225. var (
  226. file_proto_probability_proto_rawDescOnce sync.Once
  227. file_proto_probability_proto_rawDescData = file_proto_probability_proto_rawDesc
  228. )
  229. func file_proto_probability_proto_rawDescGZIP() []byte {
  230. file_proto_probability_proto_rawDescOnce.Do(func() {
  231. file_proto_probability_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_probability_proto_rawDescData)
  232. })
  233. return file_proto_probability_proto_rawDescData
  234. }
  235. var file_proto_probability_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  236. var file_proto_probability_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  237. var file_proto_probability_proto_goTypes = []interface{}{
  238. (Action)(0), // 0: sentio.Action
  239. (*Probability)(nil), // 1: sentio.Probability
  240. (*Turn)(nil), // 2: sentio.Turn
  241. (*Probability_Stamp)(nil), // 3: sentio.Probability.Stamp
  242. (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
  243. }
  244. var file_proto_probability_proto_depIdxs = []int32{
  245. 3, // 0: sentio.Probability.stamps:type_name -> sentio.Probability.Stamp
  246. 4, // 1: sentio.Turn.time:type_name -> google.protobuf.Timestamp
  247. 0, // 2: sentio.Turn.action:type_name -> sentio.Action
  248. 4, // 3: sentio.Probability.Stamp.time:type_name -> google.protobuf.Timestamp
  249. 4, // [4:4] is the sub-list for method output_type
  250. 4, // [4:4] is the sub-list for method input_type
  251. 4, // [4:4] is the sub-list for extension type_name
  252. 4, // [4:4] is the sub-list for extension extendee
  253. 0, // [0:4] is the sub-list for field type_name
  254. }
  255. func init() { file_proto_probability_proto_init() }
  256. func file_proto_probability_proto_init() {
  257. if File_proto_probability_proto != nil {
  258. return
  259. }
  260. if !protoimpl.UnsafeEnabled {
  261. file_proto_probability_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  262. switch v := v.(*Probability); i {
  263. case 0:
  264. return &v.state
  265. case 1:
  266. return &v.sizeCache
  267. case 2:
  268. return &v.unknownFields
  269. default:
  270. return nil
  271. }
  272. }
  273. file_proto_probability_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  274. switch v := v.(*Turn); i {
  275. case 0:
  276. return &v.state
  277. case 1:
  278. return &v.sizeCache
  279. case 2:
  280. return &v.unknownFields
  281. default:
  282. return nil
  283. }
  284. }
  285. file_proto_probability_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  286. switch v := v.(*Probability_Stamp); i {
  287. case 0:
  288. return &v.state
  289. case 1:
  290. return &v.sizeCache
  291. case 2:
  292. return &v.unknownFields
  293. default:
  294. return nil
  295. }
  296. }
  297. }
  298. type x struct{}
  299. out := protoimpl.TypeBuilder{
  300. File: protoimpl.DescBuilder{
  301. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  302. RawDescriptor: file_proto_probability_proto_rawDesc,
  303. NumEnums: 1,
  304. NumMessages: 3,
  305. NumExtensions: 0,
  306. NumServices: 0,
  307. },
  308. GoTypes: file_proto_probability_proto_goTypes,
  309. DependencyIndexes: file_proto_probability_proto_depIdxs,
  310. EnumInfos: file_proto_probability_proto_enumTypes,
  311. MessageInfos: file_proto_probability_proto_msgTypes,
  312. }.Build()
  313. File_proto_probability_proto = out.File
  314. file_proto_probability_proto_rawDesc = nil
  315. file_proto_probability_proto_goTypes = nil
  316. file_proto_probability_proto_depIdxs = nil
  317. }