probability.pb.go 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.6
  4. // protoc v5.29.3
  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. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. type Action int32
  22. const (
  23. Action_FLAT Action = 0
  24. Action_SELL Action = 1
  25. Action_BUY Action = 2
  26. )
  27. // Enum value maps for Action.
  28. var (
  29. Action_name = map[int32]string{
  30. 0: "FLAT",
  31. 1: "SELL",
  32. 2: "BUY",
  33. }
  34. Action_value = map[string]int32{
  35. "FLAT": 0,
  36. "SELL": 1,
  37. "BUY": 2,
  38. }
  39. )
  40. func (x Action) Enum() *Action {
  41. p := new(Action)
  42. *p = x
  43. return p
  44. }
  45. func (x Action) String() string {
  46. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  47. }
  48. func (Action) Descriptor() protoreflect.EnumDescriptor {
  49. return file_proto_probability_proto_enumTypes[0].Descriptor()
  50. }
  51. func (Action) Type() protoreflect.EnumType {
  52. return &file_proto_probability_proto_enumTypes[0]
  53. }
  54. func (x Action) Number() protoreflect.EnumNumber {
  55. return protoreflect.EnumNumber(x)
  56. }
  57. // Deprecated: Use Action.Descriptor instead.
  58. func (Action) EnumDescriptor() ([]byte, []int) {
  59. return file_proto_probability_proto_rawDescGZIP(), []int{0}
  60. }
  61. type Probability struct {
  62. state protoimpl.MessageState `protogen:"open.v1"`
  63. Stamps []*Probability_Stamp `protobuf:"bytes,10,rep,name=stamps,proto3" json:"stamps,omitempty"`
  64. unknownFields protoimpl.UnknownFields
  65. sizeCache protoimpl.SizeCache
  66. }
  67. func (x *Probability) Reset() {
  68. *x = Probability{}
  69. mi := &file_proto_probability_proto_msgTypes[0]
  70. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  71. ms.StoreMessageInfo(mi)
  72. }
  73. func (x *Probability) String() string {
  74. return protoimpl.X.MessageStringOf(x)
  75. }
  76. func (*Probability) ProtoMessage() {}
  77. func (x *Probability) ProtoReflect() protoreflect.Message {
  78. mi := &file_proto_probability_proto_msgTypes[0]
  79. if x != nil {
  80. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  81. if ms.LoadMessageInfo() == nil {
  82. ms.StoreMessageInfo(mi)
  83. }
  84. return ms
  85. }
  86. return mi.MessageOf(x)
  87. }
  88. // Deprecated: Use Probability.ProtoReflect.Descriptor instead.
  89. func (*Probability) Descriptor() ([]byte, []int) {
  90. return file_proto_probability_proto_rawDescGZIP(), []int{0}
  91. }
  92. func (x *Probability) GetStamps() []*Probability_Stamp {
  93. if x != nil {
  94. return x.Stamps
  95. }
  96. return nil
  97. }
  98. type Turn struct {
  99. state protoimpl.MessageState `protogen:"open.v1"`
  100. Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
  101. Action Action `protobuf:"varint,2,opt,name=action,proto3,enum=sentio.Action" json:"action,omitempty"`
  102. unknownFields protoimpl.UnknownFields
  103. sizeCache protoimpl.SizeCache
  104. }
  105. func (x *Turn) Reset() {
  106. *x = Turn{}
  107. mi := &file_proto_probability_proto_msgTypes[1]
  108. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  109. ms.StoreMessageInfo(mi)
  110. }
  111. func (x *Turn) String() string {
  112. return protoimpl.X.MessageStringOf(x)
  113. }
  114. func (*Turn) ProtoMessage() {}
  115. func (x *Turn) ProtoReflect() protoreflect.Message {
  116. mi := &file_proto_probability_proto_msgTypes[1]
  117. if x != nil {
  118. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  119. if ms.LoadMessageInfo() == nil {
  120. ms.StoreMessageInfo(mi)
  121. }
  122. return ms
  123. }
  124. return mi.MessageOf(x)
  125. }
  126. // Deprecated: Use Turn.ProtoReflect.Descriptor instead.
  127. func (*Turn) Descriptor() ([]byte, []int) {
  128. return file_proto_probability_proto_rawDescGZIP(), []int{1}
  129. }
  130. func (x *Turn) GetTime() *timestamppb.Timestamp {
  131. if x != nil {
  132. return x.Time
  133. }
  134. return nil
  135. }
  136. func (x *Turn) GetAction() Action {
  137. if x != nil {
  138. return x.Action
  139. }
  140. return Action_FLAT
  141. }
  142. type Probability_Stamp struct {
  143. state protoimpl.MessageState `protogen:"open.v1"`
  144. Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
  145. Value float32 `protobuf:"fixed32,2,opt,name=value,proto3" json:"value,omitempty"`
  146. unknownFields protoimpl.UnknownFields
  147. sizeCache protoimpl.SizeCache
  148. }
  149. func (x *Probability_Stamp) Reset() {
  150. *x = Probability_Stamp{}
  151. mi := &file_proto_probability_proto_msgTypes[2]
  152. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  153. ms.StoreMessageInfo(mi)
  154. }
  155. func (x *Probability_Stamp) String() string {
  156. return protoimpl.X.MessageStringOf(x)
  157. }
  158. func (*Probability_Stamp) ProtoMessage() {}
  159. func (x *Probability_Stamp) ProtoReflect() protoreflect.Message {
  160. mi := &file_proto_probability_proto_msgTypes[2]
  161. if x != nil {
  162. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  163. if ms.LoadMessageInfo() == nil {
  164. ms.StoreMessageInfo(mi)
  165. }
  166. return ms
  167. }
  168. return mi.MessageOf(x)
  169. }
  170. // Deprecated: Use Probability_Stamp.ProtoReflect.Descriptor instead.
  171. func (*Probability_Stamp) Descriptor() ([]byte, []int) {
  172. return file_proto_probability_proto_rawDescGZIP(), []int{0, 0}
  173. }
  174. func (x *Probability_Stamp) GetTime() *timestamppb.Timestamp {
  175. if x != nil {
  176. return x.Time
  177. }
  178. return nil
  179. }
  180. func (x *Probability_Stamp) GetValue() float32 {
  181. if x != nil {
  182. return x.Value
  183. }
  184. return 0
  185. }
  186. var File_proto_probability_proto protoreflect.FileDescriptor
  187. const file_proto_probability_proto_rawDesc = "" +
  188. "\n" +
  189. "\x17proto/probability.proto\x12\x06sentio\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8f\x01\n" +
  190. "\vProbability\x121\n" +
  191. "\x06stamps\x18\n" +
  192. " \x03(\v2\x19.sentio.Probability.StampR\x06stamps\x1aM\n" +
  193. "\x05Stamp\x12.\n" +
  194. "\x04time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x04time\x12\x14\n" +
  195. "\x05value\x18\x02 \x01(\x02R\x05value\"^\n" +
  196. "\x04Turn\x12.\n" +
  197. "\x04time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x04time\x12&\n" +
  198. "\x06action\x18\x02 \x01(\x0e2\x0e.sentio.ActionR\x06action*%\n" +
  199. "\x06Action\x12\b\n" +
  200. "\x04FLAT\x10\x00\x12\b\n" +
  201. "\x04SELL\x10\x01\x12\a\n" +
  202. "\x03BUY\x10\x02B\n" +
  203. "Z\b./sentiob\x06proto3"
  204. var (
  205. file_proto_probability_proto_rawDescOnce sync.Once
  206. file_proto_probability_proto_rawDescData []byte
  207. )
  208. func file_proto_probability_proto_rawDescGZIP() []byte {
  209. file_proto_probability_proto_rawDescOnce.Do(func() {
  210. file_proto_probability_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_probability_proto_rawDesc), len(file_proto_probability_proto_rawDesc)))
  211. })
  212. return file_proto_probability_proto_rawDescData
  213. }
  214. var file_proto_probability_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  215. var file_proto_probability_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  216. var file_proto_probability_proto_goTypes = []any{
  217. (Action)(0), // 0: sentio.Action
  218. (*Probability)(nil), // 1: sentio.Probability
  219. (*Turn)(nil), // 2: sentio.Turn
  220. (*Probability_Stamp)(nil), // 3: sentio.Probability.Stamp
  221. (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
  222. }
  223. var file_proto_probability_proto_depIdxs = []int32{
  224. 3, // 0: sentio.Probability.stamps:type_name -> sentio.Probability.Stamp
  225. 4, // 1: sentio.Turn.time:type_name -> google.protobuf.Timestamp
  226. 0, // 2: sentio.Turn.action:type_name -> sentio.Action
  227. 4, // 3: sentio.Probability.Stamp.time:type_name -> google.protobuf.Timestamp
  228. 4, // [4:4] is the sub-list for method output_type
  229. 4, // [4:4] is the sub-list for method input_type
  230. 4, // [4:4] is the sub-list for extension type_name
  231. 4, // [4:4] is the sub-list for extension extendee
  232. 0, // [0:4] is the sub-list for field type_name
  233. }
  234. func init() { file_proto_probability_proto_init() }
  235. func file_proto_probability_proto_init() {
  236. if File_proto_probability_proto != nil {
  237. return
  238. }
  239. type x struct{}
  240. out := protoimpl.TypeBuilder{
  241. File: protoimpl.DescBuilder{
  242. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  243. RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_probability_proto_rawDesc), len(file_proto_probability_proto_rawDesc)),
  244. NumEnums: 1,
  245. NumMessages: 3,
  246. NumExtensions: 0,
  247. NumServices: 0,
  248. },
  249. GoTypes: file_proto_probability_proto_goTypes,
  250. DependencyIndexes: file_proto_probability_proto_depIdxs,
  251. EnumInfos: file_proto_probability_proto_enumTypes,
  252. MessageInfos: file_proto_probability_proto_msgTypes,
  253. }.Build()
  254. File_proto_probability_proto = out.File
  255. file_proto_probability_proto_goTypes = nil
  256. file_proto_probability_proto_depIdxs = nil
  257. }