github.com/supragya/TendermintConnector@v0.0.0-20210619045051-113e32b84fb1/protocols/tmDataTransferProtocolv1/tendermintMessage.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.12.4 5 // source: protocols/tmDataTransferProtocolv1/tendermintMessage.proto 6 7 package tmDataTransferProtocol 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 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 // This is a compile-time assertion that a sufficiently up-to-date version 25 // of the legacy proto package is being used. 26 const _ = proto.ProtoPackageIsVersion4 27 28 type PacketMsg struct { 29 state protoimpl.MessageState 30 sizeCache protoimpl.SizeCache 31 unknownFields protoimpl.UnknownFields 32 33 Eof uint32 `protobuf:"varint,2,opt,name=eof,proto3" json:"eof,omitempty"` 34 DataBytes []byte `protobuf:"bytes,3,opt,name=dataBytes,proto3" json:"dataBytes,omitempty"` 35 } 36 37 func (x *PacketMsg) Reset() { 38 *x = PacketMsg{} 39 if protoimpl.UnsafeEnabled { 40 mi := &file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_msgTypes[0] 41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 42 ms.StoreMessageInfo(mi) 43 } 44 } 45 46 func (x *PacketMsg) String() string { 47 return protoimpl.X.MessageStringOf(x) 48 } 49 50 func (*PacketMsg) ProtoMessage() {} 51 52 func (x *PacketMsg) ProtoReflect() protoreflect.Message { 53 mi := &file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_msgTypes[0] 54 if protoimpl.UnsafeEnabled && x != nil { 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 if ms.LoadMessageInfo() == nil { 57 ms.StoreMessageInfo(mi) 58 } 59 return ms 60 } 61 return mi.MessageOf(x) 62 } 63 64 // Deprecated: Use PacketMsg.ProtoReflect.Descriptor instead. 65 func (*PacketMsg) Descriptor() ([]byte, []int) { 66 return file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_rawDescGZIP(), []int{0} 67 } 68 69 func (x *PacketMsg) GetEof() uint32 { 70 if x != nil { 71 return x.Eof 72 } 73 return 0 74 } 75 76 func (x *PacketMsg) GetDataBytes() []byte { 77 if x != nil { 78 return x.DataBytes 79 } 80 return nil 81 } 82 83 type TendermintMessage struct { 84 state protoimpl.MessageState 85 sizeCache protoimpl.SizeCache 86 unknownFields protoimpl.UnknownFields 87 88 ChainId uint32 `protobuf:"varint,1,opt,name=chainId,proto3" json:"chainId,omitempty"` 89 Channel uint32 `protobuf:"varint,2,opt,name=channel,proto3" json:"channel,omitempty"` 90 Packets []*PacketMsg `protobuf:"bytes,3,rep,name=packets,proto3" json:"packets,omitempty"` 91 } 92 93 func (x *TendermintMessage) Reset() { 94 *x = TendermintMessage{} 95 if protoimpl.UnsafeEnabled { 96 mi := &file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_msgTypes[1] 97 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 98 ms.StoreMessageInfo(mi) 99 } 100 } 101 102 func (x *TendermintMessage) String() string { 103 return protoimpl.X.MessageStringOf(x) 104 } 105 106 func (*TendermintMessage) ProtoMessage() {} 107 108 func (x *TendermintMessage) ProtoReflect() protoreflect.Message { 109 mi := &file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_msgTypes[1] 110 if protoimpl.UnsafeEnabled && x != nil { 111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 112 if ms.LoadMessageInfo() == nil { 113 ms.StoreMessageInfo(mi) 114 } 115 return ms 116 } 117 return mi.MessageOf(x) 118 } 119 120 // Deprecated: Use TendermintMessage.ProtoReflect.Descriptor instead. 121 func (*TendermintMessage) Descriptor() ([]byte, []int) { 122 return file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_rawDescGZIP(), []int{1} 123 } 124 125 func (x *TendermintMessage) GetChainId() uint32 { 126 if x != nil { 127 return x.ChainId 128 } 129 return 0 130 } 131 132 func (x *TendermintMessage) GetChannel() uint32 { 133 if x != nil { 134 return x.Channel 135 } 136 return 0 137 } 138 139 func (x *TendermintMessage) GetPackets() []*PacketMsg { 140 if x != nil { 141 return x.Packets 142 } 143 return nil 144 } 145 146 var File_protocols_tmDataTransferProtocolv1_tendermintMessage_proto protoreflect.FileDescriptor 147 148 var file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_rawDesc = []byte{ 149 0x0a, 0x3a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x73, 0x2f, 0x74, 0x6d, 0x44, 0x61, 150 0x74, 0x61, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 151 0x6f, 0x6c, 0x76, 0x31, 0x2f, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 0x4d, 152 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x74, 0x6d, 153 0x44, 0x61, 0x74, 0x61, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 154 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x3b, 0x0a, 0x09, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x4d, 0x73, 155 0x67, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6f, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 156 0x65, 0x6f, 0x66, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x42, 0x79, 0x74, 0x65, 0x73, 157 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x42, 0x79, 0x74, 0x65, 158 0x73, 0x22, 0x84, 0x01, 0x0a, 0x11, 0x54, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x74, 159 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 160 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 161 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 162 0x28, 0x0d, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x3b, 0x0a, 0x07, 0x70, 163 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 164 0x6d, 0x44, 0x61, 0x74, 0x61, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x50, 0x72, 0x6f, 165 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x52, 166 0x07, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 167 } 168 169 var ( 170 file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_rawDescOnce sync.Once 171 file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_rawDescData = file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_rawDesc 172 ) 173 174 func file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_rawDescGZIP() []byte { 175 file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_rawDescOnce.Do(func() { 176 file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_rawDescData = protoimpl.X.CompressGZIP(file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_rawDescData) 177 }) 178 return file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_rawDescData 179 } 180 181 var file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 182 var file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_goTypes = []interface{}{ 183 (*PacketMsg)(nil), // 0: tmDataTransferProtocol.PacketMsg 184 (*TendermintMessage)(nil), // 1: tmDataTransferProtocol.TendermintMessage 185 } 186 var file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_depIdxs = []int32{ 187 0, // 0: tmDataTransferProtocol.TendermintMessage.packets:type_name -> tmDataTransferProtocol.PacketMsg 188 1, // [1:1] is the sub-list for method output_type 189 1, // [1:1] is the sub-list for method input_type 190 1, // [1:1] is the sub-list for extension type_name 191 1, // [1:1] is the sub-list for extension extendee 192 0, // [0:1] is the sub-list for field type_name 193 } 194 195 func init() { file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_init() } 196 func file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_init() { 197 if File_protocols_tmDataTransferProtocolv1_tendermintMessage_proto != nil { 198 return 199 } 200 if !protoimpl.UnsafeEnabled { 201 file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 202 switch v := v.(*PacketMsg); i { 203 case 0: 204 return &v.state 205 case 1: 206 return &v.sizeCache 207 case 2: 208 return &v.unknownFields 209 default: 210 return nil 211 } 212 } 213 file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 214 switch v := v.(*TendermintMessage); i { 215 case 0: 216 return &v.state 217 case 1: 218 return &v.sizeCache 219 case 2: 220 return &v.unknownFields 221 default: 222 return nil 223 } 224 } 225 } 226 type x struct{} 227 out := protoimpl.TypeBuilder{ 228 File: protoimpl.DescBuilder{ 229 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 230 RawDescriptor: file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_rawDesc, 231 NumEnums: 0, 232 NumMessages: 2, 233 NumExtensions: 0, 234 NumServices: 0, 235 }, 236 GoTypes: file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_goTypes, 237 DependencyIndexes: file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_depIdxs, 238 MessageInfos: file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_msgTypes, 239 }.Build() 240 File_protocols_tmDataTransferProtocolv1_tendermintMessage_proto = out.File 241 file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_rawDesc = nil 242 file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_goTypes = nil 243 file_protocols_tmDataTransferProtocolv1_tendermintMessage_proto_depIdxs = nil 244 }