2023-11-09 20:36:57 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: segment_message.proto
|
|
|
|
|
|
|
|
package protobuf
|
|
|
|
|
|
|
|
import (
|
2024-01-25 16:48:27 +00:00
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
math "math"
|
2023-11-09 20:36:57 +00:00
|
|
|
)
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
2024-01-17 13:12:49 +00:00
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
2023-12-15 16:16:18 +00:00
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
type SegmentMessage struct {
|
2023-11-09 20:36:57 +00:00
|
|
|
// hash of the entire original message
|
|
|
|
EntireMessageHash []byte `protobuf:"bytes,1,opt,name=entire_message_hash,json=entireMessageHash,proto3" json:"entire_message_hash,omitempty"`
|
|
|
|
// Index of this segment within the entire original message
|
|
|
|
Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
|
|
|
|
// Total number of segments the entire original message is divided into
|
|
|
|
SegmentsCount uint32 `protobuf:"varint,3,opt,name=segments_count,json=segmentsCount,proto3" json:"segments_count,omitempty"`
|
|
|
|
// The payload data for this particular segment
|
2024-01-25 16:48:27 +00:00
|
|
|
Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2023-11-09 20:36:57 +00:00
|
|
|
}
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
func (m *SegmentMessage) Reset() { *m = SegmentMessage{} }
|
|
|
|
func (m *SegmentMessage) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SegmentMessage) ProtoMessage() {}
|
|
|
|
func (*SegmentMessage) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_857302809a887a8b, []int{0}
|
2023-11-09 20:36:57 +00:00
|
|
|
}
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
func (m *SegmentMessage) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_SegmentMessage.Unmarshal(m, b)
|
2023-11-09 20:36:57 +00:00
|
|
|
}
|
2024-01-25 16:48:27 +00:00
|
|
|
func (m *SegmentMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_SegmentMessage.Marshal(b, m, deterministic)
|
2024-01-21 10:55:14 +00:00
|
|
|
}
|
2024-01-25 16:48:27 +00:00
|
|
|
func (m *SegmentMessage) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SegmentMessage.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *SegmentMessage) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_SegmentMessage.Size(m)
|
2023-12-15 16:16:18 +00:00
|
|
|
}
|
2024-01-25 16:48:27 +00:00
|
|
|
func (m *SegmentMessage) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SegmentMessage.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_SegmentMessage proto.InternalMessageInfo
|
2023-11-09 20:36:57 +00:00
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
func (m *SegmentMessage) GetEntireMessageHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.EntireMessageHash
|
2023-11-09 20:36:57 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
func (m *SegmentMessage) GetIndex() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Index
|
2023-11-09 20:36:57 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
func (m *SegmentMessage) GetSegmentsCount() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.SegmentsCount
|
2023-11-09 20:36:57 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
func (m *SegmentMessage) GetPayload() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Payload
|
2023-11-09 20:36:57 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*SegmentMessage)(nil), "protobuf.SegmentMessage")
|
2023-11-09 20:36:57 +00:00
|
|
|
}
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("segment_message.proto", fileDescriptor_857302809a887a8b)
|
2023-11-09 20:36:57 +00:00
|
|
|
}
|
|
|
|
|
2024-01-25 16:48:27 +00:00
|
|
|
var fileDescriptor_857302809a887a8b = []byte{
|
|
|
|
// 169 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2d, 0x4e, 0x4d, 0xcf,
|
|
|
|
0x4d, 0xcd, 0x2b, 0x89, 0xcf, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0xd5, 0x2b, 0x28, 0xca, 0x2f,
|
|
|
|
0xc9, 0x17, 0xe2, 0x00, 0x53, 0x49, 0xa5, 0x69, 0x4a, 0xd3, 0x19, 0xb9, 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