github.com/micro/go-micro/v2@v2.9.1/util/file/proto/file.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: util/file/proto/file.proto
     3  
     4  package go_micro_server
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	grpc "google.golang.org/grpc"
    11  	codes "google.golang.org/grpc/codes"
    12  	status "google.golang.org/grpc/status"
    13  	math "math"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the proto package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // proto package needs to be updated.
    25  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    26  
    27  type OpenRequest struct {
    28  	Filename             string   `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
    29  	Truncate             bool     `protobuf:"varint,2,opt,name=truncate,proto3" json:"truncate,omitempty"`
    30  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    31  	XXX_unrecognized     []byte   `json:"-"`
    32  	XXX_sizecache        int32    `json:"-"`
    33  }
    34  
    35  func (m *OpenRequest) Reset()         { *m = OpenRequest{} }
    36  func (m *OpenRequest) String() string { return proto.CompactTextString(m) }
    37  func (*OpenRequest) ProtoMessage()    {}
    38  func (*OpenRequest) Descriptor() ([]byte, []int) {
    39  	return fileDescriptor_c90a6c4a93f92bf4, []int{0}
    40  }
    41  
    42  func (m *OpenRequest) XXX_Unmarshal(b []byte) error {
    43  	return xxx_messageInfo_OpenRequest.Unmarshal(m, b)
    44  }
    45  func (m *OpenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    46  	return xxx_messageInfo_OpenRequest.Marshal(b, m, deterministic)
    47  }
    48  func (m *OpenRequest) XXX_Merge(src proto.Message) {
    49  	xxx_messageInfo_OpenRequest.Merge(m, src)
    50  }
    51  func (m *OpenRequest) XXX_Size() int {
    52  	return xxx_messageInfo_OpenRequest.Size(m)
    53  }
    54  func (m *OpenRequest) XXX_DiscardUnknown() {
    55  	xxx_messageInfo_OpenRequest.DiscardUnknown(m)
    56  }
    57  
    58  var xxx_messageInfo_OpenRequest proto.InternalMessageInfo
    59  
    60  func (m *OpenRequest) GetFilename() string {
    61  	if m != nil {
    62  		return m.Filename
    63  	}
    64  	return ""
    65  }
    66  
    67  func (m *OpenRequest) GetTruncate() bool {
    68  	if m != nil {
    69  		return m.Truncate
    70  	}
    71  	return false
    72  }
    73  
    74  type OpenResponse struct {
    75  	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
    76  	Result               bool     `protobuf:"varint,2,opt,name=result,proto3" json:"result,omitempty"`
    77  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    78  	XXX_unrecognized     []byte   `json:"-"`
    79  	XXX_sizecache        int32    `json:"-"`
    80  }
    81  
    82  func (m *OpenResponse) Reset()         { *m = OpenResponse{} }
    83  func (m *OpenResponse) String() string { return proto.CompactTextString(m) }
    84  func (*OpenResponse) ProtoMessage()    {}
    85  func (*OpenResponse) Descriptor() ([]byte, []int) {
    86  	return fileDescriptor_c90a6c4a93f92bf4, []int{1}
    87  }
    88  
    89  func (m *OpenResponse) XXX_Unmarshal(b []byte) error {
    90  	return xxx_messageInfo_OpenResponse.Unmarshal(m, b)
    91  }
    92  func (m *OpenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    93  	return xxx_messageInfo_OpenResponse.Marshal(b, m, deterministic)
    94  }
    95  func (m *OpenResponse) XXX_Merge(src proto.Message) {
    96  	xxx_messageInfo_OpenResponse.Merge(m, src)
    97  }
    98  func (m *OpenResponse) XXX_Size() int {
    99  	return xxx_messageInfo_OpenResponse.Size(m)
   100  }
   101  func (m *OpenResponse) XXX_DiscardUnknown() {
   102  	xxx_messageInfo_OpenResponse.DiscardUnknown(m)
   103  }
   104  
   105  var xxx_messageInfo_OpenResponse proto.InternalMessageInfo
   106  
   107  func (m *OpenResponse) GetId() int64 {
   108  	if m != nil {
   109  		return m.Id
   110  	}
   111  	return 0
   112  }
   113  
   114  func (m *OpenResponse) GetResult() bool {
   115  	if m != nil {
   116  		return m.Result
   117  	}
   118  	return false
   119  }
   120  
   121  type CloseRequest struct {
   122  	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
   123  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   124  	XXX_unrecognized     []byte   `json:"-"`
   125  	XXX_sizecache        int32    `json:"-"`
   126  }
   127  
   128  func (m *CloseRequest) Reset()         { *m = CloseRequest{} }
   129  func (m *CloseRequest) String() string { return proto.CompactTextString(m) }
   130  func (*CloseRequest) ProtoMessage()    {}
   131  func (*CloseRequest) Descriptor() ([]byte, []int) {
   132  	return fileDescriptor_c90a6c4a93f92bf4, []int{2}
   133  }
   134  
   135  func (m *CloseRequest) XXX_Unmarshal(b []byte) error {
   136  	return xxx_messageInfo_CloseRequest.Unmarshal(m, b)
   137  }
   138  func (m *CloseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   139  	return xxx_messageInfo_CloseRequest.Marshal(b, m, deterministic)
   140  }
   141  func (m *CloseRequest) XXX_Merge(src proto.Message) {
   142  	xxx_messageInfo_CloseRequest.Merge(m, src)
   143  }
   144  func (m *CloseRequest) XXX_Size() int {
   145  	return xxx_messageInfo_CloseRequest.Size(m)
   146  }
   147  func (m *CloseRequest) XXX_DiscardUnknown() {
   148  	xxx_messageInfo_CloseRequest.DiscardUnknown(m)
   149  }
   150  
   151  var xxx_messageInfo_CloseRequest proto.InternalMessageInfo
   152  
   153  func (m *CloseRequest) GetId() int64 {
   154  	if m != nil {
   155  		return m.Id
   156  	}
   157  	return 0
   158  }
   159  
   160  type CloseResponse struct {
   161  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   162  	XXX_unrecognized     []byte   `json:"-"`
   163  	XXX_sizecache        int32    `json:"-"`
   164  }
   165  
   166  func (m *CloseResponse) Reset()         { *m = CloseResponse{} }
   167  func (m *CloseResponse) String() string { return proto.CompactTextString(m) }
   168  func (*CloseResponse) ProtoMessage()    {}
   169  func (*CloseResponse) Descriptor() ([]byte, []int) {
   170  	return fileDescriptor_c90a6c4a93f92bf4, []int{3}
   171  }
   172  
   173  func (m *CloseResponse) XXX_Unmarshal(b []byte) error {
   174  	return xxx_messageInfo_CloseResponse.Unmarshal(m, b)
   175  }
   176  func (m *CloseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   177  	return xxx_messageInfo_CloseResponse.Marshal(b, m, deterministic)
   178  }
   179  func (m *CloseResponse) XXX_Merge(src proto.Message) {
   180  	xxx_messageInfo_CloseResponse.Merge(m, src)
   181  }
   182  func (m *CloseResponse) XXX_Size() int {
   183  	return xxx_messageInfo_CloseResponse.Size(m)
   184  }
   185  func (m *CloseResponse) XXX_DiscardUnknown() {
   186  	xxx_messageInfo_CloseResponse.DiscardUnknown(m)
   187  }
   188  
   189  var xxx_messageInfo_CloseResponse proto.InternalMessageInfo
   190  
   191  type StatRequest struct {
   192  	Filename             string   `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
   193  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   194  	XXX_unrecognized     []byte   `json:"-"`
   195  	XXX_sizecache        int32    `json:"-"`
   196  }
   197  
   198  func (m *StatRequest) Reset()         { *m = StatRequest{} }
   199  func (m *StatRequest) String() string { return proto.CompactTextString(m) }
   200  func (*StatRequest) ProtoMessage()    {}
   201  func (*StatRequest) Descriptor() ([]byte, []int) {
   202  	return fileDescriptor_c90a6c4a93f92bf4, []int{4}
   203  }
   204  
   205  func (m *StatRequest) XXX_Unmarshal(b []byte) error {
   206  	return xxx_messageInfo_StatRequest.Unmarshal(m, b)
   207  }
   208  func (m *StatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   209  	return xxx_messageInfo_StatRequest.Marshal(b, m, deterministic)
   210  }
   211  func (m *StatRequest) XXX_Merge(src proto.Message) {
   212  	xxx_messageInfo_StatRequest.Merge(m, src)
   213  }
   214  func (m *StatRequest) XXX_Size() int {
   215  	return xxx_messageInfo_StatRequest.Size(m)
   216  }
   217  func (m *StatRequest) XXX_DiscardUnknown() {
   218  	xxx_messageInfo_StatRequest.DiscardUnknown(m)
   219  }
   220  
   221  var xxx_messageInfo_StatRequest proto.InternalMessageInfo
   222  
   223  func (m *StatRequest) GetFilename() string {
   224  	if m != nil {
   225  		return m.Filename
   226  	}
   227  	return ""
   228  }
   229  
   230  type StatResponse struct {
   231  	Type                 string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
   232  	Size                 int64    `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
   233  	LastModified         int64    `protobuf:"varint,3,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"`
   234  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   235  	XXX_unrecognized     []byte   `json:"-"`
   236  	XXX_sizecache        int32    `json:"-"`
   237  }
   238  
   239  func (m *StatResponse) Reset()         { *m = StatResponse{} }
   240  func (m *StatResponse) String() string { return proto.CompactTextString(m) }
   241  func (*StatResponse) ProtoMessage()    {}
   242  func (*StatResponse) Descriptor() ([]byte, []int) {
   243  	return fileDescriptor_c90a6c4a93f92bf4, []int{5}
   244  }
   245  
   246  func (m *StatResponse) XXX_Unmarshal(b []byte) error {
   247  	return xxx_messageInfo_StatResponse.Unmarshal(m, b)
   248  }
   249  func (m *StatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   250  	return xxx_messageInfo_StatResponse.Marshal(b, m, deterministic)
   251  }
   252  func (m *StatResponse) XXX_Merge(src proto.Message) {
   253  	xxx_messageInfo_StatResponse.Merge(m, src)
   254  }
   255  func (m *StatResponse) XXX_Size() int {
   256  	return xxx_messageInfo_StatResponse.Size(m)
   257  }
   258  func (m *StatResponse) XXX_DiscardUnknown() {
   259  	xxx_messageInfo_StatResponse.DiscardUnknown(m)
   260  }
   261  
   262  var xxx_messageInfo_StatResponse proto.InternalMessageInfo
   263  
   264  func (m *StatResponse) GetType() string {
   265  	if m != nil {
   266  		return m.Type
   267  	}
   268  	return ""
   269  }
   270  
   271  func (m *StatResponse) GetSize() int64 {
   272  	if m != nil {
   273  		return m.Size
   274  	}
   275  	return 0
   276  }
   277  
   278  func (m *StatResponse) GetLastModified() int64 {
   279  	if m != nil {
   280  		return m.LastModified
   281  	}
   282  	return 0
   283  }
   284  
   285  type ReadRequest struct {
   286  	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
   287  	Offset               int64    `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
   288  	Size                 int64    `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
   289  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   290  	XXX_unrecognized     []byte   `json:"-"`
   291  	XXX_sizecache        int32    `json:"-"`
   292  }
   293  
   294  func (m *ReadRequest) Reset()         { *m = ReadRequest{} }
   295  func (m *ReadRequest) String() string { return proto.CompactTextString(m) }
   296  func (*ReadRequest) ProtoMessage()    {}
   297  func (*ReadRequest) Descriptor() ([]byte, []int) {
   298  	return fileDescriptor_c90a6c4a93f92bf4, []int{6}
   299  }
   300  
   301  func (m *ReadRequest) XXX_Unmarshal(b []byte) error {
   302  	return xxx_messageInfo_ReadRequest.Unmarshal(m, b)
   303  }
   304  func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   305  	return xxx_messageInfo_ReadRequest.Marshal(b, m, deterministic)
   306  }
   307  func (m *ReadRequest) XXX_Merge(src proto.Message) {
   308  	xxx_messageInfo_ReadRequest.Merge(m, src)
   309  }
   310  func (m *ReadRequest) XXX_Size() int {
   311  	return xxx_messageInfo_ReadRequest.Size(m)
   312  }
   313  func (m *ReadRequest) XXX_DiscardUnknown() {
   314  	xxx_messageInfo_ReadRequest.DiscardUnknown(m)
   315  }
   316  
   317  var xxx_messageInfo_ReadRequest proto.InternalMessageInfo
   318  
   319  func (m *ReadRequest) GetId() int64 {
   320  	if m != nil {
   321  		return m.Id
   322  	}
   323  	return 0
   324  }
   325  
   326  func (m *ReadRequest) GetOffset() int64 {
   327  	if m != nil {
   328  		return m.Offset
   329  	}
   330  	return 0
   331  }
   332  
   333  func (m *ReadRequest) GetSize() int64 {
   334  	if m != nil {
   335  		return m.Size
   336  	}
   337  	return 0
   338  }
   339  
   340  type ReadResponse struct {
   341  	Size                 int64    `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
   342  	Data                 []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
   343  	Eof                  bool     `protobuf:"varint,3,opt,name=eof,proto3" json:"eof,omitempty"`
   344  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   345  	XXX_unrecognized     []byte   `json:"-"`
   346  	XXX_sizecache        int32    `json:"-"`
   347  }
   348  
   349  func (m *ReadResponse) Reset()         { *m = ReadResponse{} }
   350  func (m *ReadResponse) String() string { return proto.CompactTextString(m) }
   351  func (*ReadResponse) ProtoMessage()    {}
   352  func (*ReadResponse) Descriptor() ([]byte, []int) {
   353  	return fileDescriptor_c90a6c4a93f92bf4, []int{7}
   354  }
   355  
   356  func (m *ReadResponse) XXX_Unmarshal(b []byte) error {
   357  	return xxx_messageInfo_ReadResponse.Unmarshal(m, b)
   358  }
   359  func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   360  	return xxx_messageInfo_ReadResponse.Marshal(b, m, deterministic)
   361  }
   362  func (m *ReadResponse) XXX_Merge(src proto.Message) {
   363  	xxx_messageInfo_ReadResponse.Merge(m, src)
   364  }
   365  func (m *ReadResponse) XXX_Size() int {
   366  	return xxx_messageInfo_ReadResponse.Size(m)
   367  }
   368  func (m *ReadResponse) XXX_DiscardUnknown() {
   369  	xxx_messageInfo_ReadResponse.DiscardUnknown(m)
   370  }
   371  
   372  var xxx_messageInfo_ReadResponse proto.InternalMessageInfo
   373  
   374  func (m *ReadResponse) GetSize() int64 {
   375  	if m != nil {
   376  		return m.Size
   377  	}
   378  	return 0
   379  }
   380  
   381  func (m *ReadResponse) GetData() []byte {
   382  	if m != nil {
   383  		return m.Data
   384  	}
   385  	return nil
   386  }
   387  
   388  func (m *ReadResponse) GetEof() bool {
   389  	if m != nil {
   390  		return m.Eof
   391  	}
   392  	return false
   393  }
   394  
   395  type GetRequest struct {
   396  	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
   397  	BlockId              int64    `protobuf:"varint,2,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
   398  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   399  	XXX_unrecognized     []byte   `json:"-"`
   400  	XXX_sizecache        int32    `json:"-"`
   401  }
   402  
   403  func (m *GetRequest) Reset()         { *m = GetRequest{} }
   404  func (m *GetRequest) String() string { return proto.CompactTextString(m) }
   405  func (*GetRequest) ProtoMessage()    {}
   406  func (*GetRequest) Descriptor() ([]byte, []int) {
   407  	return fileDescriptor_c90a6c4a93f92bf4, []int{8}
   408  }
   409  
   410  func (m *GetRequest) XXX_Unmarshal(b []byte) error {
   411  	return xxx_messageInfo_GetRequest.Unmarshal(m, b)
   412  }
   413  func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   414  	return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic)
   415  }
   416  func (m *GetRequest) XXX_Merge(src proto.Message) {
   417  	xxx_messageInfo_GetRequest.Merge(m, src)
   418  }
   419  func (m *GetRequest) XXX_Size() int {
   420  	return xxx_messageInfo_GetRequest.Size(m)
   421  }
   422  func (m *GetRequest) XXX_DiscardUnknown() {
   423  	xxx_messageInfo_GetRequest.DiscardUnknown(m)
   424  }
   425  
   426  var xxx_messageInfo_GetRequest proto.InternalMessageInfo
   427  
   428  func (m *GetRequest) GetId() int64 {
   429  	if m != nil {
   430  		return m.Id
   431  	}
   432  	return 0
   433  }
   434  
   435  func (m *GetRequest) GetBlockId() int64 {
   436  	if m != nil {
   437  		return m.BlockId
   438  	}
   439  	return 0
   440  }
   441  
   442  type GetResponse struct {
   443  	BlockId              int64    `protobuf:"varint,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
   444  	Size                 int64    `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
   445  	Data                 []byte   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
   446  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   447  	XXX_unrecognized     []byte   `json:"-"`
   448  	XXX_sizecache        int32    `json:"-"`
   449  }
   450  
   451  func (m *GetResponse) Reset()         { *m = GetResponse{} }
   452  func (m *GetResponse) String() string { return proto.CompactTextString(m) }
   453  func (*GetResponse) ProtoMessage()    {}
   454  func (*GetResponse) Descriptor() ([]byte, []int) {
   455  	return fileDescriptor_c90a6c4a93f92bf4, []int{9}
   456  }
   457  
   458  func (m *GetResponse) XXX_Unmarshal(b []byte) error {
   459  	return xxx_messageInfo_GetResponse.Unmarshal(m, b)
   460  }
   461  func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   462  	return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic)
   463  }
   464  func (m *GetResponse) XXX_Merge(src proto.Message) {
   465  	xxx_messageInfo_GetResponse.Merge(m, src)
   466  }
   467  func (m *GetResponse) XXX_Size() int {
   468  	return xxx_messageInfo_GetResponse.Size(m)
   469  }
   470  func (m *GetResponse) XXX_DiscardUnknown() {
   471  	xxx_messageInfo_GetResponse.DiscardUnknown(m)
   472  }
   473  
   474  var xxx_messageInfo_GetResponse proto.InternalMessageInfo
   475  
   476  func (m *GetResponse) GetBlockId() int64 {
   477  	if m != nil {
   478  		return m.BlockId
   479  	}
   480  	return 0
   481  }
   482  
   483  func (m *GetResponse) GetSize() int64 {
   484  	if m != nil {
   485  		return m.Size
   486  	}
   487  	return 0
   488  }
   489  
   490  func (m *GetResponse) GetData() []byte {
   491  	if m != nil {
   492  		return m.Data
   493  	}
   494  	return nil
   495  }
   496  
   497  type WriteRequest struct {
   498  	Id                   int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
   499  	Offset               int64    `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
   500  	Data                 []byte   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
   501  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   502  	XXX_unrecognized     []byte   `json:"-"`
   503  	XXX_sizecache        int32    `json:"-"`
   504  }
   505  
   506  func (m *WriteRequest) Reset()         { *m = WriteRequest{} }
   507  func (m *WriteRequest) String() string { return proto.CompactTextString(m) }
   508  func (*WriteRequest) ProtoMessage()    {}
   509  func (*WriteRequest) Descriptor() ([]byte, []int) {
   510  	return fileDescriptor_c90a6c4a93f92bf4, []int{10}
   511  }
   512  
   513  func (m *WriteRequest) XXX_Unmarshal(b []byte) error {
   514  	return xxx_messageInfo_WriteRequest.Unmarshal(m, b)
   515  }
   516  func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   517  	return xxx_messageInfo_WriteRequest.Marshal(b, m, deterministic)
   518  }
   519  func (m *WriteRequest) XXX_Merge(src proto.Message) {
   520  	xxx_messageInfo_WriteRequest.Merge(m, src)
   521  }
   522  func (m *WriteRequest) XXX_Size() int {
   523  	return xxx_messageInfo_WriteRequest.Size(m)
   524  }
   525  func (m *WriteRequest) XXX_DiscardUnknown() {
   526  	xxx_messageInfo_WriteRequest.DiscardUnknown(m)
   527  }
   528  
   529  var xxx_messageInfo_WriteRequest proto.InternalMessageInfo
   530  
   531  func (m *WriteRequest) GetId() int64 {
   532  	if m != nil {
   533  		return m.Id
   534  	}
   535  	return 0
   536  }
   537  
   538  func (m *WriteRequest) GetOffset() int64 {
   539  	if m != nil {
   540  		return m.Offset
   541  	}
   542  	return 0
   543  }
   544  
   545  func (m *WriteRequest) GetData() []byte {
   546  	if m != nil {
   547  		return m.Data
   548  	}
   549  	return nil
   550  }
   551  
   552  type WriteResponse struct {
   553  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   554  	XXX_unrecognized     []byte   `json:"-"`
   555  	XXX_sizecache        int32    `json:"-"`
   556  }
   557  
   558  func (m *WriteResponse) Reset()         { *m = WriteResponse{} }
   559  func (m *WriteResponse) String() string { return proto.CompactTextString(m) }
   560  func (*WriteResponse) ProtoMessage()    {}
   561  func (*WriteResponse) Descriptor() ([]byte, []int) {
   562  	return fileDescriptor_c90a6c4a93f92bf4, []int{11}
   563  }
   564  
   565  func (m *WriteResponse) XXX_Unmarshal(b []byte) error {
   566  	return xxx_messageInfo_WriteResponse.Unmarshal(m, b)
   567  }
   568  func (m *WriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   569  	return xxx_messageInfo_WriteResponse.Marshal(b, m, deterministic)
   570  }
   571  func (m *WriteResponse) XXX_Merge(src proto.Message) {
   572  	xxx_messageInfo_WriteResponse.Merge(m, src)
   573  }
   574  func (m *WriteResponse) XXX_Size() int {
   575  	return xxx_messageInfo_WriteResponse.Size(m)
   576  }
   577  func (m *WriteResponse) XXX_DiscardUnknown() {
   578  	xxx_messageInfo_WriteResponse.DiscardUnknown(m)
   579  }
   580  
   581  var xxx_messageInfo_WriteResponse proto.InternalMessageInfo
   582  
   583  func init() {
   584  	proto.RegisterType((*OpenRequest)(nil), "go.micro.server.OpenRequest")
   585  	proto.RegisterType((*OpenResponse)(nil), "go.micro.server.OpenResponse")
   586  	proto.RegisterType((*CloseRequest)(nil), "go.micro.server.CloseRequest")
   587  	proto.RegisterType((*CloseResponse)(nil), "go.micro.server.CloseResponse")
   588  	proto.RegisterType((*StatRequest)(nil), "go.micro.server.StatRequest")
   589  	proto.RegisterType((*StatResponse)(nil), "go.micro.server.StatResponse")
   590  	proto.RegisterType((*ReadRequest)(nil), "go.micro.server.ReadRequest")
   591  	proto.RegisterType((*ReadResponse)(nil), "go.micro.server.ReadResponse")
   592  	proto.RegisterType((*GetRequest)(nil), "go.micro.server.GetRequest")
   593  	proto.RegisterType((*GetResponse)(nil), "go.micro.server.GetResponse")
   594  	proto.RegisterType((*WriteRequest)(nil), "go.micro.server.WriteRequest")
   595  	proto.RegisterType((*WriteResponse)(nil), "go.micro.server.WriteResponse")
   596  }
   597  
   598  func init() { proto.RegisterFile("util/file/proto/file.proto", fileDescriptor_c90a6c4a93f92bf4) }
   599  
   600  var fileDescriptor_c90a6c4a93f92bf4 = []byte{
   601  	// 447 bytes of a gzipped FileDescriptorProto
   602  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcf, 0x8e, 0xd3, 0x30,
   603  	0x10, 0xc6, 0x9b, 0x3f, 0x2c, 0x61, 0x92, 0x52, 0xe4, 0x03, 0x2a, 0x11, 0xac, 0x56, 0xe6, 0xb2,
   604  	0x5c, 0xb2, 0x12, 0x48, 0xf0, 0x00, 0x68, 0x61, 0x17, 0x09, 0x81, 0xcc, 0x81, 0x03, 0x87, 0x55,
   605  	0xb6, 0x9e, 0x20, 0x8b, 0x34, 0x0e, 0xb1, 0x83, 0x04, 0x2f, 0xcd, 0x2b, 0x20, 0x3b, 0x6e, 0xeb,
   606  	0xb6, 0x89, 0x84, 0xf6, 0x36, 0xe3, 0x19, 0xff, 0xfc, 0xd9, 0xf9, 0x26, 0x90, 0xf7, 0x5a, 0xd4,
   607  	0x17, 0x95, 0xa8, 0xf1, 0xa2, 0xed, 0xa4, 0x96, 0x36, 0x2c, 0x6c, 0x48, 0x16, 0xdf, 0x65, 0xb1,
   608  	0x16, 0xab, 0x4e, 0x16, 0x0a, 0xbb, 0x5f, 0xd8, 0xd1, 0x4b, 0x48, 0x3f, 0xb5, 0xd8, 0x30, 0xfc,
   609  	0xd9, 0xa3, 0xd2, 0x24, 0x87, 0xc4, 0x74, 0x37, 0xe5, 0x1a, 0x97, 0xc1, 0x59, 0x70, 0xfe, 0x80,
   610  	0x6d, 0x73, 0x53, 0xd3, 0x5d, 0xdf, 0xac, 0x4a, 0x8d, 0xcb, 0xf0, 0x2c, 0x38, 0x4f, 0xd8, 0x36,
   611  	0xa7, 0xaf, 0x21, 0x1b, 0x30, 0xaa, 0x95, 0x8d, 0x42, 0xf2, 0x10, 0x42, 0xc1, 0x2d, 0x21, 0x62,
   612  	0xa1, 0xe0, 0xe4, 0x31, 0x9c, 0x74, 0xa8, 0xfa, 0x5a, 0xbb, 0x9d, 0x2e, 0xa3, 0xa7, 0x90, 0xbd,
   613  	0xad, 0xa5, 0xc2, 0xcd, 0xf9, 0x07, 0xfb, 0xe8, 0x02, 0xe6, 0xae, 0x3e, 0x80, 0xe9, 0x0b, 0x48,
   614  	0xbf, 0xe8, 0x52, 0xff, 0x87, 0x5e, 0xfa, 0x0d, 0xb2, 0xa1, 0xd5, 0x69, 0x22, 0x10, 0xeb, 0xdf,
   615  	0xed, 0xa6, 0xcf, 0xc6, 0x66, 0x4d, 0x89, 0x3f, 0xc3, 0x7d, 0x22, 0x66, 0x63, 0xf2, 0x1c, 0xe6,
   616  	0x75, 0xa9, 0xf4, 0xcd, 0x5a, 0x72, 0x51, 0x09, 0xe4, 0xcb, 0xc8, 0x16, 0x33, 0xb3, 0xf8, 0xd1,
   617  	0xad, 0xd1, 0x6b, 0x48, 0x19, 0x96, 0x7c, 0x42, 0xb7, 0xb9, 0xaf, 0xac, 0x2a, 0x85, 0xda, 0x91,
   618  	0x5d, 0xb6, 0x3d, 0x2f, 0xda, 0x9d, 0x47, 0xaf, 0x20, 0x1b, 0x50, 0x3b, 0x9d, 0xb6, 0x27, 0xf0,
   619  	0x34, 0x11, 0x88, 0x79, 0xa9, 0x4b, 0x4b, 0xcb, 0x98, 0x8d, 0xc9, 0x23, 0x88, 0x50, 0x56, 0x16,
   620  	0x95, 0x30, 0x13, 0xd2, 0x37, 0x00, 0xef, 0x51, 0x4f, 0x69, 0x7a, 0x02, 0xc9, 0x6d, 0x2d, 0x57,
   621  	0x3f, 0x6e, 0x04, 0x77, 0xaa, 0xee, 0xdb, 0xfc, 0x9a, 0xd3, 0xcf, 0x90, 0xda, 0x8d, 0x4e, 0x81,
   622  	0xdf, 0x19, 0xec, 0x75, 0x8e, 0x3e, 0xd8, 0x46, 0x5c, 0xb4, 0x13, 0x47, 0x3f, 0x40, 0xf6, 0xb5,
   623  	0x13, 0x1a, 0xef, 0xf0, 0x40, 0x47, 0xac, 0x05, 0xcc, 0x1d, 0x6b, 0xd0, 0xf7, 0xf2, 0x6f, 0x08,
   624  	0xf1, 0x3b, 0x51, 0x23, 0xb9, 0x84, 0xd8, 0xd8, 0x8e, 0x3c, 0x2d, 0x0e, 0x7c, 0x5d, 0x78, 0xa6,
   625  	0xce, 0x9f, 0x4d, 0x54, 0x9d, 0xa5, 0x66, 0x06, 0x63, 0x9c, 0x32, 0x82, 0xf1, 0xbc, 0x36, 0x82,
   626  	0xf1, 0xed, 0x35, 0x60, 0xcc, 0x87, 0x1c, 0xc1, 0x78, 0x56, 0x19, 0xc1, 0xf8, 0x5f, 0x9f, 0xce,
   627  	0xc8, 0x15, 0xdc, 0xb3, 0xd7, 0x25, 0xc7, 0x9d, 0xfe, 0x93, 0xe6, 0xa7, 0x53, 0x65, 0x9f, 0x64,
   628  	0xa7, 0x67, 0x84, 0xe4, 0x4f, 0xdd, 0x08, 0x69, 0x7f, 0xe8, 0x66, 0xb7, 0x27, 0xf6, 0xf7, 0xf1,
   629  	0xea, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xaf, 0x08, 0x7e, 0x74, 0x5c, 0x04, 0x00, 0x00,
   630  }
   631  
   632  // Reference imports to suppress errors if they are not otherwise used.
   633  var _ context.Context
   634  var _ grpc.ClientConn
   635  
   636  // This is a compile-time assertion to ensure that this generated file
   637  // is compatible with the grpc package it is being compiled against.
   638  const _ = grpc.SupportPackageIsVersion4
   639  
   640  // FileClient is the client API for File service.
   641  //
   642  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   643  type FileClient interface {
   644  	Open(ctx context.Context, in *OpenRequest, opts ...grpc.CallOption) (*OpenResponse, error)
   645  	Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error)
   646  	Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error)
   647  	Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error)
   648  	Close(ctx context.Context, in *CloseRequest, opts ...grpc.CallOption) (*CloseResponse, error)
   649  }
   650  
   651  type fileClient struct {
   652  	cc *grpc.ClientConn
   653  }
   654  
   655  func NewFileClient(cc *grpc.ClientConn) FileClient {
   656  	return &fileClient{cc}
   657  }
   658  
   659  func (c *fileClient) Open(ctx context.Context, in *OpenRequest, opts ...grpc.CallOption) (*OpenResponse, error) {
   660  	out := new(OpenResponse)
   661  	err := c.cc.Invoke(ctx, "/go.micro.server.File/Open", in, out, opts...)
   662  	if err != nil {
   663  		return nil, err
   664  	}
   665  	return out, nil
   666  }
   667  
   668  func (c *fileClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) {
   669  	out := new(StatResponse)
   670  	err := c.cc.Invoke(ctx, "/go.micro.server.File/Stat", in, out, opts...)
   671  	if err != nil {
   672  		return nil, err
   673  	}
   674  	return out, nil
   675  }
   676  
   677  func (c *fileClient) Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) {
   678  	out := new(ReadResponse)
   679  	err := c.cc.Invoke(ctx, "/go.micro.server.File/Read", in, out, opts...)
   680  	if err != nil {
   681  		return nil, err
   682  	}
   683  	return out, nil
   684  }
   685  
   686  func (c *fileClient) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) {
   687  	out := new(WriteResponse)
   688  	err := c.cc.Invoke(ctx, "/go.micro.server.File/Write", in, out, opts...)
   689  	if err != nil {
   690  		return nil, err
   691  	}
   692  	return out, nil
   693  }
   694  
   695  func (c *fileClient) Close(ctx context.Context, in *CloseRequest, opts ...grpc.CallOption) (*CloseResponse, error) {
   696  	out := new(CloseResponse)
   697  	err := c.cc.Invoke(ctx, "/go.micro.server.File/Close", in, out, opts...)
   698  	if err != nil {
   699  		return nil, err
   700  	}
   701  	return out, nil
   702  }
   703  
   704  // FileServer is the server API for File service.
   705  type FileServer interface {
   706  	Open(context.Context, *OpenRequest) (*OpenResponse, error)
   707  	Stat(context.Context, *StatRequest) (*StatResponse, error)
   708  	Read(context.Context, *ReadRequest) (*ReadResponse, error)
   709  	Write(context.Context, *WriteRequest) (*WriteResponse, error)
   710  	Close(context.Context, *CloseRequest) (*CloseResponse, error)
   711  }
   712  
   713  // UnimplementedFileServer can be embedded to have forward compatible implementations.
   714  type UnimplementedFileServer struct {
   715  }
   716  
   717  func (*UnimplementedFileServer) Open(ctx context.Context, req *OpenRequest) (*OpenResponse, error) {
   718  	return nil, status.Errorf(codes.Unimplemented, "method Open not implemented")
   719  }
   720  func (*UnimplementedFileServer) Stat(ctx context.Context, req *StatRequest) (*StatResponse, error) {
   721  	return nil, status.Errorf(codes.Unimplemented, "method Stat not implemented")
   722  }
   723  func (*UnimplementedFileServer) Read(ctx context.Context, req *ReadRequest) (*ReadResponse, error) {
   724  	return nil, status.Errorf(codes.Unimplemented, "method Read not implemented")
   725  }
   726  func (*UnimplementedFileServer) Write(ctx context.Context, req *WriteRequest) (*WriteResponse, error) {
   727  	return nil, status.Errorf(codes.Unimplemented, "method Write not implemented")
   728  }
   729  func (*UnimplementedFileServer) Close(ctx context.Context, req *CloseRequest) (*CloseResponse, error) {
   730  	return nil, status.Errorf(codes.Unimplemented, "method Close not implemented")
   731  }
   732  
   733  func RegisterFileServer(s *grpc.Server, srv FileServer) {
   734  	s.RegisterService(&_File_serviceDesc, srv)
   735  }
   736  
   737  func _File_Open_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   738  	in := new(OpenRequest)
   739  	if err := dec(in); err != nil {
   740  		return nil, err
   741  	}
   742  	if interceptor == nil {
   743  		return srv.(FileServer).Open(ctx, in)
   744  	}
   745  	info := &grpc.UnaryServerInfo{
   746  		Server:     srv,
   747  		FullMethod: "/go.micro.server.File/Open",
   748  	}
   749  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   750  		return srv.(FileServer).Open(ctx, req.(*OpenRequest))
   751  	}
   752  	return interceptor(ctx, in, info, handler)
   753  }
   754  
   755  func _File_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   756  	in := new(StatRequest)
   757  	if err := dec(in); err != nil {
   758  		return nil, err
   759  	}
   760  	if interceptor == nil {
   761  		return srv.(FileServer).Stat(ctx, in)
   762  	}
   763  	info := &grpc.UnaryServerInfo{
   764  		Server:     srv,
   765  		FullMethod: "/go.micro.server.File/Stat",
   766  	}
   767  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   768  		return srv.(FileServer).Stat(ctx, req.(*StatRequest))
   769  	}
   770  	return interceptor(ctx, in, info, handler)
   771  }
   772  
   773  func _File_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   774  	in := new(ReadRequest)
   775  	if err := dec(in); err != nil {
   776  		return nil, err
   777  	}
   778  	if interceptor == nil {
   779  		return srv.(FileServer).Read(ctx, in)
   780  	}
   781  	info := &grpc.UnaryServerInfo{
   782  		Server:     srv,
   783  		FullMethod: "/go.micro.server.File/Read",
   784  	}
   785  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   786  		return srv.(FileServer).Read(ctx, req.(*ReadRequest))
   787  	}
   788  	return interceptor(ctx, in, info, handler)
   789  }
   790  
   791  func _File_Write_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   792  	in := new(WriteRequest)
   793  	if err := dec(in); err != nil {
   794  		return nil, err
   795  	}
   796  	if interceptor == nil {
   797  		return srv.(FileServer).Write(ctx, in)
   798  	}
   799  	info := &grpc.UnaryServerInfo{
   800  		Server:     srv,
   801  		FullMethod: "/go.micro.server.File/Write",
   802  	}
   803  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   804  		return srv.(FileServer).Write(ctx, req.(*WriteRequest))
   805  	}
   806  	return interceptor(ctx, in, info, handler)
   807  }
   808  
   809  func _File_Close_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   810  	in := new(CloseRequest)
   811  	if err := dec(in); err != nil {
   812  		return nil, err
   813  	}
   814  	if interceptor == nil {
   815  		return srv.(FileServer).Close(ctx, in)
   816  	}
   817  	info := &grpc.UnaryServerInfo{
   818  		Server:     srv,
   819  		FullMethod: "/go.micro.server.File/Close",
   820  	}
   821  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   822  		return srv.(FileServer).Close(ctx, req.(*CloseRequest))
   823  	}
   824  	return interceptor(ctx, in, info, handler)
   825  }
   826  
   827  var _File_serviceDesc = grpc.ServiceDesc{
   828  	ServiceName: "go.micro.server.File",
   829  	HandlerType: (*FileServer)(nil),
   830  	Methods: []grpc.MethodDesc{
   831  		{
   832  			MethodName: "Open",
   833  			Handler:    _File_Open_Handler,
   834  		},
   835  		{
   836  			MethodName: "Stat",
   837  			Handler:    _File_Stat_Handler,
   838  		},
   839  		{
   840  			MethodName: "Read",
   841  			Handler:    _File_Read_Handler,
   842  		},
   843  		{
   844  			MethodName: "Write",
   845  			Handler:    _File_Write_Handler,
   846  		},
   847  		{
   848  			MethodName: "Close",
   849  			Handler:    _File_Close_Handler,
   850  		},
   851  	},
   852  	Streams:  []grpc.StreamDesc{},
   853  	Metadata: "util/file/proto/file.proto",
   854  }