github.com/status-im/status-go@v1.1.0/protocol/protobuf/segment_message.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.31.0 4 // protoc v3.20.3 5 // source: segment_message.proto 6 7 package protobuf 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 SegmentMessage struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 // hash of the entire original message 29 EntireMessageHash []byte `protobuf:"bytes,1,opt,name=entire_message_hash,json=entireMessageHash,proto3" json:"entire_message_hash,omitempty"` 30 // Index of this segment within the entire original message 31 Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` 32 // Total number of segments the entire original message is divided into 33 SegmentsCount uint32 `protobuf:"varint,3,opt,name=segments_count,json=segmentsCount,proto3" json:"segments_count,omitempty"` 34 // The payload data for this particular segment 35 Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` 36 // Index of this parity segment 37 ParitySegmentIndex uint32 `protobuf:"varint,5,opt,name=parity_segment_index,json=paritySegmentIndex,proto3" json:"parity_segment_index,omitempty"` 38 // Total number of parity segments 39 ParitySegmentsCount uint32 `protobuf:"varint,6,opt,name=parity_segments_count,json=paritySegmentsCount,proto3" json:"parity_segments_count,omitempty"` 40 } 41 42 func (x *SegmentMessage) Reset() { 43 *x = SegmentMessage{} 44 if protoimpl.UnsafeEnabled { 45 mi := &file_segment_message_proto_msgTypes[0] 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 ms.StoreMessageInfo(mi) 48 } 49 } 50 51 func (x *SegmentMessage) String() string { 52 return protoimpl.X.MessageStringOf(x) 53 } 54 55 func (*SegmentMessage) ProtoMessage() {} 56 57 func (x *SegmentMessage) ProtoReflect() protoreflect.Message { 58 mi := &file_segment_message_proto_msgTypes[0] 59 if protoimpl.UnsafeEnabled && x != nil { 60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 61 if ms.LoadMessageInfo() == nil { 62 ms.StoreMessageInfo(mi) 63 } 64 return ms 65 } 66 return mi.MessageOf(x) 67 } 68 69 // Deprecated: Use SegmentMessage.ProtoReflect.Descriptor instead. 70 func (*SegmentMessage) Descriptor() ([]byte, []int) { 71 return file_segment_message_proto_rawDescGZIP(), []int{0} 72 } 73 74 func (x *SegmentMessage) GetEntireMessageHash() []byte { 75 if x != nil { 76 return x.EntireMessageHash 77 } 78 return nil 79 } 80 81 func (x *SegmentMessage) GetIndex() uint32 { 82 if x != nil { 83 return x.Index 84 } 85 return 0 86 } 87 88 func (x *SegmentMessage) GetSegmentsCount() uint32 { 89 if x != nil { 90 return x.SegmentsCount 91 } 92 return 0 93 } 94 95 func (x *SegmentMessage) GetPayload() []byte { 96 if x != nil { 97 return x.Payload 98 } 99 return nil 100 } 101 102 func (x *SegmentMessage) GetParitySegmentIndex() uint32 { 103 if x != nil { 104 return x.ParitySegmentIndex 105 } 106 return 0 107 } 108 109 func (x *SegmentMessage) GetParitySegmentsCount() uint32 { 110 if x != nil { 111 return x.ParitySegmentsCount 112 } 113 return 0 114 } 115 116 var File_segment_message_proto protoreflect.FileDescriptor 117 118 var file_segment_message_proto_rawDesc = []byte{ 119 0x0a, 0x15, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 120 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 121 0x66, 0x22, 0xfd, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 122 0x73, 0x61, 0x67, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x65, 0x6e, 0x74, 0x69, 0x72, 0x65, 0x5f, 0x6d, 123 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 124 0x0c, 0x52, 0x11, 0x65, 0x6e, 0x74, 0x69, 0x72, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 125 0x48, 0x61, 0x73, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 126 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 127 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 128 0x28, 0x0d, 0x52, 0x0d, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x43, 0x6f, 0x75, 0x6e, 129 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, 130 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x30, 0x0a, 0x14, 0x70, 131 0x61, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 132 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12, 0x70, 0x61, 0x72, 0x69, 0x74, 133 0x79, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x32, 0x0a, 134 0x15, 0x70, 0x61, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 135 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x13, 0x70, 0x61, 136 0x72, 0x69, 0x74, 0x79, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x43, 0x6f, 0x75, 0x6e, 137 0x74, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 138 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 139 } 140 141 var ( 142 file_segment_message_proto_rawDescOnce sync.Once 143 file_segment_message_proto_rawDescData = file_segment_message_proto_rawDesc 144 ) 145 146 func file_segment_message_proto_rawDescGZIP() []byte { 147 file_segment_message_proto_rawDescOnce.Do(func() { 148 file_segment_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_segment_message_proto_rawDescData) 149 }) 150 return file_segment_message_proto_rawDescData 151 } 152 153 var file_segment_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 154 var file_segment_message_proto_goTypes = []interface{}{ 155 (*SegmentMessage)(nil), // 0: protobuf.SegmentMessage 156 } 157 var file_segment_message_proto_depIdxs = []int32{ 158 0, // [0:0] is the sub-list for method output_type 159 0, // [0:0] is the sub-list for method input_type 160 0, // [0:0] is the sub-list for extension type_name 161 0, // [0:0] is the sub-list for extension extendee 162 0, // [0:0] is the sub-list for field type_name 163 } 164 165 func init() { file_segment_message_proto_init() } 166 func file_segment_message_proto_init() { 167 if File_segment_message_proto != nil { 168 return 169 } 170 if !protoimpl.UnsafeEnabled { 171 file_segment_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 172 switch v := v.(*SegmentMessage); 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_segment_message_proto_rawDesc, 189 NumEnums: 0, 190 NumMessages: 1, 191 NumExtensions: 0, 192 NumServices: 0, 193 }, 194 GoTypes: file_segment_message_proto_goTypes, 195 DependencyIndexes: file_segment_message_proto_depIdxs, 196 MessageInfos: file_segment_message_proto_msgTypes, 197 }.Build() 198 File_segment_message_proto = out.File 199 file_segment_message_proto_rawDesc = nil 200 file_segment_message_proto_goTypes = nil 201 file_segment_message_proto_depIdxs = nil 202 }