github.com/vipernet-xyz/tm@v0.34.24/test/loadtime/payload/payload.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        v3.20.1
     5  // source: payload/payload.proto
     6  
     7  package payload
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  // Payload is the structure of the loadtime transaction. Proto has a compact
    25  // encoded representation, making it ideal for the loadtime usecase which aims to
    26  // keep the generated transactions small.
    27  type Payload struct {
    28  	state         protoimpl.MessageState
    29  	sizeCache     protoimpl.SizeCache
    30  	unknownFields protoimpl.UnknownFields
    31  
    32  	Connections uint64                 `protobuf:"varint,1,opt,name=connections,proto3" json:"connections,omitempty"`
    33  	Rate        uint64                 `protobuf:"varint,2,opt,name=rate,proto3" json:"rate,omitempty"`
    34  	Size        uint64                 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
    35  	Time        *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"`
    36  	Id          []byte                 `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
    37  	Padding     []byte                 `protobuf:"bytes,6,opt,name=padding,proto3" json:"padding,omitempty"`
    38  }
    39  
    40  func (x *Payload) Reset() {
    41  	*x = Payload{}
    42  	if protoimpl.UnsafeEnabled {
    43  		mi := &file_payload_payload_proto_msgTypes[0]
    44  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    45  		ms.StoreMessageInfo(mi)
    46  	}
    47  }
    48  
    49  func (x *Payload) String() string {
    50  	return protoimpl.X.MessageStringOf(x)
    51  }
    52  
    53  func (*Payload) ProtoMessage() {}
    54  
    55  func (x *Payload) ProtoReflect() protoreflect.Message {
    56  	mi := &file_payload_payload_proto_msgTypes[0]
    57  	if protoimpl.UnsafeEnabled && x != nil {
    58  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    59  		if ms.LoadMessageInfo() == nil {
    60  			ms.StoreMessageInfo(mi)
    61  		}
    62  		return ms
    63  	}
    64  	return mi.MessageOf(x)
    65  }
    66  
    67  // Deprecated: Use Payload.ProtoReflect.Descriptor instead.
    68  func (*Payload) Descriptor() ([]byte, []int) {
    69  	return file_payload_payload_proto_rawDescGZIP(), []int{0}
    70  }
    71  
    72  func (x *Payload) GetConnections() uint64 {
    73  	if x != nil {
    74  		return x.Connections
    75  	}
    76  	return 0
    77  }
    78  
    79  func (x *Payload) GetRate() uint64 {
    80  	if x != nil {
    81  		return x.Rate
    82  	}
    83  	return 0
    84  }
    85  
    86  func (x *Payload) GetSize() uint64 {
    87  	if x != nil {
    88  		return x.Size
    89  	}
    90  	return 0
    91  }
    92  
    93  func (x *Payload) GetTime() *timestamppb.Timestamp {
    94  	if x != nil {
    95  		return x.Time
    96  	}
    97  	return nil
    98  }
    99  
   100  func (x *Payload) GetId() []byte {
   101  	if x != nil {
   102  		return x.Id
   103  	}
   104  	return nil
   105  }
   106  
   107  func (x *Payload) GetPadding() []byte {
   108  	if x != nil {
   109  		return x.Padding
   110  	}
   111  	return nil
   112  }
   113  
   114  var File_payload_payload_proto protoreflect.FileDescriptor
   115  
   116  var file_payload_payload_proto_rawDesc = []byte{
   117  	0x0a, 0x15, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61,
   118  	0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x6c, 0x6f, 0x61, 0x64, 0x74, 0x69, 0x6d,
   119  	0x65, 0x2e, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   120  	0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
   121  	0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xad, 0x01, 0x0a, 0x07, 0x50,
   122  	0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
   123  	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x63, 0x6f, 0x6e,
   124  	0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x61, 0x74, 0x65,
   125  	0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x72, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04,
   126  	0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65,
   127  	0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
   128  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
   129  	0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65,
   130  	0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64,
   131  	0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28,
   132  	0x0c, 0x52, 0x07, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69,
   133  	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d,
   134  	0x69, 0x6e, 0x74, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x74,
   135  	0x65, 0x73, 0x74, 0x2f, 0x6c, 0x6f, 0x61, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x70, 0x61, 0x79,
   136  	0x6c, 0x6f, 0x61, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   137  }
   138  
   139  var (
   140  	file_payload_payload_proto_rawDescOnce sync.Once
   141  	file_payload_payload_proto_rawDescData = file_payload_payload_proto_rawDesc
   142  )
   143  
   144  func file_payload_payload_proto_rawDescGZIP() []byte {
   145  	file_payload_payload_proto_rawDescOnce.Do(func() {
   146  		file_payload_payload_proto_rawDescData = protoimpl.X.CompressGZIP(file_payload_payload_proto_rawDescData)
   147  	})
   148  	return file_payload_payload_proto_rawDescData
   149  }
   150  
   151  var file_payload_payload_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   152  var file_payload_payload_proto_goTypes = []interface{}{
   153  	(*Payload)(nil),               // 0: loadtime.payload.Payload
   154  	(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
   155  }
   156  var file_payload_payload_proto_depIdxs = []int32{
   157  	1, // 0: loadtime.payload.Payload.time:type_name -> google.protobuf.Timestamp
   158  	1, // [1:1] is the sub-list for method output_type
   159  	1, // [1:1] is the sub-list for method input_type
   160  	1, // [1:1] is the sub-list for extension type_name
   161  	1, // [1:1] is the sub-list for extension extendee
   162  	0, // [0:1] is the sub-list for field type_name
   163  }
   164  
   165  func init() { file_payload_payload_proto_init() }
   166  func file_payload_payload_proto_init() {
   167  	if File_payload_payload_proto != nil {
   168  		return
   169  	}
   170  	if !protoimpl.UnsafeEnabled {
   171  		file_payload_payload_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   172  			switch v := v.(*Payload); i {
   173  			case 0:
   174  				return &v.state
   175  			case 1:
   176  				return &v.sizeCache
   177  			case 2:
   178  				return &v.unknownFields
   179  			default:
   180  				return nil
   181  			}
   182  		}
   183  	}
   184  	type x struct{}
   185  	out := protoimpl.TypeBuilder{
   186  		File: protoimpl.DescBuilder{
   187  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   188  			RawDescriptor: file_payload_payload_proto_rawDesc,
   189  			NumEnums:      0,
   190  			NumMessages:   1,
   191  			NumExtensions: 0,
   192  			NumServices:   0,
   193  		},
   194  		GoTypes:           file_payload_payload_proto_goTypes,
   195  		DependencyIndexes: file_payload_payload_proto_depIdxs,
   196  		MessageInfos:      file_payload_payload_proto_msgTypes,
   197  	}.Build()
   198  	File_payload_payload_proto = out.File
   199  	file_payload_payload_proto_rawDesc = nil
   200  	file_payload_payload_proto_goTypes = nil
   201  	file_payload_payload_proto_depIdxs = nil
   202  }