github.com/MetalBlockchain/metalgo@v1.11.9/proto/pb/io/reader/reader.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/reader/reader.proto
     6  
     7  package reader
     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 ReadRequest struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	// length is the request in bytes
    29  	Length int32 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"`
    30  }
    31  
    32  func (x *ReadRequest) Reset() {
    33  	*x = ReadRequest{}
    34  	if protoimpl.UnsafeEnabled {
    35  		mi := &file_io_reader_reader_proto_msgTypes[0]
    36  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    37  		ms.StoreMessageInfo(mi)
    38  	}
    39  }
    40  
    41  func (x *ReadRequest) String() string {
    42  	return protoimpl.X.MessageStringOf(x)
    43  }
    44  
    45  func (*ReadRequest) ProtoMessage() {}
    46  
    47  func (x *ReadRequest) ProtoReflect() protoreflect.Message {
    48  	mi := &file_io_reader_reader_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 ReadRequest.ProtoReflect.Descriptor instead.
    60  func (*ReadRequest) Descriptor() ([]byte, []int) {
    61  	return file_io_reader_reader_proto_rawDescGZIP(), []int{0}
    62  }
    63  
    64  func (x *ReadRequest) GetLength() int32 {
    65  	if x != nil {
    66  		return x.Length
    67  	}
    68  	return 0
    69  }
    70  
    71  type ReadResponse struct {
    72  	state         protoimpl.MessageState
    73  	sizeCache     protoimpl.SizeCache
    74  	unknownFields protoimpl.UnknownFields
    75  
    76  	// read is the payload in bytes
    77  	Read []byte `protobuf:"bytes,1,opt,name=read,proto3" json:"read,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 *ReadResponse) Reset() {
    83  	*x = ReadResponse{}
    84  	if protoimpl.UnsafeEnabled {
    85  		mi := &file_io_reader_reader_proto_msgTypes[1]
    86  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    87  		ms.StoreMessageInfo(mi)
    88  	}
    89  }
    90  
    91  func (x *ReadResponse) String() string {
    92  	return protoimpl.X.MessageStringOf(x)
    93  }
    94  
    95  func (*ReadResponse) ProtoMessage() {}
    96  
    97  func (x *ReadResponse) ProtoReflect() protoreflect.Message {
    98  	mi := &file_io_reader_reader_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 ReadResponse.ProtoReflect.Descriptor instead.
   110  func (*ReadResponse) Descriptor() ([]byte, []int) {
   111  	return file_io_reader_reader_proto_rawDescGZIP(), []int{1}
   112  }
   113  
   114  func (x *ReadResponse) GetRead() []byte {
   115  	if x != nil {
   116  		return x.Read
   117  	}
   118  	return nil
   119  }
   120  
   121  func (x *ReadResponse) GetError() string {
   122  	if x != nil && x.Error != nil {
   123  		return *x.Error
   124  	}
   125  	return ""
   126  }
   127  
   128  var File_io_reader_reader_proto protoreflect.FileDescriptor
   129  
   130  var file_io_reader_reader_proto_rawDesc = []byte{
   131  	0x0a, 0x16, 0x69, 0x6f, 0x2f, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2f, 0x72, 0x65, 0x61, 0x64,
   132  	0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x69, 0x6f, 0x2e, 0x72, 0x65, 0x61,
   133  	0x64, 0x65, 0x72, 0x22, 0x25, 0x0a, 0x0b, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
   134  	0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01,
   135  	0x28, 0x05, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x47, 0x0a, 0x0c, 0x52, 0x65,
   136  	0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65,
   137  	0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x72, 0x65, 0x61, 0x64, 0x12, 0x19,
   138  	0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
   139  	0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x65, 0x72,
   140  	0x72, 0x6f, 0x72, 0x32, 0x41, 0x0a, 0x06, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x37, 0x0a,
   141  	0x04, 0x52, 0x65, 0x61, 0x64, 0x12, 0x16, 0x2e, 0x69, 0x6f, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65,
   142  	0x72, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e,
   143  	0x69, 0x6f, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65,
   144  	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
   145  	0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x76, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x76,
   146  	0x61, 0x6c, 0x61, 0x6e, 0x63, 0x68, 0x65, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
   147  	0x70, 0x62, 0x2f, 0x69, 0x6f, 0x2f, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72,
   148  	0x6f, 0x74, 0x6f, 0x33,
   149  }
   150  
   151  var (
   152  	file_io_reader_reader_proto_rawDescOnce sync.Once
   153  	file_io_reader_reader_proto_rawDescData = file_io_reader_reader_proto_rawDesc
   154  )
   155  
   156  func file_io_reader_reader_proto_rawDescGZIP() []byte {
   157  	file_io_reader_reader_proto_rawDescOnce.Do(func() {
   158  		file_io_reader_reader_proto_rawDescData = protoimpl.X.CompressGZIP(file_io_reader_reader_proto_rawDescData)
   159  	})
   160  	return file_io_reader_reader_proto_rawDescData
   161  }
   162  
   163  var file_io_reader_reader_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   164  var file_io_reader_reader_proto_goTypes = []interface{}{
   165  	(*ReadRequest)(nil),  // 0: io.reader.ReadRequest
   166  	(*ReadResponse)(nil), // 1: io.reader.ReadResponse
   167  }
   168  var file_io_reader_reader_proto_depIdxs = []int32{
   169  	0, // 0: io.reader.Reader.Read:input_type -> io.reader.ReadRequest
   170  	1, // 1: io.reader.Reader.Read:output_type -> io.reader.ReadResponse
   171  	1, // [1:2] is the sub-list for method output_type
   172  	0, // [0:1] is the sub-list for method input_type
   173  	0, // [0:0] is the sub-list for extension type_name
   174  	0, // [0:0] is the sub-list for extension extendee
   175  	0, // [0:0] is the sub-list for field type_name
   176  }
   177  
   178  func init() { file_io_reader_reader_proto_init() }
   179  func file_io_reader_reader_proto_init() {
   180  	if File_io_reader_reader_proto != nil {
   181  		return
   182  	}
   183  	if !protoimpl.UnsafeEnabled {
   184  		file_io_reader_reader_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   185  			switch v := v.(*ReadRequest); i {
   186  			case 0:
   187  				return &v.state
   188  			case 1:
   189  				return &v.sizeCache
   190  			case 2:
   191  				return &v.unknownFields
   192  			default:
   193  				return nil
   194  			}
   195  		}
   196  		file_io_reader_reader_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   197  			switch v := v.(*ReadResponse); i {
   198  			case 0:
   199  				return &v.state
   200  			case 1:
   201  				return &v.sizeCache
   202  			case 2:
   203  				return &v.unknownFields
   204  			default:
   205  				return nil
   206  			}
   207  		}
   208  	}
   209  	file_io_reader_reader_proto_msgTypes[1].OneofWrappers = []interface{}{}
   210  	type x struct{}
   211  	out := protoimpl.TypeBuilder{
   212  		File: protoimpl.DescBuilder{
   213  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   214  			RawDescriptor: file_io_reader_reader_proto_rawDesc,
   215  			NumEnums:      0,
   216  			NumMessages:   2,
   217  			NumExtensions: 0,
   218  			NumServices:   1,
   219  		},
   220  		GoTypes:           file_io_reader_reader_proto_goTypes,
   221  		DependencyIndexes: file_io_reader_reader_proto_depIdxs,
   222  		MessageInfos:      file_io_reader_reader_proto_msgTypes,
   223  	}.Build()
   224  	File_io_reader_reader_proto = out.File
   225  	file_io_reader_reader_proto_rawDesc = nil
   226  	file_io_reader_reader_proto_goTypes = nil
   227  	file_io_reader_reader_proto_depIdxs = nil
   228  }