probability.pb.go 8.4 KB

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