github.com/MetalBlockchain/metalgo@v1.11.9/proto/pb/io/writer/writer.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.33.0 4 // protoc (unknown) 5 // source: io/writer/writer.proto 6 7 package writer 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 WriteRequest struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 // payload is the write request in bytes 29 Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` 30 } 31 32 func (x *WriteRequest) Reset() { 33 *x = WriteRequest{} 34 if protoimpl.UnsafeEnabled { 35 mi := &file_io_writer_writer_proto_msgTypes[0] 36 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 37 ms.StoreMessageInfo(mi) 38 } 39 } 40 41 func (x *WriteRequest) String() string { 42 return protoimpl.X.MessageStringOf(x) 43 } 44 45 func (*WriteRequest) ProtoMessage() {} 46 47 func (x *WriteRequest) ProtoReflect() protoreflect.Message { 48 mi := &file_io_writer_writer_proto_msgTypes[0] 49 if protoimpl.UnsafeEnabled && x != nil { 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 if ms.LoadMessageInfo() == nil { 52 ms.StoreMessageInfo(mi) 53 } 54 return ms 55 } 56 return mi.MessageOf(x) 57 } 58 59 // Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead. 60 func (*WriteRequest) Descriptor() ([]byte, []int) { 61 return file_io_writer_writer_proto_rawDescGZIP(), []int{0} 62 } 63 64 func (x *WriteRequest) GetPayload() []byte { 65 if x != nil { 66 return x.Payload 67 } 68 return nil 69 } 70 71 type WriteResponse struct { 72 state protoimpl.MessageState 73 sizeCache protoimpl.SizeCache 74 unknownFields protoimpl.UnknownFields 75 76 // written is the length of payload in bytes 77 Written int32 `protobuf:"varint,1,opt,name=written,proto3" json:"written,omitempty"` 78 // error is an error message 79 Error *string `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` 80 } 81 82 func (x *WriteResponse) Reset() { 83 *x = WriteResponse{} 84 if protoimpl.UnsafeEnabled { 85 mi := &file_io_writer_writer_proto_msgTypes[1] 86 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 87 ms.StoreMessageInfo(mi) 88 } 89 } 90 91 func (x *WriteResponse) String() string { 92 return protoimpl.X.MessageStringOf(x) 93 } 94 95 func (*WriteResponse) ProtoMessage() {} 96 97 func (x *WriteResponse) ProtoReflect() protoreflect.Message { 98 mi := &file_io_writer_writer_proto_msgTypes[1] 99 if protoimpl.UnsafeEnabled && x != nil { 100 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 101 if ms.LoadMessageInfo() == nil { 102 ms.StoreMessageInfo(mi) 103 } 104 return ms 105 } 106 return mi.MessageOf(x) 107 } 108 109 // Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead. 110 func (*WriteResponse) Descriptor() ([]byte, []int) { 111 return file_io_writer_writer_proto_rawDescGZIP(), []int{1} 112 } 113 114 func (x *WriteResponse) GetWritten() int32 { 115 if x != nil { 116 return x.Written 117 } 118 return 0 119 } 120 121 func (x *WriteResponse) GetError() string { 122 if x != nil && x.Error != nil { 123 return *x.Error 124 } 125 return "" 126 } 127 128 var File_io_writer_writer_proto protoreflect.FileDescriptor 129 130 var file_io_writer_writer_proto_rawDesc = []byte{ 131 0x0a, 0x16, 0x69, 0x6f, 0x2f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2f, 0x77, 0x72, 0x69, 0x74, 132 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x69, 0x6f, 0x2e, 0x77, 0x72, 0x69, 133 0x74, 0x65, 0x72, 0x22, 0x28, 0x0a, 0x0c, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 134 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 135 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x4e, 0x0a, 136 0x0d, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 137 0x0a, 0x07, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 138 0x07, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x12, 0x19, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 139 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 140 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x32, 0x44, 0x0a, 141 0x06, 0x57, 0x72, 0x69, 0x74, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x05, 0x57, 0x72, 0x69, 0x74, 0x65, 142 0x12, 0x17, 0x2e, 0x69, 0x6f, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x57, 0x72, 0x69, 143 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x69, 0x6f, 0x2e, 0x77, 144 0x72, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 145 0x6e, 0x73, 0x65, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 146 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76, 0x61, 0x6c, 0x61, 147 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x2f, 148 0x69, 0x6f, 0x2f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 149 0x33, 150 } 151 152 var ( 153 file_io_writer_writer_proto_rawDescOnce sync.Once 154 file_io_writer_writer_proto_rawDescData = file_io_writer_writer_proto_rawDesc 155 ) 156 157 func file_io_writer_writer_proto_rawDescGZIP() []byte { 158 file_io_writer_writer_proto_rawDescOnce.Do(func() { 159 file_io_writer_writer_proto_rawDescData = protoimpl.X.CompressGZIP(file_io_writer_writer_proto_rawDescData) 160 }) 161 return file_io_writer_writer_proto_rawDescData 162 } 163 164 var file_io_writer_writer_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 165 var file_io_writer_writer_proto_goTypes = []interface{}{ 166 (*WriteRequest)(nil), // 0: io.writer.WriteRequest 167 (*WriteResponse)(nil), // 1: io.writer.WriteResponse 168 } 169 var file_io_writer_writer_proto_depIdxs = []int32{ 170 0, // 0: io.writer.Writer.Write:input_type -> io.writer.WriteRequest 171 1, // 1: io.writer.Writer.Write:output_type -> io.writer.WriteResponse 172 1, // [1:2] is the sub-list for method output_type 173 0, // [0:1] is the sub-list for method input_type 174 0, // [0:0] is the sub-list for extension type_name 175 0, // [0:0] is the sub-list for extension extendee 176 0, // [0:0] is the sub-list for field type_name 177 } 178 179 func init() { file_io_writer_writer_proto_init() } 180 func file_io_writer_writer_proto_init() { 181 if File_io_writer_writer_proto != nil { 182 return 183 } 184 if !protoimpl.UnsafeEnabled { 185 file_io_writer_writer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 186 switch v := v.(*WriteRequest); i { 187 case 0: 188 return &v.state 189 case 1: 190 return &v.sizeCache 191 case 2: 192 return &v.unknownFields 193 default: 194 return nil 195 } 196 } 197 file_io_writer_writer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 198 switch v := v.(*WriteResponse); i { 199 case 0: 200 return &v.state 201 case 1: 202 return &v.sizeCache 203 case 2: 204 return &v.unknownFields 205 default: 206 return nil 207 } 208 } 209 } 210 file_io_writer_writer_proto_msgTypes[1].OneofWrappers = []interface{}{} 211 type x struct{} 212 out := protoimpl.TypeBuilder{ 213 File: protoimpl.DescBuilder{ 214 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 215 RawDescriptor: file_io_writer_writer_proto_rawDesc, 216 NumEnums: 0, 217 NumMessages: 2, 218 NumExtensions: 0, 219 NumServices: 1, 220 }, 221 GoTypes: file_io_writer_writer_proto_goTypes, 222 DependencyIndexes: file_io_writer_writer_proto_depIdxs, 223 MessageInfos: file_io_writer_writer_proto_msgTypes, 224 }.Build() 225 File_io_writer_writer_proto = out.File 226 file_io_writer_writer_proto_rawDesc = nil 227 file_io_writer_writer_proto_goTypes = nil 228 file_io_writer_writer_proto_depIdxs = nil 229 }