123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.6
- // protoc v5.29.3
- // source: proto/probability.proto
- package sentio
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- timestamppb "google.golang.org/protobuf/types/known/timestamppb"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type Action int32
- const (
- Action_SELL Action = 0
- Action_BUY Action = 1
- )
- // Enum value maps for Action.
- var (
- Action_name = map[int32]string{
- 0: "SELL",
- 1: "BUY",
- }
- Action_value = map[string]int32{
- "SELL": 0,
- "BUY": 1,
- }
- )
- func (x Action) Enum() *Action {
- p := new(Action)
- *p = x
- return p
- }
- func (x Action) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (Action) Descriptor() protoreflect.EnumDescriptor {
- return file_proto_probability_proto_enumTypes[0].Descriptor()
- }
- func (Action) Type() protoreflect.EnumType {
- return &file_proto_probability_proto_enumTypes[0]
- }
- func (x Action) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use Action.Descriptor instead.
- func (Action) EnumDescriptor() ([]byte, []int) {
- return file_proto_probability_proto_rawDescGZIP(), []int{0}
- }
- type Probability struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Stamps []*Probability_Stamp `protobuf:"bytes,10,rep,name=stamps,proto3" json:"stamps,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Probability) Reset() {
- *x = Probability{}
- mi := &file_proto_probability_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Probability) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Probability) ProtoMessage() {}
- func (x *Probability) ProtoReflect() protoreflect.Message {
- mi := &file_proto_probability_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Probability.ProtoReflect.Descriptor instead.
- func (*Probability) Descriptor() ([]byte, []int) {
- return file_proto_probability_proto_rawDescGZIP(), []int{0}
- }
- func (x *Probability) GetStamps() []*Probability_Stamp {
- if x != nil {
- return x.Stamps
- }
- return nil
- }
- type Turn struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
- Action Action `protobuf:"varint,2,opt,name=action,proto3,enum=sentio.Action" json:"action,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Turn) Reset() {
- *x = Turn{}
- mi := &file_proto_probability_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Turn) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Turn) ProtoMessage() {}
- func (x *Turn) ProtoReflect() protoreflect.Message {
- mi := &file_proto_probability_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Turn.ProtoReflect.Descriptor instead.
- func (*Turn) Descriptor() ([]byte, []int) {
- return file_proto_probability_proto_rawDescGZIP(), []int{1}
- }
- func (x *Turn) GetTime() *timestamppb.Timestamp {
- if x != nil {
- return x.Time
- }
- return nil
- }
- func (x *Turn) GetAction() Action {
- if x != nil {
- return x.Action
- }
- return Action_SELL
- }
- type Probability_Stamp struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
- Value float32 `protobuf:"fixed32,2,opt,name=value,proto3" json:"value,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Probability_Stamp) Reset() {
- *x = Probability_Stamp{}
- mi := &file_proto_probability_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Probability_Stamp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Probability_Stamp) ProtoMessage() {}
- func (x *Probability_Stamp) ProtoReflect() protoreflect.Message {
- mi := &file_proto_probability_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Probability_Stamp.ProtoReflect.Descriptor instead.
- func (*Probability_Stamp) Descriptor() ([]byte, []int) {
- return file_proto_probability_proto_rawDescGZIP(), []int{0, 0}
- }
- func (x *Probability_Stamp) GetTime() *timestamppb.Timestamp {
- if x != nil {
- return x.Time
- }
- return nil
- }
- func (x *Probability_Stamp) GetValue() float32 {
- if x != nil {
- return x.Value
- }
- return 0
- }
- var File_proto_probability_proto protoreflect.FileDescriptor
- const file_proto_probability_proto_rawDesc = "" +
- "\n" +
- "\x17proto/probability.proto\x12\x06sentio\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8f\x01\n" +
- "\vProbability\x121\n" +
- "\x06stamps\x18\n" +
- " \x03(\v2\x19.sentio.Probability.StampR\x06stamps\x1aM\n" +
- "\x05Stamp\x12.\n" +
- "\x04time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x04time\x12\x14\n" +
- "\x05value\x18\x02 \x01(\x02R\x05value\"^\n" +
- "\x04Turn\x12.\n" +
- "\x04time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x04time\x12&\n" +
- "\x06action\x18\x02 \x01(\x0e2\x0e.sentio.ActionR\x06action*\x1b\n" +
- "\x06Action\x12\b\n" +
- "\x04SELL\x10\x00\x12\a\n" +
- "\x03BUY\x10\x01B\n" +
- "Z\b./sentiob\x06proto3"
- var (
- file_proto_probability_proto_rawDescOnce sync.Once
- file_proto_probability_proto_rawDescData []byte
- )
- func file_proto_probability_proto_rawDescGZIP() []byte {
- file_proto_probability_proto_rawDescOnce.Do(func() {
- file_proto_probability_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_probability_proto_rawDesc), len(file_proto_probability_proto_rawDesc)))
- })
- return file_proto_probability_proto_rawDescData
- }
- var file_proto_probability_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
- var file_proto_probability_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
- var file_proto_probability_proto_goTypes = []any{
- (Action)(0), // 0: sentio.Action
- (*Probability)(nil), // 1: sentio.Probability
- (*Turn)(nil), // 2: sentio.Turn
- (*Probability_Stamp)(nil), // 3: sentio.Probability.Stamp
- (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
- }
- var file_proto_probability_proto_depIdxs = []int32{
- 3, // 0: sentio.Probability.stamps:type_name -> sentio.Probability.Stamp
- 4, // 1: sentio.Turn.time:type_name -> google.protobuf.Timestamp
- 0, // 2: sentio.Turn.action:type_name -> sentio.Action
- 4, // 3: sentio.Probability.Stamp.time:type_name -> google.protobuf.Timestamp
- 4, // [4:4] is the sub-list for method output_type
- 4, // [4:4] is the sub-list for method input_type
- 4, // [4:4] is the sub-list for extension type_name
- 4, // [4:4] is the sub-list for extension extendee
- 0, // [0:4] is the sub-list for field type_name
- }
- func init() { file_proto_probability_proto_init() }
- func file_proto_probability_proto_init() {
- if File_proto_probability_proto != nil {
- return
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_probability_proto_rawDesc), len(file_proto_probability_proto_rawDesc)),
- NumEnums: 1,
- NumMessages: 3,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_proto_probability_proto_goTypes,
- DependencyIndexes: file_proto_probability_proto_depIdxs,
- EnumInfos: file_proto_probability_proto_enumTypes,
- MessageInfos: file_proto_probability_proto_msgTypes,
- }.Build()
- File_proto_probability_proto = out.File
- file_proto_probability_proto_goTypes = nil
- file_proto_probability_proto_depIdxs = nil
- }
|