github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/kit/httptransport/transformer/testdata/testpbdata.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.1
     4  // 	protoc        v3.21.12
     5  // source: testpbdata.proto
     6  
     7  package testdatapb
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type Header struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	EventType string `protobuf:"bytes,1,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` // event type
    29  	PubId     string `protobuf:"bytes,2,opt,name=pub_id,json=pubId,proto3" json:"pub_id,omitempty"`             // the unique identifier for publisher
    30  	Token     string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`                          // for validation message
    31  	PubTime   int64  `protobuf:"varint,4,opt,name=pub_time,json=pubTime,proto3" json:"pub_time,omitempty"`      // event pub timestamp
    32  	EventId   string `protobuf:"bytes,5,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`       // event id for tracing
    33  }
    34  
    35  func (x *Header) Reset() {
    36  	*x = Header{}
    37  	if protoimpl.UnsafeEnabled {
    38  		mi := &file_testpbdata_proto_msgTypes[0]
    39  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    40  		ms.StoreMessageInfo(mi)
    41  	}
    42  }
    43  
    44  func (x *Header) String() string {
    45  	return protoimpl.X.MessageStringOf(x)
    46  }
    47  
    48  func (*Header) ProtoMessage() {}
    49  
    50  func (x *Header) ProtoReflect() protoreflect.Message {
    51  	mi := &file_testpbdata_proto_msgTypes[0]
    52  	if protoimpl.UnsafeEnabled && x != nil {
    53  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    54  		if ms.LoadMessageInfo() == nil {
    55  			ms.StoreMessageInfo(mi)
    56  		}
    57  		return ms
    58  	}
    59  	return mi.MessageOf(x)
    60  }
    61  
    62  // Deprecated: Use Header.ProtoReflect.Descriptor instead.
    63  func (*Header) Descriptor() ([]byte, []int) {
    64  	return file_testpbdata_proto_rawDescGZIP(), []int{0}
    65  }
    66  
    67  func (x *Header) GetEventType() string {
    68  	if x != nil {
    69  		return x.EventType
    70  	}
    71  	return ""
    72  }
    73  
    74  func (x *Header) GetPubId() string {
    75  	if x != nil {
    76  		return x.PubId
    77  	}
    78  	return ""
    79  }
    80  
    81  func (x *Header) GetToken() string {
    82  	if x != nil {
    83  		return x.Token
    84  	}
    85  	return ""
    86  }
    87  
    88  func (x *Header) GetPubTime() int64 {
    89  	if x != nil {
    90  		return x.PubTime
    91  	}
    92  	return 0
    93  }
    94  
    95  func (x *Header) GetEventId() string {
    96  	if x != nil {
    97  		return x.EventId
    98  	}
    99  	return ""
   100  }
   101  
   102  type Event struct {
   103  	state         protoimpl.MessageState
   104  	sizeCache     protoimpl.SizeCache
   105  	unknownFields protoimpl.UnknownFields
   106  
   107  	Header  *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
   108  	Payload []byte  `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
   109  }
   110  
   111  func (x *Event) Reset() {
   112  	*x = Event{}
   113  	if protoimpl.UnsafeEnabled {
   114  		mi := &file_testpbdata_proto_msgTypes[1]
   115  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   116  		ms.StoreMessageInfo(mi)
   117  	}
   118  }
   119  
   120  func (x *Event) String() string {
   121  	return protoimpl.X.MessageStringOf(x)
   122  }
   123  
   124  func (*Event) ProtoMessage() {}
   125  
   126  func (x *Event) ProtoReflect() protoreflect.Message {
   127  	mi := &file_testpbdata_proto_msgTypes[1]
   128  	if protoimpl.UnsafeEnabled && x != nil {
   129  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   130  		if ms.LoadMessageInfo() == nil {
   131  			ms.StoreMessageInfo(mi)
   132  		}
   133  		return ms
   134  	}
   135  	return mi.MessageOf(x)
   136  }
   137  
   138  // Deprecated: Use Event.ProtoReflect.Descriptor instead.
   139  func (*Event) Descriptor() ([]byte, []int) {
   140  	return file_testpbdata_proto_rawDescGZIP(), []int{1}
   141  }
   142  
   143  func (x *Event) GetHeader() *Header {
   144  	if x != nil {
   145  		return x.Header
   146  	}
   147  	return nil
   148  }
   149  
   150  func (x *Event) GetPayload() []byte {
   151  	if x != nil {
   152  		return x.Payload
   153  	}
   154  	return nil
   155  }
   156  
   157  type Events struct {
   158  	state         protoimpl.MessageState
   159  	sizeCache     protoimpl.SizeCache
   160  	unknownFields protoimpl.UnknownFields
   161  
   162  	Data []*Event `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
   163  }
   164  
   165  func (x *Events) Reset() {
   166  	*x = Events{}
   167  	if protoimpl.UnsafeEnabled {
   168  		mi := &file_testpbdata_proto_msgTypes[2]
   169  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   170  		ms.StoreMessageInfo(mi)
   171  	}
   172  }
   173  
   174  func (x *Events) String() string {
   175  	return protoimpl.X.MessageStringOf(x)
   176  }
   177  
   178  func (*Events) ProtoMessage() {}
   179  
   180  func (x *Events) ProtoReflect() protoreflect.Message {
   181  	mi := &file_testpbdata_proto_msgTypes[2]
   182  	if protoimpl.UnsafeEnabled && x != nil {
   183  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   184  		if ms.LoadMessageInfo() == nil {
   185  			ms.StoreMessageInfo(mi)
   186  		}
   187  		return ms
   188  	}
   189  	return mi.MessageOf(x)
   190  }
   191  
   192  // Deprecated: Use Events.ProtoReflect.Descriptor instead.
   193  func (*Events) Descriptor() ([]byte, []int) {
   194  	return file_testpbdata_proto_rawDescGZIP(), []int{2}
   195  }
   196  
   197  func (x *Events) GetData() []*Event {
   198  	if x != nil {
   199  		return x.Data
   200  	}
   201  	return nil
   202  }
   203  
   204  type HandleResult struct {
   205  	state         protoimpl.MessageState
   206  	sizeCache     protoimpl.SizeCache
   207  	unknownFields protoimpl.UnknownFields
   208  
   209  	EventId   string `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
   210  	Succeeded bool   `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"`
   211  	ErrMsg    string `protobuf:"bytes,3,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"`
   212  }
   213  
   214  func (x *HandleResult) Reset() {
   215  	*x = HandleResult{}
   216  	if protoimpl.UnsafeEnabled {
   217  		mi := &file_testpbdata_proto_msgTypes[3]
   218  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   219  		ms.StoreMessageInfo(mi)
   220  	}
   221  }
   222  
   223  func (x *HandleResult) String() string {
   224  	return protoimpl.X.MessageStringOf(x)
   225  }
   226  
   227  func (*HandleResult) ProtoMessage() {}
   228  
   229  func (x *HandleResult) ProtoReflect() protoreflect.Message {
   230  	mi := &file_testpbdata_proto_msgTypes[3]
   231  	if protoimpl.UnsafeEnabled && x != nil {
   232  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   233  		if ms.LoadMessageInfo() == nil {
   234  			ms.StoreMessageInfo(mi)
   235  		}
   236  		return ms
   237  	}
   238  	return mi.MessageOf(x)
   239  }
   240  
   241  // Deprecated: Use HandleResult.ProtoReflect.Descriptor instead.
   242  func (*HandleResult) Descriptor() ([]byte, []int) {
   243  	return file_testpbdata_proto_rawDescGZIP(), []int{3}
   244  }
   245  
   246  func (x *HandleResult) GetEventId() string {
   247  	if x != nil {
   248  		return x.EventId
   249  	}
   250  	return ""
   251  }
   252  
   253  func (x *HandleResult) GetSucceeded() bool {
   254  	if x != nil {
   255  		return x.Succeeded
   256  	}
   257  	return false
   258  }
   259  
   260  func (x *HandleResult) GetErrMsg() string {
   261  	if x != nil {
   262  		return x.ErrMsg
   263  	}
   264  	return ""
   265  }
   266  
   267  var File_testpbdata_proto protoreflect.FileDescriptor
   268  
   269  var file_testpbdata_proto_rawDesc = []byte{
   270  	0x0a, 0x10, 0x74, 0x65, 0x73, 0x74, 0x70, 0x62, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f,
   271  	0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x70, 0x62, 0x22, 0x8a,
   272  	0x01, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x76, 0x65,
   273  	0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65,
   274  	0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x5f,
   275  	0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x75, 0x62, 0x49, 0x64, 0x12,
   276  	0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
   277  	0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x75, 0x62, 0x5f, 0x74, 0x69, 0x6d,
   278  	0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x70, 0x75, 0x62, 0x54, 0x69, 0x6d, 0x65,
   279  	0x12, 0x19, 0x0a, 0x08, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01,
   280  	0x28, 0x09, 0x52, 0x07, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x4d, 0x0a, 0x05, 0x45,
   281  	0x76, 0x65, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01,
   282  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x70,
   283  	0x62, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
   284  	0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
   285  	0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x2f, 0x0a, 0x06, 0x45, 0x76,
   286  	0x65, 0x6e, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03,
   287  	0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x70, 0x62, 0x2e,
   288  	0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x60, 0x0a, 0x0c, 0x48,
   289  	0x61, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x65,
   290  	0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65,
   291  	0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x75, 0x63, 0x63, 0x65, 0x65,
   292  	0x64, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x75, 0x63, 0x63, 0x65,
   293  	0x65, 0x64, 0x65, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x18,
   294  	0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x42, 0x0f, 0x5a,
   295  	0x0d, 0x2e, 0x2f, 0x3b, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x70, 0x62, 0x62, 0x06,
   296  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   297  }
   298  
   299  var (
   300  	file_testpbdata_proto_rawDescOnce sync.Once
   301  	file_testpbdata_proto_rawDescData = file_testpbdata_proto_rawDesc
   302  )
   303  
   304  func file_testpbdata_proto_rawDescGZIP() []byte {
   305  	file_testpbdata_proto_rawDescOnce.Do(func() {
   306  		file_testpbdata_proto_rawDescData = protoimpl.X.CompressGZIP(file_testpbdata_proto_rawDescData)
   307  	})
   308  	return file_testpbdata_proto_rawDescData
   309  }
   310  
   311  var file_testpbdata_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   312  var file_testpbdata_proto_goTypes = []interface{}{
   313  	(*Header)(nil),       // 0: testdatapb.Header
   314  	(*Event)(nil),        // 1: testdatapb.Event
   315  	(*Events)(nil),       // 2: testdatapb.Events
   316  	(*HandleResult)(nil), // 3: testdatapb.HandleResult
   317  }
   318  var file_testpbdata_proto_depIdxs = []int32{
   319  	0, // 0: testdatapb.Event.header:type_name -> testdatapb.Header
   320  	1, // 1: testdatapb.Events.data:type_name -> testdatapb.Event
   321  	2, // [2:2] is the sub-list for method output_type
   322  	2, // [2:2] is the sub-list for method input_type
   323  	2, // [2:2] is the sub-list for extension type_name
   324  	2, // [2:2] is the sub-list for extension extendee
   325  	0, // [0:2] is the sub-list for field type_name
   326  }
   327  
   328  func init() { file_testpbdata_proto_init() }
   329  func file_testpbdata_proto_init() {
   330  	if File_testpbdata_proto != nil {
   331  		return
   332  	}
   333  	if !protoimpl.UnsafeEnabled {
   334  		file_testpbdata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   335  			switch v := v.(*Header); i {
   336  			case 0:
   337  				return &v.state
   338  			case 1:
   339  				return &v.sizeCache
   340  			case 2:
   341  				return &v.unknownFields
   342  			default:
   343  				return nil
   344  			}
   345  		}
   346  		file_testpbdata_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   347  			switch v := v.(*Event); i {
   348  			case 0:
   349  				return &v.state
   350  			case 1:
   351  				return &v.sizeCache
   352  			case 2:
   353  				return &v.unknownFields
   354  			default:
   355  				return nil
   356  			}
   357  		}
   358  		file_testpbdata_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   359  			switch v := v.(*Events); i {
   360  			case 0:
   361  				return &v.state
   362  			case 1:
   363  				return &v.sizeCache
   364  			case 2:
   365  				return &v.unknownFields
   366  			default:
   367  				return nil
   368  			}
   369  		}
   370  		file_testpbdata_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   371  			switch v := v.(*HandleResult); i {
   372  			case 0:
   373  				return &v.state
   374  			case 1:
   375  				return &v.sizeCache
   376  			case 2:
   377  				return &v.unknownFields
   378  			default:
   379  				return nil
   380  			}
   381  		}
   382  	}
   383  	type x struct{}
   384  	out := protoimpl.TypeBuilder{
   385  		File: protoimpl.DescBuilder{
   386  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   387  			RawDescriptor: file_testpbdata_proto_rawDesc,
   388  			NumEnums:      0,
   389  			NumMessages:   4,
   390  			NumExtensions: 0,
   391  			NumServices:   0,
   392  		},
   393  		GoTypes:           file_testpbdata_proto_goTypes,
   394  		DependencyIndexes: file_testpbdata_proto_depIdxs,
   395  		MessageInfos:      file_testpbdata_proto_msgTypes,
   396  	}.Build()
   397  	File_testpbdata_proto = out.File
   398  	file_testpbdata_proto_rawDesc = nil
   399  	file_testpbdata_proto_goTypes = nil
   400  	file_testpbdata_proto_depIdxs = nil
   401  }