github.com/annwntech/go-micro/v2@v2.9.5/util/file/proto/file.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.13.0
     5  // source: util/file/proto/file.proto
     6  
     7  package go_micro_server
     8  
     9  import (
    10  	context "context"
    11  	proto "github.com/golang/protobuf/proto"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    15  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    16  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    17  	reflect "reflect"
    18  	sync "sync"
    19  )
    20  
    21  const (
    22  	// Verify that this generated code is sufficiently up-to-date.
    23  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    24  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    25  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    26  )
    27  
    28  // This is a compile-time assertion that a sufficiently up-to-date version
    29  // of the legacy proto package is being used.
    30  const _ = proto.ProtoPackageIsVersion4
    31  
    32  type OpenRequest struct {
    33  	state         protoimpl.MessageState
    34  	sizeCache     protoimpl.SizeCache
    35  	unknownFields protoimpl.UnknownFields
    36  
    37  	Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
    38  	Truncate bool   `protobuf:"varint,2,opt,name=truncate,proto3" json:"truncate,omitempty"`
    39  }
    40  
    41  func (x *OpenRequest) Reset() {
    42  	*x = OpenRequest{}
    43  	if protoimpl.UnsafeEnabled {
    44  		mi := &file_util_file_proto_file_proto_msgTypes[0]
    45  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    46  		ms.StoreMessageInfo(mi)
    47  	}
    48  }
    49  
    50  func (x *OpenRequest) String() string {
    51  	return protoimpl.X.MessageStringOf(x)
    52  }
    53  
    54  func (*OpenRequest) ProtoMessage() {}
    55  
    56  func (x *OpenRequest) ProtoReflect() protoreflect.Message {
    57  	mi := &file_util_file_proto_file_proto_msgTypes[0]
    58  	if protoimpl.UnsafeEnabled && x != nil {
    59  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    60  		if ms.LoadMessageInfo() == nil {
    61  			ms.StoreMessageInfo(mi)
    62  		}
    63  		return ms
    64  	}
    65  	return mi.MessageOf(x)
    66  }
    67  
    68  // Deprecated: Use OpenRequest.ProtoReflect.Descriptor instead.
    69  func (*OpenRequest) Descriptor() ([]byte, []int) {
    70  	return file_util_file_proto_file_proto_rawDescGZIP(), []int{0}
    71  }
    72  
    73  func (x *OpenRequest) GetFilename() string {
    74  	if x != nil {
    75  		return x.Filename
    76  	}
    77  	return ""
    78  }
    79  
    80  func (x *OpenRequest) GetTruncate() bool {
    81  	if x != nil {
    82  		return x.Truncate
    83  	}
    84  	return false
    85  }
    86  
    87  type OpenResponse struct {
    88  	state         protoimpl.MessageState
    89  	sizeCache     protoimpl.SizeCache
    90  	unknownFields protoimpl.UnknownFields
    91  
    92  	Id     int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
    93  	Result bool  `protobuf:"varint,2,opt,name=result,proto3" json:"result,omitempty"`
    94  }
    95  
    96  func (x *OpenResponse) Reset() {
    97  	*x = OpenResponse{}
    98  	if protoimpl.UnsafeEnabled {
    99  		mi := &file_util_file_proto_file_proto_msgTypes[1]
   100  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   101  		ms.StoreMessageInfo(mi)
   102  	}
   103  }
   104  
   105  func (x *OpenResponse) String() string {
   106  	return protoimpl.X.MessageStringOf(x)
   107  }
   108  
   109  func (*OpenResponse) ProtoMessage() {}
   110  
   111  func (x *OpenResponse) ProtoReflect() protoreflect.Message {
   112  	mi := &file_util_file_proto_file_proto_msgTypes[1]
   113  	if protoimpl.UnsafeEnabled && x != nil {
   114  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   115  		if ms.LoadMessageInfo() == nil {
   116  			ms.StoreMessageInfo(mi)
   117  		}
   118  		return ms
   119  	}
   120  	return mi.MessageOf(x)
   121  }
   122  
   123  // Deprecated: Use OpenResponse.ProtoReflect.Descriptor instead.
   124  func (*OpenResponse) Descriptor() ([]byte, []int) {
   125  	return file_util_file_proto_file_proto_rawDescGZIP(), []int{1}
   126  }
   127  
   128  func (x *OpenResponse) GetId() int64 {
   129  	if x != nil {
   130  		return x.Id
   131  	}
   132  	return 0
   133  }
   134  
   135  func (x *OpenResponse) GetResult() bool {
   136  	if x != nil {
   137  		return x.Result
   138  	}
   139  	return false
   140  }
   141  
   142  type CloseRequest struct {
   143  	state         protoimpl.MessageState
   144  	sizeCache     protoimpl.SizeCache
   145  	unknownFields protoimpl.UnknownFields
   146  
   147  	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
   148  }
   149  
   150  func (x *CloseRequest) Reset() {
   151  	*x = CloseRequest{}
   152  	if protoimpl.UnsafeEnabled {
   153  		mi := &file_util_file_proto_file_proto_msgTypes[2]
   154  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   155  		ms.StoreMessageInfo(mi)
   156  	}
   157  }
   158  
   159  func (x *CloseRequest) String() string {
   160  	return protoimpl.X.MessageStringOf(x)
   161  }
   162  
   163  func (*CloseRequest) ProtoMessage() {}
   164  
   165  func (x *CloseRequest) ProtoReflect() protoreflect.Message {
   166  	mi := &file_util_file_proto_file_proto_msgTypes[2]
   167  	if protoimpl.UnsafeEnabled && x != nil {
   168  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   169  		if ms.LoadMessageInfo() == nil {
   170  			ms.StoreMessageInfo(mi)
   171  		}
   172  		return ms
   173  	}
   174  	return mi.MessageOf(x)
   175  }
   176  
   177  // Deprecated: Use CloseRequest.ProtoReflect.Descriptor instead.
   178  func (*CloseRequest) Descriptor() ([]byte, []int) {
   179  	return file_util_file_proto_file_proto_rawDescGZIP(), []int{2}
   180  }
   181  
   182  func (x *CloseRequest) GetId() int64 {
   183  	if x != nil {
   184  		return x.Id
   185  	}
   186  	return 0
   187  }
   188  
   189  type CloseResponse struct {
   190  	state         protoimpl.MessageState
   191  	sizeCache     protoimpl.SizeCache
   192  	unknownFields protoimpl.UnknownFields
   193  }
   194  
   195  func (x *CloseResponse) Reset() {
   196  	*x = CloseResponse{}
   197  	if protoimpl.UnsafeEnabled {
   198  		mi := &file_util_file_proto_file_proto_msgTypes[3]
   199  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   200  		ms.StoreMessageInfo(mi)
   201  	}
   202  }
   203  
   204  func (x *CloseResponse) String() string {
   205  	return protoimpl.X.MessageStringOf(x)
   206  }
   207  
   208  func (*CloseResponse) ProtoMessage() {}
   209  
   210  func (x *CloseResponse) ProtoReflect() protoreflect.Message {
   211  	mi := &file_util_file_proto_file_proto_msgTypes[3]
   212  	if protoimpl.UnsafeEnabled && x != nil {
   213  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   214  		if ms.LoadMessageInfo() == nil {
   215  			ms.StoreMessageInfo(mi)
   216  		}
   217  		return ms
   218  	}
   219  	return mi.MessageOf(x)
   220  }
   221  
   222  // Deprecated: Use CloseResponse.ProtoReflect.Descriptor instead.
   223  func (*CloseResponse) Descriptor() ([]byte, []int) {
   224  	return file_util_file_proto_file_proto_rawDescGZIP(), []int{3}
   225  }
   226  
   227  type StatRequest struct {
   228  	state         protoimpl.MessageState
   229  	sizeCache     protoimpl.SizeCache
   230  	unknownFields protoimpl.UnknownFields
   231  
   232  	Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
   233  }
   234  
   235  func (x *StatRequest) Reset() {
   236  	*x = StatRequest{}
   237  	if protoimpl.UnsafeEnabled {
   238  		mi := &file_util_file_proto_file_proto_msgTypes[4]
   239  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   240  		ms.StoreMessageInfo(mi)
   241  	}
   242  }
   243  
   244  func (x *StatRequest) String() string {
   245  	return protoimpl.X.MessageStringOf(x)
   246  }
   247  
   248  func (*StatRequest) ProtoMessage() {}
   249  
   250  func (x *StatRequest) ProtoReflect() protoreflect.Message {
   251  	mi := &file_util_file_proto_file_proto_msgTypes[4]
   252  	if protoimpl.UnsafeEnabled && x != nil {
   253  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   254  		if ms.LoadMessageInfo() == nil {
   255  			ms.StoreMessageInfo(mi)
   256  		}
   257  		return ms
   258  	}
   259  	return mi.MessageOf(x)
   260  }
   261  
   262  // Deprecated: Use StatRequest.ProtoReflect.Descriptor instead.
   263  func (*StatRequest) Descriptor() ([]byte, []int) {
   264  	return file_util_file_proto_file_proto_rawDescGZIP(), []int{4}
   265  }
   266  
   267  func (x *StatRequest) GetFilename() string {
   268  	if x != nil {
   269  		return x.Filename
   270  	}
   271  	return ""
   272  }
   273  
   274  type StatResponse struct {
   275  	state         protoimpl.MessageState
   276  	sizeCache     protoimpl.SizeCache
   277  	unknownFields protoimpl.UnknownFields
   278  
   279  	Type         string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
   280  	Size         int64  `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
   281  	LastModified int64  `protobuf:"varint,3,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"`
   282  }
   283  
   284  func (x *StatResponse) Reset() {
   285  	*x = StatResponse{}
   286  	if protoimpl.UnsafeEnabled {
   287  		mi := &file_util_file_proto_file_proto_msgTypes[5]
   288  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   289  		ms.StoreMessageInfo(mi)
   290  	}
   291  }
   292  
   293  func (x *StatResponse) String() string {
   294  	return protoimpl.X.MessageStringOf(x)
   295  }
   296  
   297  func (*StatResponse) ProtoMessage() {}
   298  
   299  func (x *StatResponse) ProtoReflect() protoreflect.Message {
   300  	mi := &file_util_file_proto_file_proto_msgTypes[5]
   301  	if protoimpl.UnsafeEnabled && x != nil {
   302  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   303  		if ms.LoadMessageInfo() == nil {
   304  			ms.StoreMessageInfo(mi)
   305  		}
   306  		return ms
   307  	}
   308  	return mi.MessageOf(x)
   309  }
   310  
   311  // Deprecated: Use StatResponse.ProtoReflect.Descriptor instead.
   312  func (*StatResponse) Descriptor() ([]byte, []int) {
   313  	return file_util_file_proto_file_proto_rawDescGZIP(), []int{5}
   314  }
   315  
   316  func (x *StatResponse) GetType() string {
   317  	if x != nil {
   318  		return x.Type
   319  	}
   320  	return ""
   321  }
   322  
   323  func (x *StatResponse) GetSize() int64 {
   324  	if x != nil {
   325  		return x.Size
   326  	}
   327  	return 0
   328  }
   329  
   330  func (x *StatResponse) GetLastModified() int64 {
   331  	if x != nil {
   332  		return x.LastModified
   333  	}
   334  	return 0
   335  }
   336  
   337  type ReadRequest struct {
   338  	state         protoimpl.MessageState
   339  	sizeCache     protoimpl.SizeCache
   340  	unknownFields protoimpl.UnknownFields
   341  
   342  	Id     int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
   343  	Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
   344  	Size   int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
   345  }
   346  
   347  func (x *ReadRequest) Reset() {
   348  	*x = ReadRequest{}
   349  	if protoimpl.UnsafeEnabled {
   350  		mi := &file_util_file_proto_file_proto_msgTypes[6]
   351  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   352  		ms.StoreMessageInfo(mi)
   353  	}
   354  }
   355  
   356  func (x *ReadRequest) String() string {
   357  	return protoimpl.X.MessageStringOf(x)
   358  }
   359  
   360  func (*ReadRequest) ProtoMessage() {}
   361  
   362  func (x *ReadRequest) ProtoReflect() protoreflect.Message {
   363  	mi := &file_util_file_proto_file_proto_msgTypes[6]
   364  	if protoimpl.UnsafeEnabled && x != nil {
   365  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   366  		if ms.LoadMessageInfo() == nil {
   367  			ms.StoreMessageInfo(mi)
   368  		}
   369  		return ms
   370  	}
   371  	return mi.MessageOf(x)
   372  }
   373  
   374  // Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.
   375  func (*ReadRequest) Descriptor() ([]byte, []int) {
   376  	return file_util_file_proto_file_proto_rawDescGZIP(), []int{6}
   377  }
   378  
   379  func (x *ReadRequest) GetId() int64 {
   380  	if x != nil {
   381  		return x.Id
   382  	}
   383  	return 0
   384  }
   385  
   386  func (x *ReadRequest) GetOffset() int64 {
   387  	if x != nil {
   388  		return x.Offset
   389  	}
   390  	return 0
   391  }
   392  
   393  func (x *ReadRequest) GetSize() int64 {
   394  	if x != nil {
   395  		return x.Size
   396  	}
   397  	return 0
   398  }
   399  
   400  type ReadResponse struct {
   401  	state         protoimpl.MessageState
   402  	sizeCache     protoimpl.SizeCache
   403  	unknownFields protoimpl.UnknownFields
   404  
   405  	Size int64  `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
   406  	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
   407  	Eof  bool   `protobuf:"varint,3,opt,name=eof,proto3" json:"eof,omitempty"`
   408  }
   409  
   410  func (x *ReadResponse) Reset() {
   411  	*x = ReadResponse{}
   412  	if protoimpl.UnsafeEnabled {
   413  		mi := &file_util_file_proto_file_proto_msgTypes[7]
   414  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   415  		ms.StoreMessageInfo(mi)
   416  	}
   417  }
   418  
   419  func (x *ReadResponse) String() string {
   420  	return protoimpl.X.MessageStringOf(x)
   421  }
   422  
   423  func (*ReadResponse) ProtoMessage() {}
   424  
   425  func (x *ReadResponse) ProtoReflect() protoreflect.Message {
   426  	mi := &file_util_file_proto_file_proto_msgTypes[7]
   427  	if protoimpl.UnsafeEnabled && x != nil {
   428  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   429  		if ms.LoadMessageInfo() == nil {
   430  			ms.StoreMessageInfo(mi)
   431  		}
   432  		return ms
   433  	}
   434  	return mi.MessageOf(x)
   435  }
   436  
   437  // Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.
   438  func (*ReadResponse) Descriptor() ([]byte, []int) {
   439  	return file_util_file_proto_file_proto_rawDescGZIP(), []int{7}
   440  }
   441  
   442  func (x *ReadResponse) GetSize() int64 {
   443  	if x != nil {
   444  		return x.Size
   445  	}
   446  	return 0
   447  }
   448  
   449  func (x *ReadResponse) GetData() []byte {
   450  	if x != nil {
   451  		return x.Data
   452  	}
   453  	return nil
   454  }
   455  
   456  func (x *ReadResponse) GetEof() bool {
   457  	if x != nil {
   458  		return x.Eof
   459  	}
   460  	return false
   461  }
   462  
   463  type GetRequest struct {
   464  	state         protoimpl.MessageState
   465  	sizeCache     protoimpl.SizeCache
   466  	unknownFields protoimpl.UnknownFields
   467  
   468  	Id      int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
   469  	BlockId int64 `protobuf:"varint,2,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
   470  }
   471  
   472  func (x *GetRequest) Reset() {
   473  	*x = GetRequest{}
   474  	if protoimpl.UnsafeEnabled {
   475  		mi := &file_util_file_proto_file_proto_msgTypes[8]
   476  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   477  		ms.StoreMessageInfo(mi)
   478  	}
   479  }
   480  
   481  func (x *GetRequest) String() string {
   482  	return protoimpl.X.MessageStringOf(x)
   483  }
   484  
   485  func (*GetRequest) ProtoMessage() {}
   486  
   487  func (x *GetRequest) ProtoReflect() protoreflect.Message {
   488  	mi := &file_util_file_proto_file_proto_msgTypes[8]
   489  	if protoimpl.UnsafeEnabled && x != nil {
   490  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   491  		if ms.LoadMessageInfo() == nil {
   492  			ms.StoreMessageInfo(mi)
   493  		}
   494  		return ms
   495  	}
   496  	return mi.MessageOf(x)
   497  }
   498  
   499  // Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
   500  func (*GetRequest) Descriptor() ([]byte, []int) {
   501  	return file_util_file_proto_file_proto_rawDescGZIP(), []int{8}
   502  }
   503  
   504  func (x *GetRequest) GetId() int64 {
   505  	if x != nil {
   506  		return x.Id
   507  	}
   508  	return 0
   509  }
   510  
   511  func (x *GetRequest) GetBlockId() int64 {
   512  	if x != nil {
   513  		return x.BlockId
   514  	}
   515  	return 0
   516  }
   517  
   518  type GetResponse struct {
   519  	state         protoimpl.MessageState
   520  	sizeCache     protoimpl.SizeCache
   521  	unknownFields protoimpl.UnknownFields
   522  
   523  	BlockId int64  `protobuf:"varint,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
   524  	Size    int64  `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
   525  	Data    []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
   526  }
   527  
   528  func (x *GetResponse) Reset() {
   529  	*x = GetResponse{}
   530  	if protoimpl.UnsafeEnabled {
   531  		mi := &file_util_file_proto_file_proto_msgTypes[9]
   532  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   533  		ms.StoreMessageInfo(mi)
   534  	}
   535  }
   536  
   537  func (x *GetResponse) String() string {
   538  	return protoimpl.X.MessageStringOf(x)
   539  }
   540  
   541  func (*GetResponse) ProtoMessage() {}
   542  
   543  func (x *GetResponse) ProtoReflect() protoreflect.Message {
   544  	mi := &file_util_file_proto_file_proto_msgTypes[9]
   545  	if protoimpl.UnsafeEnabled && x != nil {
   546  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   547  		if ms.LoadMessageInfo() == nil {
   548  			ms.StoreMessageInfo(mi)
   549  		}
   550  		return ms
   551  	}
   552  	return mi.MessageOf(x)
   553  }
   554  
   555  // Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
   556  func (*GetResponse) Descriptor() ([]byte, []int) {
   557  	return file_util_file_proto_file_proto_rawDescGZIP(), []int{9}
   558  }
   559  
   560  func (x *GetResponse) GetBlockId() int64 {
   561  	if x != nil {
   562  		return x.BlockId
   563  	}
   564  	return 0
   565  }
   566  
   567  func (x *GetResponse) GetSize() int64 {
   568  	if x != nil {
   569  		return x.Size
   570  	}
   571  	return 0
   572  }
   573  
   574  func (x *GetResponse) GetData() []byte {
   575  	if x != nil {
   576  		return x.Data
   577  	}
   578  	return nil
   579  }
   580  
   581  type WriteRequest struct {
   582  	state         protoimpl.MessageState
   583  	sizeCache     protoimpl.SizeCache
   584  	unknownFields protoimpl.UnknownFields
   585  
   586  	Id     int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
   587  	Offset int64  `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
   588  	Data   []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
   589  }
   590  
   591  func (x *WriteRequest) Reset() {
   592  	*x = WriteRequest{}
   593  	if protoimpl.UnsafeEnabled {
   594  		mi := &file_util_file_proto_file_proto_msgTypes[10]
   595  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   596  		ms.StoreMessageInfo(mi)
   597  	}
   598  }
   599  
   600  func (x *WriteRequest) String() string {
   601  	return protoimpl.X.MessageStringOf(x)
   602  }
   603  
   604  func (*WriteRequest) ProtoMessage() {}
   605  
   606  func (x *WriteRequest) ProtoReflect() protoreflect.Message {
   607  	mi := &file_util_file_proto_file_proto_msgTypes[10]
   608  	if protoimpl.UnsafeEnabled && x != nil {
   609  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   610  		if ms.LoadMessageInfo() == nil {
   611  			ms.StoreMessageInfo(mi)
   612  		}
   613  		return ms
   614  	}
   615  	return mi.MessageOf(x)
   616  }
   617  
   618  // Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.
   619  func (*WriteRequest) Descriptor() ([]byte, []int) {
   620  	return file_util_file_proto_file_proto_rawDescGZIP(), []int{10}
   621  }
   622  
   623  func (x *WriteRequest) GetId() int64 {
   624  	if x != nil {
   625  		return x.Id
   626  	}
   627  	return 0
   628  }
   629  
   630  func (x *WriteRequest) GetOffset() int64 {
   631  	if x != nil {
   632  		return x.Offset
   633  	}
   634  	return 0
   635  }
   636  
   637  func (x *WriteRequest) GetData() []byte {
   638  	if x != nil {
   639  		return x.Data
   640  	}
   641  	return nil
   642  }
   643  
   644  type WriteResponse struct {
   645  	state         protoimpl.MessageState
   646  	sizeCache     protoimpl.SizeCache
   647  	unknownFields protoimpl.UnknownFields
   648  }
   649  
   650  func (x *WriteResponse) Reset() {
   651  	*x = WriteResponse{}
   652  	if protoimpl.UnsafeEnabled {
   653  		mi := &file_util_file_proto_file_proto_msgTypes[11]
   654  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   655  		ms.StoreMessageInfo(mi)
   656  	}
   657  }
   658  
   659  func (x *WriteResponse) String() string {
   660  	return protoimpl.X.MessageStringOf(x)
   661  }
   662  
   663  func (*WriteResponse) ProtoMessage() {}
   664  
   665  func (x *WriteResponse) ProtoReflect() protoreflect.Message {
   666  	mi := &file_util_file_proto_file_proto_msgTypes[11]
   667  	if protoimpl.UnsafeEnabled && x != nil {
   668  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   669  		if ms.LoadMessageInfo() == nil {
   670  			ms.StoreMessageInfo(mi)
   671  		}
   672  		return ms
   673  	}
   674  	return mi.MessageOf(x)
   675  }
   676  
   677  // Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.
   678  func (*WriteResponse) Descriptor() ([]byte, []int) {
   679  	return file_util_file_proto_file_proto_rawDescGZIP(), []int{11}
   680  }
   681  
   682  var File_util_file_proto_file_proto protoreflect.FileDescriptor
   683  
   684  var file_util_file_proto_file_proto_rawDesc = []byte{
   685  	0x0a, 0x1a, 0x75, 0x74, 0x69, 0x6c, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
   686  	0x6f, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f,
   687  	0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0x45, 0x0a,
   688  	0x0b, 0x4f, 0x70, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08,
   689  	0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
   690  	0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x72, 0x75, 0x6e,
   691  	0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x74, 0x72, 0x75, 0x6e,
   692  	0x63, 0x61, 0x74, 0x65, 0x22, 0x36, 0x0a, 0x0c, 0x4f, 0x70, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70,
   693  	0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
   694  	0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02,
   695  	0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x1e, 0x0a, 0x0c,
   696  	0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
   697  	0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x0f, 0x0a, 0x0d,
   698  	0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x0a,
   699  	0x0b, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08,
   700  	0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
   701  	0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x5b, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74,
   702  	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
   703  	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04,
   704  	0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65,
   705  	0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65,
   706  	0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x4d, 0x6f, 0x64,
   707  	0x69, 0x66, 0x69, 0x65, 0x64, 0x22, 0x49, 0x0a, 0x0b, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71,
   708  	0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
   709  	0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02,
   710  	0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04,
   711  	0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65,
   712  	0x22, 0x48, 0x0a, 0x0c, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
   713  	0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04,
   714  	0x73, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01,
   715  	0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6f, 0x66, 0x18,
   716  	0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x65, 0x6f, 0x66, 0x22, 0x37, 0x0a, 0x0a, 0x47, 0x65,
   717  	0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
   718  	0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63,
   719  	0x6b, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63,
   720  	0x6b, 0x49, 0x64, 0x22, 0x50, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
   721  	0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01,
   722  	0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x49, 0x64, 0x12, 0x12, 0x0a,
   723  	0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a,
   724  	0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52,
   725  	0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x4a, 0x0a, 0x0c, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65,
   726  	0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
   727  	0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18,
   728  	0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a,
   729  	0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74,
   730  	0x61, 0x22, 0x0f, 0x0a, 0x0d, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
   731  	0x73, 0x65, 0x32, 0xef, 0x02, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x45, 0x0a, 0x04, 0x4f,
   732  	0x70, 0x65, 0x6e, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x73,
   733  	0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   734  	0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x73, 0x65, 0x72,
   735  	0x76, 0x65, 0x72, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
   736  	0x22, 0x00, 0x12, 0x45, 0x0a, 0x04, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x2e,
   737  	0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x61,
   738  	0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69,
   739  	0x63, 0x72, 0x6f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52,
   740  	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x04, 0x52, 0x65, 0x61,
   741  	0x64, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x73, 0x65, 0x72,
   742  	0x76, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
   743  	0x1d, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65,
   744  	0x72, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
   745  	0x12, 0x48, 0x0a, 0x05, 0x57, 0x72, 0x69, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x2e, 0x6d,
   746  	0x69, 0x63, 0x72, 0x6f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x57, 0x72, 0x69, 0x74,
   747  	0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69,
   748  	0x63, 0x72, 0x6f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65,
   749  	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x05, 0x43, 0x6c,
   750  	0x6f, 0x73, 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x73,
   751  	0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
   752  	0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x6f, 0x2e, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x2e, 0x73, 0x65,
   753  	0x72, 0x76, 0x65, 0x72, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
   754  	0x73, 0x65, 0x22, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   755  }
   756  
   757  var (
   758  	file_util_file_proto_file_proto_rawDescOnce sync.Once
   759  	file_util_file_proto_file_proto_rawDescData = file_util_file_proto_file_proto_rawDesc
   760  )
   761  
   762  func file_util_file_proto_file_proto_rawDescGZIP() []byte {
   763  	file_util_file_proto_file_proto_rawDescOnce.Do(func() {
   764  		file_util_file_proto_file_proto_rawDescData = protoimpl.X.CompressGZIP(file_util_file_proto_file_proto_rawDescData)
   765  	})
   766  	return file_util_file_proto_file_proto_rawDescData
   767  }
   768  
   769  var file_util_file_proto_file_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
   770  var file_util_file_proto_file_proto_goTypes = []interface{}{
   771  	(*OpenRequest)(nil),   // 0: go.micro.server.OpenRequest
   772  	(*OpenResponse)(nil),  // 1: go.micro.server.OpenResponse
   773  	(*CloseRequest)(nil),  // 2: go.micro.server.CloseRequest
   774  	(*CloseResponse)(nil), // 3: go.micro.server.CloseResponse
   775  	(*StatRequest)(nil),   // 4: go.micro.server.StatRequest
   776  	(*StatResponse)(nil),  // 5: go.micro.server.StatResponse
   777  	(*ReadRequest)(nil),   // 6: go.micro.server.ReadRequest
   778  	(*ReadResponse)(nil),  // 7: go.micro.server.ReadResponse
   779  	(*GetRequest)(nil),    // 8: go.micro.server.GetRequest
   780  	(*GetResponse)(nil),   // 9: go.micro.server.GetResponse
   781  	(*WriteRequest)(nil),  // 10: go.micro.server.WriteRequest
   782  	(*WriteResponse)(nil), // 11: go.micro.server.WriteResponse
   783  }
   784  var file_util_file_proto_file_proto_depIdxs = []int32{
   785  	0,  // 0: go.micro.server.File.Open:input_type -> go.micro.server.OpenRequest
   786  	4,  // 1: go.micro.server.File.Stat:input_type -> go.micro.server.StatRequest
   787  	6,  // 2: go.micro.server.File.Read:input_type -> go.micro.server.ReadRequest
   788  	10, // 3: go.micro.server.File.Write:input_type -> go.micro.server.WriteRequest
   789  	2,  // 4: go.micro.server.File.Close:input_type -> go.micro.server.CloseRequest
   790  	1,  // 5: go.micro.server.File.Open:output_type -> go.micro.server.OpenResponse
   791  	5,  // 6: go.micro.server.File.Stat:output_type -> go.micro.server.StatResponse
   792  	7,  // 7: go.micro.server.File.Read:output_type -> go.micro.server.ReadResponse
   793  	11, // 8: go.micro.server.File.Write:output_type -> go.micro.server.WriteResponse
   794  	3,  // 9: go.micro.server.File.Close:output_type -> go.micro.server.CloseResponse
   795  	5,  // [5:10] is the sub-list for method output_type
   796  	0,  // [0:5] is the sub-list for method input_type
   797  	0,  // [0:0] is the sub-list for extension type_name
   798  	0,  // [0:0] is the sub-list for extension extendee
   799  	0,  // [0:0] is the sub-list for field type_name
   800  }
   801  
   802  func init() { file_util_file_proto_file_proto_init() }
   803  func file_util_file_proto_file_proto_init() {
   804  	if File_util_file_proto_file_proto != nil {
   805  		return
   806  	}
   807  	if !protoimpl.UnsafeEnabled {
   808  		file_util_file_proto_file_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   809  			switch v := v.(*OpenRequest); i {
   810  			case 0:
   811  				return &v.state
   812  			case 1:
   813  				return &v.sizeCache
   814  			case 2:
   815  				return &v.unknownFields
   816  			default:
   817  				return nil
   818  			}
   819  		}
   820  		file_util_file_proto_file_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   821  			switch v := v.(*OpenResponse); i {
   822  			case 0:
   823  				return &v.state
   824  			case 1:
   825  				return &v.sizeCache
   826  			case 2:
   827  				return &v.unknownFields
   828  			default:
   829  				return nil
   830  			}
   831  		}
   832  		file_util_file_proto_file_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   833  			switch v := v.(*CloseRequest); i {
   834  			case 0:
   835  				return &v.state
   836  			case 1:
   837  				return &v.sizeCache
   838  			case 2:
   839  				return &v.unknownFields
   840  			default:
   841  				return nil
   842  			}
   843  		}
   844  		file_util_file_proto_file_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   845  			switch v := v.(*CloseResponse); i {
   846  			case 0:
   847  				return &v.state
   848  			case 1:
   849  				return &v.sizeCache
   850  			case 2:
   851  				return &v.unknownFields
   852  			default:
   853  				return nil
   854  			}
   855  		}
   856  		file_util_file_proto_file_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   857  			switch v := v.(*StatRequest); i {
   858  			case 0:
   859  				return &v.state
   860  			case 1:
   861  				return &v.sizeCache
   862  			case 2:
   863  				return &v.unknownFields
   864  			default:
   865  				return nil
   866  			}
   867  		}
   868  		file_util_file_proto_file_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
   869  			switch v := v.(*StatResponse); i {
   870  			case 0:
   871  				return &v.state
   872  			case 1:
   873  				return &v.sizeCache
   874  			case 2:
   875  				return &v.unknownFields
   876  			default:
   877  				return nil
   878  			}
   879  		}
   880  		file_util_file_proto_file_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
   881  			switch v := v.(*ReadRequest); i {
   882  			case 0:
   883  				return &v.state
   884  			case 1:
   885  				return &v.sizeCache
   886  			case 2:
   887  				return &v.unknownFields
   888  			default:
   889  				return nil
   890  			}
   891  		}
   892  		file_util_file_proto_file_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
   893  			switch v := v.(*ReadResponse); i {
   894  			case 0:
   895  				return &v.state
   896  			case 1:
   897  				return &v.sizeCache
   898  			case 2:
   899  				return &v.unknownFields
   900  			default:
   901  				return nil
   902  			}
   903  		}
   904  		file_util_file_proto_file_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
   905  			switch v := v.(*GetRequest); i {
   906  			case 0:
   907  				return &v.state
   908  			case 1:
   909  				return &v.sizeCache
   910  			case 2:
   911  				return &v.unknownFields
   912  			default:
   913  				return nil
   914  			}
   915  		}
   916  		file_util_file_proto_file_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
   917  			switch v := v.(*GetResponse); i {
   918  			case 0:
   919  				return &v.state
   920  			case 1:
   921  				return &v.sizeCache
   922  			case 2:
   923  				return &v.unknownFields
   924  			default:
   925  				return nil
   926  			}
   927  		}
   928  		file_util_file_proto_file_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
   929  			switch v := v.(*WriteRequest); i {
   930  			case 0:
   931  				return &v.state
   932  			case 1:
   933  				return &v.sizeCache
   934  			case 2:
   935  				return &v.unknownFields
   936  			default:
   937  				return nil
   938  			}
   939  		}
   940  		file_util_file_proto_file_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
   941  			switch v := v.(*WriteResponse); i {
   942  			case 0:
   943  				return &v.state
   944  			case 1:
   945  				return &v.sizeCache
   946  			case 2:
   947  				return &v.unknownFields
   948  			default:
   949  				return nil
   950  			}
   951  		}
   952  	}
   953  	type x struct{}
   954  	out := protoimpl.TypeBuilder{
   955  		File: protoimpl.DescBuilder{
   956  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   957  			RawDescriptor: file_util_file_proto_file_proto_rawDesc,
   958  			NumEnums:      0,
   959  			NumMessages:   12,
   960  			NumExtensions: 0,
   961  			NumServices:   1,
   962  		},
   963  		GoTypes:           file_util_file_proto_file_proto_goTypes,
   964  		DependencyIndexes: file_util_file_proto_file_proto_depIdxs,
   965  		MessageInfos:      file_util_file_proto_file_proto_msgTypes,
   966  	}.Build()
   967  	File_util_file_proto_file_proto = out.File
   968  	file_util_file_proto_file_proto_rawDesc = nil
   969  	file_util_file_proto_file_proto_goTypes = nil
   970  	file_util_file_proto_file_proto_depIdxs = nil
   971  }
   972  
   973  // Reference imports to suppress errors if they are not otherwise used.
   974  var _ context.Context
   975  var _ grpc.ClientConnInterface
   976  
   977  // This is a compile-time assertion to ensure that this generated file
   978  // is compatible with the grpc package it is being compiled against.
   979  const _ = grpc.SupportPackageIsVersion6
   980  
   981  // FileClient is the client API for File service.
   982  //
   983  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   984  type FileClient interface {
   985  	Open(ctx context.Context, in *OpenRequest, opts ...grpc.CallOption) (*OpenResponse, error)
   986  	Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error)
   987  	Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error)
   988  	Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error)
   989  	Close(ctx context.Context, in *CloseRequest, opts ...grpc.CallOption) (*CloseResponse, error)
   990  }
   991  
   992  type fileClient struct {
   993  	cc grpc.ClientConnInterface
   994  }
   995  
   996  func NewFileClient(cc grpc.ClientConnInterface) FileClient {
   997  	return &fileClient{cc}
   998  }
   999  
  1000  func (c *fileClient) Open(ctx context.Context, in *OpenRequest, opts ...grpc.CallOption) (*OpenResponse, error) {
  1001  	out := new(OpenResponse)
  1002  	err := c.cc.Invoke(ctx, "/go.micro.server.File/Open", in, out, opts...)
  1003  	if err != nil {
  1004  		return nil, err
  1005  	}
  1006  	return out, nil
  1007  }
  1008  
  1009  func (c *fileClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) {
  1010  	out := new(StatResponse)
  1011  	err := c.cc.Invoke(ctx, "/go.micro.server.File/Stat", in, out, opts...)
  1012  	if err != nil {
  1013  		return nil, err
  1014  	}
  1015  	return out, nil
  1016  }
  1017  
  1018  func (c *fileClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) {
  1019  	out := new(ReadResponse)
  1020  	err := c.cc.Invoke(ctx, "/go.micro.server.File/Read", in, out, opts...)
  1021  	if err != nil {
  1022  		return nil, err
  1023  	}
  1024  	return out, nil
  1025  }
  1026  
  1027  func (c *fileClient) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) {
  1028  	out := new(WriteResponse)
  1029  	err := c.cc.Invoke(ctx, "/go.micro.server.File/Write", in, out, opts...)
  1030  	if err != nil {
  1031  		return nil, err
  1032  	}
  1033  	return out, nil
  1034  }
  1035  
  1036  func (c *fileClient) Close(ctx context.Context, in *CloseRequest, opts ...grpc.CallOption) (*CloseResponse, error) {
  1037  	out := new(CloseResponse)
  1038  	err := c.cc.Invoke(ctx, "/go.micro.server.File/Close", in, out, opts...)
  1039  	if err != nil {
  1040  		return nil, err
  1041  	}
  1042  	return out, nil
  1043  }
  1044  
  1045  // FileServer is the server API for File service.
  1046  type FileServer interface {
  1047  	Open(context.Context, *OpenRequest) (*OpenResponse, error)
  1048  	Stat(context.Context, *StatRequest) (*StatResponse, error)
  1049  	Read(context.Context, *ReadRequest) (*ReadResponse, error)
  1050  	Write(context.Context, *WriteRequest) (*WriteResponse, error)
  1051  	Close(context.Context, *CloseRequest) (*CloseResponse, error)
  1052  }
  1053  
  1054  // UnimplementedFileServer can be embedded to have forward compatible implementations.
  1055  type UnimplementedFileServer struct {
  1056  }
  1057  
  1058  func (*UnimplementedFileServer) Open(context.Context, *OpenRequest) (*OpenResponse, error) {
  1059  	return nil, status.Errorf(codes.Unimplemented, "method Open not implemented")
  1060  }
  1061  func (*UnimplementedFileServer) Stat(context.Context, *StatRequest) (*StatResponse, error) {
  1062  	return nil, status.Errorf(codes.Unimplemented, "method Stat not implemented")
  1063  }
  1064  func (*UnimplementedFileServer) Read(context.Context, *ReadRequest) (*ReadResponse, error) {
  1065  	return nil, status.Errorf(codes.Unimplemented, "method Read not implemented")
  1066  }
  1067  func (*UnimplementedFileServer) Write(context.Context, *WriteRequest) (*WriteResponse, error) {
  1068  	return nil, status.Errorf(codes.Unimplemented, "method Write not implemented")
  1069  }
  1070  func (*UnimplementedFileServer) Close(context.Context, *CloseRequest) (*CloseResponse, error) {
  1071  	return nil, status.Errorf(codes.Unimplemented, "method Close not implemented")
  1072  }
  1073  
  1074  func RegisterFileServer(s *grpc.Server, srv FileServer) {
  1075  	s.RegisterService(&_File_serviceDesc, srv)
  1076  }
  1077  
  1078  func _File_Open_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1079  	in := new(OpenRequest)
  1080  	if err := dec(in); err != nil {
  1081  		return nil, err
  1082  	}
  1083  	if interceptor == nil {
  1084  		return srv.(FileServer).Open(ctx, in)
  1085  	}
  1086  	info := &grpc.UnaryServerInfo{
  1087  		Server:     srv,
  1088  		FullMethod: "/go.micro.server.File/Open",
  1089  	}
  1090  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1091  		return srv.(FileServer).Open(ctx, req.(*OpenRequest))
  1092  	}
  1093  	return interceptor(ctx, in, info, handler)
  1094  }
  1095  
  1096  func _File_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1097  	in := new(StatRequest)
  1098  	if err := dec(in); err != nil {
  1099  		return nil, err
  1100  	}
  1101  	if interceptor == nil {
  1102  		return srv.(FileServer).Stat(ctx, in)
  1103  	}
  1104  	info := &grpc.UnaryServerInfo{
  1105  		Server:     srv,
  1106  		FullMethod: "/go.micro.server.File/Stat",
  1107  	}
  1108  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1109  		return srv.(FileServer).Stat(ctx, req.(*StatRequest))
  1110  	}
  1111  	return interceptor(ctx, in, info, handler)
  1112  }
  1113  
  1114  func _File_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1115  	in := new(ReadRequest)
  1116  	if err := dec(in); err != nil {
  1117  		return nil, err
  1118  	}
  1119  	if interceptor == nil {
  1120  		return srv.(FileServer).Read(ctx, in)
  1121  	}
  1122  	info := &grpc.UnaryServerInfo{
  1123  		Server:     srv,
  1124  		FullMethod: "/go.micro.server.File/Read",
  1125  	}
  1126  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1127  		return srv.(FileServer).Read(ctx, req.(*ReadRequest))
  1128  	}
  1129  	return interceptor(ctx, in, info, handler)
  1130  }
  1131  
  1132  func _File_Write_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1133  	in := new(WriteRequest)
  1134  	if err := dec(in); err != nil {
  1135  		return nil, err
  1136  	}
  1137  	if interceptor == nil {
  1138  		return srv.(FileServer).Write(ctx, in)
  1139  	}
  1140  	info := &grpc.UnaryServerInfo{
  1141  		Server:     srv,
  1142  		FullMethod: "/go.micro.server.File/Write",
  1143  	}
  1144  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1145  		return srv.(FileServer).Write(ctx, req.(*WriteRequest))
  1146  	}
  1147  	return interceptor(ctx, in, info, handler)
  1148  }
  1149  
  1150  func _File_Close_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1151  	in := new(CloseRequest)
  1152  	if err := dec(in); err != nil {
  1153  		return nil, err
  1154  	}
  1155  	if interceptor == nil {
  1156  		return srv.(FileServer).Close(ctx, in)
  1157  	}
  1158  	info := &grpc.UnaryServerInfo{
  1159  		Server:     srv,
  1160  		FullMethod: "/go.micro.server.File/Close",
  1161  	}
  1162  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1163  		return srv.(FileServer).Close(ctx, req.(*CloseRequest))
  1164  	}
  1165  	return interceptor(ctx, in, info, handler)
  1166  }
  1167  
  1168  var _File_serviceDesc = grpc.ServiceDesc{
  1169  	ServiceName: "go.micro.server.File",
  1170  	HandlerType: (*FileServer)(nil),
  1171  	Methods: []grpc.MethodDesc{
  1172  		{
  1173  			MethodName: "Open",
  1174  			Handler:    _File_Open_Handler,
  1175  		},
  1176  		{
  1177  			MethodName: "Stat",
  1178  			Handler:    _File_Stat_Handler,
  1179  		},
  1180  		{
  1181  			MethodName: "Read",
  1182  			Handler:    _File_Read_Handler,
  1183  		},
  1184  		{
  1185  			MethodName: "Write",
  1186  			Handler:    _File_Write_Handler,
  1187  		},
  1188  		{
  1189  			MethodName: "Close",
  1190  			Handler:    _File_Close_Handler,
  1191  		},
  1192  	},
  1193  	Streams:  []grpc.StreamDesc{},
  1194  	Metadata: "util/file/proto/file.proto",
  1195  }