git.frostfs.info/TrueCloudLab/frostfs-sdk-go@v0.0.0-20241022124111-5361f0ecebd3/pool/tree/service/service_frostfs.pb.go (about)

     1  // Code generated by protoc-gen-go-frostfs. DO NOT EDIT.
     2  
     3  package tree
     4  
     5  import (
     6  	binary "encoding/binary"
     7  	protowire "google.golang.org/protobuf/encoding/protowire"
     8  )
     9  
    10  import "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/util/proto"
    11  
    12  // StableSize returns the size of x in protobuf format.
    13  //
    14  // Structures with the same field values have the same binary size.
    15  func (x *AddRequest_Body) StableSize() (size int) {
    16  	if x == nil {
    17  		return 0
    18  	}
    19  	size += proto.BytesSize(1, x.ContainerId)
    20  	size += proto.StringSize(2, x.TreeId)
    21  	size += proto.UInt64Size(3, x.ParentId)
    22  	for i := range x.Meta {
    23  		size += proto.NestedStructureSize(4, x.Meta[i])
    24  	}
    25  	size += proto.BytesSize(5, x.BearerToken)
    26  	return size
    27  }
    28  
    29  // StableMarshal marshals x in protobuf binary format with stable field order.
    30  //
    31  // If buffer length is less than x.StableSize(), new buffer is allocated.
    32  //
    33  // Returns any error encountered which did not allow writing the data completely.
    34  // Otherwise, returns the buffer in which the data is written.
    35  //
    36  // Structures with the same field values have the same binary format.
    37  func (x *AddRequest_Body) StableMarshal(buf []byte) []byte {
    38  	if x == nil {
    39  		return []byte{}
    40  	}
    41  	if buf == nil {
    42  		buf = make([]byte, x.StableSize())
    43  	}
    44  	var offset int
    45  	offset += proto.BytesMarshal(1, buf[offset:], x.ContainerId)
    46  	offset += proto.StringMarshal(2, buf[offset:], x.TreeId)
    47  	offset += proto.UInt64Marshal(3, buf[offset:], x.ParentId)
    48  	for i := range x.Meta {
    49  		offset += proto.NestedStructureMarshal(4, buf[offset:], x.Meta[i])
    50  	}
    51  	offset += proto.BytesMarshal(5, buf[offset:], x.BearerToken)
    52  	return buf
    53  }
    54  
    55  // StableSize returns the size of x in protobuf format.
    56  //
    57  // Structures with the same field values have the same binary size.
    58  func (x *AddRequest) StableSize() (size int) {
    59  	if x == nil {
    60  		return 0
    61  	}
    62  	size += proto.NestedStructureSize(1, x.Body)
    63  	size += proto.NestedStructureSize(2, x.Signature)
    64  	return size
    65  }
    66  
    67  // StableMarshal marshals x in protobuf binary format with stable field order.
    68  //
    69  // If buffer length is less than x.StableSize(), new buffer is allocated.
    70  //
    71  // Returns any error encountered which did not allow writing the data completely.
    72  // Otherwise, returns the buffer in which the data is written.
    73  //
    74  // Structures with the same field values have the same binary format.
    75  func (x *AddRequest) StableMarshal(buf []byte) []byte {
    76  	if x == nil {
    77  		return []byte{}
    78  	}
    79  	if buf == nil {
    80  		buf = make([]byte, x.StableSize())
    81  	}
    82  	var offset int
    83  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
    84  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
    85  	return buf
    86  }
    87  
    88  // ReadSignedData fills buf with signed data of x.
    89  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
    90  //
    91  // Returns any error encountered which did not allow writing the data completely.
    92  // Otherwise, returns the buffer in which the data is written.
    93  //
    94  // Structures with the same field values have the same signed data.
    95  func (x *AddRequest) SignedDataSize() int {
    96  	return x.GetBody().StableSize()
    97  }
    98  
    99  // SignedDataSize returns size of the request signed data in bytes.
   100  //
   101  // Structures with the same field values have the same signed data size.
   102  func (x *AddRequest) ReadSignedData(buf []byte) ([]byte, error) {
   103  	return x.GetBody().StableMarshal(buf), nil
   104  }
   105  
   106  func (x *AddRequest) SetSignature(sig *Signature) {
   107  	x.Signature = sig
   108  }
   109  
   110  // StableSize returns the size of x in protobuf format.
   111  //
   112  // Structures with the same field values have the same binary size.
   113  func (x *AddResponse_Body) StableSize() (size int) {
   114  	if x == nil {
   115  		return 0
   116  	}
   117  	size += proto.UInt64Size(1, x.NodeId)
   118  	return size
   119  }
   120  
   121  // StableMarshal marshals x in protobuf binary format with stable field order.
   122  //
   123  // If buffer length is less than x.StableSize(), new buffer is allocated.
   124  //
   125  // Returns any error encountered which did not allow writing the data completely.
   126  // Otherwise, returns the buffer in which the data is written.
   127  //
   128  // Structures with the same field values have the same binary format.
   129  func (x *AddResponse_Body) StableMarshal(buf []byte) []byte {
   130  	if x == nil {
   131  		return []byte{}
   132  	}
   133  	if buf == nil {
   134  		buf = make([]byte, x.StableSize())
   135  	}
   136  	var offset int
   137  	offset += proto.UInt64Marshal(1, buf[offset:], x.NodeId)
   138  	return buf
   139  }
   140  
   141  // StableSize returns the size of x in protobuf format.
   142  //
   143  // Structures with the same field values have the same binary size.
   144  func (x *AddResponse) StableSize() (size int) {
   145  	if x == nil {
   146  		return 0
   147  	}
   148  	size += proto.NestedStructureSize(1, x.Body)
   149  	size += proto.NestedStructureSize(2, x.Signature)
   150  	return size
   151  }
   152  
   153  // StableMarshal marshals x in protobuf binary format with stable field order.
   154  //
   155  // If buffer length is less than x.StableSize(), new buffer is allocated.
   156  //
   157  // Returns any error encountered which did not allow writing the data completely.
   158  // Otherwise, returns the buffer in which the data is written.
   159  //
   160  // Structures with the same field values have the same binary format.
   161  func (x *AddResponse) StableMarshal(buf []byte) []byte {
   162  	if x == nil {
   163  		return []byte{}
   164  	}
   165  	if buf == nil {
   166  		buf = make([]byte, x.StableSize())
   167  	}
   168  	var offset int
   169  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
   170  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
   171  	return buf
   172  }
   173  
   174  // ReadSignedData fills buf with signed data of x.
   175  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
   176  //
   177  // Returns any error encountered which did not allow writing the data completely.
   178  // Otherwise, returns the buffer in which the data is written.
   179  //
   180  // Structures with the same field values have the same signed data.
   181  func (x *AddResponse) SignedDataSize() int {
   182  	return x.GetBody().StableSize()
   183  }
   184  
   185  // SignedDataSize returns size of the request signed data in bytes.
   186  //
   187  // Structures with the same field values have the same signed data size.
   188  func (x *AddResponse) ReadSignedData(buf []byte) ([]byte, error) {
   189  	return x.GetBody().StableMarshal(buf), nil
   190  }
   191  
   192  func (x *AddResponse) SetSignature(sig *Signature) {
   193  	x.Signature = sig
   194  }
   195  
   196  // StableSize returns the size of x in protobuf format.
   197  //
   198  // Structures with the same field values have the same binary size.
   199  func (x *AddByPathRequest_Body) StableSize() (size int) {
   200  	if x == nil {
   201  		return 0
   202  	}
   203  	size += proto.BytesSize(1, x.ContainerId)
   204  	size += proto.StringSize(2, x.TreeId)
   205  	size += proto.StringSize(3, x.PathAttribute)
   206  	size += proto.RepeatedStringSize(4, x.Path)
   207  	for i := range x.Meta {
   208  		size += proto.NestedStructureSize(5, x.Meta[i])
   209  	}
   210  	size += proto.BytesSize(6, x.BearerToken)
   211  	return size
   212  }
   213  
   214  // StableMarshal marshals x in protobuf binary format with stable field order.
   215  //
   216  // If buffer length is less than x.StableSize(), new buffer is allocated.
   217  //
   218  // Returns any error encountered which did not allow writing the data completely.
   219  // Otherwise, returns the buffer in which the data is written.
   220  //
   221  // Structures with the same field values have the same binary format.
   222  func (x *AddByPathRequest_Body) StableMarshal(buf []byte) []byte {
   223  	if x == nil {
   224  		return []byte{}
   225  	}
   226  	if buf == nil {
   227  		buf = make([]byte, x.StableSize())
   228  	}
   229  	var offset int
   230  	offset += proto.BytesMarshal(1, buf[offset:], x.ContainerId)
   231  	offset += proto.StringMarshal(2, buf[offset:], x.TreeId)
   232  	offset += proto.StringMarshal(3, buf[offset:], x.PathAttribute)
   233  	offset += proto.RepeatedStringMarshal(4, buf[offset:], x.Path)
   234  	for i := range x.Meta {
   235  		offset += proto.NestedStructureMarshal(5, buf[offset:], x.Meta[i])
   236  	}
   237  	offset += proto.BytesMarshal(6, buf[offset:], x.BearerToken)
   238  	return buf
   239  }
   240  
   241  // StableSize returns the size of x in protobuf format.
   242  //
   243  // Structures with the same field values have the same binary size.
   244  func (x *AddByPathRequest) StableSize() (size int) {
   245  	if x == nil {
   246  		return 0
   247  	}
   248  	size += proto.NestedStructureSize(1, x.Body)
   249  	size += proto.NestedStructureSize(2, x.Signature)
   250  	return size
   251  }
   252  
   253  // StableMarshal marshals x in protobuf binary format with stable field order.
   254  //
   255  // If buffer length is less than x.StableSize(), new buffer is allocated.
   256  //
   257  // Returns any error encountered which did not allow writing the data completely.
   258  // Otherwise, returns the buffer in which the data is written.
   259  //
   260  // Structures with the same field values have the same binary format.
   261  func (x *AddByPathRequest) StableMarshal(buf []byte) []byte {
   262  	if x == nil {
   263  		return []byte{}
   264  	}
   265  	if buf == nil {
   266  		buf = make([]byte, x.StableSize())
   267  	}
   268  	var offset int
   269  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
   270  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
   271  	return buf
   272  }
   273  
   274  // ReadSignedData fills buf with signed data of x.
   275  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
   276  //
   277  // Returns any error encountered which did not allow writing the data completely.
   278  // Otherwise, returns the buffer in which the data is written.
   279  //
   280  // Structures with the same field values have the same signed data.
   281  func (x *AddByPathRequest) SignedDataSize() int {
   282  	return x.GetBody().StableSize()
   283  }
   284  
   285  // SignedDataSize returns size of the request signed data in bytes.
   286  //
   287  // Structures with the same field values have the same signed data size.
   288  func (x *AddByPathRequest) ReadSignedData(buf []byte) ([]byte, error) {
   289  	return x.GetBody().StableMarshal(buf), nil
   290  }
   291  
   292  func (x *AddByPathRequest) SetSignature(sig *Signature) {
   293  	x.Signature = sig
   294  }
   295  
   296  // StableSize returns the size of x in protobuf format.
   297  //
   298  // Structures with the same field values have the same binary size.
   299  func (x *AddByPathResponse_Body) StableSize() (size int) {
   300  	if x == nil {
   301  		return 0
   302  	}
   303  	var n int
   304  	n, _ = proto.RepeatedUInt64Size(1, x.Nodes)
   305  	size += n
   306  	size += proto.UInt64Size(2, x.ParentId)
   307  	return size
   308  }
   309  
   310  // StableMarshal marshals x in protobuf binary format with stable field order.
   311  //
   312  // If buffer length is less than x.StableSize(), new buffer is allocated.
   313  //
   314  // Returns any error encountered which did not allow writing the data completely.
   315  // Otherwise, returns the buffer in which the data is written.
   316  //
   317  // Structures with the same field values have the same binary format.
   318  func (x *AddByPathResponse_Body) StableMarshal(buf []byte) []byte {
   319  	if x == nil {
   320  		return []byte{}
   321  	}
   322  	if buf == nil {
   323  		buf = make([]byte, x.StableSize())
   324  	}
   325  	var offset int
   326  	offset += proto.RepeatedUInt64Marshal(1, buf[offset:], x.Nodes)
   327  	offset += proto.UInt64Marshal(2, buf[offset:], x.ParentId)
   328  	return buf
   329  }
   330  
   331  // StableSize returns the size of x in protobuf format.
   332  //
   333  // Structures with the same field values have the same binary size.
   334  func (x *AddByPathResponse) StableSize() (size int) {
   335  	if x == nil {
   336  		return 0
   337  	}
   338  	size += proto.NestedStructureSize(1, x.Body)
   339  	size += proto.NestedStructureSize(2, x.Signature)
   340  	return size
   341  }
   342  
   343  // StableMarshal marshals x in protobuf binary format with stable field order.
   344  //
   345  // If buffer length is less than x.StableSize(), new buffer is allocated.
   346  //
   347  // Returns any error encountered which did not allow writing the data completely.
   348  // Otherwise, returns the buffer in which the data is written.
   349  //
   350  // Structures with the same field values have the same binary format.
   351  func (x *AddByPathResponse) StableMarshal(buf []byte) []byte {
   352  	if x == nil {
   353  		return []byte{}
   354  	}
   355  	if buf == nil {
   356  		buf = make([]byte, x.StableSize())
   357  	}
   358  	var offset int
   359  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
   360  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
   361  	return buf
   362  }
   363  
   364  // ReadSignedData fills buf with signed data of x.
   365  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
   366  //
   367  // Returns any error encountered which did not allow writing the data completely.
   368  // Otherwise, returns the buffer in which the data is written.
   369  //
   370  // Structures with the same field values have the same signed data.
   371  func (x *AddByPathResponse) SignedDataSize() int {
   372  	return x.GetBody().StableSize()
   373  }
   374  
   375  // SignedDataSize returns size of the request signed data in bytes.
   376  //
   377  // Structures with the same field values have the same signed data size.
   378  func (x *AddByPathResponse) ReadSignedData(buf []byte) ([]byte, error) {
   379  	return x.GetBody().StableMarshal(buf), nil
   380  }
   381  
   382  func (x *AddByPathResponse) SetSignature(sig *Signature) {
   383  	x.Signature = sig
   384  }
   385  
   386  // StableSize returns the size of x in protobuf format.
   387  //
   388  // Structures with the same field values have the same binary size.
   389  func (x *RemoveRequest_Body) StableSize() (size int) {
   390  	if x == nil {
   391  		return 0
   392  	}
   393  	size += proto.BytesSize(1, x.ContainerId)
   394  	size += proto.StringSize(2, x.TreeId)
   395  	size += proto.UInt64Size(3, x.NodeId)
   396  	size += proto.BytesSize(4, x.BearerToken)
   397  	return size
   398  }
   399  
   400  // StableMarshal marshals x in protobuf binary format with stable field order.
   401  //
   402  // If buffer length is less than x.StableSize(), new buffer is allocated.
   403  //
   404  // Returns any error encountered which did not allow writing the data completely.
   405  // Otherwise, returns the buffer in which the data is written.
   406  //
   407  // Structures with the same field values have the same binary format.
   408  func (x *RemoveRequest_Body) StableMarshal(buf []byte) []byte {
   409  	if x == nil {
   410  		return []byte{}
   411  	}
   412  	if buf == nil {
   413  		buf = make([]byte, x.StableSize())
   414  	}
   415  	var offset int
   416  	offset += proto.BytesMarshal(1, buf[offset:], x.ContainerId)
   417  	offset += proto.StringMarshal(2, buf[offset:], x.TreeId)
   418  	offset += proto.UInt64Marshal(3, buf[offset:], x.NodeId)
   419  	offset += proto.BytesMarshal(4, buf[offset:], x.BearerToken)
   420  	return buf
   421  }
   422  
   423  // StableSize returns the size of x in protobuf format.
   424  //
   425  // Structures with the same field values have the same binary size.
   426  func (x *RemoveRequest) StableSize() (size int) {
   427  	if x == nil {
   428  		return 0
   429  	}
   430  	size += proto.NestedStructureSize(1, x.Body)
   431  	size += proto.NestedStructureSize(2, x.Signature)
   432  	return size
   433  }
   434  
   435  // StableMarshal marshals x in protobuf binary format with stable field order.
   436  //
   437  // If buffer length is less than x.StableSize(), new buffer is allocated.
   438  //
   439  // Returns any error encountered which did not allow writing the data completely.
   440  // Otherwise, returns the buffer in which the data is written.
   441  //
   442  // Structures with the same field values have the same binary format.
   443  func (x *RemoveRequest) StableMarshal(buf []byte) []byte {
   444  	if x == nil {
   445  		return []byte{}
   446  	}
   447  	if buf == nil {
   448  		buf = make([]byte, x.StableSize())
   449  	}
   450  	var offset int
   451  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
   452  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
   453  	return buf
   454  }
   455  
   456  // ReadSignedData fills buf with signed data of x.
   457  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
   458  //
   459  // Returns any error encountered which did not allow writing the data completely.
   460  // Otherwise, returns the buffer in which the data is written.
   461  //
   462  // Structures with the same field values have the same signed data.
   463  func (x *RemoveRequest) SignedDataSize() int {
   464  	return x.GetBody().StableSize()
   465  }
   466  
   467  // SignedDataSize returns size of the request signed data in bytes.
   468  //
   469  // Structures with the same field values have the same signed data size.
   470  func (x *RemoveRequest) ReadSignedData(buf []byte) ([]byte, error) {
   471  	return x.GetBody().StableMarshal(buf), nil
   472  }
   473  
   474  func (x *RemoveRequest) SetSignature(sig *Signature) {
   475  	x.Signature = sig
   476  }
   477  
   478  // StableSize returns the size of x in protobuf format.
   479  //
   480  // Structures with the same field values have the same binary size.
   481  func (x *RemoveResponse_Body) StableSize() (size int) {
   482  	if x == nil {
   483  		return 0
   484  	}
   485  	return size
   486  }
   487  
   488  // StableMarshal marshals x in protobuf binary format with stable field order.
   489  //
   490  // If buffer length is less than x.StableSize(), new buffer is allocated.
   491  //
   492  // Returns any error encountered which did not allow writing the data completely.
   493  // Otherwise, returns the buffer in which the data is written.
   494  //
   495  // Structures with the same field values have the same binary format.
   496  func (x *RemoveResponse_Body) StableMarshal(buf []byte) []byte {
   497  	return buf
   498  }
   499  
   500  // StableSize returns the size of x in protobuf format.
   501  //
   502  // Structures with the same field values have the same binary size.
   503  func (x *RemoveResponse) StableSize() (size int) {
   504  	if x == nil {
   505  		return 0
   506  	}
   507  	size += proto.NestedStructureSize(1, x.Body)
   508  	size += proto.NestedStructureSize(2, x.Signature)
   509  	return size
   510  }
   511  
   512  // StableMarshal marshals x in protobuf binary format with stable field order.
   513  //
   514  // If buffer length is less than x.StableSize(), new buffer is allocated.
   515  //
   516  // Returns any error encountered which did not allow writing the data completely.
   517  // Otherwise, returns the buffer in which the data is written.
   518  //
   519  // Structures with the same field values have the same binary format.
   520  func (x *RemoveResponse) StableMarshal(buf []byte) []byte {
   521  	if x == nil {
   522  		return []byte{}
   523  	}
   524  	if buf == nil {
   525  		buf = make([]byte, x.StableSize())
   526  	}
   527  	var offset int
   528  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
   529  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
   530  	return buf
   531  }
   532  
   533  // ReadSignedData fills buf with signed data of x.
   534  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
   535  //
   536  // Returns any error encountered which did not allow writing the data completely.
   537  // Otherwise, returns the buffer in which the data is written.
   538  //
   539  // Structures with the same field values have the same signed data.
   540  func (x *RemoveResponse) SignedDataSize() int {
   541  	return x.GetBody().StableSize()
   542  }
   543  
   544  // SignedDataSize returns size of the request signed data in bytes.
   545  //
   546  // Structures with the same field values have the same signed data size.
   547  func (x *RemoveResponse) ReadSignedData(buf []byte) ([]byte, error) {
   548  	return x.GetBody().StableMarshal(buf), nil
   549  }
   550  
   551  func (x *RemoveResponse) SetSignature(sig *Signature) {
   552  	x.Signature = sig
   553  }
   554  
   555  // StableSize returns the size of x in protobuf format.
   556  //
   557  // Structures with the same field values have the same binary size.
   558  func (x *MoveRequest_Body) StableSize() (size int) {
   559  	if x == nil {
   560  		return 0
   561  	}
   562  	size += proto.BytesSize(1, x.ContainerId)
   563  	size += proto.StringSize(2, x.TreeId)
   564  	size += proto.UInt64Size(3, x.ParentId)
   565  	size += proto.UInt64Size(4, x.NodeId)
   566  	for i := range x.Meta {
   567  		size += proto.NestedStructureSize(5, x.Meta[i])
   568  	}
   569  	size += proto.BytesSize(6, x.BearerToken)
   570  	return size
   571  }
   572  
   573  // StableMarshal marshals x in protobuf binary format with stable field order.
   574  //
   575  // If buffer length is less than x.StableSize(), new buffer is allocated.
   576  //
   577  // Returns any error encountered which did not allow writing the data completely.
   578  // Otherwise, returns the buffer in which the data is written.
   579  //
   580  // Structures with the same field values have the same binary format.
   581  func (x *MoveRequest_Body) StableMarshal(buf []byte) []byte {
   582  	if x == nil {
   583  		return []byte{}
   584  	}
   585  	if buf == nil {
   586  		buf = make([]byte, x.StableSize())
   587  	}
   588  	var offset int
   589  	offset += proto.BytesMarshal(1, buf[offset:], x.ContainerId)
   590  	offset += proto.StringMarshal(2, buf[offset:], x.TreeId)
   591  	offset += proto.UInt64Marshal(3, buf[offset:], x.ParentId)
   592  	offset += proto.UInt64Marshal(4, buf[offset:], x.NodeId)
   593  	for i := range x.Meta {
   594  		offset += proto.NestedStructureMarshal(5, buf[offset:], x.Meta[i])
   595  	}
   596  	offset += proto.BytesMarshal(6, buf[offset:], x.BearerToken)
   597  	return buf
   598  }
   599  
   600  // StableSize returns the size of x in protobuf format.
   601  //
   602  // Structures with the same field values have the same binary size.
   603  func (x *MoveRequest) StableSize() (size int) {
   604  	if x == nil {
   605  		return 0
   606  	}
   607  	size += proto.NestedStructureSize(1, x.Body)
   608  	size += proto.NestedStructureSize(2, x.Signature)
   609  	return size
   610  }
   611  
   612  // StableMarshal marshals x in protobuf binary format with stable field order.
   613  //
   614  // If buffer length is less than x.StableSize(), new buffer is allocated.
   615  //
   616  // Returns any error encountered which did not allow writing the data completely.
   617  // Otherwise, returns the buffer in which the data is written.
   618  //
   619  // Structures with the same field values have the same binary format.
   620  func (x *MoveRequest) StableMarshal(buf []byte) []byte {
   621  	if x == nil {
   622  		return []byte{}
   623  	}
   624  	if buf == nil {
   625  		buf = make([]byte, x.StableSize())
   626  	}
   627  	var offset int
   628  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
   629  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
   630  	return buf
   631  }
   632  
   633  // ReadSignedData fills buf with signed data of x.
   634  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
   635  //
   636  // Returns any error encountered which did not allow writing the data completely.
   637  // Otherwise, returns the buffer in which the data is written.
   638  //
   639  // Structures with the same field values have the same signed data.
   640  func (x *MoveRequest) SignedDataSize() int {
   641  	return x.GetBody().StableSize()
   642  }
   643  
   644  // SignedDataSize returns size of the request signed data in bytes.
   645  //
   646  // Structures with the same field values have the same signed data size.
   647  func (x *MoveRequest) ReadSignedData(buf []byte) ([]byte, error) {
   648  	return x.GetBody().StableMarshal(buf), nil
   649  }
   650  
   651  func (x *MoveRequest) SetSignature(sig *Signature) {
   652  	x.Signature = sig
   653  }
   654  
   655  // StableSize returns the size of x in protobuf format.
   656  //
   657  // Structures with the same field values have the same binary size.
   658  func (x *MoveResponse_Body) StableSize() (size int) {
   659  	if x == nil {
   660  		return 0
   661  	}
   662  	return size
   663  }
   664  
   665  // StableMarshal marshals x in protobuf binary format with stable field order.
   666  //
   667  // If buffer length is less than x.StableSize(), new buffer is allocated.
   668  //
   669  // Returns any error encountered which did not allow writing the data completely.
   670  // Otherwise, returns the buffer in which the data is written.
   671  //
   672  // Structures with the same field values have the same binary format.
   673  func (x *MoveResponse_Body) StableMarshal(buf []byte) []byte {
   674  	return buf
   675  }
   676  
   677  // StableSize returns the size of x in protobuf format.
   678  //
   679  // Structures with the same field values have the same binary size.
   680  func (x *MoveResponse) StableSize() (size int) {
   681  	if x == nil {
   682  		return 0
   683  	}
   684  	size += proto.NestedStructureSize(1, x.Body)
   685  	size += proto.NestedStructureSize(2, x.Signature)
   686  	return size
   687  }
   688  
   689  // StableMarshal marshals x in protobuf binary format with stable field order.
   690  //
   691  // If buffer length is less than x.StableSize(), new buffer is allocated.
   692  //
   693  // Returns any error encountered which did not allow writing the data completely.
   694  // Otherwise, returns the buffer in which the data is written.
   695  //
   696  // Structures with the same field values have the same binary format.
   697  func (x *MoveResponse) StableMarshal(buf []byte) []byte {
   698  	if x == nil {
   699  		return []byte{}
   700  	}
   701  	if buf == nil {
   702  		buf = make([]byte, x.StableSize())
   703  	}
   704  	var offset int
   705  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
   706  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
   707  	return buf
   708  }
   709  
   710  // ReadSignedData fills buf with signed data of x.
   711  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
   712  //
   713  // Returns any error encountered which did not allow writing the data completely.
   714  // Otherwise, returns the buffer in which the data is written.
   715  //
   716  // Structures with the same field values have the same signed data.
   717  func (x *MoveResponse) SignedDataSize() int {
   718  	return x.GetBody().StableSize()
   719  }
   720  
   721  // SignedDataSize returns size of the request signed data in bytes.
   722  //
   723  // Structures with the same field values have the same signed data size.
   724  func (x *MoveResponse) ReadSignedData(buf []byte) ([]byte, error) {
   725  	return x.GetBody().StableMarshal(buf), nil
   726  }
   727  
   728  func (x *MoveResponse) SetSignature(sig *Signature) {
   729  	x.Signature = sig
   730  }
   731  
   732  // StableSize returns the size of x in protobuf format.
   733  //
   734  // Structures with the same field values have the same binary size.
   735  func (x *GetNodeByPathRequest_Body) StableSize() (size int) {
   736  	if x == nil {
   737  		return 0
   738  	}
   739  	size += proto.BytesSize(1, x.ContainerId)
   740  	size += proto.StringSize(2, x.TreeId)
   741  	size += proto.StringSize(3, x.PathAttribute)
   742  	size += proto.RepeatedStringSize(4, x.Path)
   743  	size += proto.RepeatedStringSize(5, x.Attributes)
   744  	size += proto.BoolSize(6, x.LatestOnly)
   745  	size += proto.BoolSize(7, x.AllAttributes)
   746  	size += proto.BytesSize(8, x.BearerToken)
   747  	return size
   748  }
   749  
   750  // StableMarshal marshals x in protobuf binary format with stable field order.
   751  //
   752  // If buffer length is less than x.StableSize(), new buffer is allocated.
   753  //
   754  // Returns any error encountered which did not allow writing the data completely.
   755  // Otherwise, returns the buffer in which the data is written.
   756  //
   757  // Structures with the same field values have the same binary format.
   758  func (x *GetNodeByPathRequest_Body) StableMarshal(buf []byte) []byte {
   759  	if x == nil {
   760  		return []byte{}
   761  	}
   762  	if buf == nil {
   763  		buf = make([]byte, x.StableSize())
   764  	}
   765  	var offset int
   766  	offset += proto.BytesMarshal(1, buf[offset:], x.ContainerId)
   767  	offset += proto.StringMarshal(2, buf[offset:], x.TreeId)
   768  	offset += proto.StringMarshal(3, buf[offset:], x.PathAttribute)
   769  	offset += proto.RepeatedStringMarshal(4, buf[offset:], x.Path)
   770  	offset += proto.RepeatedStringMarshal(5, buf[offset:], x.Attributes)
   771  	offset += proto.BoolMarshal(6, buf[offset:], x.LatestOnly)
   772  	offset += proto.BoolMarshal(7, buf[offset:], x.AllAttributes)
   773  	offset += proto.BytesMarshal(8, buf[offset:], x.BearerToken)
   774  	return buf
   775  }
   776  
   777  // StableSize returns the size of x in protobuf format.
   778  //
   779  // Structures with the same field values have the same binary size.
   780  func (x *GetNodeByPathRequest) StableSize() (size int) {
   781  	if x == nil {
   782  		return 0
   783  	}
   784  	size += proto.NestedStructureSize(1, x.Body)
   785  	size += proto.NestedStructureSize(2, x.Signature)
   786  	return size
   787  }
   788  
   789  // StableMarshal marshals x in protobuf binary format with stable field order.
   790  //
   791  // If buffer length is less than x.StableSize(), new buffer is allocated.
   792  //
   793  // Returns any error encountered which did not allow writing the data completely.
   794  // Otherwise, returns the buffer in which the data is written.
   795  //
   796  // Structures with the same field values have the same binary format.
   797  func (x *GetNodeByPathRequest) StableMarshal(buf []byte) []byte {
   798  	if x == nil {
   799  		return []byte{}
   800  	}
   801  	if buf == nil {
   802  		buf = make([]byte, x.StableSize())
   803  	}
   804  	var offset int
   805  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
   806  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
   807  	return buf
   808  }
   809  
   810  // ReadSignedData fills buf with signed data of x.
   811  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
   812  //
   813  // Returns any error encountered which did not allow writing the data completely.
   814  // Otherwise, returns the buffer in which the data is written.
   815  //
   816  // Structures with the same field values have the same signed data.
   817  func (x *GetNodeByPathRequest) SignedDataSize() int {
   818  	return x.GetBody().StableSize()
   819  }
   820  
   821  // SignedDataSize returns size of the request signed data in bytes.
   822  //
   823  // Structures with the same field values have the same signed data size.
   824  func (x *GetNodeByPathRequest) ReadSignedData(buf []byte) ([]byte, error) {
   825  	return x.GetBody().StableMarshal(buf), nil
   826  }
   827  
   828  func (x *GetNodeByPathRequest) SetSignature(sig *Signature) {
   829  	x.Signature = sig
   830  }
   831  
   832  // StableSize returns the size of x in protobuf format.
   833  //
   834  // Structures with the same field values have the same binary size.
   835  func (x *GetNodeByPathResponse_Info) StableSize() (size int) {
   836  	if x == nil {
   837  		return 0
   838  	}
   839  	size += proto.UInt64Size(1, x.NodeId)
   840  	size += proto.UInt64Size(2, x.Timestamp)
   841  	for i := range x.Meta {
   842  		size += proto.NestedStructureSize(3, x.Meta[i])
   843  	}
   844  	size += proto.UInt64Size(4, x.ParentId)
   845  	return size
   846  }
   847  
   848  // StableMarshal marshals x in protobuf binary format with stable field order.
   849  //
   850  // If buffer length is less than x.StableSize(), new buffer is allocated.
   851  //
   852  // Returns any error encountered which did not allow writing the data completely.
   853  // Otherwise, returns the buffer in which the data is written.
   854  //
   855  // Structures with the same field values have the same binary format.
   856  func (x *GetNodeByPathResponse_Info) StableMarshal(buf []byte) []byte {
   857  	if x == nil {
   858  		return []byte{}
   859  	}
   860  	if buf == nil {
   861  		buf = make([]byte, x.StableSize())
   862  	}
   863  	var offset int
   864  	offset += proto.UInt64Marshal(1, buf[offset:], x.NodeId)
   865  	offset += proto.UInt64Marshal(2, buf[offset:], x.Timestamp)
   866  	for i := range x.Meta {
   867  		offset += proto.NestedStructureMarshal(3, buf[offset:], x.Meta[i])
   868  	}
   869  	offset += proto.UInt64Marshal(4, buf[offset:], x.ParentId)
   870  	return buf
   871  }
   872  
   873  // StableSize returns the size of x in protobuf format.
   874  //
   875  // Structures with the same field values have the same binary size.
   876  func (x *GetNodeByPathResponse_Body) StableSize() (size int) {
   877  	if x == nil {
   878  		return 0
   879  	}
   880  	for i := range x.Nodes {
   881  		size += proto.NestedStructureSize(1, x.Nodes[i])
   882  	}
   883  	return size
   884  }
   885  
   886  // StableMarshal marshals x in protobuf binary format with stable field order.
   887  //
   888  // If buffer length is less than x.StableSize(), new buffer is allocated.
   889  //
   890  // Returns any error encountered which did not allow writing the data completely.
   891  // Otherwise, returns the buffer in which the data is written.
   892  //
   893  // Structures with the same field values have the same binary format.
   894  func (x *GetNodeByPathResponse_Body) StableMarshal(buf []byte) []byte {
   895  	if x == nil {
   896  		return []byte{}
   897  	}
   898  	if buf == nil {
   899  		buf = make([]byte, x.StableSize())
   900  	}
   901  	var offset int
   902  	for i := range x.Nodes {
   903  		offset += proto.NestedStructureMarshal(1, buf[offset:], x.Nodes[i])
   904  	}
   905  	return buf
   906  }
   907  
   908  // StableSize returns the size of x in protobuf format.
   909  //
   910  // Structures with the same field values have the same binary size.
   911  func (x *GetNodeByPathResponse) StableSize() (size int) {
   912  	if x == nil {
   913  		return 0
   914  	}
   915  	size += proto.NestedStructureSize(1, x.Body)
   916  	size += proto.NestedStructureSize(2, x.Signature)
   917  	return size
   918  }
   919  
   920  // StableMarshal marshals x in protobuf binary format with stable field order.
   921  //
   922  // If buffer length is less than x.StableSize(), new buffer is allocated.
   923  //
   924  // Returns any error encountered which did not allow writing the data completely.
   925  // Otherwise, returns the buffer in which the data is written.
   926  //
   927  // Structures with the same field values have the same binary format.
   928  func (x *GetNodeByPathResponse) StableMarshal(buf []byte) []byte {
   929  	if x == nil {
   930  		return []byte{}
   931  	}
   932  	if buf == nil {
   933  		buf = make([]byte, x.StableSize())
   934  	}
   935  	var offset int
   936  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
   937  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
   938  	return buf
   939  }
   940  
   941  // ReadSignedData fills buf with signed data of x.
   942  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
   943  //
   944  // Returns any error encountered which did not allow writing the data completely.
   945  // Otherwise, returns the buffer in which the data is written.
   946  //
   947  // Structures with the same field values have the same signed data.
   948  func (x *GetNodeByPathResponse) SignedDataSize() int {
   949  	return x.GetBody().StableSize()
   950  }
   951  
   952  // SignedDataSize returns size of the request signed data in bytes.
   953  //
   954  // Structures with the same field values have the same signed data size.
   955  func (x *GetNodeByPathResponse) ReadSignedData(buf []byte) ([]byte, error) {
   956  	return x.GetBody().StableMarshal(buf), nil
   957  }
   958  
   959  func (x *GetNodeByPathResponse) SetSignature(sig *Signature) {
   960  	x.Signature = sig
   961  }
   962  
   963  // StableSize returns the size of x in protobuf format.
   964  //
   965  // Structures with the same field values have the same binary size.
   966  func (x *GetSubTreeRequest_Body_Order) StableSize() (size int) {
   967  	if x == nil {
   968  		return 0
   969  	}
   970  	size += proto.EnumSize(1, int32(x.Direction))
   971  	return size
   972  }
   973  
   974  // StableMarshal marshals x in protobuf binary format with stable field order.
   975  //
   976  // If buffer length is less than x.StableSize(), new buffer is allocated.
   977  //
   978  // Returns any error encountered which did not allow writing the data completely.
   979  // Otherwise, returns the buffer in which the data is written.
   980  //
   981  // Structures with the same field values have the same binary format.
   982  func (x *GetSubTreeRequest_Body_Order) StableMarshal(buf []byte) []byte {
   983  	if x == nil {
   984  		return []byte{}
   985  	}
   986  	if buf == nil {
   987  		buf = make([]byte, x.StableSize())
   988  	}
   989  	var offset int
   990  	offset += proto.EnumMarshal(1, buf[offset:], int32(x.Direction))
   991  	return buf
   992  }
   993  
   994  // StableSize returns the size of x in protobuf format.
   995  //
   996  // Structures with the same field values have the same binary size.
   997  func (x *GetSubTreeRequest_Body) StableSize() (size int) {
   998  	if x == nil {
   999  		return 0
  1000  	}
  1001  	size += proto.BytesSize(1, x.ContainerId)
  1002  	size += proto.StringSize(2, x.TreeId)
  1003  	for i := range x.RootId {
  1004  		size += protowire.SizeGroup(protowire.Number(3), protowire.SizeVarint(x.RootId[i]))
  1005  	}
  1006  	size += proto.UInt32Size(4, x.Depth)
  1007  	size += proto.BytesSize(5, x.BearerToken)
  1008  	size += proto.NestedStructureSize(6, x.OrderBy)
  1009  	return size
  1010  }
  1011  
  1012  // StableMarshal marshals x in protobuf binary format with stable field order.
  1013  //
  1014  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1015  //
  1016  // Returns any error encountered which did not allow writing the data completely.
  1017  // Otherwise, returns the buffer in which the data is written.
  1018  //
  1019  // Structures with the same field values have the same binary format.
  1020  func (x *GetSubTreeRequest_Body) StableMarshal(buf []byte) []byte {
  1021  	if x == nil {
  1022  		return []byte{}
  1023  	}
  1024  	if buf == nil {
  1025  		buf = make([]byte, x.StableSize())
  1026  	}
  1027  	var offset int
  1028  	offset += proto.BytesMarshal(1, buf[offset:], x.ContainerId)
  1029  	offset += proto.StringMarshal(2, buf[offset:], x.TreeId)
  1030  	for i := range x.RootId {
  1031  		{
  1032  			prefix := protowire.EncodeTag(protowire.Number(3), protowire.VarintType)
  1033  			offset += binary.PutUvarint(buf[offset:], uint64(prefix))
  1034  			offset += binary.PutUvarint(buf[offset:], x.RootId[i])
  1035  		}
  1036  	}
  1037  	offset += proto.UInt32Marshal(4, buf[offset:], x.Depth)
  1038  	offset += proto.BytesMarshal(5, buf[offset:], x.BearerToken)
  1039  	offset += proto.NestedStructureMarshal(6, buf[offset:], x.OrderBy)
  1040  	return buf
  1041  }
  1042  
  1043  // StableSize returns the size of x in protobuf format.
  1044  //
  1045  // Structures with the same field values have the same binary size.
  1046  func (x *GetSubTreeRequest) StableSize() (size int) {
  1047  	if x == nil {
  1048  		return 0
  1049  	}
  1050  	size += proto.NestedStructureSize(1, x.Body)
  1051  	size += proto.NestedStructureSize(2, x.Signature)
  1052  	return size
  1053  }
  1054  
  1055  // StableMarshal marshals x in protobuf binary format with stable field order.
  1056  //
  1057  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1058  //
  1059  // Returns any error encountered which did not allow writing the data completely.
  1060  // Otherwise, returns the buffer in which the data is written.
  1061  //
  1062  // Structures with the same field values have the same binary format.
  1063  func (x *GetSubTreeRequest) StableMarshal(buf []byte) []byte {
  1064  	if x == nil {
  1065  		return []byte{}
  1066  	}
  1067  	if buf == nil {
  1068  		buf = make([]byte, x.StableSize())
  1069  	}
  1070  	var offset int
  1071  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
  1072  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
  1073  	return buf
  1074  }
  1075  
  1076  // ReadSignedData fills buf with signed data of x.
  1077  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
  1078  //
  1079  // Returns any error encountered which did not allow writing the data completely.
  1080  // Otherwise, returns the buffer in which the data is written.
  1081  //
  1082  // Structures with the same field values have the same signed data.
  1083  func (x *GetSubTreeRequest) SignedDataSize() int {
  1084  	return x.GetBody().StableSize()
  1085  }
  1086  
  1087  // SignedDataSize returns size of the request signed data in bytes.
  1088  //
  1089  // Structures with the same field values have the same signed data size.
  1090  func (x *GetSubTreeRequest) ReadSignedData(buf []byte) ([]byte, error) {
  1091  	return x.GetBody().StableMarshal(buf), nil
  1092  }
  1093  
  1094  func (x *GetSubTreeRequest) SetSignature(sig *Signature) {
  1095  	x.Signature = sig
  1096  }
  1097  
  1098  // StableSize returns the size of x in protobuf format.
  1099  //
  1100  // Structures with the same field values have the same binary size.
  1101  func (x *GetSubTreeResponse_Body) StableSize() (size int) {
  1102  	if x == nil {
  1103  		return 0
  1104  	}
  1105  	for i := range x.NodeId {
  1106  		size += protowire.SizeGroup(protowire.Number(1), protowire.SizeVarint(x.NodeId[i]))
  1107  	}
  1108  	for i := range x.ParentId {
  1109  		size += protowire.SizeGroup(protowire.Number(2), protowire.SizeVarint(x.ParentId[i]))
  1110  	}
  1111  	for i := range x.Timestamp {
  1112  		size += protowire.SizeGroup(protowire.Number(3), protowire.SizeVarint(x.Timestamp[i]))
  1113  	}
  1114  	for i := range x.Meta {
  1115  		size += proto.NestedStructureSize(4, x.Meta[i])
  1116  	}
  1117  	return size
  1118  }
  1119  
  1120  // StableMarshal marshals x in protobuf binary format with stable field order.
  1121  //
  1122  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1123  //
  1124  // Returns any error encountered which did not allow writing the data completely.
  1125  // Otherwise, returns the buffer in which the data is written.
  1126  //
  1127  // Structures with the same field values have the same binary format.
  1128  func (x *GetSubTreeResponse_Body) StableMarshal(buf []byte) []byte {
  1129  	if x == nil {
  1130  		return []byte{}
  1131  	}
  1132  	if buf == nil {
  1133  		buf = make([]byte, x.StableSize())
  1134  	}
  1135  	var offset int
  1136  	for i := range x.NodeId {
  1137  		{
  1138  			prefix := protowire.EncodeTag(protowire.Number(1), protowire.VarintType)
  1139  			offset += binary.PutUvarint(buf[offset:], uint64(prefix))
  1140  			offset += binary.PutUvarint(buf[offset:], x.NodeId[i])
  1141  		}
  1142  	}
  1143  	for i := range x.ParentId {
  1144  		{
  1145  			prefix := protowire.EncodeTag(protowire.Number(2), protowire.VarintType)
  1146  			offset += binary.PutUvarint(buf[offset:], uint64(prefix))
  1147  			offset += binary.PutUvarint(buf[offset:], x.ParentId[i])
  1148  		}
  1149  	}
  1150  	for i := range x.Timestamp {
  1151  		{
  1152  			prefix := protowire.EncodeTag(protowire.Number(3), protowire.VarintType)
  1153  			offset += binary.PutUvarint(buf[offset:], uint64(prefix))
  1154  			offset += binary.PutUvarint(buf[offset:], x.Timestamp[i])
  1155  		}
  1156  	}
  1157  	for i := range x.Meta {
  1158  		offset += proto.NestedStructureMarshal(4, buf[offset:], x.Meta[i])
  1159  	}
  1160  	return buf
  1161  }
  1162  
  1163  // StableSize returns the size of x in protobuf format.
  1164  //
  1165  // Structures with the same field values have the same binary size.
  1166  func (x *GetSubTreeResponse) StableSize() (size int) {
  1167  	if x == nil {
  1168  		return 0
  1169  	}
  1170  	size += proto.NestedStructureSize(1, x.Body)
  1171  	size += proto.NestedStructureSize(2, x.Signature)
  1172  	return size
  1173  }
  1174  
  1175  // StableMarshal marshals x in protobuf binary format with stable field order.
  1176  //
  1177  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1178  //
  1179  // Returns any error encountered which did not allow writing the data completely.
  1180  // Otherwise, returns the buffer in which the data is written.
  1181  //
  1182  // Structures with the same field values have the same binary format.
  1183  func (x *GetSubTreeResponse) StableMarshal(buf []byte) []byte {
  1184  	if x == nil {
  1185  		return []byte{}
  1186  	}
  1187  	if buf == nil {
  1188  		buf = make([]byte, x.StableSize())
  1189  	}
  1190  	var offset int
  1191  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
  1192  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
  1193  	return buf
  1194  }
  1195  
  1196  // ReadSignedData fills buf with signed data of x.
  1197  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
  1198  //
  1199  // Returns any error encountered which did not allow writing the data completely.
  1200  // Otherwise, returns the buffer in which the data is written.
  1201  //
  1202  // Structures with the same field values have the same signed data.
  1203  func (x *GetSubTreeResponse) SignedDataSize() int {
  1204  	return x.GetBody().StableSize()
  1205  }
  1206  
  1207  // SignedDataSize returns size of the request signed data in bytes.
  1208  //
  1209  // Structures with the same field values have the same signed data size.
  1210  func (x *GetSubTreeResponse) ReadSignedData(buf []byte) ([]byte, error) {
  1211  	return x.GetBody().StableMarshal(buf), nil
  1212  }
  1213  
  1214  func (x *GetSubTreeResponse) SetSignature(sig *Signature) {
  1215  	x.Signature = sig
  1216  }
  1217  
  1218  // StableSize returns the size of x in protobuf format.
  1219  //
  1220  // Structures with the same field values have the same binary size.
  1221  func (x *TreeListRequest_Body) StableSize() (size int) {
  1222  	if x == nil {
  1223  		return 0
  1224  	}
  1225  	size += proto.BytesSize(1, x.ContainerId)
  1226  	return size
  1227  }
  1228  
  1229  // StableMarshal marshals x in protobuf binary format with stable field order.
  1230  //
  1231  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1232  //
  1233  // Returns any error encountered which did not allow writing the data completely.
  1234  // Otherwise, returns the buffer in which the data is written.
  1235  //
  1236  // Structures with the same field values have the same binary format.
  1237  func (x *TreeListRequest_Body) StableMarshal(buf []byte) []byte {
  1238  	if x == nil {
  1239  		return []byte{}
  1240  	}
  1241  	if buf == nil {
  1242  		buf = make([]byte, x.StableSize())
  1243  	}
  1244  	var offset int
  1245  	offset += proto.BytesMarshal(1, buf[offset:], x.ContainerId)
  1246  	return buf
  1247  }
  1248  
  1249  // StableSize returns the size of x in protobuf format.
  1250  //
  1251  // Structures with the same field values have the same binary size.
  1252  func (x *TreeListRequest) StableSize() (size int) {
  1253  	if x == nil {
  1254  		return 0
  1255  	}
  1256  	size += proto.NestedStructureSize(1, x.Body)
  1257  	size += proto.NestedStructureSize(2, x.Signature)
  1258  	return size
  1259  }
  1260  
  1261  // StableMarshal marshals x in protobuf binary format with stable field order.
  1262  //
  1263  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1264  //
  1265  // Returns any error encountered which did not allow writing the data completely.
  1266  // Otherwise, returns the buffer in which the data is written.
  1267  //
  1268  // Structures with the same field values have the same binary format.
  1269  func (x *TreeListRequest) StableMarshal(buf []byte) []byte {
  1270  	if x == nil {
  1271  		return []byte{}
  1272  	}
  1273  	if buf == nil {
  1274  		buf = make([]byte, x.StableSize())
  1275  	}
  1276  	var offset int
  1277  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
  1278  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
  1279  	return buf
  1280  }
  1281  
  1282  // ReadSignedData fills buf with signed data of x.
  1283  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
  1284  //
  1285  // Returns any error encountered which did not allow writing the data completely.
  1286  // Otherwise, returns the buffer in which the data is written.
  1287  //
  1288  // Structures with the same field values have the same signed data.
  1289  func (x *TreeListRequest) SignedDataSize() int {
  1290  	return x.GetBody().StableSize()
  1291  }
  1292  
  1293  // SignedDataSize returns size of the request signed data in bytes.
  1294  //
  1295  // Structures with the same field values have the same signed data size.
  1296  func (x *TreeListRequest) ReadSignedData(buf []byte) ([]byte, error) {
  1297  	return x.GetBody().StableMarshal(buf), nil
  1298  }
  1299  
  1300  func (x *TreeListRequest) SetSignature(sig *Signature) {
  1301  	x.Signature = sig
  1302  }
  1303  
  1304  // StableSize returns the size of x in protobuf format.
  1305  //
  1306  // Structures with the same field values have the same binary size.
  1307  func (x *TreeListResponse_Body) StableSize() (size int) {
  1308  	if x == nil {
  1309  		return 0
  1310  	}
  1311  	size += proto.RepeatedStringSize(1, x.Ids)
  1312  	return size
  1313  }
  1314  
  1315  // StableMarshal marshals x in protobuf binary format with stable field order.
  1316  //
  1317  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1318  //
  1319  // Returns any error encountered which did not allow writing the data completely.
  1320  // Otherwise, returns the buffer in which the data is written.
  1321  //
  1322  // Structures with the same field values have the same binary format.
  1323  func (x *TreeListResponse_Body) StableMarshal(buf []byte) []byte {
  1324  	if x == nil {
  1325  		return []byte{}
  1326  	}
  1327  	if buf == nil {
  1328  		buf = make([]byte, x.StableSize())
  1329  	}
  1330  	var offset int
  1331  	offset += proto.RepeatedStringMarshal(1, buf[offset:], x.Ids)
  1332  	return buf
  1333  }
  1334  
  1335  // StableSize returns the size of x in protobuf format.
  1336  //
  1337  // Structures with the same field values have the same binary size.
  1338  func (x *TreeListResponse) StableSize() (size int) {
  1339  	if x == nil {
  1340  		return 0
  1341  	}
  1342  	size += proto.NestedStructureSize(1, x.Body)
  1343  	size += proto.NestedStructureSize(2, x.Signature)
  1344  	return size
  1345  }
  1346  
  1347  // StableMarshal marshals x in protobuf binary format with stable field order.
  1348  //
  1349  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1350  //
  1351  // Returns any error encountered which did not allow writing the data completely.
  1352  // Otherwise, returns the buffer in which the data is written.
  1353  //
  1354  // Structures with the same field values have the same binary format.
  1355  func (x *TreeListResponse) StableMarshal(buf []byte) []byte {
  1356  	if x == nil {
  1357  		return []byte{}
  1358  	}
  1359  	if buf == nil {
  1360  		buf = make([]byte, x.StableSize())
  1361  	}
  1362  	var offset int
  1363  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
  1364  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
  1365  	return buf
  1366  }
  1367  
  1368  // ReadSignedData fills buf with signed data of x.
  1369  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
  1370  //
  1371  // Returns any error encountered which did not allow writing the data completely.
  1372  // Otherwise, returns the buffer in which the data is written.
  1373  //
  1374  // Structures with the same field values have the same signed data.
  1375  func (x *TreeListResponse) SignedDataSize() int {
  1376  	return x.GetBody().StableSize()
  1377  }
  1378  
  1379  // SignedDataSize returns size of the request signed data in bytes.
  1380  //
  1381  // Structures with the same field values have the same signed data size.
  1382  func (x *TreeListResponse) ReadSignedData(buf []byte) ([]byte, error) {
  1383  	return x.GetBody().StableMarshal(buf), nil
  1384  }
  1385  
  1386  func (x *TreeListResponse) SetSignature(sig *Signature) {
  1387  	x.Signature = sig
  1388  }
  1389  
  1390  // StableSize returns the size of x in protobuf format.
  1391  //
  1392  // Structures with the same field values have the same binary size.
  1393  func (x *ApplyRequest_Body) StableSize() (size int) {
  1394  	if x == nil {
  1395  		return 0
  1396  	}
  1397  	size += proto.BytesSize(1, x.ContainerId)
  1398  	size += proto.StringSize(2, x.TreeId)
  1399  	size += proto.NestedStructureSize(3, x.Operation)
  1400  	return size
  1401  }
  1402  
  1403  // StableMarshal marshals x in protobuf binary format with stable field order.
  1404  //
  1405  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1406  //
  1407  // Returns any error encountered which did not allow writing the data completely.
  1408  // Otherwise, returns the buffer in which the data is written.
  1409  //
  1410  // Structures with the same field values have the same binary format.
  1411  func (x *ApplyRequest_Body) StableMarshal(buf []byte) []byte {
  1412  	if x == nil {
  1413  		return []byte{}
  1414  	}
  1415  	if buf == nil {
  1416  		buf = make([]byte, x.StableSize())
  1417  	}
  1418  	var offset int
  1419  	offset += proto.BytesMarshal(1, buf[offset:], x.ContainerId)
  1420  	offset += proto.StringMarshal(2, buf[offset:], x.TreeId)
  1421  	offset += proto.NestedStructureMarshal(3, buf[offset:], x.Operation)
  1422  	return buf
  1423  }
  1424  
  1425  // StableSize returns the size of x in protobuf format.
  1426  //
  1427  // Structures with the same field values have the same binary size.
  1428  func (x *ApplyRequest) StableSize() (size int) {
  1429  	if x == nil {
  1430  		return 0
  1431  	}
  1432  	size += proto.NestedStructureSize(1, x.Body)
  1433  	size += proto.NestedStructureSize(2, x.Signature)
  1434  	return size
  1435  }
  1436  
  1437  // StableMarshal marshals x in protobuf binary format with stable field order.
  1438  //
  1439  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1440  //
  1441  // Returns any error encountered which did not allow writing the data completely.
  1442  // Otherwise, returns the buffer in which the data is written.
  1443  //
  1444  // Structures with the same field values have the same binary format.
  1445  func (x *ApplyRequest) StableMarshal(buf []byte) []byte {
  1446  	if x == nil {
  1447  		return []byte{}
  1448  	}
  1449  	if buf == nil {
  1450  		buf = make([]byte, x.StableSize())
  1451  	}
  1452  	var offset int
  1453  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
  1454  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
  1455  	return buf
  1456  }
  1457  
  1458  // ReadSignedData fills buf with signed data of x.
  1459  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
  1460  //
  1461  // Returns any error encountered which did not allow writing the data completely.
  1462  // Otherwise, returns the buffer in which the data is written.
  1463  //
  1464  // Structures with the same field values have the same signed data.
  1465  func (x *ApplyRequest) SignedDataSize() int {
  1466  	return x.GetBody().StableSize()
  1467  }
  1468  
  1469  // SignedDataSize returns size of the request signed data in bytes.
  1470  //
  1471  // Structures with the same field values have the same signed data size.
  1472  func (x *ApplyRequest) ReadSignedData(buf []byte) ([]byte, error) {
  1473  	return x.GetBody().StableMarshal(buf), nil
  1474  }
  1475  
  1476  func (x *ApplyRequest) SetSignature(sig *Signature) {
  1477  	x.Signature = sig
  1478  }
  1479  
  1480  // StableSize returns the size of x in protobuf format.
  1481  //
  1482  // Structures with the same field values have the same binary size.
  1483  func (x *ApplyResponse_Body) StableSize() (size int) {
  1484  	if x == nil {
  1485  		return 0
  1486  	}
  1487  	return size
  1488  }
  1489  
  1490  // StableMarshal marshals x in protobuf binary format with stable field order.
  1491  //
  1492  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1493  //
  1494  // Returns any error encountered which did not allow writing the data completely.
  1495  // Otherwise, returns the buffer in which the data is written.
  1496  //
  1497  // Structures with the same field values have the same binary format.
  1498  func (x *ApplyResponse_Body) StableMarshal(buf []byte) []byte {
  1499  	return buf
  1500  }
  1501  
  1502  // StableSize returns the size of x in protobuf format.
  1503  //
  1504  // Structures with the same field values have the same binary size.
  1505  func (x *ApplyResponse) StableSize() (size int) {
  1506  	if x == nil {
  1507  		return 0
  1508  	}
  1509  	size += proto.NestedStructureSize(1, x.Body)
  1510  	size += proto.NestedStructureSize(2, x.Signature)
  1511  	return size
  1512  }
  1513  
  1514  // StableMarshal marshals x in protobuf binary format with stable field order.
  1515  //
  1516  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1517  //
  1518  // Returns any error encountered which did not allow writing the data completely.
  1519  // Otherwise, returns the buffer in which the data is written.
  1520  //
  1521  // Structures with the same field values have the same binary format.
  1522  func (x *ApplyResponse) StableMarshal(buf []byte) []byte {
  1523  	if x == nil {
  1524  		return []byte{}
  1525  	}
  1526  	if buf == nil {
  1527  		buf = make([]byte, x.StableSize())
  1528  	}
  1529  	var offset int
  1530  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
  1531  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
  1532  	return buf
  1533  }
  1534  
  1535  // ReadSignedData fills buf with signed data of x.
  1536  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
  1537  //
  1538  // Returns any error encountered which did not allow writing the data completely.
  1539  // Otherwise, returns the buffer in which the data is written.
  1540  //
  1541  // Structures with the same field values have the same signed data.
  1542  func (x *ApplyResponse) SignedDataSize() int {
  1543  	return x.GetBody().StableSize()
  1544  }
  1545  
  1546  // SignedDataSize returns size of the request signed data in bytes.
  1547  //
  1548  // Structures with the same field values have the same signed data size.
  1549  func (x *ApplyResponse) ReadSignedData(buf []byte) ([]byte, error) {
  1550  	return x.GetBody().StableMarshal(buf), nil
  1551  }
  1552  
  1553  func (x *ApplyResponse) SetSignature(sig *Signature) {
  1554  	x.Signature = sig
  1555  }
  1556  
  1557  // StableSize returns the size of x in protobuf format.
  1558  //
  1559  // Structures with the same field values have the same binary size.
  1560  func (x *GetOpLogRequest_Body) StableSize() (size int) {
  1561  	if x == nil {
  1562  		return 0
  1563  	}
  1564  	size += proto.BytesSize(1, x.ContainerId)
  1565  	size += proto.StringSize(2, x.TreeId)
  1566  	size += proto.UInt64Size(3, x.Height)
  1567  	size += proto.UInt64Size(4, x.Count)
  1568  	return size
  1569  }
  1570  
  1571  // StableMarshal marshals x in protobuf binary format with stable field order.
  1572  //
  1573  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1574  //
  1575  // Returns any error encountered which did not allow writing the data completely.
  1576  // Otherwise, returns the buffer in which the data is written.
  1577  //
  1578  // Structures with the same field values have the same binary format.
  1579  func (x *GetOpLogRequest_Body) StableMarshal(buf []byte) []byte {
  1580  	if x == nil {
  1581  		return []byte{}
  1582  	}
  1583  	if buf == nil {
  1584  		buf = make([]byte, x.StableSize())
  1585  	}
  1586  	var offset int
  1587  	offset += proto.BytesMarshal(1, buf[offset:], x.ContainerId)
  1588  	offset += proto.StringMarshal(2, buf[offset:], x.TreeId)
  1589  	offset += proto.UInt64Marshal(3, buf[offset:], x.Height)
  1590  	offset += proto.UInt64Marshal(4, buf[offset:], x.Count)
  1591  	return buf
  1592  }
  1593  
  1594  // StableSize returns the size of x in protobuf format.
  1595  //
  1596  // Structures with the same field values have the same binary size.
  1597  func (x *GetOpLogRequest) StableSize() (size int) {
  1598  	if x == nil {
  1599  		return 0
  1600  	}
  1601  	size += proto.NestedStructureSize(1, x.Body)
  1602  	size += proto.NestedStructureSize(2, x.Signature)
  1603  	return size
  1604  }
  1605  
  1606  // StableMarshal marshals x in protobuf binary format with stable field order.
  1607  //
  1608  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1609  //
  1610  // Returns any error encountered which did not allow writing the data completely.
  1611  // Otherwise, returns the buffer in which the data is written.
  1612  //
  1613  // Structures with the same field values have the same binary format.
  1614  func (x *GetOpLogRequest) StableMarshal(buf []byte) []byte {
  1615  	if x == nil {
  1616  		return []byte{}
  1617  	}
  1618  	if buf == nil {
  1619  		buf = make([]byte, x.StableSize())
  1620  	}
  1621  	var offset int
  1622  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
  1623  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
  1624  	return buf
  1625  }
  1626  
  1627  // ReadSignedData fills buf with signed data of x.
  1628  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
  1629  //
  1630  // Returns any error encountered which did not allow writing the data completely.
  1631  // Otherwise, returns the buffer in which the data is written.
  1632  //
  1633  // Structures with the same field values have the same signed data.
  1634  func (x *GetOpLogRequest) SignedDataSize() int {
  1635  	return x.GetBody().StableSize()
  1636  }
  1637  
  1638  // SignedDataSize returns size of the request signed data in bytes.
  1639  //
  1640  // Structures with the same field values have the same signed data size.
  1641  func (x *GetOpLogRequest) ReadSignedData(buf []byte) ([]byte, error) {
  1642  	return x.GetBody().StableMarshal(buf), nil
  1643  }
  1644  
  1645  func (x *GetOpLogRequest) SetSignature(sig *Signature) {
  1646  	x.Signature = sig
  1647  }
  1648  
  1649  // StableSize returns the size of x in protobuf format.
  1650  //
  1651  // Structures with the same field values have the same binary size.
  1652  func (x *GetOpLogResponse_Body) StableSize() (size int) {
  1653  	if x == nil {
  1654  		return 0
  1655  	}
  1656  	size += proto.NestedStructureSize(1, x.Operation)
  1657  	return size
  1658  }
  1659  
  1660  // StableMarshal marshals x in protobuf binary format with stable field order.
  1661  //
  1662  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1663  //
  1664  // Returns any error encountered which did not allow writing the data completely.
  1665  // Otherwise, returns the buffer in which the data is written.
  1666  //
  1667  // Structures with the same field values have the same binary format.
  1668  func (x *GetOpLogResponse_Body) StableMarshal(buf []byte) []byte {
  1669  	if x == nil {
  1670  		return []byte{}
  1671  	}
  1672  	if buf == nil {
  1673  		buf = make([]byte, x.StableSize())
  1674  	}
  1675  	var offset int
  1676  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Operation)
  1677  	return buf
  1678  }
  1679  
  1680  // StableSize returns the size of x in protobuf format.
  1681  //
  1682  // Structures with the same field values have the same binary size.
  1683  func (x *GetOpLogResponse) StableSize() (size int) {
  1684  	if x == nil {
  1685  		return 0
  1686  	}
  1687  	size += proto.NestedStructureSize(1, x.Body)
  1688  	size += proto.NestedStructureSize(2, x.Signature)
  1689  	return size
  1690  }
  1691  
  1692  // StableMarshal marshals x in protobuf binary format with stable field order.
  1693  //
  1694  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1695  //
  1696  // Returns any error encountered which did not allow writing the data completely.
  1697  // Otherwise, returns the buffer in which the data is written.
  1698  //
  1699  // Structures with the same field values have the same binary format.
  1700  func (x *GetOpLogResponse) StableMarshal(buf []byte) []byte {
  1701  	if x == nil {
  1702  		return []byte{}
  1703  	}
  1704  	if buf == nil {
  1705  		buf = make([]byte, x.StableSize())
  1706  	}
  1707  	var offset int
  1708  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
  1709  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
  1710  	return buf
  1711  }
  1712  
  1713  // ReadSignedData fills buf with signed data of x.
  1714  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
  1715  //
  1716  // Returns any error encountered which did not allow writing the data completely.
  1717  // Otherwise, returns the buffer in which the data is written.
  1718  //
  1719  // Structures with the same field values have the same signed data.
  1720  func (x *GetOpLogResponse) SignedDataSize() int {
  1721  	return x.GetBody().StableSize()
  1722  }
  1723  
  1724  // SignedDataSize returns size of the request signed data in bytes.
  1725  //
  1726  // Structures with the same field values have the same signed data size.
  1727  func (x *GetOpLogResponse) ReadSignedData(buf []byte) ([]byte, error) {
  1728  	return x.GetBody().StableMarshal(buf), nil
  1729  }
  1730  
  1731  func (x *GetOpLogResponse) SetSignature(sig *Signature) {
  1732  	x.Signature = sig
  1733  }
  1734  
  1735  // StableSize returns the size of x in protobuf format.
  1736  //
  1737  // Structures with the same field values have the same binary size.
  1738  func (x *HealthcheckResponse_Body) StableSize() (size int) {
  1739  	if x == nil {
  1740  		return 0
  1741  	}
  1742  	return size
  1743  }
  1744  
  1745  // StableMarshal marshals x in protobuf binary format with stable field order.
  1746  //
  1747  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1748  //
  1749  // Returns any error encountered which did not allow writing the data completely.
  1750  // Otherwise, returns the buffer in which the data is written.
  1751  //
  1752  // Structures with the same field values have the same binary format.
  1753  func (x *HealthcheckResponse_Body) StableMarshal(buf []byte) []byte {
  1754  	return buf
  1755  }
  1756  
  1757  // StableSize returns the size of x in protobuf format.
  1758  //
  1759  // Structures with the same field values have the same binary size.
  1760  func (x *HealthcheckResponse) StableSize() (size int) {
  1761  	if x == nil {
  1762  		return 0
  1763  	}
  1764  	size += proto.NestedStructureSize(1, x.Body)
  1765  	size += proto.NestedStructureSize(2, x.Signature)
  1766  	return size
  1767  }
  1768  
  1769  // StableMarshal marshals x in protobuf binary format with stable field order.
  1770  //
  1771  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1772  //
  1773  // Returns any error encountered which did not allow writing the data completely.
  1774  // Otherwise, returns the buffer in which the data is written.
  1775  //
  1776  // Structures with the same field values have the same binary format.
  1777  func (x *HealthcheckResponse) StableMarshal(buf []byte) []byte {
  1778  	if x == nil {
  1779  		return []byte{}
  1780  	}
  1781  	if buf == nil {
  1782  		buf = make([]byte, x.StableSize())
  1783  	}
  1784  	var offset int
  1785  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
  1786  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
  1787  	return buf
  1788  }
  1789  
  1790  // ReadSignedData fills buf with signed data of x.
  1791  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
  1792  //
  1793  // Returns any error encountered which did not allow writing the data completely.
  1794  // Otherwise, returns the buffer in which the data is written.
  1795  //
  1796  // Structures with the same field values have the same signed data.
  1797  func (x *HealthcheckResponse) SignedDataSize() int {
  1798  	return x.GetBody().StableSize()
  1799  }
  1800  
  1801  // SignedDataSize returns size of the request signed data in bytes.
  1802  //
  1803  // Structures with the same field values have the same signed data size.
  1804  func (x *HealthcheckResponse) ReadSignedData(buf []byte) ([]byte, error) {
  1805  	return x.GetBody().StableMarshal(buf), nil
  1806  }
  1807  
  1808  func (x *HealthcheckResponse) SetSignature(sig *Signature) {
  1809  	x.Signature = sig
  1810  }
  1811  
  1812  // StableSize returns the size of x in protobuf format.
  1813  //
  1814  // Structures with the same field values have the same binary size.
  1815  func (x *HealthcheckRequest_Body) StableSize() (size int) {
  1816  	if x == nil {
  1817  		return 0
  1818  	}
  1819  	return size
  1820  }
  1821  
  1822  // StableMarshal marshals x in protobuf binary format with stable field order.
  1823  //
  1824  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1825  //
  1826  // Returns any error encountered which did not allow writing the data completely.
  1827  // Otherwise, returns the buffer in which the data is written.
  1828  //
  1829  // Structures with the same field values have the same binary format.
  1830  func (x *HealthcheckRequest_Body) StableMarshal(buf []byte) []byte {
  1831  	return buf
  1832  }
  1833  
  1834  // StableSize returns the size of x in protobuf format.
  1835  //
  1836  // Structures with the same field values have the same binary size.
  1837  func (x *HealthcheckRequest) StableSize() (size int) {
  1838  	if x == nil {
  1839  		return 0
  1840  	}
  1841  	size += proto.NestedStructureSize(1, x.Body)
  1842  	size += proto.NestedStructureSize(2, x.Signature)
  1843  	return size
  1844  }
  1845  
  1846  // StableMarshal marshals x in protobuf binary format with stable field order.
  1847  //
  1848  // If buffer length is less than x.StableSize(), new buffer is allocated.
  1849  //
  1850  // Returns any error encountered which did not allow writing the data completely.
  1851  // Otherwise, returns the buffer in which the data is written.
  1852  //
  1853  // Structures with the same field values have the same binary format.
  1854  func (x *HealthcheckRequest) StableMarshal(buf []byte) []byte {
  1855  	if x == nil {
  1856  		return []byte{}
  1857  	}
  1858  	if buf == nil {
  1859  		buf = make([]byte, x.StableSize())
  1860  	}
  1861  	var offset int
  1862  	offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body)
  1863  	offset += proto.NestedStructureMarshal(2, buf[offset:], x.Signature)
  1864  	return buf
  1865  }
  1866  
  1867  // ReadSignedData fills buf with signed data of x.
  1868  // If buffer length is less than x.SignedDataSize(), new buffer is allocated.
  1869  //
  1870  // Returns any error encountered which did not allow writing the data completely.
  1871  // Otherwise, returns the buffer in which the data is written.
  1872  //
  1873  // Structures with the same field values have the same signed data.
  1874  func (x *HealthcheckRequest) SignedDataSize() int {
  1875  	return x.GetBody().StableSize()
  1876  }
  1877  
  1878  // SignedDataSize returns size of the request signed data in bytes.
  1879  //
  1880  // Structures with the same field values have the same signed data size.
  1881  func (x *HealthcheckRequest) ReadSignedData(buf []byte) ([]byte, error) {
  1882  	return x.GetBody().StableMarshal(buf), nil
  1883  }
  1884  
  1885  func (x *HealthcheckRequest) SetSignature(sig *Signature) {
  1886  	x.Signature = sig
  1887  }