github.com/m3db/m3@v1.5.0/src/dbnode/generated/thrift/rpc/rpc.go (about)

     1  // Copyright (c) 2021 Uber Technologies, Inc.
     2  //
     3  // Permission is hereby granted, free of charge, to any person obtaining a copy
     4  // of this software and associated documentation files (the "Software"), to deal
     5  // in the Software without restriction, including without limitation the rights
     6  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     7  // copies of the Software, and to permit persons to whom the Software is
     8  // furnished to do so, subject to the following conditions:
     9  //
    10  // The above copyright notice and this permission notice shall be included in
    11  // all copies or substantial portions of the Software.
    12  //
    13  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    14  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    15  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    16  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    17  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    18  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    19  // THE SOFTWARE.
    20  
    21  // Autogenerated by Thrift Compiler (0.10.0)
    22  // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
    23  
    24  package rpc
    25  
    26  import (
    27  	"bytes"
    28  	"database/sql/driver"
    29  	"errors"
    30  	"fmt"
    31  	"github.com/apache/thrift/lib/go/thrift"
    32  )
    33  
    34  // (needed to ensure safety because of naive import list construction.)
    35  var _ = thrift.ZERO
    36  var _ = fmt.Printf
    37  var _ = bytes.Equal
    38  
    39  type TimeType int64
    40  
    41  const (
    42  	TimeType_UNIX_SECONDS      TimeType = 0
    43  	TimeType_UNIX_MICROSECONDS TimeType = 1
    44  	TimeType_UNIX_MILLISECONDS TimeType = 2
    45  	TimeType_UNIX_NANOSECONDS  TimeType = 3
    46  )
    47  
    48  func (p TimeType) String() string {
    49  	switch p {
    50  	case TimeType_UNIX_SECONDS:
    51  		return "UNIX_SECONDS"
    52  	case TimeType_UNIX_MICROSECONDS:
    53  		return "UNIX_MICROSECONDS"
    54  	case TimeType_UNIX_MILLISECONDS:
    55  		return "UNIX_MILLISECONDS"
    56  	case TimeType_UNIX_NANOSECONDS:
    57  		return "UNIX_NANOSECONDS"
    58  	}
    59  	return "<UNSET>"
    60  }
    61  
    62  func TimeTypeFromString(s string) (TimeType, error) {
    63  	switch s {
    64  	case "UNIX_SECONDS":
    65  		return TimeType_UNIX_SECONDS, nil
    66  	case "UNIX_MICROSECONDS":
    67  		return TimeType_UNIX_MICROSECONDS, nil
    68  	case "UNIX_MILLISECONDS":
    69  		return TimeType_UNIX_MILLISECONDS, nil
    70  	case "UNIX_NANOSECONDS":
    71  		return TimeType_UNIX_NANOSECONDS, nil
    72  	}
    73  	return TimeType(0), fmt.Errorf("not a valid TimeType string")
    74  }
    75  
    76  func TimeTypePtr(v TimeType) *TimeType { return &v }
    77  
    78  func (p TimeType) MarshalText() ([]byte, error) {
    79  	return []byte(p.String()), nil
    80  }
    81  
    82  func (p *TimeType) UnmarshalText(text []byte) error {
    83  	q, err := TimeTypeFromString(string(text))
    84  	if err != nil {
    85  		return err
    86  	}
    87  	*p = q
    88  	return nil
    89  }
    90  
    91  func (p *TimeType) Scan(value interface{}) error {
    92  	v, ok := value.(int64)
    93  	if !ok {
    94  		return errors.New("Scan value is not int64")
    95  	}
    96  	*p = TimeType(v)
    97  	return nil
    98  }
    99  
   100  func (p *TimeType) Value() (driver.Value, error) {
   101  	if p == nil {
   102  		return nil, nil
   103  	}
   104  	return int64(*p), nil
   105  }
   106  
   107  type ErrorType int64
   108  
   109  const (
   110  	ErrorType_INTERNAL_ERROR ErrorType = 0
   111  	ErrorType_BAD_REQUEST    ErrorType = 1
   112  )
   113  
   114  func (p ErrorType) String() string {
   115  	switch p {
   116  	case ErrorType_INTERNAL_ERROR:
   117  		return "INTERNAL_ERROR"
   118  	case ErrorType_BAD_REQUEST:
   119  		return "BAD_REQUEST"
   120  	}
   121  	return "<UNSET>"
   122  }
   123  
   124  func ErrorTypeFromString(s string) (ErrorType, error) {
   125  	switch s {
   126  	case "INTERNAL_ERROR":
   127  		return ErrorType_INTERNAL_ERROR, nil
   128  	case "BAD_REQUEST":
   129  		return ErrorType_BAD_REQUEST, nil
   130  	}
   131  	return ErrorType(0), fmt.Errorf("not a valid ErrorType string")
   132  }
   133  
   134  func ErrorTypePtr(v ErrorType) *ErrorType { return &v }
   135  
   136  func (p ErrorType) MarshalText() ([]byte, error) {
   137  	return []byte(p.String()), nil
   138  }
   139  
   140  func (p *ErrorType) UnmarshalText(text []byte) error {
   141  	q, err := ErrorTypeFromString(string(text))
   142  	if err != nil {
   143  		return err
   144  	}
   145  	*p = q
   146  	return nil
   147  }
   148  
   149  func (p *ErrorType) Scan(value interface{}) error {
   150  	v, ok := value.(int64)
   151  	if !ok {
   152  		return errors.New("Scan value is not int64")
   153  	}
   154  	*p = ErrorType(v)
   155  	return nil
   156  }
   157  
   158  func (p *ErrorType) Value() (driver.Value, error) {
   159  	if p == nil {
   160  		return nil, nil
   161  	}
   162  	return int64(*p), nil
   163  }
   164  
   165  type ErrorFlags int64
   166  
   167  const (
   168  	ErrorFlags_NONE               ErrorFlags = 0
   169  	ErrorFlags_RESOURCE_EXHAUSTED ErrorFlags = 1
   170  	ErrorFlags_SERVER_TIMEOUT     ErrorFlags = 2
   171  )
   172  
   173  func (p ErrorFlags) String() string {
   174  	switch p {
   175  	case ErrorFlags_NONE:
   176  		return "NONE"
   177  	case ErrorFlags_RESOURCE_EXHAUSTED:
   178  		return "RESOURCE_EXHAUSTED"
   179  	case ErrorFlags_SERVER_TIMEOUT:
   180  		return "SERVER_TIMEOUT"
   181  	}
   182  	return "<UNSET>"
   183  }
   184  
   185  func ErrorFlagsFromString(s string) (ErrorFlags, error) {
   186  	switch s {
   187  	case "NONE":
   188  		return ErrorFlags_NONE, nil
   189  	case "RESOURCE_EXHAUSTED":
   190  		return ErrorFlags_RESOURCE_EXHAUSTED, nil
   191  	case "SERVER_TIMEOUT":
   192  		return ErrorFlags_SERVER_TIMEOUT, nil
   193  	}
   194  	return ErrorFlags(0), fmt.Errorf("not a valid ErrorFlags string")
   195  }
   196  
   197  func ErrorFlagsPtr(v ErrorFlags) *ErrorFlags { return &v }
   198  
   199  func (p ErrorFlags) MarshalText() ([]byte, error) {
   200  	return []byte(p.String()), nil
   201  }
   202  
   203  func (p *ErrorFlags) UnmarshalText(text []byte) error {
   204  	q, err := ErrorFlagsFromString(string(text))
   205  	if err != nil {
   206  		return err
   207  	}
   208  	*p = q
   209  	return nil
   210  }
   211  
   212  func (p *ErrorFlags) Scan(value interface{}) error {
   213  	v, ok := value.(int64)
   214  	if !ok {
   215  		return errors.New("Scan value is not int64")
   216  	}
   217  	*p = ErrorFlags(v)
   218  	return nil
   219  }
   220  
   221  func (p *ErrorFlags) Value() (driver.Value, error) {
   222  	if p == nil {
   223  		return nil, nil
   224  	}
   225  	return int64(*p), nil
   226  }
   227  
   228  type AggregateQueryType int64
   229  
   230  const (
   231  	AggregateQueryType_AGGREGATE_BY_TAG_NAME       AggregateQueryType = 0
   232  	AggregateQueryType_AGGREGATE_BY_TAG_NAME_VALUE AggregateQueryType = 1
   233  )
   234  
   235  func (p AggregateQueryType) String() string {
   236  	switch p {
   237  	case AggregateQueryType_AGGREGATE_BY_TAG_NAME:
   238  		return "AGGREGATE_BY_TAG_NAME"
   239  	case AggregateQueryType_AGGREGATE_BY_TAG_NAME_VALUE:
   240  		return "AGGREGATE_BY_TAG_NAME_VALUE"
   241  	}
   242  	return "<UNSET>"
   243  }
   244  
   245  func AggregateQueryTypeFromString(s string) (AggregateQueryType, error) {
   246  	switch s {
   247  	case "AGGREGATE_BY_TAG_NAME":
   248  		return AggregateQueryType_AGGREGATE_BY_TAG_NAME, nil
   249  	case "AGGREGATE_BY_TAG_NAME_VALUE":
   250  		return AggregateQueryType_AGGREGATE_BY_TAG_NAME_VALUE, nil
   251  	}
   252  	return AggregateQueryType(0), fmt.Errorf("not a valid AggregateQueryType string")
   253  }
   254  
   255  func AggregateQueryTypePtr(v AggregateQueryType) *AggregateQueryType { return &v }
   256  
   257  func (p AggregateQueryType) MarshalText() ([]byte, error) {
   258  	return []byte(p.String()), nil
   259  }
   260  
   261  func (p *AggregateQueryType) UnmarshalText(text []byte) error {
   262  	q, err := AggregateQueryTypeFromString(string(text))
   263  	if err != nil {
   264  		return err
   265  	}
   266  	*p = q
   267  	return nil
   268  }
   269  
   270  func (p *AggregateQueryType) Scan(value interface{}) error {
   271  	v, ok := value.(int64)
   272  	if !ok {
   273  		return errors.New("Scan value is not int64")
   274  	}
   275  	*p = AggregateQueryType(v)
   276  	return nil
   277  }
   278  
   279  func (p *AggregateQueryType) Value() (driver.Value, error) {
   280  	if p == nil {
   281  		return nil, nil
   282  	}
   283  	return int64(*p), nil
   284  }
   285  
   286  type ReadConsistency int64
   287  
   288  const (
   289  	ReadConsistency_ONE               ReadConsistency = 0
   290  	ReadConsistency_UNSTRICT_MAJORITY ReadConsistency = 1
   291  	ReadConsistency_MAJORITY          ReadConsistency = 2
   292  	ReadConsistency_UNSTRICT_ALL      ReadConsistency = 3
   293  	ReadConsistency_ALL               ReadConsistency = 4
   294  )
   295  
   296  func (p ReadConsistency) String() string {
   297  	switch p {
   298  	case ReadConsistency_ONE:
   299  		return "ONE"
   300  	case ReadConsistency_UNSTRICT_MAJORITY:
   301  		return "UNSTRICT_MAJORITY"
   302  	case ReadConsistency_MAJORITY:
   303  		return "MAJORITY"
   304  	case ReadConsistency_UNSTRICT_ALL:
   305  		return "UNSTRICT_ALL"
   306  	case ReadConsistency_ALL:
   307  		return "ALL"
   308  	}
   309  	return "<UNSET>"
   310  }
   311  
   312  func ReadConsistencyFromString(s string) (ReadConsistency, error) {
   313  	switch s {
   314  	case "ONE":
   315  		return ReadConsistency_ONE, nil
   316  	case "UNSTRICT_MAJORITY":
   317  		return ReadConsistency_UNSTRICT_MAJORITY, nil
   318  	case "MAJORITY":
   319  		return ReadConsistency_MAJORITY, nil
   320  	case "UNSTRICT_ALL":
   321  		return ReadConsistency_UNSTRICT_ALL, nil
   322  	case "ALL":
   323  		return ReadConsistency_ALL, nil
   324  	}
   325  	return ReadConsistency(0), fmt.Errorf("not a valid ReadConsistency string")
   326  }
   327  
   328  func ReadConsistencyPtr(v ReadConsistency) *ReadConsistency { return &v }
   329  
   330  func (p ReadConsistency) MarshalText() ([]byte, error) {
   331  	return []byte(p.String()), nil
   332  }
   333  
   334  func (p *ReadConsistency) UnmarshalText(text []byte) error {
   335  	q, err := ReadConsistencyFromString(string(text))
   336  	if err != nil {
   337  		return err
   338  	}
   339  	*p = q
   340  	return nil
   341  }
   342  
   343  func (p *ReadConsistency) Scan(value interface{}) error {
   344  	v, ok := value.(int64)
   345  	if !ok {
   346  		return errors.New("Scan value is not int64")
   347  	}
   348  	*p = ReadConsistency(v)
   349  	return nil
   350  }
   351  
   352  func (p *ReadConsistency) Value() (driver.Value, error) {
   353  	if p == nil {
   354  		return nil, nil
   355  	}
   356  	return int64(*p), nil
   357  }
   358  
   359  type EqualTimestampStrategy int64
   360  
   361  const (
   362  	EqualTimestampStrategy_LAST_PUSHED       EqualTimestampStrategy = 0
   363  	EqualTimestampStrategy_HIGHEST_VALUE     EqualTimestampStrategy = 1
   364  	EqualTimestampStrategy_LOWEST_VALUE      EqualTimestampStrategy = 2
   365  	EqualTimestampStrategy_HIGHEST_FREQUENCY EqualTimestampStrategy = 3
   366  )
   367  
   368  func (p EqualTimestampStrategy) String() string {
   369  	switch p {
   370  	case EqualTimestampStrategy_LAST_PUSHED:
   371  		return "LAST_PUSHED"
   372  	case EqualTimestampStrategy_HIGHEST_VALUE:
   373  		return "HIGHEST_VALUE"
   374  	case EqualTimestampStrategy_LOWEST_VALUE:
   375  		return "LOWEST_VALUE"
   376  	case EqualTimestampStrategy_HIGHEST_FREQUENCY:
   377  		return "HIGHEST_FREQUENCY"
   378  	}
   379  	return "<UNSET>"
   380  }
   381  
   382  func EqualTimestampStrategyFromString(s string) (EqualTimestampStrategy, error) {
   383  	switch s {
   384  	case "LAST_PUSHED":
   385  		return EqualTimestampStrategy_LAST_PUSHED, nil
   386  	case "HIGHEST_VALUE":
   387  		return EqualTimestampStrategy_HIGHEST_VALUE, nil
   388  	case "LOWEST_VALUE":
   389  		return EqualTimestampStrategy_LOWEST_VALUE, nil
   390  	case "HIGHEST_FREQUENCY":
   391  		return EqualTimestampStrategy_HIGHEST_FREQUENCY, nil
   392  	}
   393  	return EqualTimestampStrategy(0), fmt.Errorf("not a valid EqualTimestampStrategy string")
   394  }
   395  
   396  func EqualTimestampStrategyPtr(v EqualTimestampStrategy) *EqualTimestampStrategy { return &v }
   397  
   398  func (p EqualTimestampStrategy) MarshalText() ([]byte, error) {
   399  	return []byte(p.String()), nil
   400  }
   401  
   402  func (p *EqualTimestampStrategy) UnmarshalText(text []byte) error {
   403  	q, err := EqualTimestampStrategyFromString(string(text))
   404  	if err != nil {
   405  		return err
   406  	}
   407  	*p = q
   408  	return nil
   409  }
   410  
   411  func (p *EqualTimestampStrategy) Scan(value interface{}) error {
   412  	v, ok := value.(int64)
   413  	if !ok {
   414  		return errors.New("Scan value is not int64")
   415  	}
   416  	*p = EqualTimestampStrategy(v)
   417  	return nil
   418  }
   419  
   420  func (p *EqualTimestampStrategy) Value() (driver.Value, error) {
   421  	if p == nil {
   422  		return nil, nil
   423  	}
   424  	return int64(*p), nil
   425  }
   426  
   427  // Attributes:
   428  //  - Type
   429  //  - Message
   430  //  - Flags
   431  type Error struct {
   432  	Type    ErrorType `thrift:"type,1,required" db:"type" json:"type"`
   433  	Message string    `thrift:"message,2,required" db:"message" json:"message"`
   434  	Flags   int64     `thrift:"flags,3" db:"flags" json:"flags,omitempty"`
   435  }
   436  
   437  func NewError() *Error {
   438  	return &Error{
   439  		Type: 0,
   440  	}
   441  }
   442  
   443  func (p *Error) GetType() ErrorType {
   444  	return p.Type
   445  }
   446  
   447  func (p *Error) GetMessage() string {
   448  	return p.Message
   449  }
   450  
   451  var Error_Flags_DEFAULT int64 = 0
   452  
   453  func (p *Error) GetFlags() int64 {
   454  	return p.Flags
   455  }
   456  func (p *Error) IsSetFlags() bool {
   457  	return p.Flags != Error_Flags_DEFAULT
   458  }
   459  
   460  func (p *Error) Read(iprot thrift.TProtocol) error {
   461  	if _, err := iprot.ReadStructBegin(); err != nil {
   462  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
   463  	}
   464  
   465  	var issetType bool = false
   466  	var issetMessage bool = false
   467  
   468  	for {
   469  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
   470  		if err != nil {
   471  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
   472  		}
   473  		if fieldTypeId == thrift.STOP {
   474  			break
   475  		}
   476  		switch fieldId {
   477  		case 1:
   478  			if err := p.ReadField1(iprot); err != nil {
   479  				return err
   480  			}
   481  			issetType = true
   482  		case 2:
   483  			if err := p.ReadField2(iprot); err != nil {
   484  				return err
   485  			}
   486  			issetMessage = true
   487  		case 3:
   488  			if err := p.ReadField3(iprot); err != nil {
   489  				return err
   490  			}
   491  		default:
   492  			if err := iprot.Skip(fieldTypeId); err != nil {
   493  				return err
   494  			}
   495  		}
   496  		if err := iprot.ReadFieldEnd(); err != nil {
   497  			return err
   498  		}
   499  	}
   500  	if err := iprot.ReadStructEnd(); err != nil {
   501  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
   502  	}
   503  	if !issetType {
   504  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Type is not set"))
   505  	}
   506  	if !issetMessage {
   507  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Message is not set"))
   508  	}
   509  	return nil
   510  }
   511  
   512  func (p *Error) ReadField1(iprot thrift.TProtocol) error {
   513  	if v, err := iprot.ReadI32(); err != nil {
   514  		return thrift.PrependError("error reading field 1: ", err)
   515  	} else {
   516  		temp := ErrorType(v)
   517  		p.Type = temp
   518  	}
   519  	return nil
   520  }
   521  
   522  func (p *Error) ReadField2(iprot thrift.TProtocol) error {
   523  	if v, err := iprot.ReadString(); err != nil {
   524  		return thrift.PrependError("error reading field 2: ", err)
   525  	} else {
   526  		p.Message = v
   527  	}
   528  	return nil
   529  }
   530  
   531  func (p *Error) ReadField3(iprot thrift.TProtocol) error {
   532  	if v, err := iprot.ReadI64(); err != nil {
   533  		return thrift.PrependError("error reading field 3: ", err)
   534  	} else {
   535  		p.Flags = v
   536  	}
   537  	return nil
   538  }
   539  
   540  func (p *Error) Write(oprot thrift.TProtocol) error {
   541  	if err := oprot.WriteStructBegin("Error"); err != nil {
   542  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
   543  	}
   544  	if p != nil {
   545  		if err := p.writeField1(oprot); err != nil {
   546  			return err
   547  		}
   548  		if err := p.writeField2(oprot); err != nil {
   549  			return err
   550  		}
   551  		if err := p.writeField3(oprot); err != nil {
   552  			return err
   553  		}
   554  	}
   555  	if err := oprot.WriteFieldStop(); err != nil {
   556  		return thrift.PrependError("write field stop error: ", err)
   557  	}
   558  	if err := oprot.WriteStructEnd(); err != nil {
   559  		return thrift.PrependError("write struct stop error: ", err)
   560  	}
   561  	return nil
   562  }
   563  
   564  func (p *Error) writeField1(oprot thrift.TProtocol) (err error) {
   565  	if err := oprot.WriteFieldBegin("type", thrift.I32, 1); err != nil {
   566  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:type: ", p), err)
   567  	}
   568  	if err := oprot.WriteI32(int32(p.Type)); err != nil {
   569  		return thrift.PrependError(fmt.Sprintf("%T.type (1) field write error: ", p), err)
   570  	}
   571  	if err := oprot.WriteFieldEnd(); err != nil {
   572  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:type: ", p), err)
   573  	}
   574  	return err
   575  }
   576  
   577  func (p *Error) writeField2(oprot thrift.TProtocol) (err error) {
   578  	if err := oprot.WriteFieldBegin("message", thrift.STRING, 2); err != nil {
   579  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:message: ", p), err)
   580  	}
   581  	if err := oprot.WriteString(string(p.Message)); err != nil {
   582  		return thrift.PrependError(fmt.Sprintf("%T.message (2) field write error: ", p), err)
   583  	}
   584  	if err := oprot.WriteFieldEnd(); err != nil {
   585  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:message: ", p), err)
   586  	}
   587  	return err
   588  }
   589  
   590  func (p *Error) writeField3(oprot thrift.TProtocol) (err error) {
   591  	if p.IsSetFlags() {
   592  		if err := oprot.WriteFieldBegin("flags", thrift.I64, 3); err != nil {
   593  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:flags: ", p), err)
   594  		}
   595  		if err := oprot.WriteI64(int64(p.Flags)); err != nil {
   596  			return thrift.PrependError(fmt.Sprintf("%T.flags (3) field write error: ", p), err)
   597  		}
   598  		if err := oprot.WriteFieldEnd(); err != nil {
   599  			return thrift.PrependError(fmt.Sprintf("%T write field end error 3:flags: ", p), err)
   600  		}
   601  	}
   602  	return err
   603  }
   604  
   605  func (p *Error) String() string {
   606  	if p == nil {
   607  		return "<nil>"
   608  	}
   609  	return fmt.Sprintf("Error(%+v)", *p)
   610  }
   611  
   612  func (p *Error) Error() string {
   613  	return p.String()
   614  }
   615  
   616  // Attributes:
   617  //  - Errors
   618  type WriteBatchRawErrors struct {
   619  	Errors []*WriteBatchRawError `thrift:"errors,1,required" db:"errors" json:"errors"`
   620  }
   621  
   622  func NewWriteBatchRawErrors() *WriteBatchRawErrors {
   623  	return &WriteBatchRawErrors{}
   624  }
   625  
   626  func (p *WriteBatchRawErrors) GetErrors() []*WriteBatchRawError {
   627  	return p.Errors
   628  }
   629  func (p *WriteBatchRawErrors) Read(iprot thrift.TProtocol) error {
   630  	if _, err := iprot.ReadStructBegin(); err != nil {
   631  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
   632  	}
   633  
   634  	var issetErrors bool = false
   635  
   636  	for {
   637  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
   638  		if err != nil {
   639  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
   640  		}
   641  		if fieldTypeId == thrift.STOP {
   642  			break
   643  		}
   644  		switch fieldId {
   645  		case 1:
   646  			if err := p.ReadField1(iprot); err != nil {
   647  				return err
   648  			}
   649  			issetErrors = true
   650  		default:
   651  			if err := iprot.Skip(fieldTypeId); err != nil {
   652  				return err
   653  			}
   654  		}
   655  		if err := iprot.ReadFieldEnd(); err != nil {
   656  			return err
   657  		}
   658  	}
   659  	if err := iprot.ReadStructEnd(); err != nil {
   660  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
   661  	}
   662  	if !issetErrors {
   663  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Errors is not set"))
   664  	}
   665  	return nil
   666  }
   667  
   668  func (p *WriteBatchRawErrors) ReadField1(iprot thrift.TProtocol) error {
   669  	_, size, err := iprot.ReadListBegin()
   670  	if err != nil {
   671  		return thrift.PrependError("error reading list begin: ", err)
   672  	}
   673  	tSlice := make([]*WriteBatchRawError, 0, size)
   674  	p.Errors = tSlice
   675  	for i := 0; i < size; i++ {
   676  		_elem0 := &WriteBatchRawError{}
   677  		if err := _elem0.Read(iprot); err != nil {
   678  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem0), err)
   679  		}
   680  		p.Errors = append(p.Errors, _elem0)
   681  	}
   682  	if err := iprot.ReadListEnd(); err != nil {
   683  		return thrift.PrependError("error reading list end: ", err)
   684  	}
   685  	return nil
   686  }
   687  
   688  func (p *WriteBatchRawErrors) Write(oprot thrift.TProtocol) error {
   689  	if err := oprot.WriteStructBegin("WriteBatchRawErrors"); err != nil {
   690  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
   691  	}
   692  	if p != nil {
   693  		if err := p.writeField1(oprot); err != nil {
   694  			return err
   695  		}
   696  	}
   697  	if err := oprot.WriteFieldStop(); err != nil {
   698  		return thrift.PrependError("write field stop error: ", err)
   699  	}
   700  	if err := oprot.WriteStructEnd(); err != nil {
   701  		return thrift.PrependError("write struct stop error: ", err)
   702  	}
   703  	return nil
   704  }
   705  
   706  func (p *WriteBatchRawErrors) writeField1(oprot thrift.TProtocol) (err error) {
   707  	if err := oprot.WriteFieldBegin("errors", thrift.LIST, 1); err != nil {
   708  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:errors: ", p), err)
   709  	}
   710  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Errors)); err != nil {
   711  		return thrift.PrependError("error writing list begin: ", err)
   712  	}
   713  	for _, v := range p.Errors {
   714  		if err := v.Write(oprot); err != nil {
   715  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
   716  		}
   717  	}
   718  	if err := oprot.WriteListEnd(); err != nil {
   719  		return thrift.PrependError("error writing list end: ", err)
   720  	}
   721  	if err := oprot.WriteFieldEnd(); err != nil {
   722  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:errors: ", p), err)
   723  	}
   724  	return err
   725  }
   726  
   727  func (p *WriteBatchRawErrors) String() string {
   728  	if p == nil {
   729  		return "<nil>"
   730  	}
   731  	return fmt.Sprintf("WriteBatchRawErrors(%+v)", *p)
   732  }
   733  
   734  func (p *WriteBatchRawErrors) Error() string {
   735  	return p.String()
   736  }
   737  
   738  // Attributes:
   739  //  - RangeStart
   740  //  - RangeEnd
   741  //  - NameSpace
   742  //  - ID
   743  //  - RangeType
   744  //  - ResultTimeType
   745  //  - Source
   746  type FetchRequest struct {
   747  	RangeStart     int64    `thrift:"rangeStart,1,required" db:"rangeStart" json:"rangeStart"`
   748  	RangeEnd       int64    `thrift:"rangeEnd,2,required" db:"rangeEnd" json:"rangeEnd"`
   749  	NameSpace      string   `thrift:"nameSpace,3,required" db:"nameSpace" json:"nameSpace"`
   750  	ID             string   `thrift:"id,4,required" db:"id" json:"id"`
   751  	RangeType      TimeType `thrift:"rangeType,5" db:"rangeType" json:"rangeType,omitempty"`
   752  	ResultTimeType TimeType `thrift:"resultTimeType,6" db:"resultTimeType" json:"resultTimeType,omitempty"`
   753  	Source         []byte   `thrift:"source,7" db:"source" json:"source,omitempty"`
   754  }
   755  
   756  func NewFetchRequest() *FetchRequest {
   757  	return &FetchRequest{
   758  		RangeType: 0,
   759  
   760  		ResultTimeType: 0,
   761  	}
   762  }
   763  
   764  func (p *FetchRequest) GetRangeStart() int64 {
   765  	return p.RangeStart
   766  }
   767  
   768  func (p *FetchRequest) GetRangeEnd() int64 {
   769  	return p.RangeEnd
   770  }
   771  
   772  func (p *FetchRequest) GetNameSpace() string {
   773  	return p.NameSpace
   774  }
   775  
   776  func (p *FetchRequest) GetID() string {
   777  	return p.ID
   778  }
   779  
   780  var FetchRequest_RangeType_DEFAULT TimeType = 0
   781  
   782  func (p *FetchRequest) GetRangeType() TimeType {
   783  	return p.RangeType
   784  }
   785  
   786  var FetchRequest_ResultTimeType_DEFAULT TimeType = 0
   787  
   788  func (p *FetchRequest) GetResultTimeType() TimeType {
   789  	return p.ResultTimeType
   790  }
   791  
   792  var FetchRequest_Source_DEFAULT []byte
   793  
   794  func (p *FetchRequest) GetSource() []byte {
   795  	return p.Source
   796  }
   797  func (p *FetchRequest) IsSetRangeType() bool {
   798  	return p.RangeType != FetchRequest_RangeType_DEFAULT
   799  }
   800  
   801  func (p *FetchRequest) IsSetResultTimeType() bool {
   802  	return p.ResultTimeType != FetchRequest_ResultTimeType_DEFAULT
   803  }
   804  
   805  func (p *FetchRequest) IsSetSource() bool {
   806  	return p.Source != nil
   807  }
   808  
   809  func (p *FetchRequest) Read(iprot thrift.TProtocol) error {
   810  	if _, err := iprot.ReadStructBegin(); err != nil {
   811  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
   812  	}
   813  
   814  	var issetRangeStart bool = false
   815  	var issetRangeEnd bool = false
   816  	var issetNameSpace bool = false
   817  	var issetID bool = false
   818  
   819  	for {
   820  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
   821  		if err != nil {
   822  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
   823  		}
   824  		if fieldTypeId == thrift.STOP {
   825  			break
   826  		}
   827  		switch fieldId {
   828  		case 1:
   829  			if err := p.ReadField1(iprot); err != nil {
   830  				return err
   831  			}
   832  			issetRangeStart = true
   833  		case 2:
   834  			if err := p.ReadField2(iprot); err != nil {
   835  				return err
   836  			}
   837  			issetRangeEnd = true
   838  		case 3:
   839  			if err := p.ReadField3(iprot); err != nil {
   840  				return err
   841  			}
   842  			issetNameSpace = true
   843  		case 4:
   844  			if err := p.ReadField4(iprot); err != nil {
   845  				return err
   846  			}
   847  			issetID = true
   848  		case 5:
   849  			if err := p.ReadField5(iprot); err != nil {
   850  				return err
   851  			}
   852  		case 6:
   853  			if err := p.ReadField6(iprot); err != nil {
   854  				return err
   855  			}
   856  		case 7:
   857  			if err := p.ReadField7(iprot); err != nil {
   858  				return err
   859  			}
   860  		default:
   861  			if err := iprot.Skip(fieldTypeId); err != nil {
   862  				return err
   863  			}
   864  		}
   865  		if err := iprot.ReadFieldEnd(); err != nil {
   866  			return err
   867  		}
   868  	}
   869  	if err := iprot.ReadStructEnd(); err != nil {
   870  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
   871  	}
   872  	if !issetRangeStart {
   873  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeStart is not set"))
   874  	}
   875  	if !issetRangeEnd {
   876  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeEnd is not set"))
   877  	}
   878  	if !issetNameSpace {
   879  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
   880  	}
   881  	if !issetID {
   882  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ID is not set"))
   883  	}
   884  	return nil
   885  }
   886  
   887  func (p *FetchRequest) ReadField1(iprot thrift.TProtocol) error {
   888  	if v, err := iprot.ReadI64(); err != nil {
   889  		return thrift.PrependError("error reading field 1: ", err)
   890  	} else {
   891  		p.RangeStart = v
   892  	}
   893  	return nil
   894  }
   895  
   896  func (p *FetchRequest) ReadField2(iprot thrift.TProtocol) error {
   897  	if v, err := iprot.ReadI64(); err != nil {
   898  		return thrift.PrependError("error reading field 2: ", err)
   899  	} else {
   900  		p.RangeEnd = v
   901  	}
   902  	return nil
   903  }
   904  
   905  func (p *FetchRequest) ReadField3(iprot thrift.TProtocol) error {
   906  	if v, err := iprot.ReadString(); err != nil {
   907  		return thrift.PrependError("error reading field 3: ", err)
   908  	} else {
   909  		p.NameSpace = v
   910  	}
   911  	return nil
   912  }
   913  
   914  func (p *FetchRequest) ReadField4(iprot thrift.TProtocol) error {
   915  	if v, err := iprot.ReadString(); err != nil {
   916  		return thrift.PrependError("error reading field 4: ", err)
   917  	} else {
   918  		p.ID = v
   919  	}
   920  	return nil
   921  }
   922  
   923  func (p *FetchRequest) ReadField5(iprot thrift.TProtocol) error {
   924  	if v, err := iprot.ReadI32(); err != nil {
   925  		return thrift.PrependError("error reading field 5: ", err)
   926  	} else {
   927  		temp := TimeType(v)
   928  		p.RangeType = temp
   929  	}
   930  	return nil
   931  }
   932  
   933  func (p *FetchRequest) ReadField6(iprot thrift.TProtocol) error {
   934  	if v, err := iprot.ReadI32(); err != nil {
   935  		return thrift.PrependError("error reading field 6: ", err)
   936  	} else {
   937  		temp := TimeType(v)
   938  		p.ResultTimeType = temp
   939  	}
   940  	return nil
   941  }
   942  
   943  func (p *FetchRequest) ReadField7(iprot thrift.TProtocol) error {
   944  	if v, err := iprot.ReadBinary(); err != nil {
   945  		return thrift.PrependError("error reading field 7: ", err)
   946  	} else {
   947  		p.Source = v
   948  	}
   949  	return nil
   950  }
   951  
   952  func (p *FetchRequest) Write(oprot thrift.TProtocol) error {
   953  	if err := oprot.WriteStructBegin("FetchRequest"); err != nil {
   954  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
   955  	}
   956  	if p != nil {
   957  		if err := p.writeField1(oprot); err != nil {
   958  			return err
   959  		}
   960  		if err := p.writeField2(oprot); err != nil {
   961  			return err
   962  		}
   963  		if err := p.writeField3(oprot); err != nil {
   964  			return err
   965  		}
   966  		if err := p.writeField4(oprot); err != nil {
   967  			return err
   968  		}
   969  		if err := p.writeField5(oprot); err != nil {
   970  			return err
   971  		}
   972  		if err := p.writeField6(oprot); err != nil {
   973  			return err
   974  		}
   975  		if err := p.writeField7(oprot); err != nil {
   976  			return err
   977  		}
   978  	}
   979  	if err := oprot.WriteFieldStop(); err != nil {
   980  		return thrift.PrependError("write field stop error: ", err)
   981  	}
   982  	if err := oprot.WriteStructEnd(); err != nil {
   983  		return thrift.PrependError("write struct stop error: ", err)
   984  	}
   985  	return nil
   986  }
   987  
   988  func (p *FetchRequest) writeField1(oprot thrift.TProtocol) (err error) {
   989  	if err := oprot.WriteFieldBegin("rangeStart", thrift.I64, 1); err != nil {
   990  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:rangeStart: ", p), err)
   991  	}
   992  	if err := oprot.WriteI64(int64(p.RangeStart)); err != nil {
   993  		return thrift.PrependError(fmt.Sprintf("%T.rangeStart (1) field write error: ", p), err)
   994  	}
   995  	if err := oprot.WriteFieldEnd(); err != nil {
   996  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:rangeStart: ", p), err)
   997  	}
   998  	return err
   999  }
  1000  
  1001  func (p *FetchRequest) writeField2(oprot thrift.TProtocol) (err error) {
  1002  	if err := oprot.WriteFieldBegin("rangeEnd", thrift.I64, 2); err != nil {
  1003  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:rangeEnd: ", p), err)
  1004  	}
  1005  	if err := oprot.WriteI64(int64(p.RangeEnd)); err != nil {
  1006  		return thrift.PrependError(fmt.Sprintf("%T.rangeEnd (2) field write error: ", p), err)
  1007  	}
  1008  	if err := oprot.WriteFieldEnd(); err != nil {
  1009  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:rangeEnd: ", p), err)
  1010  	}
  1011  	return err
  1012  }
  1013  
  1014  func (p *FetchRequest) writeField3(oprot thrift.TProtocol) (err error) {
  1015  	if err := oprot.WriteFieldBegin("nameSpace", thrift.STRING, 3); err != nil {
  1016  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:nameSpace: ", p), err)
  1017  	}
  1018  	if err := oprot.WriteString(string(p.NameSpace)); err != nil {
  1019  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (3) field write error: ", p), err)
  1020  	}
  1021  	if err := oprot.WriteFieldEnd(); err != nil {
  1022  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:nameSpace: ", p), err)
  1023  	}
  1024  	return err
  1025  }
  1026  
  1027  func (p *FetchRequest) writeField4(oprot thrift.TProtocol) (err error) {
  1028  	if err := oprot.WriteFieldBegin("id", thrift.STRING, 4); err != nil {
  1029  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:id: ", p), err)
  1030  	}
  1031  	if err := oprot.WriteString(string(p.ID)); err != nil {
  1032  		return thrift.PrependError(fmt.Sprintf("%T.id (4) field write error: ", p), err)
  1033  	}
  1034  	if err := oprot.WriteFieldEnd(); err != nil {
  1035  		return thrift.PrependError(fmt.Sprintf("%T write field end error 4:id: ", p), err)
  1036  	}
  1037  	return err
  1038  }
  1039  
  1040  func (p *FetchRequest) writeField5(oprot thrift.TProtocol) (err error) {
  1041  	if p.IsSetRangeType() {
  1042  		if err := oprot.WriteFieldBegin("rangeType", thrift.I32, 5); err != nil {
  1043  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:rangeType: ", p), err)
  1044  		}
  1045  		if err := oprot.WriteI32(int32(p.RangeType)); err != nil {
  1046  			return thrift.PrependError(fmt.Sprintf("%T.rangeType (5) field write error: ", p), err)
  1047  		}
  1048  		if err := oprot.WriteFieldEnd(); err != nil {
  1049  			return thrift.PrependError(fmt.Sprintf("%T write field end error 5:rangeType: ", p), err)
  1050  		}
  1051  	}
  1052  	return err
  1053  }
  1054  
  1055  func (p *FetchRequest) writeField6(oprot thrift.TProtocol) (err error) {
  1056  	if p.IsSetResultTimeType() {
  1057  		if err := oprot.WriteFieldBegin("resultTimeType", thrift.I32, 6); err != nil {
  1058  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:resultTimeType: ", p), err)
  1059  		}
  1060  		if err := oprot.WriteI32(int32(p.ResultTimeType)); err != nil {
  1061  			return thrift.PrependError(fmt.Sprintf("%T.resultTimeType (6) field write error: ", p), err)
  1062  		}
  1063  		if err := oprot.WriteFieldEnd(); err != nil {
  1064  			return thrift.PrependError(fmt.Sprintf("%T write field end error 6:resultTimeType: ", p), err)
  1065  		}
  1066  	}
  1067  	return err
  1068  }
  1069  
  1070  func (p *FetchRequest) writeField7(oprot thrift.TProtocol) (err error) {
  1071  	if p.IsSetSource() {
  1072  		if err := oprot.WriteFieldBegin("source", thrift.STRING, 7); err != nil {
  1073  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 7:source: ", p), err)
  1074  		}
  1075  		if err := oprot.WriteBinary(p.Source); err != nil {
  1076  			return thrift.PrependError(fmt.Sprintf("%T.source (7) field write error: ", p), err)
  1077  		}
  1078  		if err := oprot.WriteFieldEnd(); err != nil {
  1079  			return thrift.PrependError(fmt.Sprintf("%T write field end error 7:source: ", p), err)
  1080  		}
  1081  	}
  1082  	return err
  1083  }
  1084  
  1085  func (p *FetchRequest) String() string {
  1086  	if p == nil {
  1087  		return "<nil>"
  1088  	}
  1089  	return fmt.Sprintf("FetchRequest(%+v)", *p)
  1090  }
  1091  
  1092  // Attributes:
  1093  //  - Datapoints
  1094  type FetchResult_ struct {
  1095  	Datapoints []*Datapoint `thrift:"datapoints,1,required" db:"datapoints" json:"datapoints"`
  1096  }
  1097  
  1098  func NewFetchResult_() *FetchResult_ {
  1099  	return &FetchResult_{}
  1100  }
  1101  
  1102  func (p *FetchResult_) GetDatapoints() []*Datapoint {
  1103  	return p.Datapoints
  1104  }
  1105  func (p *FetchResult_) Read(iprot thrift.TProtocol) error {
  1106  	if _, err := iprot.ReadStructBegin(); err != nil {
  1107  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  1108  	}
  1109  
  1110  	var issetDatapoints bool = false
  1111  
  1112  	for {
  1113  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  1114  		if err != nil {
  1115  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  1116  		}
  1117  		if fieldTypeId == thrift.STOP {
  1118  			break
  1119  		}
  1120  		switch fieldId {
  1121  		case 1:
  1122  			if err := p.ReadField1(iprot); err != nil {
  1123  				return err
  1124  			}
  1125  			issetDatapoints = true
  1126  		default:
  1127  			if err := iprot.Skip(fieldTypeId); err != nil {
  1128  				return err
  1129  			}
  1130  		}
  1131  		if err := iprot.ReadFieldEnd(); err != nil {
  1132  			return err
  1133  		}
  1134  	}
  1135  	if err := iprot.ReadStructEnd(); err != nil {
  1136  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  1137  	}
  1138  	if !issetDatapoints {
  1139  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Datapoints is not set"))
  1140  	}
  1141  	return nil
  1142  }
  1143  
  1144  func (p *FetchResult_) ReadField1(iprot thrift.TProtocol) error {
  1145  	_, size, err := iprot.ReadListBegin()
  1146  	if err != nil {
  1147  		return thrift.PrependError("error reading list begin: ", err)
  1148  	}
  1149  	tSlice := make([]*Datapoint, 0, size)
  1150  	p.Datapoints = tSlice
  1151  	for i := 0; i < size; i++ {
  1152  		_elem1 := &Datapoint{
  1153  			TimestampTimeType: 0,
  1154  		}
  1155  		if err := _elem1.Read(iprot); err != nil {
  1156  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem1), err)
  1157  		}
  1158  		p.Datapoints = append(p.Datapoints, _elem1)
  1159  	}
  1160  	if err := iprot.ReadListEnd(); err != nil {
  1161  		return thrift.PrependError("error reading list end: ", err)
  1162  	}
  1163  	return nil
  1164  }
  1165  
  1166  func (p *FetchResult_) Write(oprot thrift.TProtocol) error {
  1167  	if err := oprot.WriteStructBegin("FetchResult"); err != nil {
  1168  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  1169  	}
  1170  	if p != nil {
  1171  		if err := p.writeField1(oprot); err != nil {
  1172  			return err
  1173  		}
  1174  	}
  1175  	if err := oprot.WriteFieldStop(); err != nil {
  1176  		return thrift.PrependError("write field stop error: ", err)
  1177  	}
  1178  	if err := oprot.WriteStructEnd(); err != nil {
  1179  		return thrift.PrependError("write struct stop error: ", err)
  1180  	}
  1181  	return nil
  1182  }
  1183  
  1184  func (p *FetchResult_) writeField1(oprot thrift.TProtocol) (err error) {
  1185  	if err := oprot.WriteFieldBegin("datapoints", thrift.LIST, 1); err != nil {
  1186  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:datapoints: ", p), err)
  1187  	}
  1188  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Datapoints)); err != nil {
  1189  		return thrift.PrependError("error writing list begin: ", err)
  1190  	}
  1191  	for _, v := range p.Datapoints {
  1192  		if err := v.Write(oprot); err != nil {
  1193  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  1194  		}
  1195  	}
  1196  	if err := oprot.WriteListEnd(); err != nil {
  1197  		return thrift.PrependError("error writing list end: ", err)
  1198  	}
  1199  	if err := oprot.WriteFieldEnd(); err != nil {
  1200  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:datapoints: ", p), err)
  1201  	}
  1202  	return err
  1203  }
  1204  
  1205  func (p *FetchResult_) String() string {
  1206  	if p == nil {
  1207  		return "<nil>"
  1208  	}
  1209  	return fmt.Sprintf("FetchResult_(%+v)", *p)
  1210  }
  1211  
  1212  // Attributes:
  1213  //  - Timestamp
  1214  //  - Value
  1215  //  - Annotation
  1216  //  - TimestampTimeType
  1217  type Datapoint struct {
  1218  	Timestamp         int64    `thrift:"timestamp,1,required" db:"timestamp" json:"timestamp"`
  1219  	Value             float64  `thrift:"value,2,required" db:"value" json:"value"`
  1220  	Annotation        []byte   `thrift:"annotation,3" db:"annotation" json:"annotation,omitempty"`
  1221  	TimestampTimeType TimeType `thrift:"timestampTimeType,4" db:"timestampTimeType" json:"timestampTimeType,omitempty"`
  1222  }
  1223  
  1224  func NewDatapoint() *Datapoint {
  1225  	return &Datapoint{
  1226  		TimestampTimeType: 0,
  1227  	}
  1228  }
  1229  
  1230  func (p *Datapoint) GetTimestamp() int64 {
  1231  	return p.Timestamp
  1232  }
  1233  
  1234  func (p *Datapoint) GetValue() float64 {
  1235  	return p.Value
  1236  }
  1237  
  1238  var Datapoint_Annotation_DEFAULT []byte
  1239  
  1240  func (p *Datapoint) GetAnnotation() []byte {
  1241  	return p.Annotation
  1242  }
  1243  
  1244  var Datapoint_TimestampTimeType_DEFAULT TimeType = 0
  1245  
  1246  func (p *Datapoint) GetTimestampTimeType() TimeType {
  1247  	return p.TimestampTimeType
  1248  }
  1249  func (p *Datapoint) IsSetAnnotation() bool {
  1250  	return p.Annotation != nil
  1251  }
  1252  
  1253  func (p *Datapoint) IsSetTimestampTimeType() bool {
  1254  	return p.TimestampTimeType != Datapoint_TimestampTimeType_DEFAULT
  1255  }
  1256  
  1257  func (p *Datapoint) Read(iprot thrift.TProtocol) error {
  1258  	if _, err := iprot.ReadStructBegin(); err != nil {
  1259  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  1260  	}
  1261  
  1262  	var issetTimestamp bool = false
  1263  	var issetValue bool = false
  1264  
  1265  	for {
  1266  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  1267  		if err != nil {
  1268  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  1269  		}
  1270  		if fieldTypeId == thrift.STOP {
  1271  			break
  1272  		}
  1273  		switch fieldId {
  1274  		case 1:
  1275  			if err := p.ReadField1(iprot); err != nil {
  1276  				return err
  1277  			}
  1278  			issetTimestamp = true
  1279  		case 2:
  1280  			if err := p.ReadField2(iprot); err != nil {
  1281  				return err
  1282  			}
  1283  			issetValue = true
  1284  		case 3:
  1285  			if err := p.ReadField3(iprot); err != nil {
  1286  				return err
  1287  			}
  1288  		case 4:
  1289  			if err := p.ReadField4(iprot); err != nil {
  1290  				return err
  1291  			}
  1292  		default:
  1293  			if err := iprot.Skip(fieldTypeId); err != nil {
  1294  				return err
  1295  			}
  1296  		}
  1297  		if err := iprot.ReadFieldEnd(); err != nil {
  1298  			return err
  1299  		}
  1300  	}
  1301  	if err := iprot.ReadStructEnd(); err != nil {
  1302  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  1303  	}
  1304  	if !issetTimestamp {
  1305  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Timestamp is not set"))
  1306  	}
  1307  	if !issetValue {
  1308  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Value is not set"))
  1309  	}
  1310  	return nil
  1311  }
  1312  
  1313  func (p *Datapoint) ReadField1(iprot thrift.TProtocol) error {
  1314  	if v, err := iprot.ReadI64(); err != nil {
  1315  		return thrift.PrependError("error reading field 1: ", err)
  1316  	} else {
  1317  		p.Timestamp = v
  1318  	}
  1319  	return nil
  1320  }
  1321  
  1322  func (p *Datapoint) ReadField2(iprot thrift.TProtocol) error {
  1323  	if v, err := iprot.ReadDouble(); err != nil {
  1324  		return thrift.PrependError("error reading field 2: ", err)
  1325  	} else {
  1326  		p.Value = v
  1327  	}
  1328  	return nil
  1329  }
  1330  
  1331  func (p *Datapoint) ReadField3(iprot thrift.TProtocol) error {
  1332  	if v, err := iprot.ReadBinary(); err != nil {
  1333  		return thrift.PrependError("error reading field 3: ", err)
  1334  	} else {
  1335  		p.Annotation = v
  1336  	}
  1337  	return nil
  1338  }
  1339  
  1340  func (p *Datapoint) ReadField4(iprot thrift.TProtocol) error {
  1341  	if v, err := iprot.ReadI32(); err != nil {
  1342  		return thrift.PrependError("error reading field 4: ", err)
  1343  	} else {
  1344  		temp := TimeType(v)
  1345  		p.TimestampTimeType = temp
  1346  	}
  1347  	return nil
  1348  }
  1349  
  1350  func (p *Datapoint) Write(oprot thrift.TProtocol) error {
  1351  	if err := oprot.WriteStructBegin("Datapoint"); err != nil {
  1352  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  1353  	}
  1354  	if p != nil {
  1355  		if err := p.writeField1(oprot); err != nil {
  1356  			return err
  1357  		}
  1358  		if err := p.writeField2(oprot); err != nil {
  1359  			return err
  1360  		}
  1361  		if err := p.writeField3(oprot); err != nil {
  1362  			return err
  1363  		}
  1364  		if err := p.writeField4(oprot); err != nil {
  1365  			return err
  1366  		}
  1367  	}
  1368  	if err := oprot.WriteFieldStop(); err != nil {
  1369  		return thrift.PrependError("write field stop error: ", err)
  1370  	}
  1371  	if err := oprot.WriteStructEnd(); err != nil {
  1372  		return thrift.PrependError("write struct stop error: ", err)
  1373  	}
  1374  	return nil
  1375  }
  1376  
  1377  func (p *Datapoint) writeField1(oprot thrift.TProtocol) (err error) {
  1378  	if err := oprot.WriteFieldBegin("timestamp", thrift.I64, 1); err != nil {
  1379  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:timestamp: ", p), err)
  1380  	}
  1381  	if err := oprot.WriteI64(int64(p.Timestamp)); err != nil {
  1382  		return thrift.PrependError(fmt.Sprintf("%T.timestamp (1) field write error: ", p), err)
  1383  	}
  1384  	if err := oprot.WriteFieldEnd(); err != nil {
  1385  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:timestamp: ", p), err)
  1386  	}
  1387  	return err
  1388  }
  1389  
  1390  func (p *Datapoint) writeField2(oprot thrift.TProtocol) (err error) {
  1391  	if err := oprot.WriteFieldBegin("value", thrift.DOUBLE, 2); err != nil {
  1392  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:value: ", p), err)
  1393  	}
  1394  	if err := oprot.WriteDouble(float64(p.Value)); err != nil {
  1395  		return thrift.PrependError(fmt.Sprintf("%T.value (2) field write error: ", p), err)
  1396  	}
  1397  	if err := oprot.WriteFieldEnd(); err != nil {
  1398  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:value: ", p), err)
  1399  	}
  1400  	return err
  1401  }
  1402  
  1403  func (p *Datapoint) writeField3(oprot thrift.TProtocol) (err error) {
  1404  	if p.IsSetAnnotation() {
  1405  		if err := oprot.WriteFieldBegin("annotation", thrift.STRING, 3); err != nil {
  1406  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:annotation: ", p), err)
  1407  		}
  1408  		if err := oprot.WriteBinary(p.Annotation); err != nil {
  1409  			return thrift.PrependError(fmt.Sprintf("%T.annotation (3) field write error: ", p), err)
  1410  		}
  1411  		if err := oprot.WriteFieldEnd(); err != nil {
  1412  			return thrift.PrependError(fmt.Sprintf("%T write field end error 3:annotation: ", p), err)
  1413  		}
  1414  	}
  1415  	return err
  1416  }
  1417  
  1418  func (p *Datapoint) writeField4(oprot thrift.TProtocol) (err error) {
  1419  	if p.IsSetTimestampTimeType() {
  1420  		if err := oprot.WriteFieldBegin("timestampTimeType", thrift.I32, 4); err != nil {
  1421  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:timestampTimeType: ", p), err)
  1422  		}
  1423  		if err := oprot.WriteI32(int32(p.TimestampTimeType)); err != nil {
  1424  			return thrift.PrependError(fmt.Sprintf("%T.timestampTimeType (4) field write error: ", p), err)
  1425  		}
  1426  		if err := oprot.WriteFieldEnd(); err != nil {
  1427  			return thrift.PrependError(fmt.Sprintf("%T write field end error 4:timestampTimeType: ", p), err)
  1428  		}
  1429  	}
  1430  	return err
  1431  }
  1432  
  1433  func (p *Datapoint) String() string {
  1434  	if p == nil {
  1435  		return "<nil>"
  1436  	}
  1437  	return fmt.Sprintf("Datapoint(%+v)", *p)
  1438  }
  1439  
  1440  // Attributes:
  1441  //  - NameSpace
  1442  //  - ID
  1443  //  - Datapoint
  1444  type WriteRequest struct {
  1445  	NameSpace string     `thrift:"nameSpace,1,required" db:"nameSpace" json:"nameSpace"`
  1446  	ID        string     `thrift:"id,2,required" db:"id" json:"id"`
  1447  	Datapoint *Datapoint `thrift:"datapoint,3,required" db:"datapoint" json:"datapoint"`
  1448  }
  1449  
  1450  func NewWriteRequest() *WriteRequest {
  1451  	return &WriteRequest{}
  1452  }
  1453  
  1454  func (p *WriteRequest) GetNameSpace() string {
  1455  	return p.NameSpace
  1456  }
  1457  
  1458  func (p *WriteRequest) GetID() string {
  1459  	return p.ID
  1460  }
  1461  
  1462  var WriteRequest_Datapoint_DEFAULT *Datapoint
  1463  
  1464  func (p *WriteRequest) GetDatapoint() *Datapoint {
  1465  	if !p.IsSetDatapoint() {
  1466  		return WriteRequest_Datapoint_DEFAULT
  1467  	}
  1468  	return p.Datapoint
  1469  }
  1470  func (p *WriteRequest) IsSetDatapoint() bool {
  1471  	return p.Datapoint != nil
  1472  }
  1473  
  1474  func (p *WriteRequest) Read(iprot thrift.TProtocol) error {
  1475  	if _, err := iprot.ReadStructBegin(); err != nil {
  1476  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  1477  	}
  1478  
  1479  	var issetNameSpace bool = false
  1480  	var issetID bool = false
  1481  	var issetDatapoint bool = false
  1482  
  1483  	for {
  1484  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  1485  		if err != nil {
  1486  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  1487  		}
  1488  		if fieldTypeId == thrift.STOP {
  1489  			break
  1490  		}
  1491  		switch fieldId {
  1492  		case 1:
  1493  			if err := p.ReadField1(iprot); err != nil {
  1494  				return err
  1495  			}
  1496  			issetNameSpace = true
  1497  		case 2:
  1498  			if err := p.ReadField2(iprot); err != nil {
  1499  				return err
  1500  			}
  1501  			issetID = true
  1502  		case 3:
  1503  			if err := p.ReadField3(iprot); err != nil {
  1504  				return err
  1505  			}
  1506  			issetDatapoint = true
  1507  		default:
  1508  			if err := iprot.Skip(fieldTypeId); err != nil {
  1509  				return err
  1510  			}
  1511  		}
  1512  		if err := iprot.ReadFieldEnd(); err != nil {
  1513  			return err
  1514  		}
  1515  	}
  1516  	if err := iprot.ReadStructEnd(); err != nil {
  1517  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  1518  	}
  1519  	if !issetNameSpace {
  1520  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
  1521  	}
  1522  	if !issetID {
  1523  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ID is not set"))
  1524  	}
  1525  	if !issetDatapoint {
  1526  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Datapoint is not set"))
  1527  	}
  1528  	return nil
  1529  }
  1530  
  1531  func (p *WriteRequest) ReadField1(iprot thrift.TProtocol) error {
  1532  	if v, err := iprot.ReadString(); err != nil {
  1533  		return thrift.PrependError("error reading field 1: ", err)
  1534  	} else {
  1535  		p.NameSpace = v
  1536  	}
  1537  	return nil
  1538  }
  1539  
  1540  func (p *WriteRequest) ReadField2(iprot thrift.TProtocol) error {
  1541  	if v, err := iprot.ReadString(); err != nil {
  1542  		return thrift.PrependError("error reading field 2: ", err)
  1543  	} else {
  1544  		p.ID = v
  1545  	}
  1546  	return nil
  1547  }
  1548  
  1549  func (p *WriteRequest) ReadField3(iprot thrift.TProtocol) error {
  1550  	p.Datapoint = &Datapoint{
  1551  		TimestampTimeType: 0,
  1552  	}
  1553  	if err := p.Datapoint.Read(iprot); err != nil {
  1554  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Datapoint), err)
  1555  	}
  1556  	return nil
  1557  }
  1558  
  1559  func (p *WriteRequest) Write(oprot thrift.TProtocol) error {
  1560  	if err := oprot.WriteStructBegin("WriteRequest"); err != nil {
  1561  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  1562  	}
  1563  	if p != nil {
  1564  		if err := p.writeField1(oprot); err != nil {
  1565  			return err
  1566  		}
  1567  		if err := p.writeField2(oprot); err != nil {
  1568  			return err
  1569  		}
  1570  		if err := p.writeField3(oprot); err != nil {
  1571  			return err
  1572  		}
  1573  	}
  1574  	if err := oprot.WriteFieldStop(); err != nil {
  1575  		return thrift.PrependError("write field stop error: ", err)
  1576  	}
  1577  	if err := oprot.WriteStructEnd(); err != nil {
  1578  		return thrift.PrependError("write struct stop error: ", err)
  1579  	}
  1580  	return nil
  1581  }
  1582  
  1583  func (p *WriteRequest) writeField1(oprot thrift.TProtocol) (err error) {
  1584  	if err := oprot.WriteFieldBegin("nameSpace", thrift.STRING, 1); err != nil {
  1585  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:nameSpace: ", p), err)
  1586  	}
  1587  	if err := oprot.WriteString(string(p.NameSpace)); err != nil {
  1588  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (1) field write error: ", p), err)
  1589  	}
  1590  	if err := oprot.WriteFieldEnd(); err != nil {
  1591  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:nameSpace: ", p), err)
  1592  	}
  1593  	return err
  1594  }
  1595  
  1596  func (p *WriteRequest) writeField2(oprot thrift.TProtocol) (err error) {
  1597  	if err := oprot.WriteFieldBegin("id", thrift.STRING, 2); err != nil {
  1598  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:id: ", p), err)
  1599  	}
  1600  	if err := oprot.WriteString(string(p.ID)); err != nil {
  1601  		return thrift.PrependError(fmt.Sprintf("%T.id (2) field write error: ", p), err)
  1602  	}
  1603  	if err := oprot.WriteFieldEnd(); err != nil {
  1604  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:id: ", p), err)
  1605  	}
  1606  	return err
  1607  }
  1608  
  1609  func (p *WriteRequest) writeField3(oprot thrift.TProtocol) (err error) {
  1610  	if err := oprot.WriteFieldBegin("datapoint", thrift.STRUCT, 3); err != nil {
  1611  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:datapoint: ", p), err)
  1612  	}
  1613  	if err := p.Datapoint.Write(oprot); err != nil {
  1614  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Datapoint), err)
  1615  	}
  1616  	if err := oprot.WriteFieldEnd(); err != nil {
  1617  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:datapoint: ", p), err)
  1618  	}
  1619  	return err
  1620  }
  1621  
  1622  func (p *WriteRequest) String() string {
  1623  	if p == nil {
  1624  		return "<nil>"
  1625  	}
  1626  	return fmt.Sprintf("WriteRequest(%+v)", *p)
  1627  }
  1628  
  1629  // Attributes:
  1630  //  - NameSpace
  1631  //  - ID
  1632  //  - Tags
  1633  //  - Datapoint
  1634  type WriteTaggedRequest struct {
  1635  	NameSpace string     `thrift:"nameSpace,1,required" db:"nameSpace" json:"nameSpace"`
  1636  	ID        string     `thrift:"id,2,required" db:"id" json:"id"`
  1637  	Tags      []*Tag     `thrift:"tags,3,required" db:"tags" json:"tags"`
  1638  	Datapoint *Datapoint `thrift:"datapoint,4,required" db:"datapoint" json:"datapoint"`
  1639  }
  1640  
  1641  func NewWriteTaggedRequest() *WriteTaggedRequest {
  1642  	return &WriteTaggedRequest{}
  1643  }
  1644  
  1645  func (p *WriteTaggedRequest) GetNameSpace() string {
  1646  	return p.NameSpace
  1647  }
  1648  
  1649  func (p *WriteTaggedRequest) GetID() string {
  1650  	return p.ID
  1651  }
  1652  
  1653  func (p *WriteTaggedRequest) GetTags() []*Tag {
  1654  	return p.Tags
  1655  }
  1656  
  1657  var WriteTaggedRequest_Datapoint_DEFAULT *Datapoint
  1658  
  1659  func (p *WriteTaggedRequest) GetDatapoint() *Datapoint {
  1660  	if !p.IsSetDatapoint() {
  1661  		return WriteTaggedRequest_Datapoint_DEFAULT
  1662  	}
  1663  	return p.Datapoint
  1664  }
  1665  func (p *WriteTaggedRequest) IsSetDatapoint() bool {
  1666  	return p.Datapoint != nil
  1667  }
  1668  
  1669  func (p *WriteTaggedRequest) Read(iprot thrift.TProtocol) error {
  1670  	if _, err := iprot.ReadStructBegin(); err != nil {
  1671  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  1672  	}
  1673  
  1674  	var issetNameSpace bool = false
  1675  	var issetID bool = false
  1676  	var issetTags bool = false
  1677  	var issetDatapoint bool = false
  1678  
  1679  	for {
  1680  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  1681  		if err != nil {
  1682  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  1683  		}
  1684  		if fieldTypeId == thrift.STOP {
  1685  			break
  1686  		}
  1687  		switch fieldId {
  1688  		case 1:
  1689  			if err := p.ReadField1(iprot); err != nil {
  1690  				return err
  1691  			}
  1692  			issetNameSpace = true
  1693  		case 2:
  1694  			if err := p.ReadField2(iprot); err != nil {
  1695  				return err
  1696  			}
  1697  			issetID = true
  1698  		case 3:
  1699  			if err := p.ReadField3(iprot); err != nil {
  1700  				return err
  1701  			}
  1702  			issetTags = true
  1703  		case 4:
  1704  			if err := p.ReadField4(iprot); err != nil {
  1705  				return err
  1706  			}
  1707  			issetDatapoint = true
  1708  		default:
  1709  			if err := iprot.Skip(fieldTypeId); err != nil {
  1710  				return err
  1711  			}
  1712  		}
  1713  		if err := iprot.ReadFieldEnd(); err != nil {
  1714  			return err
  1715  		}
  1716  	}
  1717  	if err := iprot.ReadStructEnd(); err != nil {
  1718  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  1719  	}
  1720  	if !issetNameSpace {
  1721  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
  1722  	}
  1723  	if !issetID {
  1724  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ID is not set"))
  1725  	}
  1726  	if !issetTags {
  1727  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Tags is not set"))
  1728  	}
  1729  	if !issetDatapoint {
  1730  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Datapoint is not set"))
  1731  	}
  1732  	return nil
  1733  }
  1734  
  1735  func (p *WriteTaggedRequest) ReadField1(iprot thrift.TProtocol) error {
  1736  	if v, err := iprot.ReadString(); err != nil {
  1737  		return thrift.PrependError("error reading field 1: ", err)
  1738  	} else {
  1739  		p.NameSpace = v
  1740  	}
  1741  	return nil
  1742  }
  1743  
  1744  func (p *WriteTaggedRequest) ReadField2(iprot thrift.TProtocol) error {
  1745  	if v, err := iprot.ReadString(); err != nil {
  1746  		return thrift.PrependError("error reading field 2: ", err)
  1747  	} else {
  1748  		p.ID = v
  1749  	}
  1750  	return nil
  1751  }
  1752  
  1753  func (p *WriteTaggedRequest) ReadField3(iprot thrift.TProtocol) error {
  1754  	_, size, err := iprot.ReadListBegin()
  1755  	if err != nil {
  1756  		return thrift.PrependError("error reading list begin: ", err)
  1757  	}
  1758  	tSlice := make([]*Tag, 0, size)
  1759  	p.Tags = tSlice
  1760  	for i := 0; i < size; i++ {
  1761  		_elem2 := &Tag{}
  1762  		if err := _elem2.Read(iprot); err != nil {
  1763  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem2), err)
  1764  		}
  1765  		p.Tags = append(p.Tags, _elem2)
  1766  	}
  1767  	if err := iprot.ReadListEnd(); err != nil {
  1768  		return thrift.PrependError("error reading list end: ", err)
  1769  	}
  1770  	return nil
  1771  }
  1772  
  1773  func (p *WriteTaggedRequest) ReadField4(iprot thrift.TProtocol) error {
  1774  	p.Datapoint = &Datapoint{
  1775  		TimestampTimeType: 0,
  1776  	}
  1777  	if err := p.Datapoint.Read(iprot); err != nil {
  1778  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Datapoint), err)
  1779  	}
  1780  	return nil
  1781  }
  1782  
  1783  func (p *WriteTaggedRequest) Write(oprot thrift.TProtocol) error {
  1784  	if err := oprot.WriteStructBegin("WriteTaggedRequest"); err != nil {
  1785  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  1786  	}
  1787  	if p != nil {
  1788  		if err := p.writeField1(oprot); err != nil {
  1789  			return err
  1790  		}
  1791  		if err := p.writeField2(oprot); err != nil {
  1792  			return err
  1793  		}
  1794  		if err := p.writeField3(oprot); err != nil {
  1795  			return err
  1796  		}
  1797  		if err := p.writeField4(oprot); err != nil {
  1798  			return err
  1799  		}
  1800  	}
  1801  	if err := oprot.WriteFieldStop(); err != nil {
  1802  		return thrift.PrependError("write field stop error: ", err)
  1803  	}
  1804  	if err := oprot.WriteStructEnd(); err != nil {
  1805  		return thrift.PrependError("write struct stop error: ", err)
  1806  	}
  1807  	return nil
  1808  }
  1809  
  1810  func (p *WriteTaggedRequest) writeField1(oprot thrift.TProtocol) (err error) {
  1811  	if err := oprot.WriteFieldBegin("nameSpace", thrift.STRING, 1); err != nil {
  1812  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:nameSpace: ", p), err)
  1813  	}
  1814  	if err := oprot.WriteString(string(p.NameSpace)); err != nil {
  1815  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (1) field write error: ", p), err)
  1816  	}
  1817  	if err := oprot.WriteFieldEnd(); err != nil {
  1818  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:nameSpace: ", p), err)
  1819  	}
  1820  	return err
  1821  }
  1822  
  1823  func (p *WriteTaggedRequest) writeField2(oprot thrift.TProtocol) (err error) {
  1824  	if err := oprot.WriteFieldBegin("id", thrift.STRING, 2); err != nil {
  1825  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:id: ", p), err)
  1826  	}
  1827  	if err := oprot.WriteString(string(p.ID)); err != nil {
  1828  		return thrift.PrependError(fmt.Sprintf("%T.id (2) field write error: ", p), err)
  1829  	}
  1830  	if err := oprot.WriteFieldEnd(); err != nil {
  1831  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:id: ", p), err)
  1832  	}
  1833  	return err
  1834  }
  1835  
  1836  func (p *WriteTaggedRequest) writeField3(oprot thrift.TProtocol) (err error) {
  1837  	if err := oprot.WriteFieldBegin("tags", thrift.LIST, 3); err != nil {
  1838  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:tags: ", p), err)
  1839  	}
  1840  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Tags)); err != nil {
  1841  		return thrift.PrependError("error writing list begin: ", err)
  1842  	}
  1843  	for _, v := range p.Tags {
  1844  		if err := v.Write(oprot); err != nil {
  1845  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  1846  		}
  1847  	}
  1848  	if err := oprot.WriteListEnd(); err != nil {
  1849  		return thrift.PrependError("error writing list end: ", err)
  1850  	}
  1851  	if err := oprot.WriteFieldEnd(); err != nil {
  1852  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:tags: ", p), err)
  1853  	}
  1854  	return err
  1855  }
  1856  
  1857  func (p *WriteTaggedRequest) writeField4(oprot thrift.TProtocol) (err error) {
  1858  	if err := oprot.WriteFieldBegin("datapoint", thrift.STRUCT, 4); err != nil {
  1859  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:datapoint: ", p), err)
  1860  	}
  1861  	if err := p.Datapoint.Write(oprot); err != nil {
  1862  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Datapoint), err)
  1863  	}
  1864  	if err := oprot.WriteFieldEnd(); err != nil {
  1865  		return thrift.PrependError(fmt.Sprintf("%T write field end error 4:datapoint: ", p), err)
  1866  	}
  1867  	return err
  1868  }
  1869  
  1870  func (p *WriteTaggedRequest) String() string {
  1871  	if p == nil {
  1872  		return "<nil>"
  1873  	}
  1874  	return fmt.Sprintf("WriteTaggedRequest(%+v)", *p)
  1875  }
  1876  
  1877  // Attributes:
  1878  //  - RangeStart
  1879  //  - RangeEnd
  1880  //  - NameSpace
  1881  //  - Ids
  1882  //  - RangeTimeType
  1883  //  - Source
  1884  type FetchBatchRawRequest struct {
  1885  	RangeStart    int64    `thrift:"rangeStart,1,required" db:"rangeStart" json:"rangeStart"`
  1886  	RangeEnd      int64    `thrift:"rangeEnd,2,required" db:"rangeEnd" json:"rangeEnd"`
  1887  	NameSpace     []byte   `thrift:"nameSpace,3,required" db:"nameSpace" json:"nameSpace"`
  1888  	Ids           [][]byte `thrift:"ids,4,required" db:"ids" json:"ids"`
  1889  	RangeTimeType TimeType `thrift:"rangeTimeType,5" db:"rangeTimeType" json:"rangeTimeType,omitempty"`
  1890  	Source        []byte   `thrift:"source,6" db:"source" json:"source,omitempty"`
  1891  }
  1892  
  1893  func NewFetchBatchRawRequest() *FetchBatchRawRequest {
  1894  	return &FetchBatchRawRequest{
  1895  		RangeTimeType: 0,
  1896  	}
  1897  }
  1898  
  1899  func (p *FetchBatchRawRequest) GetRangeStart() int64 {
  1900  	return p.RangeStart
  1901  }
  1902  
  1903  func (p *FetchBatchRawRequest) GetRangeEnd() int64 {
  1904  	return p.RangeEnd
  1905  }
  1906  
  1907  func (p *FetchBatchRawRequest) GetNameSpace() []byte {
  1908  	return p.NameSpace
  1909  }
  1910  
  1911  func (p *FetchBatchRawRequest) GetIds() [][]byte {
  1912  	return p.Ids
  1913  }
  1914  
  1915  var FetchBatchRawRequest_RangeTimeType_DEFAULT TimeType = 0
  1916  
  1917  func (p *FetchBatchRawRequest) GetRangeTimeType() TimeType {
  1918  	return p.RangeTimeType
  1919  }
  1920  
  1921  var FetchBatchRawRequest_Source_DEFAULT []byte
  1922  
  1923  func (p *FetchBatchRawRequest) GetSource() []byte {
  1924  	return p.Source
  1925  }
  1926  func (p *FetchBatchRawRequest) IsSetRangeTimeType() bool {
  1927  	return p.RangeTimeType != FetchBatchRawRequest_RangeTimeType_DEFAULT
  1928  }
  1929  
  1930  func (p *FetchBatchRawRequest) IsSetSource() bool {
  1931  	return p.Source != nil
  1932  }
  1933  
  1934  func (p *FetchBatchRawRequest) Read(iprot thrift.TProtocol) error {
  1935  	if _, err := iprot.ReadStructBegin(); err != nil {
  1936  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  1937  	}
  1938  
  1939  	var issetRangeStart bool = false
  1940  	var issetRangeEnd bool = false
  1941  	var issetNameSpace bool = false
  1942  	var issetIds bool = false
  1943  
  1944  	for {
  1945  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  1946  		if err != nil {
  1947  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  1948  		}
  1949  		if fieldTypeId == thrift.STOP {
  1950  			break
  1951  		}
  1952  		switch fieldId {
  1953  		case 1:
  1954  			if err := p.ReadField1(iprot); err != nil {
  1955  				return err
  1956  			}
  1957  			issetRangeStart = true
  1958  		case 2:
  1959  			if err := p.ReadField2(iprot); err != nil {
  1960  				return err
  1961  			}
  1962  			issetRangeEnd = true
  1963  		case 3:
  1964  			if err := p.ReadField3(iprot); err != nil {
  1965  				return err
  1966  			}
  1967  			issetNameSpace = true
  1968  		case 4:
  1969  			if err := p.ReadField4(iprot); err != nil {
  1970  				return err
  1971  			}
  1972  			issetIds = true
  1973  		case 5:
  1974  			if err := p.ReadField5(iprot); err != nil {
  1975  				return err
  1976  			}
  1977  		case 6:
  1978  			if err := p.ReadField6(iprot); err != nil {
  1979  				return err
  1980  			}
  1981  		default:
  1982  			if err := iprot.Skip(fieldTypeId); err != nil {
  1983  				return err
  1984  			}
  1985  		}
  1986  		if err := iprot.ReadFieldEnd(); err != nil {
  1987  			return err
  1988  		}
  1989  	}
  1990  	if err := iprot.ReadStructEnd(); err != nil {
  1991  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  1992  	}
  1993  	if !issetRangeStart {
  1994  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeStart is not set"))
  1995  	}
  1996  	if !issetRangeEnd {
  1997  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeEnd is not set"))
  1998  	}
  1999  	if !issetNameSpace {
  2000  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
  2001  	}
  2002  	if !issetIds {
  2003  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Ids is not set"))
  2004  	}
  2005  	return nil
  2006  }
  2007  
  2008  func (p *FetchBatchRawRequest) ReadField1(iprot thrift.TProtocol) error {
  2009  	if v, err := iprot.ReadI64(); err != nil {
  2010  		return thrift.PrependError("error reading field 1: ", err)
  2011  	} else {
  2012  		p.RangeStart = v
  2013  	}
  2014  	return nil
  2015  }
  2016  
  2017  func (p *FetchBatchRawRequest) ReadField2(iprot thrift.TProtocol) error {
  2018  	if v, err := iprot.ReadI64(); err != nil {
  2019  		return thrift.PrependError("error reading field 2: ", err)
  2020  	} else {
  2021  		p.RangeEnd = v
  2022  	}
  2023  	return nil
  2024  }
  2025  
  2026  func (p *FetchBatchRawRequest) ReadField3(iprot thrift.TProtocol) error {
  2027  	if v, err := iprot.ReadBinary(); err != nil {
  2028  		return thrift.PrependError("error reading field 3: ", err)
  2029  	} else {
  2030  		p.NameSpace = v
  2031  	}
  2032  	return nil
  2033  }
  2034  
  2035  func (p *FetchBatchRawRequest) ReadField4(iprot thrift.TProtocol) error {
  2036  	_, size, err := iprot.ReadListBegin()
  2037  	if err != nil {
  2038  		return thrift.PrependError("error reading list begin: ", err)
  2039  	}
  2040  	tSlice := make([][]byte, 0, size)
  2041  	p.Ids = tSlice
  2042  	for i := 0; i < size; i++ {
  2043  		var _elem3 []byte
  2044  		if v, err := iprot.ReadBinary(); err != nil {
  2045  			return thrift.PrependError("error reading field 0: ", err)
  2046  		} else {
  2047  			_elem3 = v
  2048  		}
  2049  		p.Ids = append(p.Ids, _elem3)
  2050  	}
  2051  	if err := iprot.ReadListEnd(); err != nil {
  2052  		return thrift.PrependError("error reading list end: ", err)
  2053  	}
  2054  	return nil
  2055  }
  2056  
  2057  func (p *FetchBatchRawRequest) ReadField5(iprot thrift.TProtocol) error {
  2058  	if v, err := iprot.ReadI32(); err != nil {
  2059  		return thrift.PrependError("error reading field 5: ", err)
  2060  	} else {
  2061  		temp := TimeType(v)
  2062  		p.RangeTimeType = temp
  2063  	}
  2064  	return nil
  2065  }
  2066  
  2067  func (p *FetchBatchRawRequest) ReadField6(iprot thrift.TProtocol) error {
  2068  	if v, err := iprot.ReadBinary(); err != nil {
  2069  		return thrift.PrependError("error reading field 6: ", err)
  2070  	} else {
  2071  		p.Source = v
  2072  	}
  2073  	return nil
  2074  }
  2075  
  2076  func (p *FetchBatchRawRequest) Write(oprot thrift.TProtocol) error {
  2077  	if err := oprot.WriteStructBegin("FetchBatchRawRequest"); err != nil {
  2078  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  2079  	}
  2080  	if p != nil {
  2081  		if err := p.writeField1(oprot); err != nil {
  2082  			return err
  2083  		}
  2084  		if err := p.writeField2(oprot); err != nil {
  2085  			return err
  2086  		}
  2087  		if err := p.writeField3(oprot); err != nil {
  2088  			return err
  2089  		}
  2090  		if err := p.writeField4(oprot); err != nil {
  2091  			return err
  2092  		}
  2093  		if err := p.writeField5(oprot); err != nil {
  2094  			return err
  2095  		}
  2096  		if err := p.writeField6(oprot); err != nil {
  2097  			return err
  2098  		}
  2099  	}
  2100  	if err := oprot.WriteFieldStop(); err != nil {
  2101  		return thrift.PrependError("write field stop error: ", err)
  2102  	}
  2103  	if err := oprot.WriteStructEnd(); err != nil {
  2104  		return thrift.PrependError("write struct stop error: ", err)
  2105  	}
  2106  	return nil
  2107  }
  2108  
  2109  func (p *FetchBatchRawRequest) writeField1(oprot thrift.TProtocol) (err error) {
  2110  	if err := oprot.WriteFieldBegin("rangeStart", thrift.I64, 1); err != nil {
  2111  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:rangeStart: ", p), err)
  2112  	}
  2113  	if err := oprot.WriteI64(int64(p.RangeStart)); err != nil {
  2114  		return thrift.PrependError(fmt.Sprintf("%T.rangeStart (1) field write error: ", p), err)
  2115  	}
  2116  	if err := oprot.WriteFieldEnd(); err != nil {
  2117  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:rangeStart: ", p), err)
  2118  	}
  2119  	return err
  2120  }
  2121  
  2122  func (p *FetchBatchRawRequest) writeField2(oprot thrift.TProtocol) (err error) {
  2123  	if err := oprot.WriteFieldBegin("rangeEnd", thrift.I64, 2); err != nil {
  2124  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:rangeEnd: ", p), err)
  2125  	}
  2126  	if err := oprot.WriteI64(int64(p.RangeEnd)); err != nil {
  2127  		return thrift.PrependError(fmt.Sprintf("%T.rangeEnd (2) field write error: ", p), err)
  2128  	}
  2129  	if err := oprot.WriteFieldEnd(); err != nil {
  2130  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:rangeEnd: ", p), err)
  2131  	}
  2132  	return err
  2133  }
  2134  
  2135  func (p *FetchBatchRawRequest) writeField3(oprot thrift.TProtocol) (err error) {
  2136  	if err := oprot.WriteFieldBegin("nameSpace", thrift.STRING, 3); err != nil {
  2137  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:nameSpace: ", p), err)
  2138  	}
  2139  	if err := oprot.WriteBinary(p.NameSpace); err != nil {
  2140  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (3) field write error: ", p), err)
  2141  	}
  2142  	if err := oprot.WriteFieldEnd(); err != nil {
  2143  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:nameSpace: ", p), err)
  2144  	}
  2145  	return err
  2146  }
  2147  
  2148  func (p *FetchBatchRawRequest) writeField4(oprot thrift.TProtocol) (err error) {
  2149  	if err := oprot.WriteFieldBegin("ids", thrift.LIST, 4); err != nil {
  2150  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:ids: ", p), err)
  2151  	}
  2152  	if err := oprot.WriteListBegin(thrift.STRING, len(p.Ids)); err != nil {
  2153  		return thrift.PrependError("error writing list begin: ", err)
  2154  	}
  2155  	for _, v := range p.Ids {
  2156  		if err := oprot.WriteBinary(v); err != nil {
  2157  			return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err)
  2158  		}
  2159  	}
  2160  	if err := oprot.WriteListEnd(); err != nil {
  2161  		return thrift.PrependError("error writing list end: ", err)
  2162  	}
  2163  	if err := oprot.WriteFieldEnd(); err != nil {
  2164  		return thrift.PrependError(fmt.Sprintf("%T write field end error 4:ids: ", p), err)
  2165  	}
  2166  	return err
  2167  }
  2168  
  2169  func (p *FetchBatchRawRequest) writeField5(oprot thrift.TProtocol) (err error) {
  2170  	if p.IsSetRangeTimeType() {
  2171  		if err := oprot.WriteFieldBegin("rangeTimeType", thrift.I32, 5); err != nil {
  2172  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:rangeTimeType: ", p), err)
  2173  		}
  2174  		if err := oprot.WriteI32(int32(p.RangeTimeType)); err != nil {
  2175  			return thrift.PrependError(fmt.Sprintf("%T.rangeTimeType (5) field write error: ", p), err)
  2176  		}
  2177  		if err := oprot.WriteFieldEnd(); err != nil {
  2178  			return thrift.PrependError(fmt.Sprintf("%T write field end error 5:rangeTimeType: ", p), err)
  2179  		}
  2180  	}
  2181  	return err
  2182  }
  2183  
  2184  func (p *FetchBatchRawRequest) writeField6(oprot thrift.TProtocol) (err error) {
  2185  	if p.IsSetSource() {
  2186  		if err := oprot.WriteFieldBegin("source", thrift.STRING, 6); err != nil {
  2187  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:source: ", p), err)
  2188  		}
  2189  		if err := oprot.WriteBinary(p.Source); err != nil {
  2190  			return thrift.PrependError(fmt.Sprintf("%T.source (6) field write error: ", p), err)
  2191  		}
  2192  		if err := oprot.WriteFieldEnd(); err != nil {
  2193  			return thrift.PrependError(fmt.Sprintf("%T write field end error 6:source: ", p), err)
  2194  		}
  2195  	}
  2196  	return err
  2197  }
  2198  
  2199  func (p *FetchBatchRawRequest) String() string {
  2200  	if p == nil {
  2201  		return "<nil>"
  2202  	}
  2203  	return fmt.Sprintf("FetchBatchRawRequest(%+v)", *p)
  2204  }
  2205  
  2206  // Attributes:
  2207  //  - NameSpaces
  2208  //  - Elements
  2209  //  - Source
  2210  type FetchBatchRawV2Request struct {
  2211  	NameSpaces [][]byte                         `thrift:"nameSpaces,1,required" db:"nameSpaces" json:"nameSpaces"`
  2212  	Elements   []*FetchBatchRawV2RequestElement `thrift:"elements,2,required" db:"elements" json:"elements"`
  2213  	Source     []byte                           `thrift:"source,3" db:"source" json:"source,omitempty"`
  2214  }
  2215  
  2216  func NewFetchBatchRawV2Request() *FetchBatchRawV2Request {
  2217  	return &FetchBatchRawV2Request{}
  2218  }
  2219  
  2220  func (p *FetchBatchRawV2Request) GetNameSpaces() [][]byte {
  2221  	return p.NameSpaces
  2222  }
  2223  
  2224  func (p *FetchBatchRawV2Request) GetElements() []*FetchBatchRawV2RequestElement {
  2225  	return p.Elements
  2226  }
  2227  
  2228  var FetchBatchRawV2Request_Source_DEFAULT []byte
  2229  
  2230  func (p *FetchBatchRawV2Request) GetSource() []byte {
  2231  	return p.Source
  2232  }
  2233  func (p *FetchBatchRawV2Request) IsSetSource() bool {
  2234  	return p.Source != nil
  2235  }
  2236  
  2237  func (p *FetchBatchRawV2Request) Read(iprot thrift.TProtocol) error {
  2238  	if _, err := iprot.ReadStructBegin(); err != nil {
  2239  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  2240  	}
  2241  
  2242  	var issetNameSpaces bool = false
  2243  	var issetElements bool = false
  2244  
  2245  	for {
  2246  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  2247  		if err != nil {
  2248  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  2249  		}
  2250  		if fieldTypeId == thrift.STOP {
  2251  			break
  2252  		}
  2253  		switch fieldId {
  2254  		case 1:
  2255  			if err := p.ReadField1(iprot); err != nil {
  2256  				return err
  2257  			}
  2258  			issetNameSpaces = true
  2259  		case 2:
  2260  			if err := p.ReadField2(iprot); err != nil {
  2261  				return err
  2262  			}
  2263  			issetElements = true
  2264  		case 3:
  2265  			if err := p.ReadField3(iprot); err != nil {
  2266  				return err
  2267  			}
  2268  		default:
  2269  			if err := iprot.Skip(fieldTypeId); err != nil {
  2270  				return err
  2271  			}
  2272  		}
  2273  		if err := iprot.ReadFieldEnd(); err != nil {
  2274  			return err
  2275  		}
  2276  	}
  2277  	if err := iprot.ReadStructEnd(); err != nil {
  2278  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  2279  	}
  2280  	if !issetNameSpaces {
  2281  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpaces is not set"))
  2282  	}
  2283  	if !issetElements {
  2284  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Elements is not set"))
  2285  	}
  2286  	return nil
  2287  }
  2288  
  2289  func (p *FetchBatchRawV2Request) ReadField1(iprot thrift.TProtocol) error {
  2290  	_, size, err := iprot.ReadListBegin()
  2291  	if err != nil {
  2292  		return thrift.PrependError("error reading list begin: ", err)
  2293  	}
  2294  	tSlice := make([][]byte, 0, size)
  2295  	p.NameSpaces = tSlice
  2296  	for i := 0; i < size; i++ {
  2297  		var _elem4 []byte
  2298  		if v, err := iprot.ReadBinary(); err != nil {
  2299  			return thrift.PrependError("error reading field 0: ", err)
  2300  		} else {
  2301  			_elem4 = v
  2302  		}
  2303  		p.NameSpaces = append(p.NameSpaces, _elem4)
  2304  	}
  2305  	if err := iprot.ReadListEnd(); err != nil {
  2306  		return thrift.PrependError("error reading list end: ", err)
  2307  	}
  2308  	return nil
  2309  }
  2310  
  2311  func (p *FetchBatchRawV2Request) ReadField2(iprot thrift.TProtocol) error {
  2312  	_, size, err := iprot.ReadListBegin()
  2313  	if err != nil {
  2314  		return thrift.PrependError("error reading list begin: ", err)
  2315  	}
  2316  	tSlice := make([]*FetchBatchRawV2RequestElement, 0, size)
  2317  	p.Elements = tSlice
  2318  	for i := 0; i < size; i++ {
  2319  		_elem5 := &FetchBatchRawV2RequestElement{
  2320  			RangeTimeType: 0,
  2321  		}
  2322  		if err := _elem5.Read(iprot); err != nil {
  2323  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem5), err)
  2324  		}
  2325  		p.Elements = append(p.Elements, _elem5)
  2326  	}
  2327  	if err := iprot.ReadListEnd(); err != nil {
  2328  		return thrift.PrependError("error reading list end: ", err)
  2329  	}
  2330  	return nil
  2331  }
  2332  
  2333  func (p *FetchBatchRawV2Request) ReadField3(iprot thrift.TProtocol) error {
  2334  	if v, err := iprot.ReadBinary(); err != nil {
  2335  		return thrift.PrependError("error reading field 3: ", err)
  2336  	} else {
  2337  		p.Source = v
  2338  	}
  2339  	return nil
  2340  }
  2341  
  2342  func (p *FetchBatchRawV2Request) Write(oprot thrift.TProtocol) error {
  2343  	if err := oprot.WriteStructBegin("FetchBatchRawV2Request"); err != nil {
  2344  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  2345  	}
  2346  	if p != nil {
  2347  		if err := p.writeField1(oprot); err != nil {
  2348  			return err
  2349  		}
  2350  		if err := p.writeField2(oprot); err != nil {
  2351  			return err
  2352  		}
  2353  		if err := p.writeField3(oprot); err != nil {
  2354  			return err
  2355  		}
  2356  	}
  2357  	if err := oprot.WriteFieldStop(); err != nil {
  2358  		return thrift.PrependError("write field stop error: ", err)
  2359  	}
  2360  	if err := oprot.WriteStructEnd(); err != nil {
  2361  		return thrift.PrependError("write struct stop error: ", err)
  2362  	}
  2363  	return nil
  2364  }
  2365  
  2366  func (p *FetchBatchRawV2Request) writeField1(oprot thrift.TProtocol) (err error) {
  2367  	if err := oprot.WriteFieldBegin("nameSpaces", thrift.LIST, 1); err != nil {
  2368  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:nameSpaces: ", p), err)
  2369  	}
  2370  	if err := oprot.WriteListBegin(thrift.STRING, len(p.NameSpaces)); err != nil {
  2371  		return thrift.PrependError("error writing list begin: ", err)
  2372  	}
  2373  	for _, v := range p.NameSpaces {
  2374  		if err := oprot.WriteBinary(v); err != nil {
  2375  			return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err)
  2376  		}
  2377  	}
  2378  	if err := oprot.WriteListEnd(); err != nil {
  2379  		return thrift.PrependError("error writing list end: ", err)
  2380  	}
  2381  	if err := oprot.WriteFieldEnd(); err != nil {
  2382  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:nameSpaces: ", p), err)
  2383  	}
  2384  	return err
  2385  }
  2386  
  2387  func (p *FetchBatchRawV2Request) writeField2(oprot thrift.TProtocol) (err error) {
  2388  	if err := oprot.WriteFieldBegin("elements", thrift.LIST, 2); err != nil {
  2389  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:elements: ", p), err)
  2390  	}
  2391  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Elements)); err != nil {
  2392  		return thrift.PrependError("error writing list begin: ", err)
  2393  	}
  2394  	for _, v := range p.Elements {
  2395  		if err := v.Write(oprot); err != nil {
  2396  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  2397  		}
  2398  	}
  2399  	if err := oprot.WriteListEnd(); err != nil {
  2400  		return thrift.PrependError("error writing list end: ", err)
  2401  	}
  2402  	if err := oprot.WriteFieldEnd(); err != nil {
  2403  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:elements: ", p), err)
  2404  	}
  2405  	return err
  2406  }
  2407  
  2408  func (p *FetchBatchRawV2Request) writeField3(oprot thrift.TProtocol) (err error) {
  2409  	if p.IsSetSource() {
  2410  		if err := oprot.WriteFieldBegin("source", thrift.STRING, 3); err != nil {
  2411  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:source: ", p), err)
  2412  		}
  2413  		if err := oprot.WriteBinary(p.Source); err != nil {
  2414  			return thrift.PrependError(fmt.Sprintf("%T.source (3) field write error: ", p), err)
  2415  		}
  2416  		if err := oprot.WriteFieldEnd(); err != nil {
  2417  			return thrift.PrependError(fmt.Sprintf("%T write field end error 3:source: ", p), err)
  2418  		}
  2419  	}
  2420  	return err
  2421  }
  2422  
  2423  func (p *FetchBatchRawV2Request) String() string {
  2424  	if p == nil {
  2425  		return "<nil>"
  2426  	}
  2427  	return fmt.Sprintf("FetchBatchRawV2Request(%+v)", *p)
  2428  }
  2429  
  2430  // Attributes:
  2431  //  - NameSpace
  2432  //  - RangeStart
  2433  //  - RangeEnd
  2434  //  - ID
  2435  //  - RangeTimeType
  2436  type FetchBatchRawV2RequestElement struct {
  2437  	NameSpace     int64    `thrift:"nameSpace,1,required" db:"nameSpace" json:"nameSpace"`
  2438  	RangeStart    int64    `thrift:"rangeStart,2,required" db:"rangeStart" json:"rangeStart"`
  2439  	RangeEnd      int64    `thrift:"rangeEnd,3,required" db:"rangeEnd" json:"rangeEnd"`
  2440  	ID            []byte   `thrift:"id,4,required" db:"id" json:"id"`
  2441  	RangeTimeType TimeType `thrift:"rangeTimeType,5" db:"rangeTimeType" json:"rangeTimeType,omitempty"`
  2442  }
  2443  
  2444  func NewFetchBatchRawV2RequestElement() *FetchBatchRawV2RequestElement {
  2445  	return &FetchBatchRawV2RequestElement{
  2446  		RangeTimeType: 0,
  2447  	}
  2448  }
  2449  
  2450  func (p *FetchBatchRawV2RequestElement) GetNameSpace() int64 {
  2451  	return p.NameSpace
  2452  }
  2453  
  2454  func (p *FetchBatchRawV2RequestElement) GetRangeStart() int64 {
  2455  	return p.RangeStart
  2456  }
  2457  
  2458  func (p *FetchBatchRawV2RequestElement) GetRangeEnd() int64 {
  2459  	return p.RangeEnd
  2460  }
  2461  
  2462  func (p *FetchBatchRawV2RequestElement) GetID() []byte {
  2463  	return p.ID
  2464  }
  2465  
  2466  var FetchBatchRawV2RequestElement_RangeTimeType_DEFAULT TimeType = 0
  2467  
  2468  func (p *FetchBatchRawV2RequestElement) GetRangeTimeType() TimeType {
  2469  	return p.RangeTimeType
  2470  }
  2471  func (p *FetchBatchRawV2RequestElement) IsSetRangeTimeType() bool {
  2472  	return p.RangeTimeType != FetchBatchRawV2RequestElement_RangeTimeType_DEFAULT
  2473  }
  2474  
  2475  func (p *FetchBatchRawV2RequestElement) Read(iprot thrift.TProtocol) error {
  2476  	if _, err := iprot.ReadStructBegin(); err != nil {
  2477  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  2478  	}
  2479  
  2480  	var issetNameSpace bool = false
  2481  	var issetRangeStart bool = false
  2482  	var issetRangeEnd bool = false
  2483  	var issetID bool = false
  2484  
  2485  	for {
  2486  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  2487  		if err != nil {
  2488  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  2489  		}
  2490  		if fieldTypeId == thrift.STOP {
  2491  			break
  2492  		}
  2493  		switch fieldId {
  2494  		case 1:
  2495  			if err := p.ReadField1(iprot); err != nil {
  2496  				return err
  2497  			}
  2498  			issetNameSpace = true
  2499  		case 2:
  2500  			if err := p.ReadField2(iprot); err != nil {
  2501  				return err
  2502  			}
  2503  			issetRangeStart = true
  2504  		case 3:
  2505  			if err := p.ReadField3(iprot); err != nil {
  2506  				return err
  2507  			}
  2508  			issetRangeEnd = true
  2509  		case 4:
  2510  			if err := p.ReadField4(iprot); err != nil {
  2511  				return err
  2512  			}
  2513  			issetID = true
  2514  		case 5:
  2515  			if err := p.ReadField5(iprot); err != nil {
  2516  				return err
  2517  			}
  2518  		default:
  2519  			if err := iprot.Skip(fieldTypeId); err != nil {
  2520  				return err
  2521  			}
  2522  		}
  2523  		if err := iprot.ReadFieldEnd(); err != nil {
  2524  			return err
  2525  		}
  2526  	}
  2527  	if err := iprot.ReadStructEnd(); err != nil {
  2528  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  2529  	}
  2530  	if !issetNameSpace {
  2531  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
  2532  	}
  2533  	if !issetRangeStart {
  2534  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeStart is not set"))
  2535  	}
  2536  	if !issetRangeEnd {
  2537  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeEnd is not set"))
  2538  	}
  2539  	if !issetID {
  2540  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ID is not set"))
  2541  	}
  2542  	return nil
  2543  }
  2544  
  2545  func (p *FetchBatchRawV2RequestElement) ReadField1(iprot thrift.TProtocol) error {
  2546  	if v, err := iprot.ReadI64(); err != nil {
  2547  		return thrift.PrependError("error reading field 1: ", err)
  2548  	} else {
  2549  		p.NameSpace = v
  2550  	}
  2551  	return nil
  2552  }
  2553  
  2554  func (p *FetchBatchRawV2RequestElement) ReadField2(iprot thrift.TProtocol) error {
  2555  	if v, err := iprot.ReadI64(); err != nil {
  2556  		return thrift.PrependError("error reading field 2: ", err)
  2557  	} else {
  2558  		p.RangeStart = v
  2559  	}
  2560  	return nil
  2561  }
  2562  
  2563  func (p *FetchBatchRawV2RequestElement) ReadField3(iprot thrift.TProtocol) error {
  2564  	if v, err := iprot.ReadI64(); err != nil {
  2565  		return thrift.PrependError("error reading field 3: ", err)
  2566  	} else {
  2567  		p.RangeEnd = v
  2568  	}
  2569  	return nil
  2570  }
  2571  
  2572  func (p *FetchBatchRawV2RequestElement) ReadField4(iprot thrift.TProtocol) error {
  2573  	if v, err := iprot.ReadBinary(); err != nil {
  2574  		return thrift.PrependError("error reading field 4: ", err)
  2575  	} else {
  2576  		p.ID = v
  2577  	}
  2578  	return nil
  2579  }
  2580  
  2581  func (p *FetchBatchRawV2RequestElement) ReadField5(iprot thrift.TProtocol) error {
  2582  	if v, err := iprot.ReadI32(); err != nil {
  2583  		return thrift.PrependError("error reading field 5: ", err)
  2584  	} else {
  2585  		temp := TimeType(v)
  2586  		p.RangeTimeType = temp
  2587  	}
  2588  	return nil
  2589  }
  2590  
  2591  func (p *FetchBatchRawV2RequestElement) Write(oprot thrift.TProtocol) error {
  2592  	if err := oprot.WriteStructBegin("FetchBatchRawV2RequestElement"); err != nil {
  2593  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  2594  	}
  2595  	if p != nil {
  2596  		if err := p.writeField1(oprot); err != nil {
  2597  			return err
  2598  		}
  2599  		if err := p.writeField2(oprot); err != nil {
  2600  			return err
  2601  		}
  2602  		if err := p.writeField3(oprot); err != nil {
  2603  			return err
  2604  		}
  2605  		if err := p.writeField4(oprot); err != nil {
  2606  			return err
  2607  		}
  2608  		if err := p.writeField5(oprot); err != nil {
  2609  			return err
  2610  		}
  2611  	}
  2612  	if err := oprot.WriteFieldStop(); err != nil {
  2613  		return thrift.PrependError("write field stop error: ", err)
  2614  	}
  2615  	if err := oprot.WriteStructEnd(); err != nil {
  2616  		return thrift.PrependError("write struct stop error: ", err)
  2617  	}
  2618  	return nil
  2619  }
  2620  
  2621  func (p *FetchBatchRawV2RequestElement) writeField1(oprot thrift.TProtocol) (err error) {
  2622  	if err := oprot.WriteFieldBegin("nameSpace", thrift.I64, 1); err != nil {
  2623  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:nameSpace: ", p), err)
  2624  	}
  2625  	if err := oprot.WriteI64(int64(p.NameSpace)); err != nil {
  2626  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (1) field write error: ", p), err)
  2627  	}
  2628  	if err := oprot.WriteFieldEnd(); err != nil {
  2629  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:nameSpace: ", p), err)
  2630  	}
  2631  	return err
  2632  }
  2633  
  2634  func (p *FetchBatchRawV2RequestElement) writeField2(oprot thrift.TProtocol) (err error) {
  2635  	if err := oprot.WriteFieldBegin("rangeStart", thrift.I64, 2); err != nil {
  2636  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:rangeStart: ", p), err)
  2637  	}
  2638  	if err := oprot.WriteI64(int64(p.RangeStart)); err != nil {
  2639  		return thrift.PrependError(fmt.Sprintf("%T.rangeStart (2) field write error: ", p), err)
  2640  	}
  2641  	if err := oprot.WriteFieldEnd(); err != nil {
  2642  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:rangeStart: ", p), err)
  2643  	}
  2644  	return err
  2645  }
  2646  
  2647  func (p *FetchBatchRawV2RequestElement) writeField3(oprot thrift.TProtocol) (err error) {
  2648  	if err := oprot.WriteFieldBegin("rangeEnd", thrift.I64, 3); err != nil {
  2649  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:rangeEnd: ", p), err)
  2650  	}
  2651  	if err := oprot.WriteI64(int64(p.RangeEnd)); err != nil {
  2652  		return thrift.PrependError(fmt.Sprintf("%T.rangeEnd (3) field write error: ", p), err)
  2653  	}
  2654  	if err := oprot.WriteFieldEnd(); err != nil {
  2655  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:rangeEnd: ", p), err)
  2656  	}
  2657  	return err
  2658  }
  2659  
  2660  func (p *FetchBatchRawV2RequestElement) writeField4(oprot thrift.TProtocol) (err error) {
  2661  	if err := oprot.WriteFieldBegin("id", thrift.STRING, 4); err != nil {
  2662  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:id: ", p), err)
  2663  	}
  2664  	if err := oprot.WriteBinary(p.ID); err != nil {
  2665  		return thrift.PrependError(fmt.Sprintf("%T.id (4) field write error: ", p), err)
  2666  	}
  2667  	if err := oprot.WriteFieldEnd(); err != nil {
  2668  		return thrift.PrependError(fmt.Sprintf("%T write field end error 4:id: ", p), err)
  2669  	}
  2670  	return err
  2671  }
  2672  
  2673  func (p *FetchBatchRawV2RequestElement) writeField5(oprot thrift.TProtocol) (err error) {
  2674  	if p.IsSetRangeTimeType() {
  2675  		if err := oprot.WriteFieldBegin("rangeTimeType", thrift.I32, 5); err != nil {
  2676  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:rangeTimeType: ", p), err)
  2677  		}
  2678  		if err := oprot.WriteI32(int32(p.RangeTimeType)); err != nil {
  2679  			return thrift.PrependError(fmt.Sprintf("%T.rangeTimeType (5) field write error: ", p), err)
  2680  		}
  2681  		if err := oprot.WriteFieldEnd(); err != nil {
  2682  			return thrift.PrependError(fmt.Sprintf("%T write field end error 5:rangeTimeType: ", p), err)
  2683  		}
  2684  	}
  2685  	return err
  2686  }
  2687  
  2688  func (p *FetchBatchRawV2RequestElement) String() string {
  2689  	if p == nil {
  2690  		return "<nil>"
  2691  	}
  2692  	return fmt.Sprintf("FetchBatchRawV2RequestElement(%+v)", *p)
  2693  }
  2694  
  2695  // Attributes:
  2696  //  - Elements
  2697  type FetchBatchRawResult_ struct {
  2698  	Elements []*FetchRawResult_ `thrift:"elements,1,required" db:"elements" json:"elements"`
  2699  }
  2700  
  2701  func NewFetchBatchRawResult_() *FetchBatchRawResult_ {
  2702  	return &FetchBatchRawResult_{}
  2703  }
  2704  
  2705  func (p *FetchBatchRawResult_) GetElements() []*FetchRawResult_ {
  2706  	return p.Elements
  2707  }
  2708  func (p *FetchBatchRawResult_) Read(iprot thrift.TProtocol) error {
  2709  	if _, err := iprot.ReadStructBegin(); err != nil {
  2710  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  2711  	}
  2712  
  2713  	var issetElements bool = false
  2714  
  2715  	for {
  2716  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  2717  		if err != nil {
  2718  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  2719  		}
  2720  		if fieldTypeId == thrift.STOP {
  2721  			break
  2722  		}
  2723  		switch fieldId {
  2724  		case 1:
  2725  			if err := p.ReadField1(iprot); err != nil {
  2726  				return err
  2727  			}
  2728  			issetElements = true
  2729  		default:
  2730  			if err := iprot.Skip(fieldTypeId); err != nil {
  2731  				return err
  2732  			}
  2733  		}
  2734  		if err := iprot.ReadFieldEnd(); err != nil {
  2735  			return err
  2736  		}
  2737  	}
  2738  	if err := iprot.ReadStructEnd(); err != nil {
  2739  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  2740  	}
  2741  	if !issetElements {
  2742  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Elements is not set"))
  2743  	}
  2744  	return nil
  2745  }
  2746  
  2747  func (p *FetchBatchRawResult_) ReadField1(iprot thrift.TProtocol) error {
  2748  	_, size, err := iprot.ReadListBegin()
  2749  	if err != nil {
  2750  		return thrift.PrependError("error reading list begin: ", err)
  2751  	}
  2752  	tSlice := make([]*FetchRawResult_, 0, size)
  2753  	p.Elements = tSlice
  2754  	for i := 0; i < size; i++ {
  2755  		_elem6 := &FetchRawResult_{}
  2756  		if err := _elem6.Read(iprot); err != nil {
  2757  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem6), err)
  2758  		}
  2759  		p.Elements = append(p.Elements, _elem6)
  2760  	}
  2761  	if err := iprot.ReadListEnd(); err != nil {
  2762  		return thrift.PrependError("error reading list end: ", err)
  2763  	}
  2764  	return nil
  2765  }
  2766  
  2767  func (p *FetchBatchRawResult_) Write(oprot thrift.TProtocol) error {
  2768  	if err := oprot.WriteStructBegin("FetchBatchRawResult"); err != nil {
  2769  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  2770  	}
  2771  	if p != nil {
  2772  		if err := p.writeField1(oprot); err != nil {
  2773  			return err
  2774  		}
  2775  	}
  2776  	if err := oprot.WriteFieldStop(); err != nil {
  2777  		return thrift.PrependError("write field stop error: ", err)
  2778  	}
  2779  	if err := oprot.WriteStructEnd(); err != nil {
  2780  		return thrift.PrependError("write struct stop error: ", err)
  2781  	}
  2782  	return nil
  2783  }
  2784  
  2785  func (p *FetchBatchRawResult_) writeField1(oprot thrift.TProtocol) (err error) {
  2786  	if err := oprot.WriteFieldBegin("elements", thrift.LIST, 1); err != nil {
  2787  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:elements: ", p), err)
  2788  	}
  2789  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Elements)); err != nil {
  2790  		return thrift.PrependError("error writing list begin: ", err)
  2791  	}
  2792  	for _, v := range p.Elements {
  2793  		if err := v.Write(oprot); err != nil {
  2794  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  2795  		}
  2796  	}
  2797  	if err := oprot.WriteListEnd(); err != nil {
  2798  		return thrift.PrependError("error writing list end: ", err)
  2799  	}
  2800  	if err := oprot.WriteFieldEnd(); err != nil {
  2801  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:elements: ", p), err)
  2802  	}
  2803  	return err
  2804  }
  2805  
  2806  func (p *FetchBatchRawResult_) String() string {
  2807  	if p == nil {
  2808  		return "<nil>"
  2809  	}
  2810  	return fmt.Sprintf("FetchBatchRawResult_(%+v)", *p)
  2811  }
  2812  
  2813  // Attributes:
  2814  //  - Segments
  2815  //  - Err
  2816  type FetchRawResult_ struct {
  2817  	Segments []*Segments `thrift:"segments,1,required" db:"segments" json:"segments"`
  2818  	Err      *Error      `thrift:"err,2" db:"err" json:"err,omitempty"`
  2819  }
  2820  
  2821  func NewFetchRawResult_() *FetchRawResult_ {
  2822  	return &FetchRawResult_{}
  2823  }
  2824  
  2825  func (p *FetchRawResult_) GetSegments() []*Segments {
  2826  	return p.Segments
  2827  }
  2828  
  2829  var FetchRawResult__Err_DEFAULT *Error
  2830  
  2831  func (p *FetchRawResult_) GetErr() *Error {
  2832  	if !p.IsSetErr() {
  2833  		return FetchRawResult__Err_DEFAULT
  2834  	}
  2835  	return p.Err
  2836  }
  2837  func (p *FetchRawResult_) IsSetErr() bool {
  2838  	return p.Err != nil
  2839  }
  2840  
  2841  func (p *FetchRawResult_) Read(iprot thrift.TProtocol) error {
  2842  	if _, err := iprot.ReadStructBegin(); err != nil {
  2843  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  2844  	}
  2845  
  2846  	var issetSegments bool = false
  2847  
  2848  	for {
  2849  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  2850  		if err != nil {
  2851  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  2852  		}
  2853  		if fieldTypeId == thrift.STOP {
  2854  			break
  2855  		}
  2856  		switch fieldId {
  2857  		case 1:
  2858  			if err := p.ReadField1(iprot); err != nil {
  2859  				return err
  2860  			}
  2861  			issetSegments = true
  2862  		case 2:
  2863  			if err := p.ReadField2(iprot); err != nil {
  2864  				return err
  2865  			}
  2866  		default:
  2867  			if err := iprot.Skip(fieldTypeId); err != nil {
  2868  				return err
  2869  			}
  2870  		}
  2871  		if err := iprot.ReadFieldEnd(); err != nil {
  2872  			return err
  2873  		}
  2874  	}
  2875  	if err := iprot.ReadStructEnd(); err != nil {
  2876  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  2877  	}
  2878  	if !issetSegments {
  2879  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Segments is not set"))
  2880  	}
  2881  	return nil
  2882  }
  2883  
  2884  func (p *FetchRawResult_) ReadField1(iprot thrift.TProtocol) error {
  2885  	_, size, err := iprot.ReadListBegin()
  2886  	if err != nil {
  2887  		return thrift.PrependError("error reading list begin: ", err)
  2888  	}
  2889  	tSlice := make([]*Segments, 0, size)
  2890  	p.Segments = tSlice
  2891  	for i := 0; i < size; i++ {
  2892  		_elem7 := &Segments{}
  2893  		if err := _elem7.Read(iprot); err != nil {
  2894  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem7), err)
  2895  		}
  2896  		p.Segments = append(p.Segments, _elem7)
  2897  	}
  2898  	if err := iprot.ReadListEnd(); err != nil {
  2899  		return thrift.PrependError("error reading list end: ", err)
  2900  	}
  2901  	return nil
  2902  }
  2903  
  2904  func (p *FetchRawResult_) ReadField2(iprot thrift.TProtocol) error {
  2905  	p.Err = &Error{
  2906  		Type: 0,
  2907  	}
  2908  	if err := p.Err.Read(iprot); err != nil {
  2909  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
  2910  	}
  2911  	return nil
  2912  }
  2913  
  2914  func (p *FetchRawResult_) Write(oprot thrift.TProtocol) error {
  2915  	if err := oprot.WriteStructBegin("FetchRawResult"); err != nil {
  2916  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  2917  	}
  2918  	if p != nil {
  2919  		if err := p.writeField1(oprot); err != nil {
  2920  			return err
  2921  		}
  2922  		if err := p.writeField2(oprot); err != nil {
  2923  			return err
  2924  		}
  2925  	}
  2926  	if err := oprot.WriteFieldStop(); err != nil {
  2927  		return thrift.PrependError("write field stop error: ", err)
  2928  	}
  2929  	if err := oprot.WriteStructEnd(); err != nil {
  2930  		return thrift.PrependError("write struct stop error: ", err)
  2931  	}
  2932  	return nil
  2933  }
  2934  
  2935  func (p *FetchRawResult_) writeField1(oprot thrift.TProtocol) (err error) {
  2936  	if err := oprot.WriteFieldBegin("segments", thrift.LIST, 1); err != nil {
  2937  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:segments: ", p), err)
  2938  	}
  2939  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Segments)); err != nil {
  2940  		return thrift.PrependError("error writing list begin: ", err)
  2941  	}
  2942  	for _, v := range p.Segments {
  2943  		if err := v.Write(oprot); err != nil {
  2944  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  2945  		}
  2946  	}
  2947  	if err := oprot.WriteListEnd(); err != nil {
  2948  		return thrift.PrependError("error writing list end: ", err)
  2949  	}
  2950  	if err := oprot.WriteFieldEnd(); err != nil {
  2951  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:segments: ", p), err)
  2952  	}
  2953  	return err
  2954  }
  2955  
  2956  func (p *FetchRawResult_) writeField2(oprot thrift.TProtocol) (err error) {
  2957  	if p.IsSetErr() {
  2958  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 2); err != nil {
  2959  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:err: ", p), err)
  2960  		}
  2961  		if err := p.Err.Write(oprot); err != nil {
  2962  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
  2963  		}
  2964  		if err := oprot.WriteFieldEnd(); err != nil {
  2965  			return thrift.PrependError(fmt.Sprintf("%T write field end error 2:err: ", p), err)
  2966  		}
  2967  	}
  2968  	return err
  2969  }
  2970  
  2971  func (p *FetchRawResult_) String() string {
  2972  	if p == nil {
  2973  		return "<nil>"
  2974  	}
  2975  	return fmt.Sprintf("FetchRawResult_(%+v)", *p)
  2976  }
  2977  
  2978  // Attributes:
  2979  //  - Merged
  2980  //  - Unmerged
  2981  type Segments struct {
  2982  	Merged   *Segment   `thrift:"merged,1" db:"merged" json:"merged,omitempty"`
  2983  	Unmerged []*Segment `thrift:"unmerged,2" db:"unmerged" json:"unmerged,omitempty"`
  2984  }
  2985  
  2986  func NewSegments() *Segments {
  2987  	return &Segments{}
  2988  }
  2989  
  2990  var Segments_Merged_DEFAULT *Segment
  2991  
  2992  func (p *Segments) GetMerged() *Segment {
  2993  	if !p.IsSetMerged() {
  2994  		return Segments_Merged_DEFAULT
  2995  	}
  2996  	return p.Merged
  2997  }
  2998  
  2999  var Segments_Unmerged_DEFAULT []*Segment
  3000  
  3001  func (p *Segments) GetUnmerged() []*Segment {
  3002  	return p.Unmerged
  3003  }
  3004  func (p *Segments) IsSetMerged() bool {
  3005  	return p.Merged != nil
  3006  }
  3007  
  3008  func (p *Segments) IsSetUnmerged() bool {
  3009  	return p.Unmerged != nil
  3010  }
  3011  
  3012  func (p *Segments) Read(iprot thrift.TProtocol) error {
  3013  	if _, err := iprot.ReadStructBegin(); err != nil {
  3014  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  3015  	}
  3016  
  3017  	for {
  3018  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  3019  		if err != nil {
  3020  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  3021  		}
  3022  		if fieldTypeId == thrift.STOP {
  3023  			break
  3024  		}
  3025  		switch fieldId {
  3026  		case 1:
  3027  			if err := p.ReadField1(iprot); err != nil {
  3028  				return err
  3029  			}
  3030  		case 2:
  3031  			if err := p.ReadField2(iprot); err != nil {
  3032  				return err
  3033  			}
  3034  		default:
  3035  			if err := iprot.Skip(fieldTypeId); err != nil {
  3036  				return err
  3037  			}
  3038  		}
  3039  		if err := iprot.ReadFieldEnd(); err != nil {
  3040  			return err
  3041  		}
  3042  	}
  3043  	if err := iprot.ReadStructEnd(); err != nil {
  3044  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  3045  	}
  3046  	return nil
  3047  }
  3048  
  3049  func (p *Segments) ReadField1(iprot thrift.TProtocol) error {
  3050  	p.Merged = &Segment{}
  3051  	if err := p.Merged.Read(iprot); err != nil {
  3052  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Merged), err)
  3053  	}
  3054  	return nil
  3055  }
  3056  
  3057  func (p *Segments) ReadField2(iprot thrift.TProtocol) error {
  3058  	_, size, err := iprot.ReadListBegin()
  3059  	if err != nil {
  3060  		return thrift.PrependError("error reading list begin: ", err)
  3061  	}
  3062  	tSlice := make([]*Segment, 0, size)
  3063  	p.Unmerged = tSlice
  3064  	for i := 0; i < size; i++ {
  3065  		_elem8 := &Segment{}
  3066  		if err := _elem8.Read(iprot); err != nil {
  3067  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem8), err)
  3068  		}
  3069  		p.Unmerged = append(p.Unmerged, _elem8)
  3070  	}
  3071  	if err := iprot.ReadListEnd(); err != nil {
  3072  		return thrift.PrependError("error reading list end: ", err)
  3073  	}
  3074  	return nil
  3075  }
  3076  
  3077  func (p *Segments) Write(oprot thrift.TProtocol) error {
  3078  	if err := oprot.WriteStructBegin("Segments"); err != nil {
  3079  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  3080  	}
  3081  	if p != nil {
  3082  		if err := p.writeField1(oprot); err != nil {
  3083  			return err
  3084  		}
  3085  		if err := p.writeField2(oprot); err != nil {
  3086  			return err
  3087  		}
  3088  	}
  3089  	if err := oprot.WriteFieldStop(); err != nil {
  3090  		return thrift.PrependError("write field stop error: ", err)
  3091  	}
  3092  	if err := oprot.WriteStructEnd(); err != nil {
  3093  		return thrift.PrependError("write struct stop error: ", err)
  3094  	}
  3095  	return nil
  3096  }
  3097  
  3098  func (p *Segments) writeField1(oprot thrift.TProtocol) (err error) {
  3099  	if p.IsSetMerged() {
  3100  		if err := oprot.WriteFieldBegin("merged", thrift.STRUCT, 1); err != nil {
  3101  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:merged: ", p), err)
  3102  		}
  3103  		if err := p.Merged.Write(oprot); err != nil {
  3104  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Merged), err)
  3105  		}
  3106  		if err := oprot.WriteFieldEnd(); err != nil {
  3107  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:merged: ", p), err)
  3108  		}
  3109  	}
  3110  	return err
  3111  }
  3112  
  3113  func (p *Segments) writeField2(oprot thrift.TProtocol) (err error) {
  3114  	if p.IsSetUnmerged() {
  3115  		if err := oprot.WriteFieldBegin("unmerged", thrift.LIST, 2); err != nil {
  3116  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:unmerged: ", p), err)
  3117  		}
  3118  		if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Unmerged)); err != nil {
  3119  			return thrift.PrependError("error writing list begin: ", err)
  3120  		}
  3121  		for _, v := range p.Unmerged {
  3122  			if err := v.Write(oprot); err != nil {
  3123  				return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  3124  			}
  3125  		}
  3126  		if err := oprot.WriteListEnd(); err != nil {
  3127  			return thrift.PrependError("error writing list end: ", err)
  3128  		}
  3129  		if err := oprot.WriteFieldEnd(); err != nil {
  3130  			return thrift.PrependError(fmt.Sprintf("%T write field end error 2:unmerged: ", p), err)
  3131  		}
  3132  	}
  3133  	return err
  3134  }
  3135  
  3136  func (p *Segments) String() string {
  3137  	if p == nil {
  3138  		return "<nil>"
  3139  	}
  3140  	return fmt.Sprintf("Segments(%+v)", *p)
  3141  }
  3142  
  3143  // Attributes:
  3144  //  - Head
  3145  //  - Tail
  3146  //  - StartTime
  3147  //  - BlockSize
  3148  //  - Checksum
  3149  type Segment struct {
  3150  	Head      []byte `thrift:"head,1,required" db:"head" json:"head"`
  3151  	Tail      []byte `thrift:"tail,2,required" db:"tail" json:"tail"`
  3152  	StartTime *int64 `thrift:"startTime,3" db:"startTime" json:"startTime,omitempty"`
  3153  	BlockSize *int64 `thrift:"blockSize,4" db:"blockSize" json:"blockSize,omitempty"`
  3154  	Checksum  *int64 `thrift:"checksum,5" db:"checksum" json:"checksum,omitempty"`
  3155  }
  3156  
  3157  func NewSegment() *Segment {
  3158  	return &Segment{}
  3159  }
  3160  
  3161  func (p *Segment) GetHead() []byte {
  3162  	return p.Head
  3163  }
  3164  
  3165  func (p *Segment) GetTail() []byte {
  3166  	return p.Tail
  3167  }
  3168  
  3169  var Segment_StartTime_DEFAULT int64
  3170  
  3171  func (p *Segment) GetStartTime() int64 {
  3172  	if !p.IsSetStartTime() {
  3173  		return Segment_StartTime_DEFAULT
  3174  	}
  3175  	return *p.StartTime
  3176  }
  3177  
  3178  var Segment_BlockSize_DEFAULT int64
  3179  
  3180  func (p *Segment) GetBlockSize() int64 {
  3181  	if !p.IsSetBlockSize() {
  3182  		return Segment_BlockSize_DEFAULT
  3183  	}
  3184  	return *p.BlockSize
  3185  }
  3186  
  3187  var Segment_Checksum_DEFAULT int64
  3188  
  3189  func (p *Segment) GetChecksum() int64 {
  3190  	if !p.IsSetChecksum() {
  3191  		return Segment_Checksum_DEFAULT
  3192  	}
  3193  	return *p.Checksum
  3194  }
  3195  func (p *Segment) IsSetStartTime() bool {
  3196  	return p.StartTime != nil
  3197  }
  3198  
  3199  func (p *Segment) IsSetBlockSize() bool {
  3200  	return p.BlockSize != nil
  3201  }
  3202  
  3203  func (p *Segment) IsSetChecksum() bool {
  3204  	return p.Checksum != nil
  3205  }
  3206  
  3207  func (p *Segment) Read(iprot thrift.TProtocol) error {
  3208  	if _, err := iprot.ReadStructBegin(); err != nil {
  3209  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  3210  	}
  3211  
  3212  	var issetHead bool = false
  3213  	var issetTail bool = false
  3214  
  3215  	for {
  3216  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  3217  		if err != nil {
  3218  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  3219  		}
  3220  		if fieldTypeId == thrift.STOP {
  3221  			break
  3222  		}
  3223  		switch fieldId {
  3224  		case 1:
  3225  			if err := p.ReadField1(iprot); err != nil {
  3226  				return err
  3227  			}
  3228  			issetHead = true
  3229  		case 2:
  3230  			if err := p.ReadField2(iprot); err != nil {
  3231  				return err
  3232  			}
  3233  			issetTail = true
  3234  		case 3:
  3235  			if err := p.ReadField3(iprot); err != nil {
  3236  				return err
  3237  			}
  3238  		case 4:
  3239  			if err := p.ReadField4(iprot); err != nil {
  3240  				return err
  3241  			}
  3242  		case 5:
  3243  			if err := p.ReadField5(iprot); err != nil {
  3244  				return err
  3245  			}
  3246  		default:
  3247  			if err := iprot.Skip(fieldTypeId); err != nil {
  3248  				return err
  3249  			}
  3250  		}
  3251  		if err := iprot.ReadFieldEnd(); err != nil {
  3252  			return err
  3253  		}
  3254  	}
  3255  	if err := iprot.ReadStructEnd(); err != nil {
  3256  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  3257  	}
  3258  	if !issetHead {
  3259  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Head is not set"))
  3260  	}
  3261  	if !issetTail {
  3262  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Tail is not set"))
  3263  	}
  3264  	return nil
  3265  }
  3266  
  3267  func (p *Segment) ReadField1(iprot thrift.TProtocol) error {
  3268  	if v, err := iprot.ReadBinary(); err != nil {
  3269  		return thrift.PrependError("error reading field 1: ", err)
  3270  	} else {
  3271  		p.Head = v
  3272  	}
  3273  	return nil
  3274  }
  3275  
  3276  func (p *Segment) ReadField2(iprot thrift.TProtocol) error {
  3277  	if v, err := iprot.ReadBinary(); err != nil {
  3278  		return thrift.PrependError("error reading field 2: ", err)
  3279  	} else {
  3280  		p.Tail = v
  3281  	}
  3282  	return nil
  3283  }
  3284  
  3285  func (p *Segment) ReadField3(iprot thrift.TProtocol) error {
  3286  	if v, err := iprot.ReadI64(); err != nil {
  3287  		return thrift.PrependError("error reading field 3: ", err)
  3288  	} else {
  3289  		p.StartTime = &v
  3290  	}
  3291  	return nil
  3292  }
  3293  
  3294  func (p *Segment) ReadField4(iprot thrift.TProtocol) error {
  3295  	if v, err := iprot.ReadI64(); err != nil {
  3296  		return thrift.PrependError("error reading field 4: ", err)
  3297  	} else {
  3298  		p.BlockSize = &v
  3299  	}
  3300  	return nil
  3301  }
  3302  
  3303  func (p *Segment) ReadField5(iprot thrift.TProtocol) error {
  3304  	if v, err := iprot.ReadI64(); err != nil {
  3305  		return thrift.PrependError("error reading field 5: ", err)
  3306  	} else {
  3307  		p.Checksum = &v
  3308  	}
  3309  	return nil
  3310  }
  3311  
  3312  func (p *Segment) Write(oprot thrift.TProtocol) error {
  3313  	if err := oprot.WriteStructBegin("Segment"); err != nil {
  3314  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  3315  	}
  3316  	if p != nil {
  3317  		if err := p.writeField1(oprot); err != nil {
  3318  			return err
  3319  		}
  3320  		if err := p.writeField2(oprot); err != nil {
  3321  			return err
  3322  		}
  3323  		if err := p.writeField3(oprot); err != nil {
  3324  			return err
  3325  		}
  3326  		if err := p.writeField4(oprot); err != nil {
  3327  			return err
  3328  		}
  3329  		if err := p.writeField5(oprot); err != nil {
  3330  			return err
  3331  		}
  3332  	}
  3333  	if err := oprot.WriteFieldStop(); err != nil {
  3334  		return thrift.PrependError("write field stop error: ", err)
  3335  	}
  3336  	if err := oprot.WriteStructEnd(); err != nil {
  3337  		return thrift.PrependError("write struct stop error: ", err)
  3338  	}
  3339  	return nil
  3340  }
  3341  
  3342  func (p *Segment) writeField1(oprot thrift.TProtocol) (err error) {
  3343  	if err := oprot.WriteFieldBegin("head", thrift.STRING, 1); err != nil {
  3344  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:head: ", p), err)
  3345  	}
  3346  	if err := oprot.WriteBinary(p.Head); err != nil {
  3347  		return thrift.PrependError(fmt.Sprintf("%T.head (1) field write error: ", p), err)
  3348  	}
  3349  	if err := oprot.WriteFieldEnd(); err != nil {
  3350  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:head: ", p), err)
  3351  	}
  3352  	return err
  3353  }
  3354  
  3355  func (p *Segment) writeField2(oprot thrift.TProtocol) (err error) {
  3356  	if err := oprot.WriteFieldBegin("tail", thrift.STRING, 2); err != nil {
  3357  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:tail: ", p), err)
  3358  	}
  3359  	if err := oprot.WriteBinary(p.Tail); err != nil {
  3360  		return thrift.PrependError(fmt.Sprintf("%T.tail (2) field write error: ", p), err)
  3361  	}
  3362  	if err := oprot.WriteFieldEnd(); err != nil {
  3363  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:tail: ", p), err)
  3364  	}
  3365  	return err
  3366  }
  3367  
  3368  func (p *Segment) writeField3(oprot thrift.TProtocol) (err error) {
  3369  	if p.IsSetStartTime() {
  3370  		if err := oprot.WriteFieldBegin("startTime", thrift.I64, 3); err != nil {
  3371  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:startTime: ", p), err)
  3372  		}
  3373  		if err := oprot.WriteI64(int64(*p.StartTime)); err != nil {
  3374  			return thrift.PrependError(fmt.Sprintf("%T.startTime (3) field write error: ", p), err)
  3375  		}
  3376  		if err := oprot.WriteFieldEnd(); err != nil {
  3377  			return thrift.PrependError(fmt.Sprintf("%T write field end error 3:startTime: ", p), err)
  3378  		}
  3379  	}
  3380  	return err
  3381  }
  3382  
  3383  func (p *Segment) writeField4(oprot thrift.TProtocol) (err error) {
  3384  	if p.IsSetBlockSize() {
  3385  		if err := oprot.WriteFieldBegin("blockSize", thrift.I64, 4); err != nil {
  3386  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:blockSize: ", p), err)
  3387  		}
  3388  		if err := oprot.WriteI64(int64(*p.BlockSize)); err != nil {
  3389  			return thrift.PrependError(fmt.Sprintf("%T.blockSize (4) field write error: ", p), err)
  3390  		}
  3391  		if err := oprot.WriteFieldEnd(); err != nil {
  3392  			return thrift.PrependError(fmt.Sprintf("%T write field end error 4:blockSize: ", p), err)
  3393  		}
  3394  	}
  3395  	return err
  3396  }
  3397  
  3398  func (p *Segment) writeField5(oprot thrift.TProtocol) (err error) {
  3399  	if p.IsSetChecksum() {
  3400  		if err := oprot.WriteFieldBegin("checksum", thrift.I64, 5); err != nil {
  3401  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:checksum: ", p), err)
  3402  		}
  3403  		if err := oprot.WriteI64(int64(*p.Checksum)); err != nil {
  3404  			return thrift.PrependError(fmt.Sprintf("%T.checksum (5) field write error: ", p), err)
  3405  		}
  3406  		if err := oprot.WriteFieldEnd(); err != nil {
  3407  			return thrift.PrependError(fmt.Sprintf("%T write field end error 5:checksum: ", p), err)
  3408  		}
  3409  	}
  3410  	return err
  3411  }
  3412  
  3413  func (p *Segment) String() string {
  3414  	if p == nil {
  3415  		return "<nil>"
  3416  	}
  3417  	return fmt.Sprintf("Segment(%+v)", *p)
  3418  }
  3419  
  3420  // Attributes:
  3421  //  - NameSpace
  3422  //  - Query
  3423  //  - RangeStart
  3424  //  - RangeEnd
  3425  //  - FetchData
  3426  //  - SeriesLimit
  3427  //  - RangeTimeType
  3428  //  - RequireExhaustive
  3429  //  - DocsLimit
  3430  //  - Source
  3431  //  - RequireNoWait
  3432  type FetchTaggedRequest struct {
  3433  	NameSpace         []byte   `thrift:"nameSpace,1,required" db:"nameSpace" json:"nameSpace"`
  3434  	Query             []byte   `thrift:"query,2,required" db:"query" json:"query"`
  3435  	RangeStart        int64    `thrift:"rangeStart,3,required" db:"rangeStart" json:"rangeStart"`
  3436  	RangeEnd          int64    `thrift:"rangeEnd,4,required" db:"rangeEnd" json:"rangeEnd"`
  3437  	FetchData         bool     `thrift:"fetchData,5,required" db:"fetchData" json:"fetchData"`
  3438  	SeriesLimit       *int64   `thrift:"seriesLimit,6" db:"seriesLimit" json:"seriesLimit,omitempty"`
  3439  	RangeTimeType     TimeType `thrift:"rangeTimeType,7" db:"rangeTimeType" json:"rangeTimeType,omitempty"`
  3440  	RequireExhaustive bool     `thrift:"requireExhaustive,8" db:"requireExhaustive" json:"requireExhaustive,omitempty"`
  3441  	DocsLimit         *int64   `thrift:"docsLimit,9" db:"docsLimit" json:"docsLimit,omitempty"`
  3442  	Source            []byte   `thrift:"source,10" db:"source" json:"source,omitempty"`
  3443  	RequireNoWait     bool     `thrift:"requireNoWait,11" db:"requireNoWait" json:"requireNoWait,omitempty"`
  3444  }
  3445  
  3446  func NewFetchTaggedRequest() *FetchTaggedRequest {
  3447  	return &FetchTaggedRequest{
  3448  		RangeTimeType: 0,
  3449  
  3450  		RequireExhaustive: true,
  3451  	}
  3452  }
  3453  
  3454  func (p *FetchTaggedRequest) GetNameSpace() []byte {
  3455  	return p.NameSpace
  3456  }
  3457  
  3458  func (p *FetchTaggedRequest) GetQuery() []byte {
  3459  	return p.Query
  3460  }
  3461  
  3462  func (p *FetchTaggedRequest) GetRangeStart() int64 {
  3463  	return p.RangeStart
  3464  }
  3465  
  3466  func (p *FetchTaggedRequest) GetRangeEnd() int64 {
  3467  	return p.RangeEnd
  3468  }
  3469  
  3470  func (p *FetchTaggedRequest) GetFetchData() bool {
  3471  	return p.FetchData
  3472  }
  3473  
  3474  var FetchTaggedRequest_SeriesLimit_DEFAULT int64
  3475  
  3476  func (p *FetchTaggedRequest) GetSeriesLimit() int64 {
  3477  	if !p.IsSetSeriesLimit() {
  3478  		return FetchTaggedRequest_SeriesLimit_DEFAULT
  3479  	}
  3480  	return *p.SeriesLimit
  3481  }
  3482  
  3483  var FetchTaggedRequest_RangeTimeType_DEFAULT TimeType = 0
  3484  
  3485  func (p *FetchTaggedRequest) GetRangeTimeType() TimeType {
  3486  	return p.RangeTimeType
  3487  }
  3488  
  3489  var FetchTaggedRequest_RequireExhaustive_DEFAULT bool = true
  3490  
  3491  func (p *FetchTaggedRequest) GetRequireExhaustive() bool {
  3492  	return p.RequireExhaustive
  3493  }
  3494  
  3495  var FetchTaggedRequest_DocsLimit_DEFAULT int64
  3496  
  3497  func (p *FetchTaggedRequest) GetDocsLimit() int64 {
  3498  	if !p.IsSetDocsLimit() {
  3499  		return FetchTaggedRequest_DocsLimit_DEFAULT
  3500  	}
  3501  	return *p.DocsLimit
  3502  }
  3503  
  3504  var FetchTaggedRequest_Source_DEFAULT []byte
  3505  
  3506  func (p *FetchTaggedRequest) GetSource() []byte {
  3507  	return p.Source
  3508  }
  3509  
  3510  var FetchTaggedRequest_RequireNoWait_DEFAULT bool = false
  3511  
  3512  func (p *FetchTaggedRequest) GetRequireNoWait() bool {
  3513  	return p.RequireNoWait
  3514  }
  3515  func (p *FetchTaggedRequest) IsSetSeriesLimit() bool {
  3516  	return p.SeriesLimit != nil
  3517  }
  3518  
  3519  func (p *FetchTaggedRequest) IsSetRangeTimeType() bool {
  3520  	return p.RangeTimeType != FetchTaggedRequest_RangeTimeType_DEFAULT
  3521  }
  3522  
  3523  func (p *FetchTaggedRequest) IsSetRequireExhaustive() bool {
  3524  	return p.RequireExhaustive != FetchTaggedRequest_RequireExhaustive_DEFAULT
  3525  }
  3526  
  3527  func (p *FetchTaggedRequest) IsSetDocsLimit() bool {
  3528  	return p.DocsLimit != nil
  3529  }
  3530  
  3531  func (p *FetchTaggedRequest) IsSetSource() bool {
  3532  	return p.Source != nil
  3533  }
  3534  
  3535  func (p *FetchTaggedRequest) IsSetRequireNoWait() bool {
  3536  	return p.RequireNoWait != FetchTaggedRequest_RequireNoWait_DEFAULT
  3537  }
  3538  
  3539  func (p *FetchTaggedRequest) Read(iprot thrift.TProtocol) error {
  3540  	if _, err := iprot.ReadStructBegin(); err != nil {
  3541  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  3542  	}
  3543  
  3544  	var issetNameSpace bool = false
  3545  	var issetQuery bool = false
  3546  	var issetRangeStart bool = false
  3547  	var issetRangeEnd bool = false
  3548  	var issetFetchData bool = false
  3549  
  3550  	for {
  3551  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  3552  		if err != nil {
  3553  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  3554  		}
  3555  		if fieldTypeId == thrift.STOP {
  3556  			break
  3557  		}
  3558  		switch fieldId {
  3559  		case 1:
  3560  			if err := p.ReadField1(iprot); err != nil {
  3561  				return err
  3562  			}
  3563  			issetNameSpace = true
  3564  		case 2:
  3565  			if err := p.ReadField2(iprot); err != nil {
  3566  				return err
  3567  			}
  3568  			issetQuery = true
  3569  		case 3:
  3570  			if err := p.ReadField3(iprot); err != nil {
  3571  				return err
  3572  			}
  3573  			issetRangeStart = true
  3574  		case 4:
  3575  			if err := p.ReadField4(iprot); err != nil {
  3576  				return err
  3577  			}
  3578  			issetRangeEnd = true
  3579  		case 5:
  3580  			if err := p.ReadField5(iprot); err != nil {
  3581  				return err
  3582  			}
  3583  			issetFetchData = true
  3584  		case 6:
  3585  			if err := p.ReadField6(iprot); err != nil {
  3586  				return err
  3587  			}
  3588  		case 7:
  3589  			if err := p.ReadField7(iprot); err != nil {
  3590  				return err
  3591  			}
  3592  		case 8:
  3593  			if err := p.ReadField8(iprot); err != nil {
  3594  				return err
  3595  			}
  3596  		case 9:
  3597  			if err := p.ReadField9(iprot); err != nil {
  3598  				return err
  3599  			}
  3600  		case 10:
  3601  			if err := p.ReadField10(iprot); err != nil {
  3602  				return err
  3603  			}
  3604  		case 11:
  3605  			if err := p.ReadField11(iprot); err != nil {
  3606  				return err
  3607  			}
  3608  		default:
  3609  			if err := iprot.Skip(fieldTypeId); err != nil {
  3610  				return err
  3611  			}
  3612  		}
  3613  		if err := iprot.ReadFieldEnd(); err != nil {
  3614  			return err
  3615  		}
  3616  	}
  3617  	if err := iprot.ReadStructEnd(); err != nil {
  3618  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  3619  	}
  3620  	if !issetNameSpace {
  3621  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
  3622  	}
  3623  	if !issetQuery {
  3624  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Query is not set"))
  3625  	}
  3626  	if !issetRangeStart {
  3627  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeStart is not set"))
  3628  	}
  3629  	if !issetRangeEnd {
  3630  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeEnd is not set"))
  3631  	}
  3632  	if !issetFetchData {
  3633  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field FetchData is not set"))
  3634  	}
  3635  	return nil
  3636  }
  3637  
  3638  func (p *FetchTaggedRequest) ReadField1(iprot thrift.TProtocol) error {
  3639  	if v, err := iprot.ReadBinary(); err != nil {
  3640  		return thrift.PrependError("error reading field 1: ", err)
  3641  	} else {
  3642  		p.NameSpace = v
  3643  	}
  3644  	return nil
  3645  }
  3646  
  3647  func (p *FetchTaggedRequest) ReadField2(iprot thrift.TProtocol) error {
  3648  	if v, err := iprot.ReadBinary(); err != nil {
  3649  		return thrift.PrependError("error reading field 2: ", err)
  3650  	} else {
  3651  		p.Query = v
  3652  	}
  3653  	return nil
  3654  }
  3655  
  3656  func (p *FetchTaggedRequest) ReadField3(iprot thrift.TProtocol) error {
  3657  	if v, err := iprot.ReadI64(); err != nil {
  3658  		return thrift.PrependError("error reading field 3: ", err)
  3659  	} else {
  3660  		p.RangeStart = v
  3661  	}
  3662  	return nil
  3663  }
  3664  
  3665  func (p *FetchTaggedRequest) ReadField4(iprot thrift.TProtocol) error {
  3666  	if v, err := iprot.ReadI64(); err != nil {
  3667  		return thrift.PrependError("error reading field 4: ", err)
  3668  	} else {
  3669  		p.RangeEnd = v
  3670  	}
  3671  	return nil
  3672  }
  3673  
  3674  func (p *FetchTaggedRequest) ReadField5(iprot thrift.TProtocol) error {
  3675  	if v, err := iprot.ReadBool(); err != nil {
  3676  		return thrift.PrependError("error reading field 5: ", err)
  3677  	} else {
  3678  		p.FetchData = v
  3679  	}
  3680  	return nil
  3681  }
  3682  
  3683  func (p *FetchTaggedRequest) ReadField6(iprot thrift.TProtocol) error {
  3684  	if v, err := iprot.ReadI64(); err != nil {
  3685  		return thrift.PrependError("error reading field 6: ", err)
  3686  	} else {
  3687  		p.SeriesLimit = &v
  3688  	}
  3689  	return nil
  3690  }
  3691  
  3692  func (p *FetchTaggedRequest) ReadField7(iprot thrift.TProtocol) error {
  3693  	if v, err := iprot.ReadI32(); err != nil {
  3694  		return thrift.PrependError("error reading field 7: ", err)
  3695  	} else {
  3696  		temp := TimeType(v)
  3697  		p.RangeTimeType = temp
  3698  	}
  3699  	return nil
  3700  }
  3701  
  3702  func (p *FetchTaggedRequest) ReadField8(iprot thrift.TProtocol) error {
  3703  	if v, err := iprot.ReadBool(); err != nil {
  3704  		return thrift.PrependError("error reading field 8: ", err)
  3705  	} else {
  3706  		p.RequireExhaustive = v
  3707  	}
  3708  	return nil
  3709  }
  3710  
  3711  func (p *FetchTaggedRequest) ReadField9(iprot thrift.TProtocol) error {
  3712  	if v, err := iprot.ReadI64(); err != nil {
  3713  		return thrift.PrependError("error reading field 9: ", err)
  3714  	} else {
  3715  		p.DocsLimit = &v
  3716  	}
  3717  	return nil
  3718  }
  3719  
  3720  func (p *FetchTaggedRequest) ReadField10(iprot thrift.TProtocol) error {
  3721  	if v, err := iprot.ReadBinary(); err != nil {
  3722  		return thrift.PrependError("error reading field 10: ", err)
  3723  	} else {
  3724  		p.Source = v
  3725  	}
  3726  	return nil
  3727  }
  3728  
  3729  func (p *FetchTaggedRequest) ReadField11(iprot thrift.TProtocol) error {
  3730  	if v, err := iprot.ReadBool(); err != nil {
  3731  		return thrift.PrependError("error reading field 11: ", err)
  3732  	} else {
  3733  		p.RequireNoWait = v
  3734  	}
  3735  	return nil
  3736  }
  3737  
  3738  func (p *FetchTaggedRequest) Write(oprot thrift.TProtocol) error {
  3739  	if err := oprot.WriteStructBegin("FetchTaggedRequest"); err != nil {
  3740  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  3741  	}
  3742  	if p != nil {
  3743  		if err := p.writeField1(oprot); err != nil {
  3744  			return err
  3745  		}
  3746  		if err := p.writeField2(oprot); err != nil {
  3747  			return err
  3748  		}
  3749  		if err := p.writeField3(oprot); err != nil {
  3750  			return err
  3751  		}
  3752  		if err := p.writeField4(oprot); err != nil {
  3753  			return err
  3754  		}
  3755  		if err := p.writeField5(oprot); err != nil {
  3756  			return err
  3757  		}
  3758  		if err := p.writeField6(oprot); err != nil {
  3759  			return err
  3760  		}
  3761  		if err := p.writeField7(oprot); err != nil {
  3762  			return err
  3763  		}
  3764  		if err := p.writeField8(oprot); err != nil {
  3765  			return err
  3766  		}
  3767  		if err := p.writeField9(oprot); err != nil {
  3768  			return err
  3769  		}
  3770  		if err := p.writeField10(oprot); err != nil {
  3771  			return err
  3772  		}
  3773  		if err := p.writeField11(oprot); err != nil {
  3774  			return err
  3775  		}
  3776  	}
  3777  	if err := oprot.WriteFieldStop(); err != nil {
  3778  		return thrift.PrependError("write field stop error: ", err)
  3779  	}
  3780  	if err := oprot.WriteStructEnd(); err != nil {
  3781  		return thrift.PrependError("write struct stop error: ", err)
  3782  	}
  3783  	return nil
  3784  }
  3785  
  3786  func (p *FetchTaggedRequest) writeField1(oprot thrift.TProtocol) (err error) {
  3787  	if err := oprot.WriteFieldBegin("nameSpace", thrift.STRING, 1); err != nil {
  3788  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:nameSpace: ", p), err)
  3789  	}
  3790  	if err := oprot.WriteBinary(p.NameSpace); err != nil {
  3791  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (1) field write error: ", p), err)
  3792  	}
  3793  	if err := oprot.WriteFieldEnd(); err != nil {
  3794  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:nameSpace: ", p), err)
  3795  	}
  3796  	return err
  3797  }
  3798  
  3799  func (p *FetchTaggedRequest) writeField2(oprot thrift.TProtocol) (err error) {
  3800  	if err := oprot.WriteFieldBegin("query", thrift.STRING, 2); err != nil {
  3801  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:query: ", p), err)
  3802  	}
  3803  	if err := oprot.WriteBinary(p.Query); err != nil {
  3804  		return thrift.PrependError(fmt.Sprintf("%T.query (2) field write error: ", p), err)
  3805  	}
  3806  	if err := oprot.WriteFieldEnd(); err != nil {
  3807  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:query: ", p), err)
  3808  	}
  3809  	return err
  3810  }
  3811  
  3812  func (p *FetchTaggedRequest) writeField3(oprot thrift.TProtocol) (err error) {
  3813  	if err := oprot.WriteFieldBegin("rangeStart", thrift.I64, 3); err != nil {
  3814  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:rangeStart: ", p), err)
  3815  	}
  3816  	if err := oprot.WriteI64(int64(p.RangeStart)); err != nil {
  3817  		return thrift.PrependError(fmt.Sprintf("%T.rangeStart (3) field write error: ", p), err)
  3818  	}
  3819  	if err := oprot.WriteFieldEnd(); err != nil {
  3820  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:rangeStart: ", p), err)
  3821  	}
  3822  	return err
  3823  }
  3824  
  3825  func (p *FetchTaggedRequest) writeField4(oprot thrift.TProtocol) (err error) {
  3826  	if err := oprot.WriteFieldBegin("rangeEnd", thrift.I64, 4); err != nil {
  3827  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:rangeEnd: ", p), err)
  3828  	}
  3829  	if err := oprot.WriteI64(int64(p.RangeEnd)); err != nil {
  3830  		return thrift.PrependError(fmt.Sprintf("%T.rangeEnd (4) field write error: ", p), err)
  3831  	}
  3832  	if err := oprot.WriteFieldEnd(); err != nil {
  3833  		return thrift.PrependError(fmt.Sprintf("%T write field end error 4:rangeEnd: ", p), err)
  3834  	}
  3835  	return err
  3836  }
  3837  
  3838  func (p *FetchTaggedRequest) writeField5(oprot thrift.TProtocol) (err error) {
  3839  	if err := oprot.WriteFieldBegin("fetchData", thrift.BOOL, 5); err != nil {
  3840  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:fetchData: ", p), err)
  3841  	}
  3842  	if err := oprot.WriteBool(bool(p.FetchData)); err != nil {
  3843  		return thrift.PrependError(fmt.Sprintf("%T.fetchData (5) field write error: ", p), err)
  3844  	}
  3845  	if err := oprot.WriteFieldEnd(); err != nil {
  3846  		return thrift.PrependError(fmt.Sprintf("%T write field end error 5:fetchData: ", p), err)
  3847  	}
  3848  	return err
  3849  }
  3850  
  3851  func (p *FetchTaggedRequest) writeField6(oprot thrift.TProtocol) (err error) {
  3852  	if p.IsSetSeriesLimit() {
  3853  		if err := oprot.WriteFieldBegin("seriesLimit", thrift.I64, 6); err != nil {
  3854  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:seriesLimit: ", p), err)
  3855  		}
  3856  		if err := oprot.WriteI64(int64(*p.SeriesLimit)); err != nil {
  3857  			return thrift.PrependError(fmt.Sprintf("%T.seriesLimit (6) field write error: ", p), err)
  3858  		}
  3859  		if err := oprot.WriteFieldEnd(); err != nil {
  3860  			return thrift.PrependError(fmt.Sprintf("%T write field end error 6:seriesLimit: ", p), err)
  3861  		}
  3862  	}
  3863  	return err
  3864  }
  3865  
  3866  func (p *FetchTaggedRequest) writeField7(oprot thrift.TProtocol) (err error) {
  3867  	if p.IsSetRangeTimeType() {
  3868  		if err := oprot.WriteFieldBegin("rangeTimeType", thrift.I32, 7); err != nil {
  3869  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 7:rangeTimeType: ", p), err)
  3870  		}
  3871  		if err := oprot.WriteI32(int32(p.RangeTimeType)); err != nil {
  3872  			return thrift.PrependError(fmt.Sprintf("%T.rangeTimeType (7) field write error: ", p), err)
  3873  		}
  3874  		if err := oprot.WriteFieldEnd(); err != nil {
  3875  			return thrift.PrependError(fmt.Sprintf("%T write field end error 7:rangeTimeType: ", p), err)
  3876  		}
  3877  	}
  3878  	return err
  3879  }
  3880  
  3881  func (p *FetchTaggedRequest) writeField8(oprot thrift.TProtocol) (err error) {
  3882  	if p.IsSetRequireExhaustive() {
  3883  		if err := oprot.WriteFieldBegin("requireExhaustive", thrift.BOOL, 8); err != nil {
  3884  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 8:requireExhaustive: ", p), err)
  3885  		}
  3886  		if err := oprot.WriteBool(bool(p.RequireExhaustive)); err != nil {
  3887  			return thrift.PrependError(fmt.Sprintf("%T.requireExhaustive (8) field write error: ", p), err)
  3888  		}
  3889  		if err := oprot.WriteFieldEnd(); err != nil {
  3890  			return thrift.PrependError(fmt.Sprintf("%T write field end error 8:requireExhaustive: ", p), err)
  3891  		}
  3892  	}
  3893  	return err
  3894  }
  3895  
  3896  func (p *FetchTaggedRequest) writeField9(oprot thrift.TProtocol) (err error) {
  3897  	if p.IsSetDocsLimit() {
  3898  		if err := oprot.WriteFieldBegin("docsLimit", thrift.I64, 9); err != nil {
  3899  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 9:docsLimit: ", p), err)
  3900  		}
  3901  		if err := oprot.WriteI64(int64(*p.DocsLimit)); err != nil {
  3902  			return thrift.PrependError(fmt.Sprintf("%T.docsLimit (9) field write error: ", p), err)
  3903  		}
  3904  		if err := oprot.WriteFieldEnd(); err != nil {
  3905  			return thrift.PrependError(fmt.Sprintf("%T write field end error 9:docsLimit: ", p), err)
  3906  		}
  3907  	}
  3908  	return err
  3909  }
  3910  
  3911  func (p *FetchTaggedRequest) writeField10(oprot thrift.TProtocol) (err error) {
  3912  	if p.IsSetSource() {
  3913  		if err := oprot.WriteFieldBegin("source", thrift.STRING, 10); err != nil {
  3914  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 10:source: ", p), err)
  3915  		}
  3916  		if err := oprot.WriteBinary(p.Source); err != nil {
  3917  			return thrift.PrependError(fmt.Sprintf("%T.source (10) field write error: ", p), err)
  3918  		}
  3919  		if err := oprot.WriteFieldEnd(); err != nil {
  3920  			return thrift.PrependError(fmt.Sprintf("%T write field end error 10:source: ", p), err)
  3921  		}
  3922  	}
  3923  	return err
  3924  }
  3925  
  3926  func (p *FetchTaggedRequest) writeField11(oprot thrift.TProtocol) (err error) {
  3927  	if p.IsSetRequireNoWait() {
  3928  		if err := oprot.WriteFieldBegin("requireNoWait", thrift.BOOL, 11); err != nil {
  3929  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 11:requireNoWait: ", p), err)
  3930  		}
  3931  		if err := oprot.WriteBool(bool(p.RequireNoWait)); err != nil {
  3932  			return thrift.PrependError(fmt.Sprintf("%T.requireNoWait (11) field write error: ", p), err)
  3933  		}
  3934  		if err := oprot.WriteFieldEnd(); err != nil {
  3935  			return thrift.PrependError(fmt.Sprintf("%T write field end error 11:requireNoWait: ", p), err)
  3936  		}
  3937  	}
  3938  	return err
  3939  }
  3940  
  3941  func (p *FetchTaggedRequest) String() string {
  3942  	if p == nil {
  3943  		return "<nil>"
  3944  	}
  3945  	return fmt.Sprintf("FetchTaggedRequest(%+v)", *p)
  3946  }
  3947  
  3948  // Attributes:
  3949  //  - Elements
  3950  //  - Exhaustive
  3951  //  - WaitedIndex
  3952  //  - WaitedSeriesRead
  3953  type FetchTaggedResult_ struct {
  3954  	Elements         []*FetchTaggedIDResult_ `thrift:"elements,1,required" db:"elements" json:"elements"`
  3955  	Exhaustive       bool                    `thrift:"exhaustive,2,required" db:"exhaustive" json:"exhaustive"`
  3956  	WaitedIndex      *int64                  `thrift:"waitedIndex,3" db:"waitedIndex" json:"waitedIndex,omitempty"`
  3957  	WaitedSeriesRead *int64                  `thrift:"waitedSeriesRead,4" db:"waitedSeriesRead" json:"waitedSeriesRead,omitempty"`
  3958  }
  3959  
  3960  func NewFetchTaggedResult_() *FetchTaggedResult_ {
  3961  	return &FetchTaggedResult_{}
  3962  }
  3963  
  3964  func (p *FetchTaggedResult_) GetElements() []*FetchTaggedIDResult_ {
  3965  	return p.Elements
  3966  }
  3967  
  3968  func (p *FetchTaggedResult_) GetExhaustive() bool {
  3969  	return p.Exhaustive
  3970  }
  3971  
  3972  var FetchTaggedResult__WaitedIndex_DEFAULT int64
  3973  
  3974  func (p *FetchTaggedResult_) GetWaitedIndex() int64 {
  3975  	if !p.IsSetWaitedIndex() {
  3976  		return FetchTaggedResult__WaitedIndex_DEFAULT
  3977  	}
  3978  	return *p.WaitedIndex
  3979  }
  3980  
  3981  var FetchTaggedResult__WaitedSeriesRead_DEFAULT int64
  3982  
  3983  func (p *FetchTaggedResult_) GetWaitedSeriesRead() int64 {
  3984  	if !p.IsSetWaitedSeriesRead() {
  3985  		return FetchTaggedResult__WaitedSeriesRead_DEFAULT
  3986  	}
  3987  	return *p.WaitedSeriesRead
  3988  }
  3989  func (p *FetchTaggedResult_) IsSetWaitedIndex() bool {
  3990  	return p.WaitedIndex != nil
  3991  }
  3992  
  3993  func (p *FetchTaggedResult_) IsSetWaitedSeriesRead() bool {
  3994  	return p.WaitedSeriesRead != nil
  3995  }
  3996  
  3997  func (p *FetchTaggedResult_) Read(iprot thrift.TProtocol) error {
  3998  	if _, err := iprot.ReadStructBegin(); err != nil {
  3999  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  4000  	}
  4001  
  4002  	var issetElements bool = false
  4003  	var issetExhaustive bool = false
  4004  
  4005  	for {
  4006  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  4007  		if err != nil {
  4008  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  4009  		}
  4010  		if fieldTypeId == thrift.STOP {
  4011  			break
  4012  		}
  4013  		switch fieldId {
  4014  		case 1:
  4015  			if err := p.ReadField1(iprot); err != nil {
  4016  				return err
  4017  			}
  4018  			issetElements = true
  4019  		case 2:
  4020  			if err := p.ReadField2(iprot); err != nil {
  4021  				return err
  4022  			}
  4023  			issetExhaustive = true
  4024  		case 3:
  4025  			if err := p.ReadField3(iprot); err != nil {
  4026  				return err
  4027  			}
  4028  		case 4:
  4029  			if err := p.ReadField4(iprot); err != nil {
  4030  				return err
  4031  			}
  4032  		default:
  4033  			if err := iprot.Skip(fieldTypeId); err != nil {
  4034  				return err
  4035  			}
  4036  		}
  4037  		if err := iprot.ReadFieldEnd(); err != nil {
  4038  			return err
  4039  		}
  4040  	}
  4041  	if err := iprot.ReadStructEnd(); err != nil {
  4042  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  4043  	}
  4044  	if !issetElements {
  4045  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Elements is not set"))
  4046  	}
  4047  	if !issetExhaustive {
  4048  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Exhaustive is not set"))
  4049  	}
  4050  	return nil
  4051  }
  4052  
  4053  func (p *FetchTaggedResult_) ReadField1(iprot thrift.TProtocol) error {
  4054  	_, size, err := iprot.ReadListBegin()
  4055  	if err != nil {
  4056  		return thrift.PrependError("error reading list begin: ", err)
  4057  	}
  4058  	tSlice := make([]*FetchTaggedIDResult_, 0, size)
  4059  	p.Elements = tSlice
  4060  	for i := 0; i < size; i++ {
  4061  		_elem9 := &FetchTaggedIDResult_{}
  4062  		if err := _elem9.Read(iprot); err != nil {
  4063  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem9), err)
  4064  		}
  4065  		p.Elements = append(p.Elements, _elem9)
  4066  	}
  4067  	if err := iprot.ReadListEnd(); err != nil {
  4068  		return thrift.PrependError("error reading list end: ", err)
  4069  	}
  4070  	return nil
  4071  }
  4072  
  4073  func (p *FetchTaggedResult_) ReadField2(iprot thrift.TProtocol) error {
  4074  	if v, err := iprot.ReadBool(); err != nil {
  4075  		return thrift.PrependError("error reading field 2: ", err)
  4076  	} else {
  4077  		p.Exhaustive = v
  4078  	}
  4079  	return nil
  4080  }
  4081  
  4082  func (p *FetchTaggedResult_) ReadField3(iprot thrift.TProtocol) error {
  4083  	if v, err := iprot.ReadI64(); err != nil {
  4084  		return thrift.PrependError("error reading field 3: ", err)
  4085  	} else {
  4086  		p.WaitedIndex = &v
  4087  	}
  4088  	return nil
  4089  }
  4090  
  4091  func (p *FetchTaggedResult_) ReadField4(iprot thrift.TProtocol) error {
  4092  	if v, err := iprot.ReadI64(); err != nil {
  4093  		return thrift.PrependError("error reading field 4: ", err)
  4094  	} else {
  4095  		p.WaitedSeriesRead = &v
  4096  	}
  4097  	return nil
  4098  }
  4099  
  4100  func (p *FetchTaggedResult_) Write(oprot thrift.TProtocol) error {
  4101  	if err := oprot.WriteStructBegin("FetchTaggedResult"); err != nil {
  4102  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  4103  	}
  4104  	if p != nil {
  4105  		if err := p.writeField1(oprot); err != nil {
  4106  			return err
  4107  		}
  4108  		if err := p.writeField2(oprot); err != nil {
  4109  			return err
  4110  		}
  4111  		if err := p.writeField3(oprot); err != nil {
  4112  			return err
  4113  		}
  4114  		if err := p.writeField4(oprot); err != nil {
  4115  			return err
  4116  		}
  4117  	}
  4118  	if err := oprot.WriteFieldStop(); err != nil {
  4119  		return thrift.PrependError("write field stop error: ", err)
  4120  	}
  4121  	if err := oprot.WriteStructEnd(); err != nil {
  4122  		return thrift.PrependError("write struct stop error: ", err)
  4123  	}
  4124  	return nil
  4125  }
  4126  
  4127  func (p *FetchTaggedResult_) writeField1(oprot thrift.TProtocol) (err error) {
  4128  	if err := oprot.WriteFieldBegin("elements", thrift.LIST, 1); err != nil {
  4129  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:elements: ", p), err)
  4130  	}
  4131  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Elements)); err != nil {
  4132  		return thrift.PrependError("error writing list begin: ", err)
  4133  	}
  4134  	for _, v := range p.Elements {
  4135  		if err := v.Write(oprot); err != nil {
  4136  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  4137  		}
  4138  	}
  4139  	if err := oprot.WriteListEnd(); err != nil {
  4140  		return thrift.PrependError("error writing list end: ", err)
  4141  	}
  4142  	if err := oprot.WriteFieldEnd(); err != nil {
  4143  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:elements: ", p), err)
  4144  	}
  4145  	return err
  4146  }
  4147  
  4148  func (p *FetchTaggedResult_) writeField2(oprot thrift.TProtocol) (err error) {
  4149  	if err := oprot.WriteFieldBegin("exhaustive", thrift.BOOL, 2); err != nil {
  4150  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:exhaustive: ", p), err)
  4151  	}
  4152  	if err := oprot.WriteBool(bool(p.Exhaustive)); err != nil {
  4153  		return thrift.PrependError(fmt.Sprintf("%T.exhaustive (2) field write error: ", p), err)
  4154  	}
  4155  	if err := oprot.WriteFieldEnd(); err != nil {
  4156  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:exhaustive: ", p), err)
  4157  	}
  4158  	return err
  4159  }
  4160  
  4161  func (p *FetchTaggedResult_) writeField3(oprot thrift.TProtocol) (err error) {
  4162  	if p.IsSetWaitedIndex() {
  4163  		if err := oprot.WriteFieldBegin("waitedIndex", thrift.I64, 3); err != nil {
  4164  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:waitedIndex: ", p), err)
  4165  		}
  4166  		if err := oprot.WriteI64(int64(*p.WaitedIndex)); err != nil {
  4167  			return thrift.PrependError(fmt.Sprintf("%T.waitedIndex (3) field write error: ", p), err)
  4168  		}
  4169  		if err := oprot.WriteFieldEnd(); err != nil {
  4170  			return thrift.PrependError(fmt.Sprintf("%T write field end error 3:waitedIndex: ", p), err)
  4171  		}
  4172  	}
  4173  	return err
  4174  }
  4175  
  4176  func (p *FetchTaggedResult_) writeField4(oprot thrift.TProtocol) (err error) {
  4177  	if p.IsSetWaitedSeriesRead() {
  4178  		if err := oprot.WriteFieldBegin("waitedSeriesRead", thrift.I64, 4); err != nil {
  4179  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:waitedSeriesRead: ", p), err)
  4180  		}
  4181  		if err := oprot.WriteI64(int64(*p.WaitedSeriesRead)); err != nil {
  4182  			return thrift.PrependError(fmt.Sprintf("%T.waitedSeriesRead (4) field write error: ", p), err)
  4183  		}
  4184  		if err := oprot.WriteFieldEnd(); err != nil {
  4185  			return thrift.PrependError(fmt.Sprintf("%T write field end error 4:waitedSeriesRead: ", p), err)
  4186  		}
  4187  	}
  4188  	return err
  4189  }
  4190  
  4191  func (p *FetchTaggedResult_) String() string {
  4192  	if p == nil {
  4193  		return "<nil>"
  4194  	}
  4195  	return fmt.Sprintf("FetchTaggedResult_(%+v)", *p)
  4196  }
  4197  
  4198  // Attributes:
  4199  //  - ID
  4200  //  - NameSpace
  4201  //  - EncodedTags
  4202  //  - Segments
  4203  //  - Err
  4204  type FetchTaggedIDResult_ struct {
  4205  	ID          []byte      `thrift:"id,1,required" db:"id" json:"id"`
  4206  	NameSpace   []byte      `thrift:"nameSpace,2,required" db:"nameSpace" json:"nameSpace"`
  4207  	EncodedTags []byte      `thrift:"encodedTags,3,required" db:"encodedTags" json:"encodedTags"`
  4208  	Segments    []*Segments `thrift:"segments,4" db:"segments" json:"segments,omitempty"`
  4209  	Err         *Error      `thrift:"err,5" db:"err" json:"err,omitempty"`
  4210  }
  4211  
  4212  func NewFetchTaggedIDResult_() *FetchTaggedIDResult_ {
  4213  	return &FetchTaggedIDResult_{}
  4214  }
  4215  
  4216  func (p *FetchTaggedIDResult_) GetID() []byte {
  4217  	return p.ID
  4218  }
  4219  
  4220  func (p *FetchTaggedIDResult_) GetNameSpace() []byte {
  4221  	return p.NameSpace
  4222  }
  4223  
  4224  func (p *FetchTaggedIDResult_) GetEncodedTags() []byte {
  4225  	return p.EncodedTags
  4226  }
  4227  
  4228  var FetchTaggedIDResult__Segments_DEFAULT []*Segments
  4229  
  4230  func (p *FetchTaggedIDResult_) GetSegments() []*Segments {
  4231  	return p.Segments
  4232  }
  4233  
  4234  var FetchTaggedIDResult__Err_DEFAULT *Error
  4235  
  4236  func (p *FetchTaggedIDResult_) GetErr() *Error {
  4237  	if !p.IsSetErr() {
  4238  		return FetchTaggedIDResult__Err_DEFAULT
  4239  	}
  4240  	return p.Err
  4241  }
  4242  func (p *FetchTaggedIDResult_) IsSetSegments() bool {
  4243  	return p.Segments != nil
  4244  }
  4245  
  4246  func (p *FetchTaggedIDResult_) IsSetErr() bool {
  4247  	return p.Err != nil
  4248  }
  4249  
  4250  func (p *FetchTaggedIDResult_) Read(iprot thrift.TProtocol) error {
  4251  	if _, err := iprot.ReadStructBegin(); err != nil {
  4252  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  4253  	}
  4254  
  4255  	var issetID bool = false
  4256  	var issetNameSpace bool = false
  4257  	var issetEncodedTags bool = false
  4258  
  4259  	for {
  4260  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  4261  		if err != nil {
  4262  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  4263  		}
  4264  		if fieldTypeId == thrift.STOP {
  4265  			break
  4266  		}
  4267  		switch fieldId {
  4268  		case 1:
  4269  			if err := p.ReadField1(iprot); err != nil {
  4270  				return err
  4271  			}
  4272  			issetID = true
  4273  		case 2:
  4274  			if err := p.ReadField2(iprot); err != nil {
  4275  				return err
  4276  			}
  4277  			issetNameSpace = true
  4278  		case 3:
  4279  			if err := p.ReadField3(iprot); err != nil {
  4280  				return err
  4281  			}
  4282  			issetEncodedTags = true
  4283  		case 4:
  4284  			if err := p.ReadField4(iprot); err != nil {
  4285  				return err
  4286  			}
  4287  		case 5:
  4288  			if err := p.ReadField5(iprot); err != nil {
  4289  				return err
  4290  			}
  4291  		default:
  4292  			if err := iprot.Skip(fieldTypeId); err != nil {
  4293  				return err
  4294  			}
  4295  		}
  4296  		if err := iprot.ReadFieldEnd(); err != nil {
  4297  			return err
  4298  		}
  4299  	}
  4300  	if err := iprot.ReadStructEnd(); err != nil {
  4301  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  4302  	}
  4303  	if !issetID {
  4304  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ID is not set"))
  4305  	}
  4306  	if !issetNameSpace {
  4307  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
  4308  	}
  4309  	if !issetEncodedTags {
  4310  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field EncodedTags is not set"))
  4311  	}
  4312  	return nil
  4313  }
  4314  
  4315  func (p *FetchTaggedIDResult_) ReadField1(iprot thrift.TProtocol) error {
  4316  	if v, err := iprot.ReadBinary(); err != nil {
  4317  		return thrift.PrependError("error reading field 1: ", err)
  4318  	} else {
  4319  		p.ID = v
  4320  	}
  4321  	return nil
  4322  }
  4323  
  4324  func (p *FetchTaggedIDResult_) ReadField2(iprot thrift.TProtocol) error {
  4325  	if v, err := iprot.ReadBinary(); err != nil {
  4326  		return thrift.PrependError("error reading field 2: ", err)
  4327  	} else {
  4328  		p.NameSpace = v
  4329  	}
  4330  	return nil
  4331  }
  4332  
  4333  func (p *FetchTaggedIDResult_) ReadField3(iprot thrift.TProtocol) error {
  4334  	if v, err := iprot.ReadBinary(); err != nil {
  4335  		return thrift.PrependError("error reading field 3: ", err)
  4336  	} else {
  4337  		p.EncodedTags = v
  4338  	}
  4339  	return nil
  4340  }
  4341  
  4342  func (p *FetchTaggedIDResult_) ReadField4(iprot thrift.TProtocol) error {
  4343  	_, size, err := iprot.ReadListBegin()
  4344  	if err != nil {
  4345  		return thrift.PrependError("error reading list begin: ", err)
  4346  	}
  4347  	tSlice := make([]*Segments, 0, size)
  4348  	p.Segments = tSlice
  4349  	for i := 0; i < size; i++ {
  4350  		_elem10 := &Segments{}
  4351  		if err := _elem10.Read(iprot); err != nil {
  4352  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem10), err)
  4353  		}
  4354  		p.Segments = append(p.Segments, _elem10)
  4355  	}
  4356  	if err := iprot.ReadListEnd(); err != nil {
  4357  		return thrift.PrependError("error reading list end: ", err)
  4358  	}
  4359  	return nil
  4360  }
  4361  
  4362  func (p *FetchTaggedIDResult_) ReadField5(iprot thrift.TProtocol) error {
  4363  	p.Err = &Error{
  4364  		Type: 0,
  4365  	}
  4366  	if err := p.Err.Read(iprot); err != nil {
  4367  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
  4368  	}
  4369  	return nil
  4370  }
  4371  
  4372  func (p *FetchTaggedIDResult_) Write(oprot thrift.TProtocol) error {
  4373  	if err := oprot.WriteStructBegin("FetchTaggedIDResult"); err != nil {
  4374  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  4375  	}
  4376  	if p != nil {
  4377  		if err := p.writeField1(oprot); err != nil {
  4378  			return err
  4379  		}
  4380  		if err := p.writeField2(oprot); err != nil {
  4381  			return err
  4382  		}
  4383  		if err := p.writeField3(oprot); err != nil {
  4384  			return err
  4385  		}
  4386  		if err := p.writeField4(oprot); err != nil {
  4387  			return err
  4388  		}
  4389  		if err := p.writeField5(oprot); err != nil {
  4390  			return err
  4391  		}
  4392  	}
  4393  	if err := oprot.WriteFieldStop(); err != nil {
  4394  		return thrift.PrependError("write field stop error: ", err)
  4395  	}
  4396  	if err := oprot.WriteStructEnd(); err != nil {
  4397  		return thrift.PrependError("write struct stop error: ", err)
  4398  	}
  4399  	return nil
  4400  }
  4401  
  4402  func (p *FetchTaggedIDResult_) writeField1(oprot thrift.TProtocol) (err error) {
  4403  	if err := oprot.WriteFieldBegin("id", thrift.STRING, 1); err != nil {
  4404  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:id: ", p), err)
  4405  	}
  4406  	if err := oprot.WriteBinary(p.ID); err != nil {
  4407  		return thrift.PrependError(fmt.Sprintf("%T.id (1) field write error: ", p), err)
  4408  	}
  4409  	if err := oprot.WriteFieldEnd(); err != nil {
  4410  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:id: ", p), err)
  4411  	}
  4412  	return err
  4413  }
  4414  
  4415  func (p *FetchTaggedIDResult_) writeField2(oprot thrift.TProtocol) (err error) {
  4416  	if err := oprot.WriteFieldBegin("nameSpace", thrift.STRING, 2); err != nil {
  4417  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:nameSpace: ", p), err)
  4418  	}
  4419  	if err := oprot.WriteBinary(p.NameSpace); err != nil {
  4420  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (2) field write error: ", p), err)
  4421  	}
  4422  	if err := oprot.WriteFieldEnd(); err != nil {
  4423  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:nameSpace: ", p), err)
  4424  	}
  4425  	return err
  4426  }
  4427  
  4428  func (p *FetchTaggedIDResult_) writeField3(oprot thrift.TProtocol) (err error) {
  4429  	if err := oprot.WriteFieldBegin("encodedTags", thrift.STRING, 3); err != nil {
  4430  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:encodedTags: ", p), err)
  4431  	}
  4432  	if err := oprot.WriteBinary(p.EncodedTags); err != nil {
  4433  		return thrift.PrependError(fmt.Sprintf("%T.encodedTags (3) field write error: ", p), err)
  4434  	}
  4435  	if err := oprot.WriteFieldEnd(); err != nil {
  4436  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:encodedTags: ", p), err)
  4437  	}
  4438  	return err
  4439  }
  4440  
  4441  func (p *FetchTaggedIDResult_) writeField4(oprot thrift.TProtocol) (err error) {
  4442  	if p.IsSetSegments() {
  4443  		if err := oprot.WriteFieldBegin("segments", thrift.LIST, 4); err != nil {
  4444  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:segments: ", p), err)
  4445  		}
  4446  		if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Segments)); err != nil {
  4447  			return thrift.PrependError("error writing list begin: ", err)
  4448  		}
  4449  		for _, v := range p.Segments {
  4450  			if err := v.Write(oprot); err != nil {
  4451  				return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  4452  			}
  4453  		}
  4454  		if err := oprot.WriteListEnd(); err != nil {
  4455  			return thrift.PrependError("error writing list end: ", err)
  4456  		}
  4457  		if err := oprot.WriteFieldEnd(); err != nil {
  4458  			return thrift.PrependError(fmt.Sprintf("%T write field end error 4:segments: ", p), err)
  4459  		}
  4460  	}
  4461  	return err
  4462  }
  4463  
  4464  func (p *FetchTaggedIDResult_) writeField5(oprot thrift.TProtocol) (err error) {
  4465  	if p.IsSetErr() {
  4466  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 5); err != nil {
  4467  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:err: ", p), err)
  4468  		}
  4469  		if err := p.Err.Write(oprot); err != nil {
  4470  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
  4471  		}
  4472  		if err := oprot.WriteFieldEnd(); err != nil {
  4473  			return thrift.PrependError(fmt.Sprintf("%T write field end error 5:err: ", p), err)
  4474  		}
  4475  	}
  4476  	return err
  4477  }
  4478  
  4479  func (p *FetchTaggedIDResult_) String() string {
  4480  	if p == nil {
  4481  		return "<nil>"
  4482  	}
  4483  	return fmt.Sprintf("FetchTaggedIDResult_(%+v)", *p)
  4484  }
  4485  
  4486  // Attributes:
  4487  //  - NameSpace
  4488  //  - Shard
  4489  //  - Elements
  4490  //  - Source
  4491  type FetchBlocksRawRequest struct {
  4492  	NameSpace []byte                          `thrift:"nameSpace,1,required" db:"nameSpace" json:"nameSpace"`
  4493  	Shard     int32                           `thrift:"shard,2,required" db:"shard" json:"shard"`
  4494  	Elements  []*FetchBlocksRawRequestElement `thrift:"elements,3,required" db:"elements" json:"elements"`
  4495  	Source    []byte                          `thrift:"source,4" db:"source" json:"source,omitempty"`
  4496  }
  4497  
  4498  func NewFetchBlocksRawRequest() *FetchBlocksRawRequest {
  4499  	return &FetchBlocksRawRequest{}
  4500  }
  4501  
  4502  func (p *FetchBlocksRawRequest) GetNameSpace() []byte {
  4503  	return p.NameSpace
  4504  }
  4505  
  4506  func (p *FetchBlocksRawRequest) GetShard() int32 {
  4507  	return p.Shard
  4508  }
  4509  
  4510  func (p *FetchBlocksRawRequest) GetElements() []*FetchBlocksRawRequestElement {
  4511  	return p.Elements
  4512  }
  4513  
  4514  var FetchBlocksRawRequest_Source_DEFAULT []byte
  4515  
  4516  func (p *FetchBlocksRawRequest) GetSource() []byte {
  4517  	return p.Source
  4518  }
  4519  func (p *FetchBlocksRawRequest) IsSetSource() bool {
  4520  	return p.Source != nil
  4521  }
  4522  
  4523  func (p *FetchBlocksRawRequest) Read(iprot thrift.TProtocol) error {
  4524  	if _, err := iprot.ReadStructBegin(); err != nil {
  4525  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  4526  	}
  4527  
  4528  	var issetNameSpace bool = false
  4529  	var issetShard bool = false
  4530  	var issetElements bool = false
  4531  
  4532  	for {
  4533  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  4534  		if err != nil {
  4535  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  4536  		}
  4537  		if fieldTypeId == thrift.STOP {
  4538  			break
  4539  		}
  4540  		switch fieldId {
  4541  		case 1:
  4542  			if err := p.ReadField1(iprot); err != nil {
  4543  				return err
  4544  			}
  4545  			issetNameSpace = true
  4546  		case 2:
  4547  			if err := p.ReadField2(iprot); err != nil {
  4548  				return err
  4549  			}
  4550  			issetShard = true
  4551  		case 3:
  4552  			if err := p.ReadField3(iprot); err != nil {
  4553  				return err
  4554  			}
  4555  			issetElements = true
  4556  		case 4:
  4557  			if err := p.ReadField4(iprot); err != nil {
  4558  				return err
  4559  			}
  4560  		default:
  4561  			if err := iprot.Skip(fieldTypeId); err != nil {
  4562  				return err
  4563  			}
  4564  		}
  4565  		if err := iprot.ReadFieldEnd(); err != nil {
  4566  			return err
  4567  		}
  4568  	}
  4569  	if err := iprot.ReadStructEnd(); err != nil {
  4570  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  4571  	}
  4572  	if !issetNameSpace {
  4573  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
  4574  	}
  4575  	if !issetShard {
  4576  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Shard is not set"))
  4577  	}
  4578  	if !issetElements {
  4579  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Elements is not set"))
  4580  	}
  4581  	return nil
  4582  }
  4583  
  4584  func (p *FetchBlocksRawRequest) ReadField1(iprot thrift.TProtocol) error {
  4585  	if v, err := iprot.ReadBinary(); err != nil {
  4586  		return thrift.PrependError("error reading field 1: ", err)
  4587  	} else {
  4588  		p.NameSpace = v
  4589  	}
  4590  	return nil
  4591  }
  4592  
  4593  func (p *FetchBlocksRawRequest) ReadField2(iprot thrift.TProtocol) error {
  4594  	if v, err := iprot.ReadI32(); err != nil {
  4595  		return thrift.PrependError("error reading field 2: ", err)
  4596  	} else {
  4597  		p.Shard = v
  4598  	}
  4599  	return nil
  4600  }
  4601  
  4602  func (p *FetchBlocksRawRequest) ReadField3(iprot thrift.TProtocol) error {
  4603  	_, size, err := iprot.ReadListBegin()
  4604  	if err != nil {
  4605  		return thrift.PrependError("error reading list begin: ", err)
  4606  	}
  4607  	tSlice := make([]*FetchBlocksRawRequestElement, 0, size)
  4608  	p.Elements = tSlice
  4609  	for i := 0; i < size; i++ {
  4610  		_elem11 := &FetchBlocksRawRequestElement{}
  4611  		if err := _elem11.Read(iprot); err != nil {
  4612  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem11), err)
  4613  		}
  4614  		p.Elements = append(p.Elements, _elem11)
  4615  	}
  4616  	if err := iprot.ReadListEnd(); err != nil {
  4617  		return thrift.PrependError("error reading list end: ", err)
  4618  	}
  4619  	return nil
  4620  }
  4621  
  4622  func (p *FetchBlocksRawRequest) ReadField4(iprot thrift.TProtocol) error {
  4623  	if v, err := iprot.ReadBinary(); err != nil {
  4624  		return thrift.PrependError("error reading field 4: ", err)
  4625  	} else {
  4626  		p.Source = v
  4627  	}
  4628  	return nil
  4629  }
  4630  
  4631  func (p *FetchBlocksRawRequest) Write(oprot thrift.TProtocol) error {
  4632  	if err := oprot.WriteStructBegin("FetchBlocksRawRequest"); err != nil {
  4633  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  4634  	}
  4635  	if p != nil {
  4636  		if err := p.writeField1(oprot); err != nil {
  4637  			return err
  4638  		}
  4639  		if err := p.writeField2(oprot); err != nil {
  4640  			return err
  4641  		}
  4642  		if err := p.writeField3(oprot); err != nil {
  4643  			return err
  4644  		}
  4645  		if err := p.writeField4(oprot); err != nil {
  4646  			return err
  4647  		}
  4648  	}
  4649  	if err := oprot.WriteFieldStop(); err != nil {
  4650  		return thrift.PrependError("write field stop error: ", err)
  4651  	}
  4652  	if err := oprot.WriteStructEnd(); err != nil {
  4653  		return thrift.PrependError("write struct stop error: ", err)
  4654  	}
  4655  	return nil
  4656  }
  4657  
  4658  func (p *FetchBlocksRawRequest) writeField1(oprot thrift.TProtocol) (err error) {
  4659  	if err := oprot.WriteFieldBegin("nameSpace", thrift.STRING, 1); err != nil {
  4660  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:nameSpace: ", p), err)
  4661  	}
  4662  	if err := oprot.WriteBinary(p.NameSpace); err != nil {
  4663  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (1) field write error: ", p), err)
  4664  	}
  4665  	if err := oprot.WriteFieldEnd(); err != nil {
  4666  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:nameSpace: ", p), err)
  4667  	}
  4668  	return err
  4669  }
  4670  
  4671  func (p *FetchBlocksRawRequest) writeField2(oprot thrift.TProtocol) (err error) {
  4672  	if err := oprot.WriteFieldBegin("shard", thrift.I32, 2); err != nil {
  4673  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:shard: ", p), err)
  4674  	}
  4675  	if err := oprot.WriteI32(int32(p.Shard)); err != nil {
  4676  		return thrift.PrependError(fmt.Sprintf("%T.shard (2) field write error: ", p), err)
  4677  	}
  4678  	if err := oprot.WriteFieldEnd(); err != nil {
  4679  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:shard: ", p), err)
  4680  	}
  4681  	return err
  4682  }
  4683  
  4684  func (p *FetchBlocksRawRequest) writeField3(oprot thrift.TProtocol) (err error) {
  4685  	if err := oprot.WriteFieldBegin("elements", thrift.LIST, 3); err != nil {
  4686  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:elements: ", p), err)
  4687  	}
  4688  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Elements)); err != nil {
  4689  		return thrift.PrependError("error writing list begin: ", err)
  4690  	}
  4691  	for _, v := range p.Elements {
  4692  		if err := v.Write(oprot); err != nil {
  4693  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  4694  		}
  4695  	}
  4696  	if err := oprot.WriteListEnd(); err != nil {
  4697  		return thrift.PrependError("error writing list end: ", err)
  4698  	}
  4699  	if err := oprot.WriteFieldEnd(); err != nil {
  4700  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:elements: ", p), err)
  4701  	}
  4702  	return err
  4703  }
  4704  
  4705  func (p *FetchBlocksRawRequest) writeField4(oprot thrift.TProtocol) (err error) {
  4706  	if p.IsSetSource() {
  4707  		if err := oprot.WriteFieldBegin("source", thrift.STRING, 4); err != nil {
  4708  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:source: ", p), err)
  4709  		}
  4710  		if err := oprot.WriteBinary(p.Source); err != nil {
  4711  			return thrift.PrependError(fmt.Sprintf("%T.source (4) field write error: ", p), err)
  4712  		}
  4713  		if err := oprot.WriteFieldEnd(); err != nil {
  4714  			return thrift.PrependError(fmt.Sprintf("%T write field end error 4:source: ", p), err)
  4715  		}
  4716  	}
  4717  	return err
  4718  }
  4719  
  4720  func (p *FetchBlocksRawRequest) String() string {
  4721  	if p == nil {
  4722  		return "<nil>"
  4723  	}
  4724  	return fmt.Sprintf("FetchBlocksRawRequest(%+v)", *p)
  4725  }
  4726  
  4727  // Attributes:
  4728  //  - ID
  4729  //  - Starts
  4730  type FetchBlocksRawRequestElement struct {
  4731  	ID     []byte  `thrift:"id,1,required" db:"id" json:"id"`
  4732  	Starts []int64 `thrift:"starts,2,required" db:"starts" json:"starts"`
  4733  }
  4734  
  4735  func NewFetchBlocksRawRequestElement() *FetchBlocksRawRequestElement {
  4736  	return &FetchBlocksRawRequestElement{}
  4737  }
  4738  
  4739  func (p *FetchBlocksRawRequestElement) GetID() []byte {
  4740  	return p.ID
  4741  }
  4742  
  4743  func (p *FetchBlocksRawRequestElement) GetStarts() []int64 {
  4744  	return p.Starts
  4745  }
  4746  func (p *FetchBlocksRawRequestElement) Read(iprot thrift.TProtocol) error {
  4747  	if _, err := iprot.ReadStructBegin(); err != nil {
  4748  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  4749  	}
  4750  
  4751  	var issetID bool = false
  4752  	var issetStarts bool = false
  4753  
  4754  	for {
  4755  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  4756  		if err != nil {
  4757  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  4758  		}
  4759  		if fieldTypeId == thrift.STOP {
  4760  			break
  4761  		}
  4762  		switch fieldId {
  4763  		case 1:
  4764  			if err := p.ReadField1(iprot); err != nil {
  4765  				return err
  4766  			}
  4767  			issetID = true
  4768  		case 2:
  4769  			if err := p.ReadField2(iprot); err != nil {
  4770  				return err
  4771  			}
  4772  			issetStarts = true
  4773  		default:
  4774  			if err := iprot.Skip(fieldTypeId); err != nil {
  4775  				return err
  4776  			}
  4777  		}
  4778  		if err := iprot.ReadFieldEnd(); err != nil {
  4779  			return err
  4780  		}
  4781  	}
  4782  	if err := iprot.ReadStructEnd(); err != nil {
  4783  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  4784  	}
  4785  	if !issetID {
  4786  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ID is not set"))
  4787  	}
  4788  	if !issetStarts {
  4789  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Starts is not set"))
  4790  	}
  4791  	return nil
  4792  }
  4793  
  4794  func (p *FetchBlocksRawRequestElement) ReadField1(iprot thrift.TProtocol) error {
  4795  	if v, err := iprot.ReadBinary(); err != nil {
  4796  		return thrift.PrependError("error reading field 1: ", err)
  4797  	} else {
  4798  		p.ID = v
  4799  	}
  4800  	return nil
  4801  }
  4802  
  4803  func (p *FetchBlocksRawRequestElement) ReadField2(iprot thrift.TProtocol) error {
  4804  	_, size, err := iprot.ReadListBegin()
  4805  	if err != nil {
  4806  		return thrift.PrependError("error reading list begin: ", err)
  4807  	}
  4808  	tSlice := make([]int64, 0, size)
  4809  	p.Starts = tSlice
  4810  	for i := 0; i < size; i++ {
  4811  		var _elem12 int64
  4812  		if v, err := iprot.ReadI64(); err != nil {
  4813  			return thrift.PrependError("error reading field 0: ", err)
  4814  		} else {
  4815  			_elem12 = v
  4816  		}
  4817  		p.Starts = append(p.Starts, _elem12)
  4818  	}
  4819  	if err := iprot.ReadListEnd(); err != nil {
  4820  		return thrift.PrependError("error reading list end: ", err)
  4821  	}
  4822  	return nil
  4823  }
  4824  
  4825  func (p *FetchBlocksRawRequestElement) Write(oprot thrift.TProtocol) error {
  4826  	if err := oprot.WriteStructBegin("FetchBlocksRawRequestElement"); err != nil {
  4827  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  4828  	}
  4829  	if p != nil {
  4830  		if err := p.writeField1(oprot); err != nil {
  4831  			return err
  4832  		}
  4833  		if err := p.writeField2(oprot); err != nil {
  4834  			return err
  4835  		}
  4836  	}
  4837  	if err := oprot.WriteFieldStop(); err != nil {
  4838  		return thrift.PrependError("write field stop error: ", err)
  4839  	}
  4840  	if err := oprot.WriteStructEnd(); err != nil {
  4841  		return thrift.PrependError("write struct stop error: ", err)
  4842  	}
  4843  	return nil
  4844  }
  4845  
  4846  func (p *FetchBlocksRawRequestElement) writeField1(oprot thrift.TProtocol) (err error) {
  4847  	if err := oprot.WriteFieldBegin("id", thrift.STRING, 1); err != nil {
  4848  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:id: ", p), err)
  4849  	}
  4850  	if err := oprot.WriteBinary(p.ID); err != nil {
  4851  		return thrift.PrependError(fmt.Sprintf("%T.id (1) field write error: ", p), err)
  4852  	}
  4853  	if err := oprot.WriteFieldEnd(); err != nil {
  4854  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:id: ", p), err)
  4855  	}
  4856  	return err
  4857  }
  4858  
  4859  func (p *FetchBlocksRawRequestElement) writeField2(oprot thrift.TProtocol) (err error) {
  4860  	if err := oprot.WriteFieldBegin("starts", thrift.LIST, 2); err != nil {
  4861  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:starts: ", p), err)
  4862  	}
  4863  	if err := oprot.WriteListBegin(thrift.I64, len(p.Starts)); err != nil {
  4864  		return thrift.PrependError("error writing list begin: ", err)
  4865  	}
  4866  	for _, v := range p.Starts {
  4867  		if err := oprot.WriteI64(int64(v)); err != nil {
  4868  			return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err)
  4869  		}
  4870  	}
  4871  	if err := oprot.WriteListEnd(); err != nil {
  4872  		return thrift.PrependError("error writing list end: ", err)
  4873  	}
  4874  	if err := oprot.WriteFieldEnd(); err != nil {
  4875  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:starts: ", p), err)
  4876  	}
  4877  	return err
  4878  }
  4879  
  4880  func (p *FetchBlocksRawRequestElement) String() string {
  4881  	if p == nil {
  4882  		return "<nil>"
  4883  	}
  4884  	return fmt.Sprintf("FetchBlocksRawRequestElement(%+v)", *p)
  4885  }
  4886  
  4887  // Attributes:
  4888  //  - Elements
  4889  type FetchBlocksRawResult_ struct {
  4890  	Elements []*Blocks `thrift:"elements,1,required" db:"elements" json:"elements"`
  4891  }
  4892  
  4893  func NewFetchBlocksRawResult_() *FetchBlocksRawResult_ {
  4894  	return &FetchBlocksRawResult_{}
  4895  }
  4896  
  4897  func (p *FetchBlocksRawResult_) GetElements() []*Blocks {
  4898  	return p.Elements
  4899  }
  4900  func (p *FetchBlocksRawResult_) Read(iprot thrift.TProtocol) error {
  4901  	if _, err := iprot.ReadStructBegin(); err != nil {
  4902  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  4903  	}
  4904  
  4905  	var issetElements bool = false
  4906  
  4907  	for {
  4908  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  4909  		if err != nil {
  4910  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  4911  		}
  4912  		if fieldTypeId == thrift.STOP {
  4913  			break
  4914  		}
  4915  		switch fieldId {
  4916  		case 1:
  4917  			if err := p.ReadField1(iprot); err != nil {
  4918  				return err
  4919  			}
  4920  			issetElements = true
  4921  		default:
  4922  			if err := iprot.Skip(fieldTypeId); err != nil {
  4923  				return err
  4924  			}
  4925  		}
  4926  		if err := iprot.ReadFieldEnd(); err != nil {
  4927  			return err
  4928  		}
  4929  	}
  4930  	if err := iprot.ReadStructEnd(); err != nil {
  4931  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  4932  	}
  4933  	if !issetElements {
  4934  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Elements is not set"))
  4935  	}
  4936  	return nil
  4937  }
  4938  
  4939  func (p *FetchBlocksRawResult_) ReadField1(iprot thrift.TProtocol) error {
  4940  	_, size, err := iprot.ReadListBegin()
  4941  	if err != nil {
  4942  		return thrift.PrependError("error reading list begin: ", err)
  4943  	}
  4944  	tSlice := make([]*Blocks, 0, size)
  4945  	p.Elements = tSlice
  4946  	for i := 0; i < size; i++ {
  4947  		_elem13 := &Blocks{}
  4948  		if err := _elem13.Read(iprot); err != nil {
  4949  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem13), err)
  4950  		}
  4951  		p.Elements = append(p.Elements, _elem13)
  4952  	}
  4953  	if err := iprot.ReadListEnd(); err != nil {
  4954  		return thrift.PrependError("error reading list end: ", err)
  4955  	}
  4956  	return nil
  4957  }
  4958  
  4959  func (p *FetchBlocksRawResult_) Write(oprot thrift.TProtocol) error {
  4960  	if err := oprot.WriteStructBegin("FetchBlocksRawResult"); err != nil {
  4961  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  4962  	}
  4963  	if p != nil {
  4964  		if err := p.writeField1(oprot); err != nil {
  4965  			return err
  4966  		}
  4967  	}
  4968  	if err := oprot.WriteFieldStop(); err != nil {
  4969  		return thrift.PrependError("write field stop error: ", err)
  4970  	}
  4971  	if err := oprot.WriteStructEnd(); err != nil {
  4972  		return thrift.PrependError("write struct stop error: ", err)
  4973  	}
  4974  	return nil
  4975  }
  4976  
  4977  func (p *FetchBlocksRawResult_) writeField1(oprot thrift.TProtocol) (err error) {
  4978  	if err := oprot.WriteFieldBegin("elements", thrift.LIST, 1); err != nil {
  4979  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:elements: ", p), err)
  4980  	}
  4981  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Elements)); err != nil {
  4982  		return thrift.PrependError("error writing list begin: ", err)
  4983  	}
  4984  	for _, v := range p.Elements {
  4985  		if err := v.Write(oprot); err != nil {
  4986  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  4987  		}
  4988  	}
  4989  	if err := oprot.WriteListEnd(); err != nil {
  4990  		return thrift.PrependError("error writing list end: ", err)
  4991  	}
  4992  	if err := oprot.WriteFieldEnd(); err != nil {
  4993  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:elements: ", p), err)
  4994  	}
  4995  	return err
  4996  }
  4997  
  4998  func (p *FetchBlocksRawResult_) String() string {
  4999  	if p == nil {
  5000  		return "<nil>"
  5001  	}
  5002  	return fmt.Sprintf("FetchBlocksRawResult_(%+v)", *p)
  5003  }
  5004  
  5005  // Attributes:
  5006  //  - ID
  5007  //  - Blocks
  5008  type Blocks struct {
  5009  	ID     []byte   `thrift:"id,1,required" db:"id" json:"id"`
  5010  	Blocks []*Block `thrift:"blocks,2,required" db:"blocks" json:"blocks"`
  5011  }
  5012  
  5013  func NewBlocks() *Blocks {
  5014  	return &Blocks{}
  5015  }
  5016  
  5017  func (p *Blocks) GetID() []byte {
  5018  	return p.ID
  5019  }
  5020  
  5021  func (p *Blocks) GetBlocks() []*Block {
  5022  	return p.Blocks
  5023  }
  5024  func (p *Blocks) Read(iprot thrift.TProtocol) error {
  5025  	if _, err := iprot.ReadStructBegin(); err != nil {
  5026  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  5027  	}
  5028  
  5029  	var issetID bool = false
  5030  	var issetBlocks bool = false
  5031  
  5032  	for {
  5033  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  5034  		if err != nil {
  5035  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  5036  		}
  5037  		if fieldTypeId == thrift.STOP {
  5038  			break
  5039  		}
  5040  		switch fieldId {
  5041  		case 1:
  5042  			if err := p.ReadField1(iprot); err != nil {
  5043  				return err
  5044  			}
  5045  			issetID = true
  5046  		case 2:
  5047  			if err := p.ReadField2(iprot); err != nil {
  5048  				return err
  5049  			}
  5050  			issetBlocks = true
  5051  		default:
  5052  			if err := iprot.Skip(fieldTypeId); err != nil {
  5053  				return err
  5054  			}
  5055  		}
  5056  		if err := iprot.ReadFieldEnd(); err != nil {
  5057  			return err
  5058  		}
  5059  	}
  5060  	if err := iprot.ReadStructEnd(); err != nil {
  5061  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  5062  	}
  5063  	if !issetID {
  5064  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ID is not set"))
  5065  	}
  5066  	if !issetBlocks {
  5067  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Blocks is not set"))
  5068  	}
  5069  	return nil
  5070  }
  5071  
  5072  func (p *Blocks) ReadField1(iprot thrift.TProtocol) error {
  5073  	if v, err := iprot.ReadBinary(); err != nil {
  5074  		return thrift.PrependError("error reading field 1: ", err)
  5075  	} else {
  5076  		p.ID = v
  5077  	}
  5078  	return nil
  5079  }
  5080  
  5081  func (p *Blocks) ReadField2(iprot thrift.TProtocol) error {
  5082  	_, size, err := iprot.ReadListBegin()
  5083  	if err != nil {
  5084  		return thrift.PrependError("error reading list begin: ", err)
  5085  	}
  5086  	tSlice := make([]*Block, 0, size)
  5087  	p.Blocks = tSlice
  5088  	for i := 0; i < size; i++ {
  5089  		_elem14 := &Block{}
  5090  		if err := _elem14.Read(iprot); err != nil {
  5091  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem14), err)
  5092  		}
  5093  		p.Blocks = append(p.Blocks, _elem14)
  5094  	}
  5095  	if err := iprot.ReadListEnd(); err != nil {
  5096  		return thrift.PrependError("error reading list end: ", err)
  5097  	}
  5098  	return nil
  5099  }
  5100  
  5101  func (p *Blocks) Write(oprot thrift.TProtocol) error {
  5102  	if err := oprot.WriteStructBegin("Blocks"); err != nil {
  5103  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  5104  	}
  5105  	if p != nil {
  5106  		if err := p.writeField1(oprot); err != nil {
  5107  			return err
  5108  		}
  5109  		if err := p.writeField2(oprot); err != nil {
  5110  			return err
  5111  		}
  5112  	}
  5113  	if err := oprot.WriteFieldStop(); err != nil {
  5114  		return thrift.PrependError("write field stop error: ", err)
  5115  	}
  5116  	if err := oprot.WriteStructEnd(); err != nil {
  5117  		return thrift.PrependError("write struct stop error: ", err)
  5118  	}
  5119  	return nil
  5120  }
  5121  
  5122  func (p *Blocks) writeField1(oprot thrift.TProtocol) (err error) {
  5123  	if err := oprot.WriteFieldBegin("id", thrift.STRING, 1); err != nil {
  5124  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:id: ", p), err)
  5125  	}
  5126  	if err := oprot.WriteBinary(p.ID); err != nil {
  5127  		return thrift.PrependError(fmt.Sprintf("%T.id (1) field write error: ", p), err)
  5128  	}
  5129  	if err := oprot.WriteFieldEnd(); err != nil {
  5130  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:id: ", p), err)
  5131  	}
  5132  	return err
  5133  }
  5134  
  5135  func (p *Blocks) writeField2(oprot thrift.TProtocol) (err error) {
  5136  	if err := oprot.WriteFieldBegin("blocks", thrift.LIST, 2); err != nil {
  5137  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:blocks: ", p), err)
  5138  	}
  5139  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Blocks)); err != nil {
  5140  		return thrift.PrependError("error writing list begin: ", err)
  5141  	}
  5142  	for _, v := range p.Blocks {
  5143  		if err := v.Write(oprot); err != nil {
  5144  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  5145  		}
  5146  	}
  5147  	if err := oprot.WriteListEnd(); err != nil {
  5148  		return thrift.PrependError("error writing list end: ", err)
  5149  	}
  5150  	if err := oprot.WriteFieldEnd(); err != nil {
  5151  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:blocks: ", p), err)
  5152  	}
  5153  	return err
  5154  }
  5155  
  5156  func (p *Blocks) String() string {
  5157  	if p == nil {
  5158  		return "<nil>"
  5159  	}
  5160  	return fmt.Sprintf("Blocks(%+v)", *p)
  5161  }
  5162  
  5163  // Attributes:
  5164  //  - Start
  5165  //  - Segments
  5166  //  - Err
  5167  //  - Checksum
  5168  type Block struct {
  5169  	Start    int64     `thrift:"start,1,required" db:"start" json:"start"`
  5170  	Segments *Segments `thrift:"segments,2" db:"segments" json:"segments,omitempty"`
  5171  	Err      *Error    `thrift:"err,3" db:"err" json:"err,omitempty"`
  5172  	Checksum *int64    `thrift:"checksum,4" db:"checksum" json:"checksum,omitempty"`
  5173  }
  5174  
  5175  func NewBlock() *Block {
  5176  	return &Block{}
  5177  }
  5178  
  5179  func (p *Block) GetStart() int64 {
  5180  	return p.Start
  5181  }
  5182  
  5183  var Block_Segments_DEFAULT *Segments
  5184  
  5185  func (p *Block) GetSegments() *Segments {
  5186  	if !p.IsSetSegments() {
  5187  		return Block_Segments_DEFAULT
  5188  	}
  5189  	return p.Segments
  5190  }
  5191  
  5192  var Block_Err_DEFAULT *Error
  5193  
  5194  func (p *Block) GetErr() *Error {
  5195  	if !p.IsSetErr() {
  5196  		return Block_Err_DEFAULT
  5197  	}
  5198  	return p.Err
  5199  }
  5200  
  5201  var Block_Checksum_DEFAULT int64
  5202  
  5203  func (p *Block) GetChecksum() int64 {
  5204  	if !p.IsSetChecksum() {
  5205  		return Block_Checksum_DEFAULT
  5206  	}
  5207  	return *p.Checksum
  5208  }
  5209  func (p *Block) IsSetSegments() bool {
  5210  	return p.Segments != nil
  5211  }
  5212  
  5213  func (p *Block) IsSetErr() bool {
  5214  	return p.Err != nil
  5215  }
  5216  
  5217  func (p *Block) IsSetChecksum() bool {
  5218  	return p.Checksum != nil
  5219  }
  5220  
  5221  func (p *Block) Read(iprot thrift.TProtocol) error {
  5222  	if _, err := iprot.ReadStructBegin(); err != nil {
  5223  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  5224  	}
  5225  
  5226  	var issetStart bool = false
  5227  
  5228  	for {
  5229  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  5230  		if err != nil {
  5231  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  5232  		}
  5233  		if fieldTypeId == thrift.STOP {
  5234  			break
  5235  		}
  5236  		switch fieldId {
  5237  		case 1:
  5238  			if err := p.ReadField1(iprot); err != nil {
  5239  				return err
  5240  			}
  5241  			issetStart = true
  5242  		case 2:
  5243  			if err := p.ReadField2(iprot); err != nil {
  5244  				return err
  5245  			}
  5246  		case 3:
  5247  			if err := p.ReadField3(iprot); err != nil {
  5248  				return err
  5249  			}
  5250  		case 4:
  5251  			if err := p.ReadField4(iprot); err != nil {
  5252  				return err
  5253  			}
  5254  		default:
  5255  			if err := iprot.Skip(fieldTypeId); err != nil {
  5256  				return err
  5257  			}
  5258  		}
  5259  		if err := iprot.ReadFieldEnd(); err != nil {
  5260  			return err
  5261  		}
  5262  	}
  5263  	if err := iprot.ReadStructEnd(); err != nil {
  5264  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  5265  	}
  5266  	if !issetStart {
  5267  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Start is not set"))
  5268  	}
  5269  	return nil
  5270  }
  5271  
  5272  func (p *Block) ReadField1(iprot thrift.TProtocol) error {
  5273  	if v, err := iprot.ReadI64(); err != nil {
  5274  		return thrift.PrependError("error reading field 1: ", err)
  5275  	} else {
  5276  		p.Start = v
  5277  	}
  5278  	return nil
  5279  }
  5280  
  5281  func (p *Block) ReadField2(iprot thrift.TProtocol) error {
  5282  	p.Segments = &Segments{}
  5283  	if err := p.Segments.Read(iprot); err != nil {
  5284  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Segments), err)
  5285  	}
  5286  	return nil
  5287  }
  5288  
  5289  func (p *Block) ReadField3(iprot thrift.TProtocol) error {
  5290  	p.Err = &Error{
  5291  		Type: 0,
  5292  	}
  5293  	if err := p.Err.Read(iprot); err != nil {
  5294  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
  5295  	}
  5296  	return nil
  5297  }
  5298  
  5299  func (p *Block) ReadField4(iprot thrift.TProtocol) error {
  5300  	if v, err := iprot.ReadI64(); err != nil {
  5301  		return thrift.PrependError("error reading field 4: ", err)
  5302  	} else {
  5303  		p.Checksum = &v
  5304  	}
  5305  	return nil
  5306  }
  5307  
  5308  func (p *Block) Write(oprot thrift.TProtocol) error {
  5309  	if err := oprot.WriteStructBegin("Block"); err != nil {
  5310  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  5311  	}
  5312  	if p != nil {
  5313  		if err := p.writeField1(oprot); err != nil {
  5314  			return err
  5315  		}
  5316  		if err := p.writeField2(oprot); err != nil {
  5317  			return err
  5318  		}
  5319  		if err := p.writeField3(oprot); err != nil {
  5320  			return err
  5321  		}
  5322  		if err := p.writeField4(oprot); err != nil {
  5323  			return err
  5324  		}
  5325  	}
  5326  	if err := oprot.WriteFieldStop(); err != nil {
  5327  		return thrift.PrependError("write field stop error: ", err)
  5328  	}
  5329  	if err := oprot.WriteStructEnd(); err != nil {
  5330  		return thrift.PrependError("write struct stop error: ", err)
  5331  	}
  5332  	return nil
  5333  }
  5334  
  5335  func (p *Block) writeField1(oprot thrift.TProtocol) (err error) {
  5336  	if err := oprot.WriteFieldBegin("start", thrift.I64, 1); err != nil {
  5337  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:start: ", p), err)
  5338  	}
  5339  	if err := oprot.WriteI64(int64(p.Start)); err != nil {
  5340  		return thrift.PrependError(fmt.Sprintf("%T.start (1) field write error: ", p), err)
  5341  	}
  5342  	if err := oprot.WriteFieldEnd(); err != nil {
  5343  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:start: ", p), err)
  5344  	}
  5345  	return err
  5346  }
  5347  
  5348  func (p *Block) writeField2(oprot thrift.TProtocol) (err error) {
  5349  	if p.IsSetSegments() {
  5350  		if err := oprot.WriteFieldBegin("segments", thrift.STRUCT, 2); err != nil {
  5351  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:segments: ", p), err)
  5352  		}
  5353  		if err := p.Segments.Write(oprot); err != nil {
  5354  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Segments), err)
  5355  		}
  5356  		if err := oprot.WriteFieldEnd(); err != nil {
  5357  			return thrift.PrependError(fmt.Sprintf("%T write field end error 2:segments: ", p), err)
  5358  		}
  5359  	}
  5360  	return err
  5361  }
  5362  
  5363  func (p *Block) writeField3(oprot thrift.TProtocol) (err error) {
  5364  	if p.IsSetErr() {
  5365  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 3); err != nil {
  5366  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:err: ", p), err)
  5367  		}
  5368  		if err := p.Err.Write(oprot); err != nil {
  5369  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
  5370  		}
  5371  		if err := oprot.WriteFieldEnd(); err != nil {
  5372  			return thrift.PrependError(fmt.Sprintf("%T write field end error 3:err: ", p), err)
  5373  		}
  5374  	}
  5375  	return err
  5376  }
  5377  
  5378  func (p *Block) writeField4(oprot thrift.TProtocol) (err error) {
  5379  	if p.IsSetChecksum() {
  5380  		if err := oprot.WriteFieldBegin("checksum", thrift.I64, 4); err != nil {
  5381  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:checksum: ", p), err)
  5382  		}
  5383  		if err := oprot.WriteI64(int64(*p.Checksum)); err != nil {
  5384  			return thrift.PrependError(fmt.Sprintf("%T.checksum (4) field write error: ", p), err)
  5385  		}
  5386  		if err := oprot.WriteFieldEnd(); err != nil {
  5387  			return thrift.PrependError(fmt.Sprintf("%T write field end error 4:checksum: ", p), err)
  5388  		}
  5389  	}
  5390  	return err
  5391  }
  5392  
  5393  func (p *Block) String() string {
  5394  	if p == nil {
  5395  		return "<nil>"
  5396  	}
  5397  	return fmt.Sprintf("Block(%+v)", *p)
  5398  }
  5399  
  5400  // Attributes:
  5401  //  - Name
  5402  //  - Value
  5403  type Tag struct {
  5404  	Name  string `thrift:"name,1,required" db:"name" json:"name"`
  5405  	Value string `thrift:"value,2,required" db:"value" json:"value"`
  5406  }
  5407  
  5408  func NewTag() *Tag {
  5409  	return &Tag{}
  5410  }
  5411  
  5412  func (p *Tag) GetName() string {
  5413  	return p.Name
  5414  }
  5415  
  5416  func (p *Tag) GetValue() string {
  5417  	return p.Value
  5418  }
  5419  func (p *Tag) Read(iprot thrift.TProtocol) error {
  5420  	if _, err := iprot.ReadStructBegin(); err != nil {
  5421  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  5422  	}
  5423  
  5424  	var issetName bool = false
  5425  	var issetValue bool = false
  5426  
  5427  	for {
  5428  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  5429  		if err != nil {
  5430  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  5431  		}
  5432  		if fieldTypeId == thrift.STOP {
  5433  			break
  5434  		}
  5435  		switch fieldId {
  5436  		case 1:
  5437  			if err := p.ReadField1(iprot); err != nil {
  5438  				return err
  5439  			}
  5440  			issetName = true
  5441  		case 2:
  5442  			if err := p.ReadField2(iprot); err != nil {
  5443  				return err
  5444  			}
  5445  			issetValue = true
  5446  		default:
  5447  			if err := iprot.Skip(fieldTypeId); err != nil {
  5448  				return err
  5449  			}
  5450  		}
  5451  		if err := iprot.ReadFieldEnd(); err != nil {
  5452  			return err
  5453  		}
  5454  	}
  5455  	if err := iprot.ReadStructEnd(); err != nil {
  5456  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  5457  	}
  5458  	if !issetName {
  5459  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Name is not set"))
  5460  	}
  5461  	if !issetValue {
  5462  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Value is not set"))
  5463  	}
  5464  	return nil
  5465  }
  5466  
  5467  func (p *Tag) ReadField1(iprot thrift.TProtocol) error {
  5468  	if v, err := iprot.ReadString(); err != nil {
  5469  		return thrift.PrependError("error reading field 1: ", err)
  5470  	} else {
  5471  		p.Name = v
  5472  	}
  5473  	return nil
  5474  }
  5475  
  5476  func (p *Tag) ReadField2(iprot thrift.TProtocol) error {
  5477  	if v, err := iprot.ReadString(); err != nil {
  5478  		return thrift.PrependError("error reading field 2: ", err)
  5479  	} else {
  5480  		p.Value = v
  5481  	}
  5482  	return nil
  5483  }
  5484  
  5485  func (p *Tag) Write(oprot thrift.TProtocol) error {
  5486  	if err := oprot.WriteStructBegin("Tag"); err != nil {
  5487  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  5488  	}
  5489  	if p != nil {
  5490  		if err := p.writeField1(oprot); err != nil {
  5491  			return err
  5492  		}
  5493  		if err := p.writeField2(oprot); err != nil {
  5494  			return err
  5495  		}
  5496  	}
  5497  	if err := oprot.WriteFieldStop(); err != nil {
  5498  		return thrift.PrependError("write field stop error: ", err)
  5499  	}
  5500  	if err := oprot.WriteStructEnd(); err != nil {
  5501  		return thrift.PrependError("write struct stop error: ", err)
  5502  	}
  5503  	return nil
  5504  }
  5505  
  5506  func (p *Tag) writeField1(oprot thrift.TProtocol) (err error) {
  5507  	if err := oprot.WriteFieldBegin("name", thrift.STRING, 1); err != nil {
  5508  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:name: ", p), err)
  5509  	}
  5510  	if err := oprot.WriteString(string(p.Name)); err != nil {
  5511  		return thrift.PrependError(fmt.Sprintf("%T.name (1) field write error: ", p), err)
  5512  	}
  5513  	if err := oprot.WriteFieldEnd(); err != nil {
  5514  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:name: ", p), err)
  5515  	}
  5516  	return err
  5517  }
  5518  
  5519  func (p *Tag) writeField2(oprot thrift.TProtocol) (err error) {
  5520  	if err := oprot.WriteFieldBegin("value", thrift.STRING, 2); err != nil {
  5521  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:value: ", p), err)
  5522  	}
  5523  	if err := oprot.WriteString(string(p.Value)); err != nil {
  5524  		return thrift.PrependError(fmt.Sprintf("%T.value (2) field write error: ", p), err)
  5525  	}
  5526  	if err := oprot.WriteFieldEnd(); err != nil {
  5527  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:value: ", p), err)
  5528  	}
  5529  	return err
  5530  }
  5531  
  5532  func (p *Tag) String() string {
  5533  	if p == nil {
  5534  		return "<nil>"
  5535  	}
  5536  	return fmt.Sprintf("Tag(%+v)", *p)
  5537  }
  5538  
  5539  // Attributes:
  5540  //  - NameSpace
  5541  //  - Shard
  5542  //  - RangeStart
  5543  //  - RangeEnd
  5544  //  - Limit
  5545  //  - PageToken
  5546  //  - IncludeSizes
  5547  //  - IncludeChecksums
  5548  //  - IncludeLastRead
  5549  type FetchBlocksMetadataRawV2Request struct {
  5550  	NameSpace        []byte `thrift:"nameSpace,1,required" db:"nameSpace" json:"nameSpace"`
  5551  	Shard            int32  `thrift:"shard,2,required" db:"shard" json:"shard"`
  5552  	RangeStart       int64  `thrift:"rangeStart,3,required" db:"rangeStart" json:"rangeStart"`
  5553  	RangeEnd         int64  `thrift:"rangeEnd,4,required" db:"rangeEnd" json:"rangeEnd"`
  5554  	Limit            int64  `thrift:"limit,5,required" db:"limit" json:"limit"`
  5555  	PageToken        []byte `thrift:"pageToken,6" db:"pageToken" json:"pageToken,omitempty"`
  5556  	IncludeSizes     *bool  `thrift:"includeSizes,7" db:"includeSizes" json:"includeSizes,omitempty"`
  5557  	IncludeChecksums *bool  `thrift:"includeChecksums,8" db:"includeChecksums" json:"includeChecksums,omitempty"`
  5558  	IncludeLastRead  *bool  `thrift:"includeLastRead,9" db:"includeLastRead" json:"includeLastRead,omitempty"`
  5559  }
  5560  
  5561  func NewFetchBlocksMetadataRawV2Request() *FetchBlocksMetadataRawV2Request {
  5562  	return &FetchBlocksMetadataRawV2Request{}
  5563  }
  5564  
  5565  func (p *FetchBlocksMetadataRawV2Request) GetNameSpace() []byte {
  5566  	return p.NameSpace
  5567  }
  5568  
  5569  func (p *FetchBlocksMetadataRawV2Request) GetShard() int32 {
  5570  	return p.Shard
  5571  }
  5572  
  5573  func (p *FetchBlocksMetadataRawV2Request) GetRangeStart() int64 {
  5574  	return p.RangeStart
  5575  }
  5576  
  5577  func (p *FetchBlocksMetadataRawV2Request) GetRangeEnd() int64 {
  5578  	return p.RangeEnd
  5579  }
  5580  
  5581  func (p *FetchBlocksMetadataRawV2Request) GetLimit() int64 {
  5582  	return p.Limit
  5583  }
  5584  
  5585  var FetchBlocksMetadataRawV2Request_PageToken_DEFAULT []byte
  5586  
  5587  func (p *FetchBlocksMetadataRawV2Request) GetPageToken() []byte {
  5588  	return p.PageToken
  5589  }
  5590  
  5591  var FetchBlocksMetadataRawV2Request_IncludeSizes_DEFAULT bool
  5592  
  5593  func (p *FetchBlocksMetadataRawV2Request) GetIncludeSizes() bool {
  5594  	if !p.IsSetIncludeSizes() {
  5595  		return FetchBlocksMetadataRawV2Request_IncludeSizes_DEFAULT
  5596  	}
  5597  	return *p.IncludeSizes
  5598  }
  5599  
  5600  var FetchBlocksMetadataRawV2Request_IncludeChecksums_DEFAULT bool
  5601  
  5602  func (p *FetchBlocksMetadataRawV2Request) GetIncludeChecksums() bool {
  5603  	if !p.IsSetIncludeChecksums() {
  5604  		return FetchBlocksMetadataRawV2Request_IncludeChecksums_DEFAULT
  5605  	}
  5606  	return *p.IncludeChecksums
  5607  }
  5608  
  5609  var FetchBlocksMetadataRawV2Request_IncludeLastRead_DEFAULT bool
  5610  
  5611  func (p *FetchBlocksMetadataRawV2Request) GetIncludeLastRead() bool {
  5612  	if !p.IsSetIncludeLastRead() {
  5613  		return FetchBlocksMetadataRawV2Request_IncludeLastRead_DEFAULT
  5614  	}
  5615  	return *p.IncludeLastRead
  5616  }
  5617  func (p *FetchBlocksMetadataRawV2Request) IsSetPageToken() bool {
  5618  	return p.PageToken != nil
  5619  }
  5620  
  5621  func (p *FetchBlocksMetadataRawV2Request) IsSetIncludeSizes() bool {
  5622  	return p.IncludeSizes != nil
  5623  }
  5624  
  5625  func (p *FetchBlocksMetadataRawV2Request) IsSetIncludeChecksums() bool {
  5626  	return p.IncludeChecksums != nil
  5627  }
  5628  
  5629  func (p *FetchBlocksMetadataRawV2Request) IsSetIncludeLastRead() bool {
  5630  	return p.IncludeLastRead != nil
  5631  }
  5632  
  5633  func (p *FetchBlocksMetadataRawV2Request) Read(iprot thrift.TProtocol) error {
  5634  	if _, err := iprot.ReadStructBegin(); err != nil {
  5635  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  5636  	}
  5637  
  5638  	var issetNameSpace bool = false
  5639  	var issetShard bool = false
  5640  	var issetRangeStart bool = false
  5641  	var issetRangeEnd bool = false
  5642  	var issetLimit bool = false
  5643  
  5644  	for {
  5645  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  5646  		if err != nil {
  5647  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  5648  		}
  5649  		if fieldTypeId == thrift.STOP {
  5650  			break
  5651  		}
  5652  		switch fieldId {
  5653  		case 1:
  5654  			if err := p.ReadField1(iprot); err != nil {
  5655  				return err
  5656  			}
  5657  			issetNameSpace = true
  5658  		case 2:
  5659  			if err := p.ReadField2(iprot); err != nil {
  5660  				return err
  5661  			}
  5662  			issetShard = true
  5663  		case 3:
  5664  			if err := p.ReadField3(iprot); err != nil {
  5665  				return err
  5666  			}
  5667  			issetRangeStart = true
  5668  		case 4:
  5669  			if err := p.ReadField4(iprot); err != nil {
  5670  				return err
  5671  			}
  5672  			issetRangeEnd = true
  5673  		case 5:
  5674  			if err := p.ReadField5(iprot); err != nil {
  5675  				return err
  5676  			}
  5677  			issetLimit = true
  5678  		case 6:
  5679  			if err := p.ReadField6(iprot); err != nil {
  5680  				return err
  5681  			}
  5682  		case 7:
  5683  			if err := p.ReadField7(iprot); err != nil {
  5684  				return err
  5685  			}
  5686  		case 8:
  5687  			if err := p.ReadField8(iprot); err != nil {
  5688  				return err
  5689  			}
  5690  		case 9:
  5691  			if err := p.ReadField9(iprot); err != nil {
  5692  				return err
  5693  			}
  5694  		default:
  5695  			if err := iprot.Skip(fieldTypeId); err != nil {
  5696  				return err
  5697  			}
  5698  		}
  5699  		if err := iprot.ReadFieldEnd(); err != nil {
  5700  			return err
  5701  		}
  5702  	}
  5703  	if err := iprot.ReadStructEnd(); err != nil {
  5704  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  5705  	}
  5706  	if !issetNameSpace {
  5707  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
  5708  	}
  5709  	if !issetShard {
  5710  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Shard is not set"))
  5711  	}
  5712  	if !issetRangeStart {
  5713  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeStart is not set"))
  5714  	}
  5715  	if !issetRangeEnd {
  5716  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeEnd is not set"))
  5717  	}
  5718  	if !issetLimit {
  5719  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Limit is not set"))
  5720  	}
  5721  	return nil
  5722  }
  5723  
  5724  func (p *FetchBlocksMetadataRawV2Request) ReadField1(iprot thrift.TProtocol) error {
  5725  	if v, err := iprot.ReadBinary(); err != nil {
  5726  		return thrift.PrependError("error reading field 1: ", err)
  5727  	} else {
  5728  		p.NameSpace = v
  5729  	}
  5730  	return nil
  5731  }
  5732  
  5733  func (p *FetchBlocksMetadataRawV2Request) ReadField2(iprot thrift.TProtocol) error {
  5734  	if v, err := iprot.ReadI32(); err != nil {
  5735  		return thrift.PrependError("error reading field 2: ", err)
  5736  	} else {
  5737  		p.Shard = v
  5738  	}
  5739  	return nil
  5740  }
  5741  
  5742  func (p *FetchBlocksMetadataRawV2Request) ReadField3(iprot thrift.TProtocol) error {
  5743  	if v, err := iprot.ReadI64(); err != nil {
  5744  		return thrift.PrependError("error reading field 3: ", err)
  5745  	} else {
  5746  		p.RangeStart = v
  5747  	}
  5748  	return nil
  5749  }
  5750  
  5751  func (p *FetchBlocksMetadataRawV2Request) ReadField4(iprot thrift.TProtocol) error {
  5752  	if v, err := iprot.ReadI64(); err != nil {
  5753  		return thrift.PrependError("error reading field 4: ", err)
  5754  	} else {
  5755  		p.RangeEnd = v
  5756  	}
  5757  	return nil
  5758  }
  5759  
  5760  func (p *FetchBlocksMetadataRawV2Request) ReadField5(iprot thrift.TProtocol) error {
  5761  	if v, err := iprot.ReadI64(); err != nil {
  5762  		return thrift.PrependError("error reading field 5: ", err)
  5763  	} else {
  5764  		p.Limit = v
  5765  	}
  5766  	return nil
  5767  }
  5768  
  5769  func (p *FetchBlocksMetadataRawV2Request) ReadField6(iprot thrift.TProtocol) error {
  5770  	if v, err := iprot.ReadBinary(); err != nil {
  5771  		return thrift.PrependError("error reading field 6: ", err)
  5772  	} else {
  5773  		p.PageToken = v
  5774  	}
  5775  	return nil
  5776  }
  5777  
  5778  func (p *FetchBlocksMetadataRawV2Request) ReadField7(iprot thrift.TProtocol) error {
  5779  	if v, err := iprot.ReadBool(); err != nil {
  5780  		return thrift.PrependError("error reading field 7: ", err)
  5781  	} else {
  5782  		p.IncludeSizes = &v
  5783  	}
  5784  	return nil
  5785  }
  5786  
  5787  func (p *FetchBlocksMetadataRawV2Request) ReadField8(iprot thrift.TProtocol) error {
  5788  	if v, err := iprot.ReadBool(); err != nil {
  5789  		return thrift.PrependError("error reading field 8: ", err)
  5790  	} else {
  5791  		p.IncludeChecksums = &v
  5792  	}
  5793  	return nil
  5794  }
  5795  
  5796  func (p *FetchBlocksMetadataRawV2Request) ReadField9(iprot thrift.TProtocol) error {
  5797  	if v, err := iprot.ReadBool(); err != nil {
  5798  		return thrift.PrependError("error reading field 9: ", err)
  5799  	} else {
  5800  		p.IncludeLastRead = &v
  5801  	}
  5802  	return nil
  5803  }
  5804  
  5805  func (p *FetchBlocksMetadataRawV2Request) Write(oprot thrift.TProtocol) error {
  5806  	if err := oprot.WriteStructBegin("FetchBlocksMetadataRawV2Request"); err != nil {
  5807  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  5808  	}
  5809  	if p != nil {
  5810  		if err := p.writeField1(oprot); err != nil {
  5811  			return err
  5812  		}
  5813  		if err := p.writeField2(oprot); err != nil {
  5814  			return err
  5815  		}
  5816  		if err := p.writeField3(oprot); err != nil {
  5817  			return err
  5818  		}
  5819  		if err := p.writeField4(oprot); err != nil {
  5820  			return err
  5821  		}
  5822  		if err := p.writeField5(oprot); err != nil {
  5823  			return err
  5824  		}
  5825  		if err := p.writeField6(oprot); err != nil {
  5826  			return err
  5827  		}
  5828  		if err := p.writeField7(oprot); err != nil {
  5829  			return err
  5830  		}
  5831  		if err := p.writeField8(oprot); err != nil {
  5832  			return err
  5833  		}
  5834  		if err := p.writeField9(oprot); err != nil {
  5835  			return err
  5836  		}
  5837  	}
  5838  	if err := oprot.WriteFieldStop(); err != nil {
  5839  		return thrift.PrependError("write field stop error: ", err)
  5840  	}
  5841  	if err := oprot.WriteStructEnd(); err != nil {
  5842  		return thrift.PrependError("write struct stop error: ", err)
  5843  	}
  5844  	return nil
  5845  }
  5846  
  5847  func (p *FetchBlocksMetadataRawV2Request) writeField1(oprot thrift.TProtocol) (err error) {
  5848  	if err := oprot.WriteFieldBegin("nameSpace", thrift.STRING, 1); err != nil {
  5849  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:nameSpace: ", p), err)
  5850  	}
  5851  	if err := oprot.WriteBinary(p.NameSpace); err != nil {
  5852  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (1) field write error: ", p), err)
  5853  	}
  5854  	if err := oprot.WriteFieldEnd(); err != nil {
  5855  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:nameSpace: ", p), err)
  5856  	}
  5857  	return err
  5858  }
  5859  
  5860  func (p *FetchBlocksMetadataRawV2Request) writeField2(oprot thrift.TProtocol) (err error) {
  5861  	if err := oprot.WriteFieldBegin("shard", thrift.I32, 2); err != nil {
  5862  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:shard: ", p), err)
  5863  	}
  5864  	if err := oprot.WriteI32(int32(p.Shard)); err != nil {
  5865  		return thrift.PrependError(fmt.Sprintf("%T.shard (2) field write error: ", p), err)
  5866  	}
  5867  	if err := oprot.WriteFieldEnd(); err != nil {
  5868  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:shard: ", p), err)
  5869  	}
  5870  	return err
  5871  }
  5872  
  5873  func (p *FetchBlocksMetadataRawV2Request) writeField3(oprot thrift.TProtocol) (err error) {
  5874  	if err := oprot.WriteFieldBegin("rangeStart", thrift.I64, 3); err != nil {
  5875  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:rangeStart: ", p), err)
  5876  	}
  5877  	if err := oprot.WriteI64(int64(p.RangeStart)); err != nil {
  5878  		return thrift.PrependError(fmt.Sprintf("%T.rangeStart (3) field write error: ", p), err)
  5879  	}
  5880  	if err := oprot.WriteFieldEnd(); err != nil {
  5881  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:rangeStart: ", p), err)
  5882  	}
  5883  	return err
  5884  }
  5885  
  5886  func (p *FetchBlocksMetadataRawV2Request) writeField4(oprot thrift.TProtocol) (err error) {
  5887  	if err := oprot.WriteFieldBegin("rangeEnd", thrift.I64, 4); err != nil {
  5888  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:rangeEnd: ", p), err)
  5889  	}
  5890  	if err := oprot.WriteI64(int64(p.RangeEnd)); err != nil {
  5891  		return thrift.PrependError(fmt.Sprintf("%T.rangeEnd (4) field write error: ", p), err)
  5892  	}
  5893  	if err := oprot.WriteFieldEnd(); err != nil {
  5894  		return thrift.PrependError(fmt.Sprintf("%T write field end error 4:rangeEnd: ", p), err)
  5895  	}
  5896  	return err
  5897  }
  5898  
  5899  func (p *FetchBlocksMetadataRawV2Request) writeField5(oprot thrift.TProtocol) (err error) {
  5900  	if err := oprot.WriteFieldBegin("limit", thrift.I64, 5); err != nil {
  5901  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:limit: ", p), err)
  5902  	}
  5903  	if err := oprot.WriteI64(int64(p.Limit)); err != nil {
  5904  		return thrift.PrependError(fmt.Sprintf("%T.limit (5) field write error: ", p), err)
  5905  	}
  5906  	if err := oprot.WriteFieldEnd(); err != nil {
  5907  		return thrift.PrependError(fmt.Sprintf("%T write field end error 5:limit: ", p), err)
  5908  	}
  5909  	return err
  5910  }
  5911  
  5912  func (p *FetchBlocksMetadataRawV2Request) writeField6(oprot thrift.TProtocol) (err error) {
  5913  	if p.IsSetPageToken() {
  5914  		if err := oprot.WriteFieldBegin("pageToken", thrift.STRING, 6); err != nil {
  5915  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:pageToken: ", p), err)
  5916  		}
  5917  		if err := oprot.WriteBinary(p.PageToken); err != nil {
  5918  			return thrift.PrependError(fmt.Sprintf("%T.pageToken (6) field write error: ", p), err)
  5919  		}
  5920  		if err := oprot.WriteFieldEnd(); err != nil {
  5921  			return thrift.PrependError(fmt.Sprintf("%T write field end error 6:pageToken: ", p), err)
  5922  		}
  5923  	}
  5924  	return err
  5925  }
  5926  
  5927  func (p *FetchBlocksMetadataRawV2Request) writeField7(oprot thrift.TProtocol) (err error) {
  5928  	if p.IsSetIncludeSizes() {
  5929  		if err := oprot.WriteFieldBegin("includeSizes", thrift.BOOL, 7); err != nil {
  5930  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 7:includeSizes: ", p), err)
  5931  		}
  5932  		if err := oprot.WriteBool(bool(*p.IncludeSizes)); err != nil {
  5933  			return thrift.PrependError(fmt.Sprintf("%T.includeSizes (7) field write error: ", p), err)
  5934  		}
  5935  		if err := oprot.WriteFieldEnd(); err != nil {
  5936  			return thrift.PrependError(fmt.Sprintf("%T write field end error 7:includeSizes: ", p), err)
  5937  		}
  5938  	}
  5939  	return err
  5940  }
  5941  
  5942  func (p *FetchBlocksMetadataRawV2Request) writeField8(oprot thrift.TProtocol) (err error) {
  5943  	if p.IsSetIncludeChecksums() {
  5944  		if err := oprot.WriteFieldBegin("includeChecksums", thrift.BOOL, 8); err != nil {
  5945  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 8:includeChecksums: ", p), err)
  5946  		}
  5947  		if err := oprot.WriteBool(bool(*p.IncludeChecksums)); err != nil {
  5948  			return thrift.PrependError(fmt.Sprintf("%T.includeChecksums (8) field write error: ", p), err)
  5949  		}
  5950  		if err := oprot.WriteFieldEnd(); err != nil {
  5951  			return thrift.PrependError(fmt.Sprintf("%T write field end error 8:includeChecksums: ", p), err)
  5952  		}
  5953  	}
  5954  	return err
  5955  }
  5956  
  5957  func (p *FetchBlocksMetadataRawV2Request) writeField9(oprot thrift.TProtocol) (err error) {
  5958  	if p.IsSetIncludeLastRead() {
  5959  		if err := oprot.WriteFieldBegin("includeLastRead", thrift.BOOL, 9); err != nil {
  5960  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 9:includeLastRead: ", p), err)
  5961  		}
  5962  		if err := oprot.WriteBool(bool(*p.IncludeLastRead)); err != nil {
  5963  			return thrift.PrependError(fmt.Sprintf("%T.includeLastRead (9) field write error: ", p), err)
  5964  		}
  5965  		if err := oprot.WriteFieldEnd(); err != nil {
  5966  			return thrift.PrependError(fmt.Sprintf("%T write field end error 9:includeLastRead: ", p), err)
  5967  		}
  5968  	}
  5969  	return err
  5970  }
  5971  
  5972  func (p *FetchBlocksMetadataRawV2Request) String() string {
  5973  	if p == nil {
  5974  		return "<nil>"
  5975  	}
  5976  	return fmt.Sprintf("FetchBlocksMetadataRawV2Request(%+v)", *p)
  5977  }
  5978  
  5979  // Attributes:
  5980  //  - Elements
  5981  //  - NextPageToken
  5982  type FetchBlocksMetadataRawV2Result_ struct {
  5983  	Elements      []*BlockMetadataV2 `thrift:"elements,1,required" db:"elements" json:"elements"`
  5984  	NextPageToken []byte             `thrift:"nextPageToken,2" db:"nextPageToken" json:"nextPageToken,omitempty"`
  5985  }
  5986  
  5987  func NewFetchBlocksMetadataRawV2Result_() *FetchBlocksMetadataRawV2Result_ {
  5988  	return &FetchBlocksMetadataRawV2Result_{}
  5989  }
  5990  
  5991  func (p *FetchBlocksMetadataRawV2Result_) GetElements() []*BlockMetadataV2 {
  5992  	return p.Elements
  5993  }
  5994  
  5995  var FetchBlocksMetadataRawV2Result__NextPageToken_DEFAULT []byte
  5996  
  5997  func (p *FetchBlocksMetadataRawV2Result_) GetNextPageToken() []byte {
  5998  	return p.NextPageToken
  5999  }
  6000  func (p *FetchBlocksMetadataRawV2Result_) IsSetNextPageToken() bool {
  6001  	return p.NextPageToken != nil
  6002  }
  6003  
  6004  func (p *FetchBlocksMetadataRawV2Result_) Read(iprot thrift.TProtocol) error {
  6005  	if _, err := iprot.ReadStructBegin(); err != nil {
  6006  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  6007  	}
  6008  
  6009  	var issetElements bool = false
  6010  
  6011  	for {
  6012  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  6013  		if err != nil {
  6014  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  6015  		}
  6016  		if fieldTypeId == thrift.STOP {
  6017  			break
  6018  		}
  6019  		switch fieldId {
  6020  		case 1:
  6021  			if err := p.ReadField1(iprot); err != nil {
  6022  				return err
  6023  			}
  6024  			issetElements = true
  6025  		case 2:
  6026  			if err := p.ReadField2(iprot); err != nil {
  6027  				return err
  6028  			}
  6029  		default:
  6030  			if err := iprot.Skip(fieldTypeId); err != nil {
  6031  				return err
  6032  			}
  6033  		}
  6034  		if err := iprot.ReadFieldEnd(); err != nil {
  6035  			return err
  6036  		}
  6037  	}
  6038  	if err := iprot.ReadStructEnd(); err != nil {
  6039  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  6040  	}
  6041  	if !issetElements {
  6042  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Elements is not set"))
  6043  	}
  6044  	return nil
  6045  }
  6046  
  6047  func (p *FetchBlocksMetadataRawV2Result_) ReadField1(iprot thrift.TProtocol) error {
  6048  	_, size, err := iprot.ReadListBegin()
  6049  	if err != nil {
  6050  		return thrift.PrependError("error reading list begin: ", err)
  6051  	}
  6052  	tSlice := make([]*BlockMetadataV2, 0, size)
  6053  	p.Elements = tSlice
  6054  	for i := 0; i < size; i++ {
  6055  		_elem15 := &BlockMetadataV2{
  6056  			LastReadTimeType: 0,
  6057  		}
  6058  		if err := _elem15.Read(iprot); err != nil {
  6059  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem15), err)
  6060  		}
  6061  		p.Elements = append(p.Elements, _elem15)
  6062  	}
  6063  	if err := iprot.ReadListEnd(); err != nil {
  6064  		return thrift.PrependError("error reading list end: ", err)
  6065  	}
  6066  	return nil
  6067  }
  6068  
  6069  func (p *FetchBlocksMetadataRawV2Result_) ReadField2(iprot thrift.TProtocol) error {
  6070  	if v, err := iprot.ReadBinary(); err != nil {
  6071  		return thrift.PrependError("error reading field 2: ", err)
  6072  	} else {
  6073  		p.NextPageToken = v
  6074  	}
  6075  	return nil
  6076  }
  6077  
  6078  func (p *FetchBlocksMetadataRawV2Result_) Write(oprot thrift.TProtocol) error {
  6079  	if err := oprot.WriteStructBegin("FetchBlocksMetadataRawV2Result"); err != nil {
  6080  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  6081  	}
  6082  	if p != nil {
  6083  		if err := p.writeField1(oprot); err != nil {
  6084  			return err
  6085  		}
  6086  		if err := p.writeField2(oprot); err != nil {
  6087  			return err
  6088  		}
  6089  	}
  6090  	if err := oprot.WriteFieldStop(); err != nil {
  6091  		return thrift.PrependError("write field stop error: ", err)
  6092  	}
  6093  	if err := oprot.WriteStructEnd(); err != nil {
  6094  		return thrift.PrependError("write struct stop error: ", err)
  6095  	}
  6096  	return nil
  6097  }
  6098  
  6099  func (p *FetchBlocksMetadataRawV2Result_) writeField1(oprot thrift.TProtocol) (err error) {
  6100  	if err := oprot.WriteFieldBegin("elements", thrift.LIST, 1); err != nil {
  6101  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:elements: ", p), err)
  6102  	}
  6103  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Elements)); err != nil {
  6104  		return thrift.PrependError("error writing list begin: ", err)
  6105  	}
  6106  	for _, v := range p.Elements {
  6107  		if err := v.Write(oprot); err != nil {
  6108  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  6109  		}
  6110  	}
  6111  	if err := oprot.WriteListEnd(); err != nil {
  6112  		return thrift.PrependError("error writing list end: ", err)
  6113  	}
  6114  	if err := oprot.WriteFieldEnd(); err != nil {
  6115  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:elements: ", p), err)
  6116  	}
  6117  	return err
  6118  }
  6119  
  6120  func (p *FetchBlocksMetadataRawV2Result_) writeField2(oprot thrift.TProtocol) (err error) {
  6121  	if p.IsSetNextPageToken() {
  6122  		if err := oprot.WriteFieldBegin("nextPageToken", thrift.STRING, 2); err != nil {
  6123  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:nextPageToken: ", p), err)
  6124  		}
  6125  		if err := oprot.WriteBinary(p.NextPageToken); err != nil {
  6126  			return thrift.PrependError(fmt.Sprintf("%T.nextPageToken (2) field write error: ", p), err)
  6127  		}
  6128  		if err := oprot.WriteFieldEnd(); err != nil {
  6129  			return thrift.PrependError(fmt.Sprintf("%T write field end error 2:nextPageToken: ", p), err)
  6130  		}
  6131  	}
  6132  	return err
  6133  }
  6134  
  6135  func (p *FetchBlocksMetadataRawV2Result_) String() string {
  6136  	if p == nil {
  6137  		return "<nil>"
  6138  	}
  6139  	return fmt.Sprintf("FetchBlocksMetadataRawV2Result_(%+v)", *p)
  6140  }
  6141  
  6142  // Attributes:
  6143  //  - ID
  6144  //  - Start
  6145  //  - Err
  6146  //  - Size
  6147  //  - Checksum
  6148  //  - LastRead
  6149  //  - LastReadTimeType
  6150  //  - EncodedTags
  6151  type BlockMetadataV2 struct {
  6152  	ID               []byte   `thrift:"id,1,required" db:"id" json:"id"`
  6153  	Start            int64    `thrift:"start,2,required" db:"start" json:"start"`
  6154  	Err              *Error   `thrift:"err,3" db:"err" json:"err,omitempty"`
  6155  	Size             *int64   `thrift:"size,4" db:"size" json:"size,omitempty"`
  6156  	Checksum         *int64   `thrift:"checksum,5" db:"checksum" json:"checksum,omitempty"`
  6157  	LastRead         *int64   `thrift:"lastRead,6" db:"lastRead" json:"lastRead,omitempty"`
  6158  	LastReadTimeType TimeType `thrift:"lastReadTimeType,7" db:"lastReadTimeType" json:"lastReadTimeType,omitempty"`
  6159  	EncodedTags      []byte   `thrift:"encodedTags,8" db:"encodedTags" json:"encodedTags,omitempty"`
  6160  }
  6161  
  6162  func NewBlockMetadataV2() *BlockMetadataV2 {
  6163  	return &BlockMetadataV2{
  6164  		LastReadTimeType: 0,
  6165  	}
  6166  }
  6167  
  6168  func (p *BlockMetadataV2) GetID() []byte {
  6169  	return p.ID
  6170  }
  6171  
  6172  func (p *BlockMetadataV2) GetStart() int64 {
  6173  	return p.Start
  6174  }
  6175  
  6176  var BlockMetadataV2_Err_DEFAULT *Error
  6177  
  6178  func (p *BlockMetadataV2) GetErr() *Error {
  6179  	if !p.IsSetErr() {
  6180  		return BlockMetadataV2_Err_DEFAULT
  6181  	}
  6182  	return p.Err
  6183  }
  6184  
  6185  var BlockMetadataV2_Size_DEFAULT int64
  6186  
  6187  func (p *BlockMetadataV2) GetSize() int64 {
  6188  	if !p.IsSetSize() {
  6189  		return BlockMetadataV2_Size_DEFAULT
  6190  	}
  6191  	return *p.Size
  6192  }
  6193  
  6194  var BlockMetadataV2_Checksum_DEFAULT int64
  6195  
  6196  func (p *BlockMetadataV2) GetChecksum() int64 {
  6197  	if !p.IsSetChecksum() {
  6198  		return BlockMetadataV2_Checksum_DEFAULT
  6199  	}
  6200  	return *p.Checksum
  6201  }
  6202  
  6203  var BlockMetadataV2_LastRead_DEFAULT int64
  6204  
  6205  func (p *BlockMetadataV2) GetLastRead() int64 {
  6206  	if !p.IsSetLastRead() {
  6207  		return BlockMetadataV2_LastRead_DEFAULT
  6208  	}
  6209  	return *p.LastRead
  6210  }
  6211  
  6212  var BlockMetadataV2_LastReadTimeType_DEFAULT TimeType = 0
  6213  
  6214  func (p *BlockMetadataV2) GetLastReadTimeType() TimeType {
  6215  	return p.LastReadTimeType
  6216  }
  6217  
  6218  var BlockMetadataV2_EncodedTags_DEFAULT []byte
  6219  
  6220  func (p *BlockMetadataV2) GetEncodedTags() []byte {
  6221  	return p.EncodedTags
  6222  }
  6223  func (p *BlockMetadataV2) IsSetErr() bool {
  6224  	return p.Err != nil
  6225  }
  6226  
  6227  func (p *BlockMetadataV2) IsSetSize() bool {
  6228  	return p.Size != nil
  6229  }
  6230  
  6231  func (p *BlockMetadataV2) IsSetChecksum() bool {
  6232  	return p.Checksum != nil
  6233  }
  6234  
  6235  func (p *BlockMetadataV2) IsSetLastRead() bool {
  6236  	return p.LastRead != nil
  6237  }
  6238  
  6239  func (p *BlockMetadataV2) IsSetLastReadTimeType() bool {
  6240  	return p.LastReadTimeType != BlockMetadataV2_LastReadTimeType_DEFAULT
  6241  }
  6242  
  6243  func (p *BlockMetadataV2) IsSetEncodedTags() bool {
  6244  	return p.EncodedTags != nil
  6245  }
  6246  
  6247  func (p *BlockMetadataV2) Read(iprot thrift.TProtocol) error {
  6248  	if _, err := iprot.ReadStructBegin(); err != nil {
  6249  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  6250  	}
  6251  
  6252  	var issetID bool = false
  6253  	var issetStart bool = false
  6254  
  6255  	for {
  6256  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  6257  		if err != nil {
  6258  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  6259  		}
  6260  		if fieldTypeId == thrift.STOP {
  6261  			break
  6262  		}
  6263  		switch fieldId {
  6264  		case 1:
  6265  			if err := p.ReadField1(iprot); err != nil {
  6266  				return err
  6267  			}
  6268  			issetID = true
  6269  		case 2:
  6270  			if err := p.ReadField2(iprot); err != nil {
  6271  				return err
  6272  			}
  6273  			issetStart = true
  6274  		case 3:
  6275  			if err := p.ReadField3(iprot); err != nil {
  6276  				return err
  6277  			}
  6278  		case 4:
  6279  			if err := p.ReadField4(iprot); err != nil {
  6280  				return err
  6281  			}
  6282  		case 5:
  6283  			if err := p.ReadField5(iprot); err != nil {
  6284  				return err
  6285  			}
  6286  		case 6:
  6287  			if err := p.ReadField6(iprot); err != nil {
  6288  				return err
  6289  			}
  6290  		case 7:
  6291  			if err := p.ReadField7(iprot); err != nil {
  6292  				return err
  6293  			}
  6294  		case 8:
  6295  			if err := p.ReadField8(iprot); err != nil {
  6296  				return err
  6297  			}
  6298  		default:
  6299  			if err := iprot.Skip(fieldTypeId); err != nil {
  6300  				return err
  6301  			}
  6302  		}
  6303  		if err := iprot.ReadFieldEnd(); err != nil {
  6304  			return err
  6305  		}
  6306  	}
  6307  	if err := iprot.ReadStructEnd(); err != nil {
  6308  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  6309  	}
  6310  	if !issetID {
  6311  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ID is not set"))
  6312  	}
  6313  	if !issetStart {
  6314  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Start is not set"))
  6315  	}
  6316  	return nil
  6317  }
  6318  
  6319  func (p *BlockMetadataV2) ReadField1(iprot thrift.TProtocol) error {
  6320  	if v, err := iprot.ReadBinary(); err != nil {
  6321  		return thrift.PrependError("error reading field 1: ", err)
  6322  	} else {
  6323  		p.ID = v
  6324  	}
  6325  	return nil
  6326  }
  6327  
  6328  func (p *BlockMetadataV2) ReadField2(iprot thrift.TProtocol) error {
  6329  	if v, err := iprot.ReadI64(); err != nil {
  6330  		return thrift.PrependError("error reading field 2: ", err)
  6331  	} else {
  6332  		p.Start = v
  6333  	}
  6334  	return nil
  6335  }
  6336  
  6337  func (p *BlockMetadataV2) ReadField3(iprot thrift.TProtocol) error {
  6338  	p.Err = &Error{
  6339  		Type: 0,
  6340  	}
  6341  	if err := p.Err.Read(iprot); err != nil {
  6342  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
  6343  	}
  6344  	return nil
  6345  }
  6346  
  6347  func (p *BlockMetadataV2) ReadField4(iprot thrift.TProtocol) error {
  6348  	if v, err := iprot.ReadI64(); err != nil {
  6349  		return thrift.PrependError("error reading field 4: ", err)
  6350  	} else {
  6351  		p.Size = &v
  6352  	}
  6353  	return nil
  6354  }
  6355  
  6356  func (p *BlockMetadataV2) ReadField5(iprot thrift.TProtocol) error {
  6357  	if v, err := iprot.ReadI64(); err != nil {
  6358  		return thrift.PrependError("error reading field 5: ", err)
  6359  	} else {
  6360  		p.Checksum = &v
  6361  	}
  6362  	return nil
  6363  }
  6364  
  6365  func (p *BlockMetadataV2) ReadField6(iprot thrift.TProtocol) error {
  6366  	if v, err := iprot.ReadI64(); err != nil {
  6367  		return thrift.PrependError("error reading field 6: ", err)
  6368  	} else {
  6369  		p.LastRead = &v
  6370  	}
  6371  	return nil
  6372  }
  6373  
  6374  func (p *BlockMetadataV2) ReadField7(iprot thrift.TProtocol) error {
  6375  	if v, err := iprot.ReadI32(); err != nil {
  6376  		return thrift.PrependError("error reading field 7: ", err)
  6377  	} else {
  6378  		temp := TimeType(v)
  6379  		p.LastReadTimeType = temp
  6380  	}
  6381  	return nil
  6382  }
  6383  
  6384  func (p *BlockMetadataV2) ReadField8(iprot thrift.TProtocol) error {
  6385  	if v, err := iprot.ReadBinary(); err != nil {
  6386  		return thrift.PrependError("error reading field 8: ", err)
  6387  	} else {
  6388  		p.EncodedTags = v
  6389  	}
  6390  	return nil
  6391  }
  6392  
  6393  func (p *BlockMetadataV2) Write(oprot thrift.TProtocol) error {
  6394  	if err := oprot.WriteStructBegin("BlockMetadataV2"); err != nil {
  6395  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  6396  	}
  6397  	if p != nil {
  6398  		if err := p.writeField1(oprot); err != nil {
  6399  			return err
  6400  		}
  6401  		if err := p.writeField2(oprot); err != nil {
  6402  			return err
  6403  		}
  6404  		if err := p.writeField3(oprot); err != nil {
  6405  			return err
  6406  		}
  6407  		if err := p.writeField4(oprot); err != nil {
  6408  			return err
  6409  		}
  6410  		if err := p.writeField5(oprot); err != nil {
  6411  			return err
  6412  		}
  6413  		if err := p.writeField6(oprot); err != nil {
  6414  			return err
  6415  		}
  6416  		if err := p.writeField7(oprot); err != nil {
  6417  			return err
  6418  		}
  6419  		if err := p.writeField8(oprot); err != nil {
  6420  			return err
  6421  		}
  6422  	}
  6423  	if err := oprot.WriteFieldStop(); err != nil {
  6424  		return thrift.PrependError("write field stop error: ", err)
  6425  	}
  6426  	if err := oprot.WriteStructEnd(); err != nil {
  6427  		return thrift.PrependError("write struct stop error: ", err)
  6428  	}
  6429  	return nil
  6430  }
  6431  
  6432  func (p *BlockMetadataV2) writeField1(oprot thrift.TProtocol) (err error) {
  6433  	if err := oprot.WriteFieldBegin("id", thrift.STRING, 1); err != nil {
  6434  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:id: ", p), err)
  6435  	}
  6436  	if err := oprot.WriteBinary(p.ID); err != nil {
  6437  		return thrift.PrependError(fmt.Sprintf("%T.id (1) field write error: ", p), err)
  6438  	}
  6439  	if err := oprot.WriteFieldEnd(); err != nil {
  6440  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:id: ", p), err)
  6441  	}
  6442  	return err
  6443  }
  6444  
  6445  func (p *BlockMetadataV2) writeField2(oprot thrift.TProtocol) (err error) {
  6446  	if err := oprot.WriteFieldBegin("start", thrift.I64, 2); err != nil {
  6447  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:start: ", p), err)
  6448  	}
  6449  	if err := oprot.WriteI64(int64(p.Start)); err != nil {
  6450  		return thrift.PrependError(fmt.Sprintf("%T.start (2) field write error: ", p), err)
  6451  	}
  6452  	if err := oprot.WriteFieldEnd(); err != nil {
  6453  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:start: ", p), err)
  6454  	}
  6455  	return err
  6456  }
  6457  
  6458  func (p *BlockMetadataV2) writeField3(oprot thrift.TProtocol) (err error) {
  6459  	if p.IsSetErr() {
  6460  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 3); err != nil {
  6461  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:err: ", p), err)
  6462  		}
  6463  		if err := p.Err.Write(oprot); err != nil {
  6464  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
  6465  		}
  6466  		if err := oprot.WriteFieldEnd(); err != nil {
  6467  			return thrift.PrependError(fmt.Sprintf("%T write field end error 3:err: ", p), err)
  6468  		}
  6469  	}
  6470  	return err
  6471  }
  6472  
  6473  func (p *BlockMetadataV2) writeField4(oprot thrift.TProtocol) (err error) {
  6474  	if p.IsSetSize() {
  6475  		if err := oprot.WriteFieldBegin("size", thrift.I64, 4); err != nil {
  6476  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:size: ", p), err)
  6477  		}
  6478  		if err := oprot.WriteI64(int64(*p.Size)); err != nil {
  6479  			return thrift.PrependError(fmt.Sprintf("%T.size (4) field write error: ", p), err)
  6480  		}
  6481  		if err := oprot.WriteFieldEnd(); err != nil {
  6482  			return thrift.PrependError(fmt.Sprintf("%T write field end error 4:size: ", p), err)
  6483  		}
  6484  	}
  6485  	return err
  6486  }
  6487  
  6488  func (p *BlockMetadataV2) writeField5(oprot thrift.TProtocol) (err error) {
  6489  	if p.IsSetChecksum() {
  6490  		if err := oprot.WriteFieldBegin("checksum", thrift.I64, 5); err != nil {
  6491  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:checksum: ", p), err)
  6492  		}
  6493  		if err := oprot.WriteI64(int64(*p.Checksum)); err != nil {
  6494  			return thrift.PrependError(fmt.Sprintf("%T.checksum (5) field write error: ", p), err)
  6495  		}
  6496  		if err := oprot.WriteFieldEnd(); err != nil {
  6497  			return thrift.PrependError(fmt.Sprintf("%T write field end error 5:checksum: ", p), err)
  6498  		}
  6499  	}
  6500  	return err
  6501  }
  6502  
  6503  func (p *BlockMetadataV2) writeField6(oprot thrift.TProtocol) (err error) {
  6504  	if p.IsSetLastRead() {
  6505  		if err := oprot.WriteFieldBegin("lastRead", thrift.I64, 6); err != nil {
  6506  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:lastRead: ", p), err)
  6507  		}
  6508  		if err := oprot.WriteI64(int64(*p.LastRead)); err != nil {
  6509  			return thrift.PrependError(fmt.Sprintf("%T.lastRead (6) field write error: ", p), err)
  6510  		}
  6511  		if err := oprot.WriteFieldEnd(); err != nil {
  6512  			return thrift.PrependError(fmt.Sprintf("%T write field end error 6:lastRead: ", p), err)
  6513  		}
  6514  	}
  6515  	return err
  6516  }
  6517  
  6518  func (p *BlockMetadataV2) writeField7(oprot thrift.TProtocol) (err error) {
  6519  	if p.IsSetLastReadTimeType() {
  6520  		if err := oprot.WriteFieldBegin("lastReadTimeType", thrift.I32, 7); err != nil {
  6521  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 7:lastReadTimeType: ", p), err)
  6522  		}
  6523  		if err := oprot.WriteI32(int32(p.LastReadTimeType)); err != nil {
  6524  			return thrift.PrependError(fmt.Sprintf("%T.lastReadTimeType (7) field write error: ", p), err)
  6525  		}
  6526  		if err := oprot.WriteFieldEnd(); err != nil {
  6527  			return thrift.PrependError(fmt.Sprintf("%T write field end error 7:lastReadTimeType: ", p), err)
  6528  		}
  6529  	}
  6530  	return err
  6531  }
  6532  
  6533  func (p *BlockMetadataV2) writeField8(oprot thrift.TProtocol) (err error) {
  6534  	if p.IsSetEncodedTags() {
  6535  		if err := oprot.WriteFieldBegin("encodedTags", thrift.STRING, 8); err != nil {
  6536  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 8:encodedTags: ", p), err)
  6537  		}
  6538  		if err := oprot.WriteBinary(p.EncodedTags); err != nil {
  6539  			return thrift.PrependError(fmt.Sprintf("%T.encodedTags (8) field write error: ", p), err)
  6540  		}
  6541  		if err := oprot.WriteFieldEnd(); err != nil {
  6542  			return thrift.PrependError(fmt.Sprintf("%T write field end error 8:encodedTags: ", p), err)
  6543  		}
  6544  	}
  6545  	return err
  6546  }
  6547  
  6548  func (p *BlockMetadataV2) String() string {
  6549  	if p == nil {
  6550  		return "<nil>"
  6551  	}
  6552  	return fmt.Sprintf("BlockMetadataV2(%+v)", *p)
  6553  }
  6554  
  6555  // Attributes:
  6556  //  - NameSpace
  6557  //  - Elements
  6558  type WriteBatchRawRequest struct {
  6559  	NameSpace []byte                         `thrift:"nameSpace,1,required" db:"nameSpace" json:"nameSpace"`
  6560  	Elements  []*WriteBatchRawRequestElement `thrift:"elements,2,required" db:"elements" json:"elements"`
  6561  }
  6562  
  6563  func NewWriteBatchRawRequest() *WriteBatchRawRequest {
  6564  	return &WriteBatchRawRequest{}
  6565  }
  6566  
  6567  func (p *WriteBatchRawRequest) GetNameSpace() []byte {
  6568  	return p.NameSpace
  6569  }
  6570  
  6571  func (p *WriteBatchRawRequest) GetElements() []*WriteBatchRawRequestElement {
  6572  	return p.Elements
  6573  }
  6574  func (p *WriteBatchRawRequest) Read(iprot thrift.TProtocol) error {
  6575  	if _, err := iprot.ReadStructBegin(); err != nil {
  6576  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  6577  	}
  6578  
  6579  	var issetNameSpace bool = false
  6580  	var issetElements bool = false
  6581  
  6582  	for {
  6583  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  6584  		if err != nil {
  6585  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  6586  		}
  6587  		if fieldTypeId == thrift.STOP {
  6588  			break
  6589  		}
  6590  		switch fieldId {
  6591  		case 1:
  6592  			if err := p.ReadField1(iprot); err != nil {
  6593  				return err
  6594  			}
  6595  			issetNameSpace = true
  6596  		case 2:
  6597  			if err := p.ReadField2(iprot); err != nil {
  6598  				return err
  6599  			}
  6600  			issetElements = true
  6601  		default:
  6602  			if err := iprot.Skip(fieldTypeId); err != nil {
  6603  				return err
  6604  			}
  6605  		}
  6606  		if err := iprot.ReadFieldEnd(); err != nil {
  6607  			return err
  6608  		}
  6609  	}
  6610  	if err := iprot.ReadStructEnd(); err != nil {
  6611  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  6612  	}
  6613  	if !issetNameSpace {
  6614  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
  6615  	}
  6616  	if !issetElements {
  6617  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Elements is not set"))
  6618  	}
  6619  	return nil
  6620  }
  6621  
  6622  func (p *WriteBatchRawRequest) ReadField1(iprot thrift.TProtocol) error {
  6623  	if v, err := iprot.ReadBinary(); err != nil {
  6624  		return thrift.PrependError("error reading field 1: ", err)
  6625  	} else {
  6626  		p.NameSpace = v
  6627  	}
  6628  	return nil
  6629  }
  6630  
  6631  func (p *WriteBatchRawRequest) ReadField2(iprot thrift.TProtocol) error {
  6632  	_, size, err := iprot.ReadListBegin()
  6633  	if err != nil {
  6634  		return thrift.PrependError("error reading list begin: ", err)
  6635  	}
  6636  	tSlice := make([]*WriteBatchRawRequestElement, 0, size)
  6637  	p.Elements = tSlice
  6638  	for i := 0; i < size; i++ {
  6639  		_elem16 := &WriteBatchRawRequestElement{}
  6640  		if err := _elem16.Read(iprot); err != nil {
  6641  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem16), err)
  6642  		}
  6643  		p.Elements = append(p.Elements, _elem16)
  6644  	}
  6645  	if err := iprot.ReadListEnd(); err != nil {
  6646  		return thrift.PrependError("error reading list end: ", err)
  6647  	}
  6648  	return nil
  6649  }
  6650  
  6651  func (p *WriteBatchRawRequest) Write(oprot thrift.TProtocol) error {
  6652  	if err := oprot.WriteStructBegin("WriteBatchRawRequest"); err != nil {
  6653  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  6654  	}
  6655  	if p != nil {
  6656  		if err := p.writeField1(oprot); err != nil {
  6657  			return err
  6658  		}
  6659  		if err := p.writeField2(oprot); err != nil {
  6660  			return err
  6661  		}
  6662  	}
  6663  	if err := oprot.WriteFieldStop(); err != nil {
  6664  		return thrift.PrependError("write field stop error: ", err)
  6665  	}
  6666  	if err := oprot.WriteStructEnd(); err != nil {
  6667  		return thrift.PrependError("write struct stop error: ", err)
  6668  	}
  6669  	return nil
  6670  }
  6671  
  6672  func (p *WriteBatchRawRequest) writeField1(oprot thrift.TProtocol) (err error) {
  6673  	if err := oprot.WriteFieldBegin("nameSpace", thrift.STRING, 1); err != nil {
  6674  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:nameSpace: ", p), err)
  6675  	}
  6676  	if err := oprot.WriteBinary(p.NameSpace); err != nil {
  6677  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (1) field write error: ", p), err)
  6678  	}
  6679  	if err := oprot.WriteFieldEnd(); err != nil {
  6680  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:nameSpace: ", p), err)
  6681  	}
  6682  	return err
  6683  }
  6684  
  6685  func (p *WriteBatchRawRequest) writeField2(oprot thrift.TProtocol) (err error) {
  6686  	if err := oprot.WriteFieldBegin("elements", thrift.LIST, 2); err != nil {
  6687  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:elements: ", p), err)
  6688  	}
  6689  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Elements)); err != nil {
  6690  		return thrift.PrependError("error writing list begin: ", err)
  6691  	}
  6692  	for _, v := range p.Elements {
  6693  		if err := v.Write(oprot); err != nil {
  6694  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  6695  		}
  6696  	}
  6697  	if err := oprot.WriteListEnd(); err != nil {
  6698  		return thrift.PrependError("error writing list end: ", err)
  6699  	}
  6700  	if err := oprot.WriteFieldEnd(); err != nil {
  6701  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:elements: ", p), err)
  6702  	}
  6703  	return err
  6704  }
  6705  
  6706  func (p *WriteBatchRawRequest) String() string {
  6707  	if p == nil {
  6708  		return "<nil>"
  6709  	}
  6710  	return fmt.Sprintf("WriteBatchRawRequest(%+v)", *p)
  6711  }
  6712  
  6713  // Attributes:
  6714  //  - NameSpaces
  6715  //  - Elements
  6716  type WriteBatchRawV2Request struct {
  6717  	NameSpaces [][]byte                         `thrift:"nameSpaces,1,required" db:"nameSpaces" json:"nameSpaces"`
  6718  	Elements   []*WriteBatchRawV2RequestElement `thrift:"elements,2,required" db:"elements" json:"elements"`
  6719  }
  6720  
  6721  func NewWriteBatchRawV2Request() *WriteBatchRawV2Request {
  6722  	return &WriteBatchRawV2Request{}
  6723  }
  6724  
  6725  func (p *WriteBatchRawV2Request) GetNameSpaces() [][]byte {
  6726  	return p.NameSpaces
  6727  }
  6728  
  6729  func (p *WriteBatchRawV2Request) GetElements() []*WriteBatchRawV2RequestElement {
  6730  	return p.Elements
  6731  }
  6732  func (p *WriteBatchRawV2Request) Read(iprot thrift.TProtocol) error {
  6733  	if _, err := iprot.ReadStructBegin(); err != nil {
  6734  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  6735  	}
  6736  
  6737  	var issetNameSpaces bool = false
  6738  	var issetElements bool = false
  6739  
  6740  	for {
  6741  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  6742  		if err != nil {
  6743  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  6744  		}
  6745  		if fieldTypeId == thrift.STOP {
  6746  			break
  6747  		}
  6748  		switch fieldId {
  6749  		case 1:
  6750  			if err := p.ReadField1(iprot); err != nil {
  6751  				return err
  6752  			}
  6753  			issetNameSpaces = true
  6754  		case 2:
  6755  			if err := p.ReadField2(iprot); err != nil {
  6756  				return err
  6757  			}
  6758  			issetElements = true
  6759  		default:
  6760  			if err := iprot.Skip(fieldTypeId); err != nil {
  6761  				return err
  6762  			}
  6763  		}
  6764  		if err := iprot.ReadFieldEnd(); err != nil {
  6765  			return err
  6766  		}
  6767  	}
  6768  	if err := iprot.ReadStructEnd(); err != nil {
  6769  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  6770  	}
  6771  	if !issetNameSpaces {
  6772  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpaces is not set"))
  6773  	}
  6774  	if !issetElements {
  6775  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Elements is not set"))
  6776  	}
  6777  	return nil
  6778  }
  6779  
  6780  func (p *WriteBatchRawV2Request) ReadField1(iprot thrift.TProtocol) error {
  6781  	_, size, err := iprot.ReadListBegin()
  6782  	if err != nil {
  6783  		return thrift.PrependError("error reading list begin: ", err)
  6784  	}
  6785  	tSlice := make([][]byte, 0, size)
  6786  	p.NameSpaces = tSlice
  6787  	for i := 0; i < size; i++ {
  6788  		var _elem17 []byte
  6789  		if v, err := iprot.ReadBinary(); err != nil {
  6790  			return thrift.PrependError("error reading field 0: ", err)
  6791  		} else {
  6792  			_elem17 = v
  6793  		}
  6794  		p.NameSpaces = append(p.NameSpaces, _elem17)
  6795  	}
  6796  	if err := iprot.ReadListEnd(); err != nil {
  6797  		return thrift.PrependError("error reading list end: ", err)
  6798  	}
  6799  	return nil
  6800  }
  6801  
  6802  func (p *WriteBatchRawV2Request) ReadField2(iprot thrift.TProtocol) error {
  6803  	_, size, err := iprot.ReadListBegin()
  6804  	if err != nil {
  6805  		return thrift.PrependError("error reading list begin: ", err)
  6806  	}
  6807  	tSlice := make([]*WriteBatchRawV2RequestElement, 0, size)
  6808  	p.Elements = tSlice
  6809  	for i := 0; i < size; i++ {
  6810  		_elem18 := &WriteBatchRawV2RequestElement{}
  6811  		if err := _elem18.Read(iprot); err != nil {
  6812  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem18), err)
  6813  		}
  6814  		p.Elements = append(p.Elements, _elem18)
  6815  	}
  6816  	if err := iprot.ReadListEnd(); err != nil {
  6817  		return thrift.PrependError("error reading list end: ", err)
  6818  	}
  6819  	return nil
  6820  }
  6821  
  6822  func (p *WriteBatchRawV2Request) Write(oprot thrift.TProtocol) error {
  6823  	if err := oprot.WriteStructBegin("WriteBatchRawV2Request"); err != nil {
  6824  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  6825  	}
  6826  	if p != nil {
  6827  		if err := p.writeField1(oprot); err != nil {
  6828  			return err
  6829  		}
  6830  		if err := p.writeField2(oprot); err != nil {
  6831  			return err
  6832  		}
  6833  	}
  6834  	if err := oprot.WriteFieldStop(); err != nil {
  6835  		return thrift.PrependError("write field stop error: ", err)
  6836  	}
  6837  	if err := oprot.WriteStructEnd(); err != nil {
  6838  		return thrift.PrependError("write struct stop error: ", err)
  6839  	}
  6840  	return nil
  6841  }
  6842  
  6843  func (p *WriteBatchRawV2Request) writeField1(oprot thrift.TProtocol) (err error) {
  6844  	if err := oprot.WriteFieldBegin("nameSpaces", thrift.LIST, 1); err != nil {
  6845  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:nameSpaces: ", p), err)
  6846  	}
  6847  	if err := oprot.WriteListBegin(thrift.STRING, len(p.NameSpaces)); err != nil {
  6848  		return thrift.PrependError("error writing list begin: ", err)
  6849  	}
  6850  	for _, v := range p.NameSpaces {
  6851  		if err := oprot.WriteBinary(v); err != nil {
  6852  			return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err)
  6853  		}
  6854  	}
  6855  	if err := oprot.WriteListEnd(); err != nil {
  6856  		return thrift.PrependError("error writing list end: ", err)
  6857  	}
  6858  	if err := oprot.WriteFieldEnd(); err != nil {
  6859  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:nameSpaces: ", p), err)
  6860  	}
  6861  	return err
  6862  }
  6863  
  6864  func (p *WriteBatchRawV2Request) writeField2(oprot thrift.TProtocol) (err error) {
  6865  	if err := oprot.WriteFieldBegin("elements", thrift.LIST, 2); err != nil {
  6866  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:elements: ", p), err)
  6867  	}
  6868  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Elements)); err != nil {
  6869  		return thrift.PrependError("error writing list begin: ", err)
  6870  	}
  6871  	for _, v := range p.Elements {
  6872  		if err := v.Write(oprot); err != nil {
  6873  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  6874  		}
  6875  	}
  6876  	if err := oprot.WriteListEnd(); err != nil {
  6877  		return thrift.PrependError("error writing list end: ", err)
  6878  	}
  6879  	if err := oprot.WriteFieldEnd(); err != nil {
  6880  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:elements: ", p), err)
  6881  	}
  6882  	return err
  6883  }
  6884  
  6885  func (p *WriteBatchRawV2Request) String() string {
  6886  	if p == nil {
  6887  		return "<nil>"
  6888  	}
  6889  	return fmt.Sprintf("WriteBatchRawV2Request(%+v)", *p)
  6890  }
  6891  
  6892  // Attributes:
  6893  //  - ID
  6894  //  - Datapoint
  6895  type WriteBatchRawRequestElement struct {
  6896  	ID        []byte     `thrift:"id,1,required" db:"id" json:"id"`
  6897  	Datapoint *Datapoint `thrift:"datapoint,2,required" db:"datapoint" json:"datapoint"`
  6898  }
  6899  
  6900  func NewWriteBatchRawRequestElement() *WriteBatchRawRequestElement {
  6901  	return &WriteBatchRawRequestElement{}
  6902  }
  6903  
  6904  func (p *WriteBatchRawRequestElement) GetID() []byte {
  6905  	return p.ID
  6906  }
  6907  
  6908  var WriteBatchRawRequestElement_Datapoint_DEFAULT *Datapoint
  6909  
  6910  func (p *WriteBatchRawRequestElement) GetDatapoint() *Datapoint {
  6911  	if !p.IsSetDatapoint() {
  6912  		return WriteBatchRawRequestElement_Datapoint_DEFAULT
  6913  	}
  6914  	return p.Datapoint
  6915  }
  6916  func (p *WriteBatchRawRequestElement) IsSetDatapoint() bool {
  6917  	return p.Datapoint != nil
  6918  }
  6919  
  6920  func (p *WriteBatchRawRequestElement) Read(iprot thrift.TProtocol) error {
  6921  	if _, err := iprot.ReadStructBegin(); err != nil {
  6922  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  6923  	}
  6924  
  6925  	var issetID bool = false
  6926  	var issetDatapoint bool = false
  6927  
  6928  	for {
  6929  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  6930  		if err != nil {
  6931  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  6932  		}
  6933  		if fieldTypeId == thrift.STOP {
  6934  			break
  6935  		}
  6936  		switch fieldId {
  6937  		case 1:
  6938  			if err := p.ReadField1(iprot); err != nil {
  6939  				return err
  6940  			}
  6941  			issetID = true
  6942  		case 2:
  6943  			if err := p.ReadField2(iprot); err != nil {
  6944  				return err
  6945  			}
  6946  			issetDatapoint = true
  6947  		default:
  6948  			if err := iprot.Skip(fieldTypeId); err != nil {
  6949  				return err
  6950  			}
  6951  		}
  6952  		if err := iprot.ReadFieldEnd(); err != nil {
  6953  			return err
  6954  		}
  6955  	}
  6956  	if err := iprot.ReadStructEnd(); err != nil {
  6957  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  6958  	}
  6959  	if !issetID {
  6960  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ID is not set"))
  6961  	}
  6962  	if !issetDatapoint {
  6963  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Datapoint is not set"))
  6964  	}
  6965  	return nil
  6966  }
  6967  
  6968  func (p *WriteBatchRawRequestElement) ReadField1(iprot thrift.TProtocol) error {
  6969  	if v, err := iprot.ReadBinary(); err != nil {
  6970  		return thrift.PrependError("error reading field 1: ", err)
  6971  	} else {
  6972  		p.ID = v
  6973  	}
  6974  	return nil
  6975  }
  6976  
  6977  func (p *WriteBatchRawRequestElement) ReadField2(iprot thrift.TProtocol) error {
  6978  	p.Datapoint = &Datapoint{
  6979  		TimestampTimeType: 0,
  6980  	}
  6981  	if err := p.Datapoint.Read(iprot); err != nil {
  6982  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Datapoint), err)
  6983  	}
  6984  	return nil
  6985  }
  6986  
  6987  func (p *WriteBatchRawRequestElement) Write(oprot thrift.TProtocol) error {
  6988  	if err := oprot.WriteStructBegin("WriteBatchRawRequestElement"); err != nil {
  6989  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  6990  	}
  6991  	if p != nil {
  6992  		if err := p.writeField1(oprot); err != nil {
  6993  			return err
  6994  		}
  6995  		if err := p.writeField2(oprot); err != nil {
  6996  			return err
  6997  		}
  6998  	}
  6999  	if err := oprot.WriteFieldStop(); err != nil {
  7000  		return thrift.PrependError("write field stop error: ", err)
  7001  	}
  7002  	if err := oprot.WriteStructEnd(); err != nil {
  7003  		return thrift.PrependError("write struct stop error: ", err)
  7004  	}
  7005  	return nil
  7006  }
  7007  
  7008  func (p *WriteBatchRawRequestElement) writeField1(oprot thrift.TProtocol) (err error) {
  7009  	if err := oprot.WriteFieldBegin("id", thrift.STRING, 1); err != nil {
  7010  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:id: ", p), err)
  7011  	}
  7012  	if err := oprot.WriteBinary(p.ID); err != nil {
  7013  		return thrift.PrependError(fmt.Sprintf("%T.id (1) field write error: ", p), err)
  7014  	}
  7015  	if err := oprot.WriteFieldEnd(); err != nil {
  7016  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:id: ", p), err)
  7017  	}
  7018  	return err
  7019  }
  7020  
  7021  func (p *WriteBatchRawRequestElement) writeField2(oprot thrift.TProtocol) (err error) {
  7022  	if err := oprot.WriteFieldBegin("datapoint", thrift.STRUCT, 2); err != nil {
  7023  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:datapoint: ", p), err)
  7024  	}
  7025  	if err := p.Datapoint.Write(oprot); err != nil {
  7026  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Datapoint), err)
  7027  	}
  7028  	if err := oprot.WriteFieldEnd(); err != nil {
  7029  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:datapoint: ", p), err)
  7030  	}
  7031  	return err
  7032  }
  7033  
  7034  func (p *WriteBatchRawRequestElement) String() string {
  7035  	if p == nil {
  7036  		return "<nil>"
  7037  	}
  7038  	return fmt.Sprintf("WriteBatchRawRequestElement(%+v)", *p)
  7039  }
  7040  
  7041  // Attributes:
  7042  //  - ID
  7043  //  - Datapoint
  7044  //  - NameSpace
  7045  type WriteBatchRawV2RequestElement struct {
  7046  	ID        []byte     `thrift:"id,1,required" db:"id" json:"id"`
  7047  	Datapoint *Datapoint `thrift:"datapoint,2,required" db:"datapoint" json:"datapoint"`
  7048  	NameSpace int64      `thrift:"nameSpace,3,required" db:"nameSpace" json:"nameSpace"`
  7049  }
  7050  
  7051  func NewWriteBatchRawV2RequestElement() *WriteBatchRawV2RequestElement {
  7052  	return &WriteBatchRawV2RequestElement{}
  7053  }
  7054  
  7055  func (p *WriteBatchRawV2RequestElement) GetID() []byte {
  7056  	return p.ID
  7057  }
  7058  
  7059  var WriteBatchRawV2RequestElement_Datapoint_DEFAULT *Datapoint
  7060  
  7061  func (p *WriteBatchRawV2RequestElement) GetDatapoint() *Datapoint {
  7062  	if !p.IsSetDatapoint() {
  7063  		return WriteBatchRawV2RequestElement_Datapoint_DEFAULT
  7064  	}
  7065  	return p.Datapoint
  7066  }
  7067  
  7068  func (p *WriteBatchRawV2RequestElement) GetNameSpace() int64 {
  7069  	return p.NameSpace
  7070  }
  7071  func (p *WriteBatchRawV2RequestElement) IsSetDatapoint() bool {
  7072  	return p.Datapoint != nil
  7073  }
  7074  
  7075  func (p *WriteBatchRawV2RequestElement) Read(iprot thrift.TProtocol) error {
  7076  	if _, err := iprot.ReadStructBegin(); err != nil {
  7077  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  7078  	}
  7079  
  7080  	var issetID bool = false
  7081  	var issetDatapoint bool = false
  7082  	var issetNameSpace bool = false
  7083  
  7084  	for {
  7085  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  7086  		if err != nil {
  7087  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  7088  		}
  7089  		if fieldTypeId == thrift.STOP {
  7090  			break
  7091  		}
  7092  		switch fieldId {
  7093  		case 1:
  7094  			if err := p.ReadField1(iprot); err != nil {
  7095  				return err
  7096  			}
  7097  			issetID = true
  7098  		case 2:
  7099  			if err := p.ReadField2(iprot); err != nil {
  7100  				return err
  7101  			}
  7102  			issetDatapoint = true
  7103  		case 3:
  7104  			if err := p.ReadField3(iprot); err != nil {
  7105  				return err
  7106  			}
  7107  			issetNameSpace = true
  7108  		default:
  7109  			if err := iprot.Skip(fieldTypeId); err != nil {
  7110  				return err
  7111  			}
  7112  		}
  7113  		if err := iprot.ReadFieldEnd(); err != nil {
  7114  			return err
  7115  		}
  7116  	}
  7117  	if err := iprot.ReadStructEnd(); err != nil {
  7118  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  7119  	}
  7120  	if !issetID {
  7121  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ID is not set"))
  7122  	}
  7123  	if !issetDatapoint {
  7124  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Datapoint is not set"))
  7125  	}
  7126  	if !issetNameSpace {
  7127  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
  7128  	}
  7129  	return nil
  7130  }
  7131  
  7132  func (p *WriteBatchRawV2RequestElement) ReadField1(iprot thrift.TProtocol) error {
  7133  	if v, err := iprot.ReadBinary(); err != nil {
  7134  		return thrift.PrependError("error reading field 1: ", err)
  7135  	} else {
  7136  		p.ID = v
  7137  	}
  7138  	return nil
  7139  }
  7140  
  7141  func (p *WriteBatchRawV2RequestElement) ReadField2(iprot thrift.TProtocol) error {
  7142  	p.Datapoint = &Datapoint{
  7143  		TimestampTimeType: 0,
  7144  	}
  7145  	if err := p.Datapoint.Read(iprot); err != nil {
  7146  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Datapoint), err)
  7147  	}
  7148  	return nil
  7149  }
  7150  
  7151  func (p *WriteBatchRawV2RequestElement) ReadField3(iprot thrift.TProtocol) error {
  7152  	if v, err := iprot.ReadI64(); err != nil {
  7153  		return thrift.PrependError("error reading field 3: ", err)
  7154  	} else {
  7155  		p.NameSpace = v
  7156  	}
  7157  	return nil
  7158  }
  7159  
  7160  func (p *WriteBatchRawV2RequestElement) Write(oprot thrift.TProtocol) error {
  7161  	if err := oprot.WriteStructBegin("WriteBatchRawV2RequestElement"); err != nil {
  7162  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  7163  	}
  7164  	if p != nil {
  7165  		if err := p.writeField1(oprot); err != nil {
  7166  			return err
  7167  		}
  7168  		if err := p.writeField2(oprot); err != nil {
  7169  			return err
  7170  		}
  7171  		if err := p.writeField3(oprot); err != nil {
  7172  			return err
  7173  		}
  7174  	}
  7175  	if err := oprot.WriteFieldStop(); err != nil {
  7176  		return thrift.PrependError("write field stop error: ", err)
  7177  	}
  7178  	if err := oprot.WriteStructEnd(); err != nil {
  7179  		return thrift.PrependError("write struct stop error: ", err)
  7180  	}
  7181  	return nil
  7182  }
  7183  
  7184  func (p *WriteBatchRawV2RequestElement) writeField1(oprot thrift.TProtocol) (err error) {
  7185  	if err := oprot.WriteFieldBegin("id", thrift.STRING, 1); err != nil {
  7186  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:id: ", p), err)
  7187  	}
  7188  	if err := oprot.WriteBinary(p.ID); err != nil {
  7189  		return thrift.PrependError(fmt.Sprintf("%T.id (1) field write error: ", p), err)
  7190  	}
  7191  	if err := oprot.WriteFieldEnd(); err != nil {
  7192  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:id: ", p), err)
  7193  	}
  7194  	return err
  7195  }
  7196  
  7197  func (p *WriteBatchRawV2RequestElement) writeField2(oprot thrift.TProtocol) (err error) {
  7198  	if err := oprot.WriteFieldBegin("datapoint", thrift.STRUCT, 2); err != nil {
  7199  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:datapoint: ", p), err)
  7200  	}
  7201  	if err := p.Datapoint.Write(oprot); err != nil {
  7202  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Datapoint), err)
  7203  	}
  7204  	if err := oprot.WriteFieldEnd(); err != nil {
  7205  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:datapoint: ", p), err)
  7206  	}
  7207  	return err
  7208  }
  7209  
  7210  func (p *WriteBatchRawV2RequestElement) writeField3(oprot thrift.TProtocol) (err error) {
  7211  	if err := oprot.WriteFieldBegin("nameSpace", thrift.I64, 3); err != nil {
  7212  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:nameSpace: ", p), err)
  7213  	}
  7214  	if err := oprot.WriteI64(int64(p.NameSpace)); err != nil {
  7215  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (3) field write error: ", p), err)
  7216  	}
  7217  	if err := oprot.WriteFieldEnd(); err != nil {
  7218  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:nameSpace: ", p), err)
  7219  	}
  7220  	return err
  7221  }
  7222  
  7223  func (p *WriteBatchRawV2RequestElement) String() string {
  7224  	if p == nil {
  7225  		return "<nil>"
  7226  	}
  7227  	return fmt.Sprintf("WriteBatchRawV2RequestElement(%+v)", *p)
  7228  }
  7229  
  7230  // Attributes:
  7231  //  - NameSpace
  7232  //  - Elements
  7233  type WriteTaggedBatchRawRequest struct {
  7234  	NameSpace []byte                               `thrift:"nameSpace,1,required" db:"nameSpace" json:"nameSpace"`
  7235  	Elements  []*WriteTaggedBatchRawRequestElement `thrift:"elements,2,required" db:"elements" json:"elements"`
  7236  }
  7237  
  7238  func NewWriteTaggedBatchRawRequest() *WriteTaggedBatchRawRequest {
  7239  	return &WriteTaggedBatchRawRequest{}
  7240  }
  7241  
  7242  func (p *WriteTaggedBatchRawRequest) GetNameSpace() []byte {
  7243  	return p.NameSpace
  7244  }
  7245  
  7246  func (p *WriteTaggedBatchRawRequest) GetElements() []*WriteTaggedBatchRawRequestElement {
  7247  	return p.Elements
  7248  }
  7249  func (p *WriteTaggedBatchRawRequest) Read(iprot thrift.TProtocol) error {
  7250  	if _, err := iprot.ReadStructBegin(); err != nil {
  7251  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  7252  	}
  7253  
  7254  	var issetNameSpace bool = false
  7255  	var issetElements bool = false
  7256  
  7257  	for {
  7258  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  7259  		if err != nil {
  7260  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  7261  		}
  7262  		if fieldTypeId == thrift.STOP {
  7263  			break
  7264  		}
  7265  		switch fieldId {
  7266  		case 1:
  7267  			if err := p.ReadField1(iprot); err != nil {
  7268  				return err
  7269  			}
  7270  			issetNameSpace = true
  7271  		case 2:
  7272  			if err := p.ReadField2(iprot); err != nil {
  7273  				return err
  7274  			}
  7275  			issetElements = true
  7276  		default:
  7277  			if err := iprot.Skip(fieldTypeId); err != nil {
  7278  				return err
  7279  			}
  7280  		}
  7281  		if err := iprot.ReadFieldEnd(); err != nil {
  7282  			return err
  7283  		}
  7284  	}
  7285  	if err := iprot.ReadStructEnd(); err != nil {
  7286  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  7287  	}
  7288  	if !issetNameSpace {
  7289  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
  7290  	}
  7291  	if !issetElements {
  7292  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Elements is not set"))
  7293  	}
  7294  	return nil
  7295  }
  7296  
  7297  func (p *WriteTaggedBatchRawRequest) ReadField1(iprot thrift.TProtocol) error {
  7298  	if v, err := iprot.ReadBinary(); err != nil {
  7299  		return thrift.PrependError("error reading field 1: ", err)
  7300  	} else {
  7301  		p.NameSpace = v
  7302  	}
  7303  	return nil
  7304  }
  7305  
  7306  func (p *WriteTaggedBatchRawRequest) ReadField2(iprot thrift.TProtocol) error {
  7307  	_, size, err := iprot.ReadListBegin()
  7308  	if err != nil {
  7309  		return thrift.PrependError("error reading list begin: ", err)
  7310  	}
  7311  	tSlice := make([]*WriteTaggedBatchRawRequestElement, 0, size)
  7312  	p.Elements = tSlice
  7313  	for i := 0; i < size; i++ {
  7314  		_elem19 := &WriteTaggedBatchRawRequestElement{}
  7315  		if err := _elem19.Read(iprot); err != nil {
  7316  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem19), err)
  7317  		}
  7318  		p.Elements = append(p.Elements, _elem19)
  7319  	}
  7320  	if err := iprot.ReadListEnd(); err != nil {
  7321  		return thrift.PrependError("error reading list end: ", err)
  7322  	}
  7323  	return nil
  7324  }
  7325  
  7326  func (p *WriteTaggedBatchRawRequest) Write(oprot thrift.TProtocol) error {
  7327  	if err := oprot.WriteStructBegin("WriteTaggedBatchRawRequest"); err != nil {
  7328  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  7329  	}
  7330  	if p != nil {
  7331  		if err := p.writeField1(oprot); err != nil {
  7332  			return err
  7333  		}
  7334  		if err := p.writeField2(oprot); err != nil {
  7335  			return err
  7336  		}
  7337  	}
  7338  	if err := oprot.WriteFieldStop(); err != nil {
  7339  		return thrift.PrependError("write field stop error: ", err)
  7340  	}
  7341  	if err := oprot.WriteStructEnd(); err != nil {
  7342  		return thrift.PrependError("write struct stop error: ", err)
  7343  	}
  7344  	return nil
  7345  }
  7346  
  7347  func (p *WriteTaggedBatchRawRequest) writeField1(oprot thrift.TProtocol) (err error) {
  7348  	if err := oprot.WriteFieldBegin("nameSpace", thrift.STRING, 1); err != nil {
  7349  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:nameSpace: ", p), err)
  7350  	}
  7351  	if err := oprot.WriteBinary(p.NameSpace); err != nil {
  7352  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (1) field write error: ", p), err)
  7353  	}
  7354  	if err := oprot.WriteFieldEnd(); err != nil {
  7355  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:nameSpace: ", p), err)
  7356  	}
  7357  	return err
  7358  }
  7359  
  7360  func (p *WriteTaggedBatchRawRequest) writeField2(oprot thrift.TProtocol) (err error) {
  7361  	if err := oprot.WriteFieldBegin("elements", thrift.LIST, 2); err != nil {
  7362  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:elements: ", p), err)
  7363  	}
  7364  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Elements)); err != nil {
  7365  		return thrift.PrependError("error writing list begin: ", err)
  7366  	}
  7367  	for _, v := range p.Elements {
  7368  		if err := v.Write(oprot); err != nil {
  7369  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  7370  		}
  7371  	}
  7372  	if err := oprot.WriteListEnd(); err != nil {
  7373  		return thrift.PrependError("error writing list end: ", err)
  7374  	}
  7375  	if err := oprot.WriteFieldEnd(); err != nil {
  7376  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:elements: ", p), err)
  7377  	}
  7378  	return err
  7379  }
  7380  
  7381  func (p *WriteTaggedBatchRawRequest) String() string {
  7382  	if p == nil {
  7383  		return "<nil>"
  7384  	}
  7385  	return fmt.Sprintf("WriteTaggedBatchRawRequest(%+v)", *p)
  7386  }
  7387  
  7388  // Attributes:
  7389  //  - NameSpaces
  7390  //  - Elements
  7391  type WriteTaggedBatchRawV2Request struct {
  7392  	NameSpaces [][]byte                               `thrift:"nameSpaces,1,required" db:"nameSpaces" json:"nameSpaces"`
  7393  	Elements   []*WriteTaggedBatchRawV2RequestElement `thrift:"elements,2,required" db:"elements" json:"elements"`
  7394  }
  7395  
  7396  func NewWriteTaggedBatchRawV2Request() *WriteTaggedBatchRawV2Request {
  7397  	return &WriteTaggedBatchRawV2Request{}
  7398  }
  7399  
  7400  func (p *WriteTaggedBatchRawV2Request) GetNameSpaces() [][]byte {
  7401  	return p.NameSpaces
  7402  }
  7403  
  7404  func (p *WriteTaggedBatchRawV2Request) GetElements() []*WriteTaggedBatchRawV2RequestElement {
  7405  	return p.Elements
  7406  }
  7407  func (p *WriteTaggedBatchRawV2Request) Read(iprot thrift.TProtocol) error {
  7408  	if _, err := iprot.ReadStructBegin(); err != nil {
  7409  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  7410  	}
  7411  
  7412  	var issetNameSpaces bool = false
  7413  	var issetElements bool = false
  7414  
  7415  	for {
  7416  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  7417  		if err != nil {
  7418  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  7419  		}
  7420  		if fieldTypeId == thrift.STOP {
  7421  			break
  7422  		}
  7423  		switch fieldId {
  7424  		case 1:
  7425  			if err := p.ReadField1(iprot); err != nil {
  7426  				return err
  7427  			}
  7428  			issetNameSpaces = true
  7429  		case 2:
  7430  			if err := p.ReadField2(iprot); err != nil {
  7431  				return err
  7432  			}
  7433  			issetElements = true
  7434  		default:
  7435  			if err := iprot.Skip(fieldTypeId); err != nil {
  7436  				return err
  7437  			}
  7438  		}
  7439  		if err := iprot.ReadFieldEnd(); err != nil {
  7440  			return err
  7441  		}
  7442  	}
  7443  	if err := iprot.ReadStructEnd(); err != nil {
  7444  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  7445  	}
  7446  	if !issetNameSpaces {
  7447  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpaces is not set"))
  7448  	}
  7449  	if !issetElements {
  7450  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Elements is not set"))
  7451  	}
  7452  	return nil
  7453  }
  7454  
  7455  func (p *WriteTaggedBatchRawV2Request) ReadField1(iprot thrift.TProtocol) error {
  7456  	_, size, err := iprot.ReadListBegin()
  7457  	if err != nil {
  7458  		return thrift.PrependError("error reading list begin: ", err)
  7459  	}
  7460  	tSlice := make([][]byte, 0, size)
  7461  	p.NameSpaces = tSlice
  7462  	for i := 0; i < size; i++ {
  7463  		var _elem20 []byte
  7464  		if v, err := iprot.ReadBinary(); err != nil {
  7465  			return thrift.PrependError("error reading field 0: ", err)
  7466  		} else {
  7467  			_elem20 = v
  7468  		}
  7469  		p.NameSpaces = append(p.NameSpaces, _elem20)
  7470  	}
  7471  	if err := iprot.ReadListEnd(); err != nil {
  7472  		return thrift.PrependError("error reading list end: ", err)
  7473  	}
  7474  	return nil
  7475  }
  7476  
  7477  func (p *WriteTaggedBatchRawV2Request) ReadField2(iprot thrift.TProtocol) error {
  7478  	_, size, err := iprot.ReadListBegin()
  7479  	if err != nil {
  7480  		return thrift.PrependError("error reading list begin: ", err)
  7481  	}
  7482  	tSlice := make([]*WriteTaggedBatchRawV2RequestElement, 0, size)
  7483  	p.Elements = tSlice
  7484  	for i := 0; i < size; i++ {
  7485  		_elem21 := &WriteTaggedBatchRawV2RequestElement{}
  7486  		if err := _elem21.Read(iprot); err != nil {
  7487  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem21), err)
  7488  		}
  7489  		p.Elements = append(p.Elements, _elem21)
  7490  	}
  7491  	if err := iprot.ReadListEnd(); err != nil {
  7492  		return thrift.PrependError("error reading list end: ", err)
  7493  	}
  7494  	return nil
  7495  }
  7496  
  7497  func (p *WriteTaggedBatchRawV2Request) Write(oprot thrift.TProtocol) error {
  7498  	if err := oprot.WriteStructBegin("WriteTaggedBatchRawV2Request"); err != nil {
  7499  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  7500  	}
  7501  	if p != nil {
  7502  		if err := p.writeField1(oprot); err != nil {
  7503  			return err
  7504  		}
  7505  		if err := p.writeField2(oprot); err != nil {
  7506  			return err
  7507  		}
  7508  	}
  7509  	if err := oprot.WriteFieldStop(); err != nil {
  7510  		return thrift.PrependError("write field stop error: ", err)
  7511  	}
  7512  	if err := oprot.WriteStructEnd(); err != nil {
  7513  		return thrift.PrependError("write struct stop error: ", err)
  7514  	}
  7515  	return nil
  7516  }
  7517  
  7518  func (p *WriteTaggedBatchRawV2Request) writeField1(oprot thrift.TProtocol) (err error) {
  7519  	if err := oprot.WriteFieldBegin("nameSpaces", thrift.LIST, 1); err != nil {
  7520  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:nameSpaces: ", p), err)
  7521  	}
  7522  	if err := oprot.WriteListBegin(thrift.STRING, len(p.NameSpaces)); err != nil {
  7523  		return thrift.PrependError("error writing list begin: ", err)
  7524  	}
  7525  	for _, v := range p.NameSpaces {
  7526  		if err := oprot.WriteBinary(v); err != nil {
  7527  			return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err)
  7528  		}
  7529  	}
  7530  	if err := oprot.WriteListEnd(); err != nil {
  7531  		return thrift.PrependError("error writing list end: ", err)
  7532  	}
  7533  	if err := oprot.WriteFieldEnd(); err != nil {
  7534  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:nameSpaces: ", p), err)
  7535  	}
  7536  	return err
  7537  }
  7538  
  7539  func (p *WriteTaggedBatchRawV2Request) writeField2(oprot thrift.TProtocol) (err error) {
  7540  	if err := oprot.WriteFieldBegin("elements", thrift.LIST, 2); err != nil {
  7541  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:elements: ", p), err)
  7542  	}
  7543  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Elements)); err != nil {
  7544  		return thrift.PrependError("error writing list begin: ", err)
  7545  	}
  7546  	for _, v := range p.Elements {
  7547  		if err := v.Write(oprot); err != nil {
  7548  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
  7549  		}
  7550  	}
  7551  	if err := oprot.WriteListEnd(); err != nil {
  7552  		return thrift.PrependError("error writing list end: ", err)
  7553  	}
  7554  	if err := oprot.WriteFieldEnd(); err != nil {
  7555  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:elements: ", p), err)
  7556  	}
  7557  	return err
  7558  }
  7559  
  7560  func (p *WriteTaggedBatchRawV2Request) String() string {
  7561  	if p == nil {
  7562  		return "<nil>"
  7563  	}
  7564  	return fmt.Sprintf("WriteTaggedBatchRawV2Request(%+v)", *p)
  7565  }
  7566  
  7567  // Attributes:
  7568  //  - ID
  7569  //  - EncodedTags
  7570  //  - Datapoint
  7571  type WriteTaggedBatchRawRequestElement struct {
  7572  	ID          []byte     `thrift:"id,1,required" db:"id" json:"id"`
  7573  	EncodedTags []byte     `thrift:"encodedTags,2,required" db:"encodedTags" json:"encodedTags"`
  7574  	Datapoint   *Datapoint `thrift:"datapoint,3,required" db:"datapoint" json:"datapoint"`
  7575  }
  7576  
  7577  func NewWriteTaggedBatchRawRequestElement() *WriteTaggedBatchRawRequestElement {
  7578  	return &WriteTaggedBatchRawRequestElement{}
  7579  }
  7580  
  7581  func (p *WriteTaggedBatchRawRequestElement) GetID() []byte {
  7582  	return p.ID
  7583  }
  7584  
  7585  func (p *WriteTaggedBatchRawRequestElement) GetEncodedTags() []byte {
  7586  	return p.EncodedTags
  7587  }
  7588  
  7589  var WriteTaggedBatchRawRequestElement_Datapoint_DEFAULT *Datapoint
  7590  
  7591  func (p *WriteTaggedBatchRawRequestElement) GetDatapoint() *Datapoint {
  7592  	if !p.IsSetDatapoint() {
  7593  		return WriteTaggedBatchRawRequestElement_Datapoint_DEFAULT
  7594  	}
  7595  	return p.Datapoint
  7596  }
  7597  func (p *WriteTaggedBatchRawRequestElement) IsSetDatapoint() bool {
  7598  	return p.Datapoint != nil
  7599  }
  7600  
  7601  func (p *WriteTaggedBatchRawRequestElement) Read(iprot thrift.TProtocol) error {
  7602  	if _, err := iprot.ReadStructBegin(); err != nil {
  7603  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  7604  	}
  7605  
  7606  	var issetID bool = false
  7607  	var issetEncodedTags bool = false
  7608  	var issetDatapoint bool = false
  7609  
  7610  	for {
  7611  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  7612  		if err != nil {
  7613  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  7614  		}
  7615  		if fieldTypeId == thrift.STOP {
  7616  			break
  7617  		}
  7618  		switch fieldId {
  7619  		case 1:
  7620  			if err := p.ReadField1(iprot); err != nil {
  7621  				return err
  7622  			}
  7623  			issetID = true
  7624  		case 2:
  7625  			if err := p.ReadField2(iprot); err != nil {
  7626  				return err
  7627  			}
  7628  			issetEncodedTags = true
  7629  		case 3:
  7630  			if err := p.ReadField3(iprot); err != nil {
  7631  				return err
  7632  			}
  7633  			issetDatapoint = true
  7634  		default:
  7635  			if err := iprot.Skip(fieldTypeId); err != nil {
  7636  				return err
  7637  			}
  7638  		}
  7639  		if err := iprot.ReadFieldEnd(); err != nil {
  7640  			return err
  7641  		}
  7642  	}
  7643  	if err := iprot.ReadStructEnd(); err != nil {
  7644  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  7645  	}
  7646  	if !issetID {
  7647  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ID is not set"))
  7648  	}
  7649  	if !issetEncodedTags {
  7650  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field EncodedTags is not set"))
  7651  	}
  7652  	if !issetDatapoint {
  7653  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Datapoint is not set"))
  7654  	}
  7655  	return nil
  7656  }
  7657  
  7658  func (p *WriteTaggedBatchRawRequestElement) ReadField1(iprot thrift.TProtocol) error {
  7659  	if v, err := iprot.ReadBinary(); err != nil {
  7660  		return thrift.PrependError("error reading field 1: ", err)
  7661  	} else {
  7662  		p.ID = v
  7663  	}
  7664  	return nil
  7665  }
  7666  
  7667  func (p *WriteTaggedBatchRawRequestElement) ReadField2(iprot thrift.TProtocol) error {
  7668  	if v, err := iprot.ReadBinary(); err != nil {
  7669  		return thrift.PrependError("error reading field 2: ", err)
  7670  	} else {
  7671  		p.EncodedTags = v
  7672  	}
  7673  	return nil
  7674  }
  7675  
  7676  func (p *WriteTaggedBatchRawRequestElement) ReadField3(iprot thrift.TProtocol) error {
  7677  	p.Datapoint = &Datapoint{
  7678  		TimestampTimeType: 0,
  7679  	}
  7680  	if err := p.Datapoint.Read(iprot); err != nil {
  7681  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Datapoint), err)
  7682  	}
  7683  	return nil
  7684  }
  7685  
  7686  func (p *WriteTaggedBatchRawRequestElement) Write(oprot thrift.TProtocol) error {
  7687  	if err := oprot.WriteStructBegin("WriteTaggedBatchRawRequestElement"); err != nil {
  7688  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  7689  	}
  7690  	if p != nil {
  7691  		if err := p.writeField1(oprot); err != nil {
  7692  			return err
  7693  		}
  7694  		if err := p.writeField2(oprot); err != nil {
  7695  			return err
  7696  		}
  7697  		if err := p.writeField3(oprot); err != nil {
  7698  			return err
  7699  		}
  7700  	}
  7701  	if err := oprot.WriteFieldStop(); err != nil {
  7702  		return thrift.PrependError("write field stop error: ", err)
  7703  	}
  7704  	if err := oprot.WriteStructEnd(); err != nil {
  7705  		return thrift.PrependError("write struct stop error: ", err)
  7706  	}
  7707  	return nil
  7708  }
  7709  
  7710  func (p *WriteTaggedBatchRawRequestElement) writeField1(oprot thrift.TProtocol) (err error) {
  7711  	if err := oprot.WriteFieldBegin("id", thrift.STRING, 1); err != nil {
  7712  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:id: ", p), err)
  7713  	}
  7714  	if err := oprot.WriteBinary(p.ID); err != nil {
  7715  		return thrift.PrependError(fmt.Sprintf("%T.id (1) field write error: ", p), err)
  7716  	}
  7717  	if err := oprot.WriteFieldEnd(); err != nil {
  7718  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:id: ", p), err)
  7719  	}
  7720  	return err
  7721  }
  7722  
  7723  func (p *WriteTaggedBatchRawRequestElement) writeField2(oprot thrift.TProtocol) (err error) {
  7724  	if err := oprot.WriteFieldBegin("encodedTags", thrift.STRING, 2); err != nil {
  7725  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:encodedTags: ", p), err)
  7726  	}
  7727  	if err := oprot.WriteBinary(p.EncodedTags); err != nil {
  7728  		return thrift.PrependError(fmt.Sprintf("%T.encodedTags (2) field write error: ", p), err)
  7729  	}
  7730  	if err := oprot.WriteFieldEnd(); err != nil {
  7731  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:encodedTags: ", p), err)
  7732  	}
  7733  	return err
  7734  }
  7735  
  7736  func (p *WriteTaggedBatchRawRequestElement) writeField3(oprot thrift.TProtocol) (err error) {
  7737  	if err := oprot.WriteFieldBegin("datapoint", thrift.STRUCT, 3); err != nil {
  7738  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:datapoint: ", p), err)
  7739  	}
  7740  	if err := p.Datapoint.Write(oprot); err != nil {
  7741  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Datapoint), err)
  7742  	}
  7743  	if err := oprot.WriteFieldEnd(); err != nil {
  7744  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:datapoint: ", p), err)
  7745  	}
  7746  	return err
  7747  }
  7748  
  7749  func (p *WriteTaggedBatchRawRequestElement) String() string {
  7750  	if p == nil {
  7751  		return "<nil>"
  7752  	}
  7753  	return fmt.Sprintf("WriteTaggedBatchRawRequestElement(%+v)", *p)
  7754  }
  7755  
  7756  // Attributes:
  7757  //  - ID
  7758  //  - EncodedTags
  7759  //  - Datapoint
  7760  //  - NameSpace
  7761  type WriteTaggedBatchRawV2RequestElement struct {
  7762  	ID          []byte     `thrift:"id,1,required" db:"id" json:"id"`
  7763  	EncodedTags []byte     `thrift:"encodedTags,2,required" db:"encodedTags" json:"encodedTags"`
  7764  	Datapoint   *Datapoint `thrift:"datapoint,3,required" db:"datapoint" json:"datapoint"`
  7765  	NameSpace   int64      `thrift:"nameSpace,4,required" db:"nameSpace" json:"nameSpace"`
  7766  }
  7767  
  7768  func NewWriteTaggedBatchRawV2RequestElement() *WriteTaggedBatchRawV2RequestElement {
  7769  	return &WriteTaggedBatchRawV2RequestElement{}
  7770  }
  7771  
  7772  func (p *WriteTaggedBatchRawV2RequestElement) GetID() []byte {
  7773  	return p.ID
  7774  }
  7775  
  7776  func (p *WriteTaggedBatchRawV2RequestElement) GetEncodedTags() []byte {
  7777  	return p.EncodedTags
  7778  }
  7779  
  7780  var WriteTaggedBatchRawV2RequestElement_Datapoint_DEFAULT *Datapoint
  7781  
  7782  func (p *WriteTaggedBatchRawV2RequestElement) GetDatapoint() *Datapoint {
  7783  	if !p.IsSetDatapoint() {
  7784  		return WriteTaggedBatchRawV2RequestElement_Datapoint_DEFAULT
  7785  	}
  7786  	return p.Datapoint
  7787  }
  7788  
  7789  func (p *WriteTaggedBatchRawV2RequestElement) GetNameSpace() int64 {
  7790  	return p.NameSpace
  7791  }
  7792  func (p *WriteTaggedBatchRawV2RequestElement) IsSetDatapoint() bool {
  7793  	return p.Datapoint != nil
  7794  }
  7795  
  7796  func (p *WriteTaggedBatchRawV2RequestElement) Read(iprot thrift.TProtocol) error {
  7797  	if _, err := iprot.ReadStructBegin(); err != nil {
  7798  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  7799  	}
  7800  
  7801  	var issetID bool = false
  7802  	var issetEncodedTags bool = false
  7803  	var issetDatapoint bool = false
  7804  	var issetNameSpace bool = false
  7805  
  7806  	for {
  7807  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  7808  		if err != nil {
  7809  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  7810  		}
  7811  		if fieldTypeId == thrift.STOP {
  7812  			break
  7813  		}
  7814  		switch fieldId {
  7815  		case 1:
  7816  			if err := p.ReadField1(iprot); err != nil {
  7817  				return err
  7818  			}
  7819  			issetID = true
  7820  		case 2:
  7821  			if err := p.ReadField2(iprot); err != nil {
  7822  				return err
  7823  			}
  7824  			issetEncodedTags = true
  7825  		case 3:
  7826  			if err := p.ReadField3(iprot); err != nil {
  7827  				return err
  7828  			}
  7829  			issetDatapoint = true
  7830  		case 4:
  7831  			if err := p.ReadField4(iprot); err != nil {
  7832  				return err
  7833  			}
  7834  			issetNameSpace = true
  7835  		default:
  7836  			if err := iprot.Skip(fieldTypeId); err != nil {
  7837  				return err
  7838  			}
  7839  		}
  7840  		if err := iprot.ReadFieldEnd(); err != nil {
  7841  			return err
  7842  		}
  7843  	}
  7844  	if err := iprot.ReadStructEnd(); err != nil {
  7845  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  7846  	}
  7847  	if !issetID {
  7848  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ID is not set"))
  7849  	}
  7850  	if !issetEncodedTags {
  7851  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field EncodedTags is not set"))
  7852  	}
  7853  	if !issetDatapoint {
  7854  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Datapoint is not set"))
  7855  	}
  7856  	if !issetNameSpace {
  7857  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
  7858  	}
  7859  	return nil
  7860  }
  7861  
  7862  func (p *WriteTaggedBatchRawV2RequestElement) ReadField1(iprot thrift.TProtocol) error {
  7863  	if v, err := iprot.ReadBinary(); err != nil {
  7864  		return thrift.PrependError("error reading field 1: ", err)
  7865  	} else {
  7866  		p.ID = v
  7867  	}
  7868  	return nil
  7869  }
  7870  
  7871  func (p *WriteTaggedBatchRawV2RequestElement) ReadField2(iprot thrift.TProtocol) error {
  7872  	if v, err := iprot.ReadBinary(); err != nil {
  7873  		return thrift.PrependError("error reading field 2: ", err)
  7874  	} else {
  7875  		p.EncodedTags = v
  7876  	}
  7877  	return nil
  7878  }
  7879  
  7880  func (p *WriteTaggedBatchRawV2RequestElement) ReadField3(iprot thrift.TProtocol) error {
  7881  	p.Datapoint = &Datapoint{
  7882  		TimestampTimeType: 0,
  7883  	}
  7884  	if err := p.Datapoint.Read(iprot); err != nil {
  7885  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Datapoint), err)
  7886  	}
  7887  	return nil
  7888  }
  7889  
  7890  func (p *WriteTaggedBatchRawV2RequestElement) ReadField4(iprot thrift.TProtocol) error {
  7891  	if v, err := iprot.ReadI64(); err != nil {
  7892  		return thrift.PrependError("error reading field 4: ", err)
  7893  	} else {
  7894  		p.NameSpace = v
  7895  	}
  7896  	return nil
  7897  }
  7898  
  7899  func (p *WriteTaggedBatchRawV2RequestElement) Write(oprot thrift.TProtocol) error {
  7900  	if err := oprot.WriteStructBegin("WriteTaggedBatchRawV2RequestElement"); err != nil {
  7901  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  7902  	}
  7903  	if p != nil {
  7904  		if err := p.writeField1(oprot); err != nil {
  7905  			return err
  7906  		}
  7907  		if err := p.writeField2(oprot); err != nil {
  7908  			return err
  7909  		}
  7910  		if err := p.writeField3(oprot); err != nil {
  7911  			return err
  7912  		}
  7913  		if err := p.writeField4(oprot); err != nil {
  7914  			return err
  7915  		}
  7916  	}
  7917  	if err := oprot.WriteFieldStop(); err != nil {
  7918  		return thrift.PrependError("write field stop error: ", err)
  7919  	}
  7920  	if err := oprot.WriteStructEnd(); err != nil {
  7921  		return thrift.PrependError("write struct stop error: ", err)
  7922  	}
  7923  	return nil
  7924  }
  7925  
  7926  func (p *WriteTaggedBatchRawV2RequestElement) writeField1(oprot thrift.TProtocol) (err error) {
  7927  	if err := oprot.WriteFieldBegin("id", thrift.STRING, 1); err != nil {
  7928  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:id: ", p), err)
  7929  	}
  7930  	if err := oprot.WriteBinary(p.ID); err != nil {
  7931  		return thrift.PrependError(fmt.Sprintf("%T.id (1) field write error: ", p), err)
  7932  	}
  7933  	if err := oprot.WriteFieldEnd(); err != nil {
  7934  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:id: ", p), err)
  7935  	}
  7936  	return err
  7937  }
  7938  
  7939  func (p *WriteTaggedBatchRawV2RequestElement) writeField2(oprot thrift.TProtocol) (err error) {
  7940  	if err := oprot.WriteFieldBegin("encodedTags", thrift.STRING, 2); err != nil {
  7941  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:encodedTags: ", p), err)
  7942  	}
  7943  	if err := oprot.WriteBinary(p.EncodedTags); err != nil {
  7944  		return thrift.PrependError(fmt.Sprintf("%T.encodedTags (2) field write error: ", p), err)
  7945  	}
  7946  	if err := oprot.WriteFieldEnd(); err != nil {
  7947  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:encodedTags: ", p), err)
  7948  	}
  7949  	return err
  7950  }
  7951  
  7952  func (p *WriteTaggedBatchRawV2RequestElement) writeField3(oprot thrift.TProtocol) (err error) {
  7953  	if err := oprot.WriteFieldBegin("datapoint", thrift.STRUCT, 3); err != nil {
  7954  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:datapoint: ", p), err)
  7955  	}
  7956  	if err := p.Datapoint.Write(oprot); err != nil {
  7957  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Datapoint), err)
  7958  	}
  7959  	if err := oprot.WriteFieldEnd(); err != nil {
  7960  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:datapoint: ", p), err)
  7961  	}
  7962  	return err
  7963  }
  7964  
  7965  func (p *WriteTaggedBatchRawV2RequestElement) writeField4(oprot thrift.TProtocol) (err error) {
  7966  	if err := oprot.WriteFieldBegin("nameSpace", thrift.I64, 4); err != nil {
  7967  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:nameSpace: ", p), err)
  7968  	}
  7969  	if err := oprot.WriteI64(int64(p.NameSpace)); err != nil {
  7970  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (4) field write error: ", p), err)
  7971  	}
  7972  	if err := oprot.WriteFieldEnd(); err != nil {
  7973  		return thrift.PrependError(fmt.Sprintf("%T write field end error 4:nameSpace: ", p), err)
  7974  	}
  7975  	return err
  7976  }
  7977  
  7978  func (p *WriteTaggedBatchRawV2RequestElement) String() string {
  7979  	if p == nil {
  7980  		return "<nil>"
  7981  	}
  7982  	return fmt.Sprintf("WriteTaggedBatchRawV2RequestElement(%+v)", *p)
  7983  }
  7984  
  7985  // Attributes:
  7986  //  - Index
  7987  //  - Err
  7988  type WriteBatchRawError struct {
  7989  	Index int64  `thrift:"index,1,required" db:"index" json:"index"`
  7990  	Err   *Error `thrift:"err,2,required" db:"err" json:"err"`
  7991  }
  7992  
  7993  func NewWriteBatchRawError() *WriteBatchRawError {
  7994  	return &WriteBatchRawError{}
  7995  }
  7996  
  7997  func (p *WriteBatchRawError) GetIndex() int64 {
  7998  	return p.Index
  7999  }
  8000  
  8001  var WriteBatchRawError_Err_DEFAULT *Error
  8002  
  8003  func (p *WriteBatchRawError) GetErr() *Error {
  8004  	if !p.IsSetErr() {
  8005  		return WriteBatchRawError_Err_DEFAULT
  8006  	}
  8007  	return p.Err
  8008  }
  8009  func (p *WriteBatchRawError) IsSetErr() bool {
  8010  	return p.Err != nil
  8011  }
  8012  
  8013  func (p *WriteBatchRawError) Read(iprot thrift.TProtocol) error {
  8014  	if _, err := iprot.ReadStructBegin(); err != nil {
  8015  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  8016  	}
  8017  
  8018  	var issetIndex bool = false
  8019  	var issetErr bool = false
  8020  
  8021  	for {
  8022  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  8023  		if err != nil {
  8024  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  8025  		}
  8026  		if fieldTypeId == thrift.STOP {
  8027  			break
  8028  		}
  8029  		switch fieldId {
  8030  		case 1:
  8031  			if err := p.ReadField1(iprot); err != nil {
  8032  				return err
  8033  			}
  8034  			issetIndex = true
  8035  		case 2:
  8036  			if err := p.ReadField2(iprot); err != nil {
  8037  				return err
  8038  			}
  8039  			issetErr = true
  8040  		default:
  8041  			if err := iprot.Skip(fieldTypeId); err != nil {
  8042  				return err
  8043  			}
  8044  		}
  8045  		if err := iprot.ReadFieldEnd(); err != nil {
  8046  			return err
  8047  		}
  8048  	}
  8049  	if err := iprot.ReadStructEnd(); err != nil {
  8050  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  8051  	}
  8052  	if !issetIndex {
  8053  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Index is not set"))
  8054  	}
  8055  	if !issetErr {
  8056  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Err is not set"))
  8057  	}
  8058  	return nil
  8059  }
  8060  
  8061  func (p *WriteBatchRawError) ReadField1(iprot thrift.TProtocol) error {
  8062  	if v, err := iprot.ReadI64(); err != nil {
  8063  		return thrift.PrependError("error reading field 1: ", err)
  8064  	} else {
  8065  		p.Index = v
  8066  	}
  8067  	return nil
  8068  }
  8069  
  8070  func (p *WriteBatchRawError) ReadField2(iprot thrift.TProtocol) error {
  8071  	p.Err = &Error{
  8072  		Type: 0,
  8073  	}
  8074  	if err := p.Err.Read(iprot); err != nil {
  8075  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
  8076  	}
  8077  	return nil
  8078  }
  8079  
  8080  func (p *WriteBatchRawError) Write(oprot thrift.TProtocol) error {
  8081  	if err := oprot.WriteStructBegin("WriteBatchRawError"); err != nil {
  8082  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  8083  	}
  8084  	if p != nil {
  8085  		if err := p.writeField1(oprot); err != nil {
  8086  			return err
  8087  		}
  8088  		if err := p.writeField2(oprot); err != nil {
  8089  			return err
  8090  		}
  8091  	}
  8092  	if err := oprot.WriteFieldStop(); err != nil {
  8093  		return thrift.PrependError("write field stop error: ", err)
  8094  	}
  8095  	if err := oprot.WriteStructEnd(); err != nil {
  8096  		return thrift.PrependError("write struct stop error: ", err)
  8097  	}
  8098  	return nil
  8099  }
  8100  
  8101  func (p *WriteBatchRawError) writeField1(oprot thrift.TProtocol) (err error) {
  8102  	if err := oprot.WriteFieldBegin("index", thrift.I64, 1); err != nil {
  8103  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:index: ", p), err)
  8104  	}
  8105  	if err := oprot.WriteI64(int64(p.Index)); err != nil {
  8106  		return thrift.PrependError(fmt.Sprintf("%T.index (1) field write error: ", p), err)
  8107  	}
  8108  	if err := oprot.WriteFieldEnd(); err != nil {
  8109  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:index: ", p), err)
  8110  	}
  8111  	return err
  8112  }
  8113  
  8114  func (p *WriteBatchRawError) writeField2(oprot thrift.TProtocol) (err error) {
  8115  	if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 2); err != nil {
  8116  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:err: ", p), err)
  8117  	}
  8118  	if err := p.Err.Write(oprot); err != nil {
  8119  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
  8120  	}
  8121  	if err := oprot.WriteFieldEnd(); err != nil {
  8122  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:err: ", p), err)
  8123  	}
  8124  	return err
  8125  }
  8126  
  8127  func (p *WriteBatchRawError) String() string {
  8128  	if p == nil {
  8129  		return "<nil>"
  8130  	}
  8131  	return fmt.Sprintf("WriteBatchRawError(%+v)", *p)
  8132  }
  8133  
  8134  // Attributes:
  8135  //  - NameSpace
  8136  type TruncateRequest struct {
  8137  	NameSpace []byte `thrift:"nameSpace,1,required" db:"nameSpace" json:"nameSpace"`
  8138  }
  8139  
  8140  func NewTruncateRequest() *TruncateRequest {
  8141  	return &TruncateRequest{}
  8142  }
  8143  
  8144  func (p *TruncateRequest) GetNameSpace() []byte {
  8145  	return p.NameSpace
  8146  }
  8147  func (p *TruncateRequest) Read(iprot thrift.TProtocol) error {
  8148  	if _, err := iprot.ReadStructBegin(); err != nil {
  8149  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  8150  	}
  8151  
  8152  	var issetNameSpace bool = false
  8153  
  8154  	for {
  8155  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  8156  		if err != nil {
  8157  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  8158  		}
  8159  		if fieldTypeId == thrift.STOP {
  8160  			break
  8161  		}
  8162  		switch fieldId {
  8163  		case 1:
  8164  			if err := p.ReadField1(iprot); err != nil {
  8165  				return err
  8166  			}
  8167  			issetNameSpace = true
  8168  		default:
  8169  			if err := iprot.Skip(fieldTypeId); err != nil {
  8170  				return err
  8171  			}
  8172  		}
  8173  		if err := iprot.ReadFieldEnd(); err != nil {
  8174  			return err
  8175  		}
  8176  	}
  8177  	if err := iprot.ReadStructEnd(); err != nil {
  8178  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  8179  	}
  8180  	if !issetNameSpace {
  8181  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
  8182  	}
  8183  	return nil
  8184  }
  8185  
  8186  func (p *TruncateRequest) ReadField1(iprot thrift.TProtocol) error {
  8187  	if v, err := iprot.ReadBinary(); err != nil {
  8188  		return thrift.PrependError("error reading field 1: ", err)
  8189  	} else {
  8190  		p.NameSpace = v
  8191  	}
  8192  	return nil
  8193  }
  8194  
  8195  func (p *TruncateRequest) Write(oprot thrift.TProtocol) error {
  8196  	if err := oprot.WriteStructBegin("TruncateRequest"); err != nil {
  8197  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  8198  	}
  8199  	if p != nil {
  8200  		if err := p.writeField1(oprot); err != nil {
  8201  			return err
  8202  		}
  8203  	}
  8204  	if err := oprot.WriteFieldStop(); err != nil {
  8205  		return thrift.PrependError("write field stop error: ", err)
  8206  	}
  8207  	if err := oprot.WriteStructEnd(); err != nil {
  8208  		return thrift.PrependError("write struct stop error: ", err)
  8209  	}
  8210  	return nil
  8211  }
  8212  
  8213  func (p *TruncateRequest) writeField1(oprot thrift.TProtocol) (err error) {
  8214  	if err := oprot.WriteFieldBegin("nameSpace", thrift.STRING, 1); err != nil {
  8215  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:nameSpace: ", p), err)
  8216  	}
  8217  	if err := oprot.WriteBinary(p.NameSpace); err != nil {
  8218  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (1) field write error: ", p), err)
  8219  	}
  8220  	if err := oprot.WriteFieldEnd(); err != nil {
  8221  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:nameSpace: ", p), err)
  8222  	}
  8223  	return err
  8224  }
  8225  
  8226  func (p *TruncateRequest) String() string {
  8227  	if p == nil {
  8228  		return "<nil>"
  8229  	}
  8230  	return fmt.Sprintf("TruncateRequest(%+v)", *p)
  8231  }
  8232  
  8233  // Attributes:
  8234  //  - NumSeries
  8235  type TruncateResult_ struct {
  8236  	NumSeries int64 `thrift:"numSeries,1,required" db:"numSeries" json:"numSeries"`
  8237  }
  8238  
  8239  func NewTruncateResult_() *TruncateResult_ {
  8240  	return &TruncateResult_{}
  8241  }
  8242  
  8243  func (p *TruncateResult_) GetNumSeries() int64 {
  8244  	return p.NumSeries
  8245  }
  8246  func (p *TruncateResult_) Read(iprot thrift.TProtocol) error {
  8247  	if _, err := iprot.ReadStructBegin(); err != nil {
  8248  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  8249  	}
  8250  
  8251  	var issetNumSeries bool = false
  8252  
  8253  	for {
  8254  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  8255  		if err != nil {
  8256  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  8257  		}
  8258  		if fieldTypeId == thrift.STOP {
  8259  			break
  8260  		}
  8261  		switch fieldId {
  8262  		case 1:
  8263  			if err := p.ReadField1(iprot); err != nil {
  8264  				return err
  8265  			}
  8266  			issetNumSeries = true
  8267  		default:
  8268  			if err := iprot.Skip(fieldTypeId); err != nil {
  8269  				return err
  8270  			}
  8271  		}
  8272  		if err := iprot.ReadFieldEnd(); err != nil {
  8273  			return err
  8274  		}
  8275  	}
  8276  	if err := iprot.ReadStructEnd(); err != nil {
  8277  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  8278  	}
  8279  	if !issetNumSeries {
  8280  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NumSeries is not set"))
  8281  	}
  8282  	return nil
  8283  }
  8284  
  8285  func (p *TruncateResult_) ReadField1(iprot thrift.TProtocol) error {
  8286  	if v, err := iprot.ReadI64(); err != nil {
  8287  		return thrift.PrependError("error reading field 1: ", err)
  8288  	} else {
  8289  		p.NumSeries = v
  8290  	}
  8291  	return nil
  8292  }
  8293  
  8294  func (p *TruncateResult_) Write(oprot thrift.TProtocol) error {
  8295  	if err := oprot.WriteStructBegin("TruncateResult"); err != nil {
  8296  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  8297  	}
  8298  	if p != nil {
  8299  		if err := p.writeField1(oprot); err != nil {
  8300  			return err
  8301  		}
  8302  	}
  8303  	if err := oprot.WriteFieldStop(); err != nil {
  8304  		return thrift.PrependError("write field stop error: ", err)
  8305  	}
  8306  	if err := oprot.WriteStructEnd(); err != nil {
  8307  		return thrift.PrependError("write struct stop error: ", err)
  8308  	}
  8309  	return nil
  8310  }
  8311  
  8312  func (p *TruncateResult_) writeField1(oprot thrift.TProtocol) (err error) {
  8313  	if err := oprot.WriteFieldBegin("numSeries", thrift.I64, 1); err != nil {
  8314  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:numSeries: ", p), err)
  8315  	}
  8316  	if err := oprot.WriteI64(int64(p.NumSeries)); err != nil {
  8317  		return thrift.PrependError(fmt.Sprintf("%T.numSeries (1) field write error: ", p), err)
  8318  	}
  8319  	if err := oprot.WriteFieldEnd(); err != nil {
  8320  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:numSeries: ", p), err)
  8321  	}
  8322  	return err
  8323  }
  8324  
  8325  func (p *TruncateResult_) String() string {
  8326  	if p == nil {
  8327  		return "<nil>"
  8328  	}
  8329  	return fmt.Sprintf("TruncateResult_(%+v)", *p)
  8330  }
  8331  
  8332  // Attributes:
  8333  //  - Ok
  8334  //  - Status
  8335  //  - Bootstrapped
  8336  //  - Metadata
  8337  type NodeHealthResult_ struct {
  8338  	Ok           bool              `thrift:"ok,1,required" db:"ok" json:"ok"`
  8339  	Status       string            `thrift:"status,2,required" db:"status" json:"status"`
  8340  	Bootstrapped bool              `thrift:"bootstrapped,3,required" db:"bootstrapped" json:"bootstrapped"`
  8341  	Metadata     map[string]string `thrift:"metadata,4" db:"metadata" json:"metadata,omitempty"`
  8342  }
  8343  
  8344  func NewNodeHealthResult_() *NodeHealthResult_ {
  8345  	return &NodeHealthResult_{}
  8346  }
  8347  
  8348  func (p *NodeHealthResult_) GetOk() bool {
  8349  	return p.Ok
  8350  }
  8351  
  8352  func (p *NodeHealthResult_) GetStatus() string {
  8353  	return p.Status
  8354  }
  8355  
  8356  func (p *NodeHealthResult_) GetBootstrapped() bool {
  8357  	return p.Bootstrapped
  8358  }
  8359  
  8360  var NodeHealthResult__Metadata_DEFAULT map[string]string
  8361  
  8362  func (p *NodeHealthResult_) GetMetadata() map[string]string {
  8363  	return p.Metadata
  8364  }
  8365  func (p *NodeHealthResult_) IsSetMetadata() bool {
  8366  	return p.Metadata != nil
  8367  }
  8368  
  8369  func (p *NodeHealthResult_) Read(iprot thrift.TProtocol) error {
  8370  	if _, err := iprot.ReadStructBegin(); err != nil {
  8371  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  8372  	}
  8373  
  8374  	var issetOk bool = false
  8375  	var issetStatus bool = false
  8376  	var issetBootstrapped bool = false
  8377  
  8378  	for {
  8379  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  8380  		if err != nil {
  8381  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  8382  		}
  8383  		if fieldTypeId == thrift.STOP {
  8384  			break
  8385  		}
  8386  		switch fieldId {
  8387  		case 1:
  8388  			if err := p.ReadField1(iprot); err != nil {
  8389  				return err
  8390  			}
  8391  			issetOk = true
  8392  		case 2:
  8393  			if err := p.ReadField2(iprot); err != nil {
  8394  				return err
  8395  			}
  8396  			issetStatus = true
  8397  		case 3:
  8398  			if err := p.ReadField3(iprot); err != nil {
  8399  				return err
  8400  			}
  8401  			issetBootstrapped = true
  8402  		case 4:
  8403  			if err := p.ReadField4(iprot); err != nil {
  8404  				return err
  8405  			}
  8406  		default:
  8407  			if err := iprot.Skip(fieldTypeId); err != nil {
  8408  				return err
  8409  			}
  8410  		}
  8411  		if err := iprot.ReadFieldEnd(); err != nil {
  8412  			return err
  8413  		}
  8414  	}
  8415  	if err := iprot.ReadStructEnd(); err != nil {
  8416  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  8417  	}
  8418  	if !issetOk {
  8419  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Ok is not set"))
  8420  	}
  8421  	if !issetStatus {
  8422  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Status is not set"))
  8423  	}
  8424  	if !issetBootstrapped {
  8425  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Bootstrapped is not set"))
  8426  	}
  8427  	return nil
  8428  }
  8429  
  8430  func (p *NodeHealthResult_) ReadField1(iprot thrift.TProtocol) error {
  8431  	if v, err := iprot.ReadBool(); err != nil {
  8432  		return thrift.PrependError("error reading field 1: ", err)
  8433  	} else {
  8434  		p.Ok = v
  8435  	}
  8436  	return nil
  8437  }
  8438  
  8439  func (p *NodeHealthResult_) ReadField2(iprot thrift.TProtocol) error {
  8440  	if v, err := iprot.ReadString(); err != nil {
  8441  		return thrift.PrependError("error reading field 2: ", err)
  8442  	} else {
  8443  		p.Status = v
  8444  	}
  8445  	return nil
  8446  }
  8447  
  8448  func (p *NodeHealthResult_) ReadField3(iprot thrift.TProtocol) error {
  8449  	if v, err := iprot.ReadBool(); err != nil {
  8450  		return thrift.PrependError("error reading field 3: ", err)
  8451  	} else {
  8452  		p.Bootstrapped = v
  8453  	}
  8454  	return nil
  8455  }
  8456  
  8457  func (p *NodeHealthResult_) ReadField4(iprot thrift.TProtocol) error {
  8458  	_, _, size, err := iprot.ReadMapBegin()
  8459  	if err != nil {
  8460  		return thrift.PrependError("error reading map begin: ", err)
  8461  	}
  8462  	tMap := make(map[string]string, size)
  8463  	p.Metadata = tMap
  8464  	for i := 0; i < size; i++ {
  8465  		var _key22 string
  8466  		if v, err := iprot.ReadString(); err != nil {
  8467  			return thrift.PrependError("error reading field 0: ", err)
  8468  		} else {
  8469  			_key22 = v
  8470  		}
  8471  		var _val23 string
  8472  		if v, err := iprot.ReadString(); err != nil {
  8473  			return thrift.PrependError("error reading field 0: ", err)
  8474  		} else {
  8475  			_val23 = v
  8476  		}
  8477  		p.Metadata[_key22] = _val23
  8478  	}
  8479  	if err := iprot.ReadMapEnd(); err != nil {
  8480  		return thrift.PrependError("error reading map end: ", err)
  8481  	}
  8482  	return nil
  8483  }
  8484  
  8485  func (p *NodeHealthResult_) Write(oprot thrift.TProtocol) error {
  8486  	if err := oprot.WriteStructBegin("NodeHealthResult"); err != nil {
  8487  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  8488  	}
  8489  	if p != nil {
  8490  		if err := p.writeField1(oprot); err != nil {
  8491  			return err
  8492  		}
  8493  		if err := p.writeField2(oprot); err != nil {
  8494  			return err
  8495  		}
  8496  		if err := p.writeField3(oprot); err != nil {
  8497  			return err
  8498  		}
  8499  		if err := p.writeField4(oprot); err != nil {
  8500  			return err
  8501  		}
  8502  	}
  8503  	if err := oprot.WriteFieldStop(); err != nil {
  8504  		return thrift.PrependError("write field stop error: ", err)
  8505  	}
  8506  	if err := oprot.WriteStructEnd(); err != nil {
  8507  		return thrift.PrependError("write struct stop error: ", err)
  8508  	}
  8509  	return nil
  8510  }
  8511  
  8512  func (p *NodeHealthResult_) writeField1(oprot thrift.TProtocol) (err error) {
  8513  	if err := oprot.WriteFieldBegin("ok", thrift.BOOL, 1); err != nil {
  8514  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:ok: ", p), err)
  8515  	}
  8516  	if err := oprot.WriteBool(bool(p.Ok)); err != nil {
  8517  		return thrift.PrependError(fmt.Sprintf("%T.ok (1) field write error: ", p), err)
  8518  	}
  8519  	if err := oprot.WriteFieldEnd(); err != nil {
  8520  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:ok: ", p), err)
  8521  	}
  8522  	return err
  8523  }
  8524  
  8525  func (p *NodeHealthResult_) writeField2(oprot thrift.TProtocol) (err error) {
  8526  	if err := oprot.WriteFieldBegin("status", thrift.STRING, 2); err != nil {
  8527  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:status: ", p), err)
  8528  	}
  8529  	if err := oprot.WriteString(string(p.Status)); err != nil {
  8530  		return thrift.PrependError(fmt.Sprintf("%T.status (2) field write error: ", p), err)
  8531  	}
  8532  	if err := oprot.WriteFieldEnd(); err != nil {
  8533  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:status: ", p), err)
  8534  	}
  8535  	return err
  8536  }
  8537  
  8538  func (p *NodeHealthResult_) writeField3(oprot thrift.TProtocol) (err error) {
  8539  	if err := oprot.WriteFieldBegin("bootstrapped", thrift.BOOL, 3); err != nil {
  8540  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:bootstrapped: ", p), err)
  8541  	}
  8542  	if err := oprot.WriteBool(bool(p.Bootstrapped)); err != nil {
  8543  		return thrift.PrependError(fmt.Sprintf("%T.bootstrapped (3) field write error: ", p), err)
  8544  	}
  8545  	if err := oprot.WriteFieldEnd(); err != nil {
  8546  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:bootstrapped: ", p), err)
  8547  	}
  8548  	return err
  8549  }
  8550  
  8551  func (p *NodeHealthResult_) writeField4(oprot thrift.TProtocol) (err error) {
  8552  	if p.IsSetMetadata() {
  8553  		if err := oprot.WriteFieldBegin("metadata", thrift.MAP, 4); err != nil {
  8554  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:metadata: ", p), err)
  8555  		}
  8556  		if err := oprot.WriteMapBegin(thrift.STRING, thrift.STRING, len(p.Metadata)); err != nil {
  8557  			return thrift.PrependError("error writing map begin: ", err)
  8558  		}
  8559  		for k, v := range p.Metadata {
  8560  			if err := oprot.WriteString(string(k)); err != nil {
  8561  				return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err)
  8562  			}
  8563  			if err := oprot.WriteString(string(v)); err != nil {
  8564  				return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err)
  8565  			}
  8566  		}
  8567  		if err := oprot.WriteMapEnd(); err != nil {
  8568  			return thrift.PrependError("error writing map end: ", err)
  8569  		}
  8570  		if err := oprot.WriteFieldEnd(); err != nil {
  8571  			return thrift.PrependError(fmt.Sprintf("%T write field end error 4:metadata: ", p), err)
  8572  		}
  8573  	}
  8574  	return err
  8575  }
  8576  
  8577  func (p *NodeHealthResult_) String() string {
  8578  	if p == nil {
  8579  		return "<nil>"
  8580  	}
  8581  	return fmt.Sprintf("NodeHealthResult_(%+v)", *p)
  8582  }
  8583  
  8584  type NodeBootstrappedResult_ struct {
  8585  }
  8586  
  8587  func NewNodeBootstrappedResult_() *NodeBootstrappedResult_ {
  8588  	return &NodeBootstrappedResult_{}
  8589  }
  8590  
  8591  func (p *NodeBootstrappedResult_) Read(iprot thrift.TProtocol) error {
  8592  	if _, err := iprot.ReadStructBegin(); err != nil {
  8593  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  8594  	}
  8595  
  8596  	for {
  8597  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  8598  		if err != nil {
  8599  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  8600  		}
  8601  		if fieldTypeId == thrift.STOP {
  8602  			break
  8603  		}
  8604  		if err := iprot.Skip(fieldTypeId); err != nil {
  8605  			return err
  8606  		}
  8607  		if err := iprot.ReadFieldEnd(); err != nil {
  8608  			return err
  8609  		}
  8610  	}
  8611  	if err := iprot.ReadStructEnd(); err != nil {
  8612  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  8613  	}
  8614  	return nil
  8615  }
  8616  
  8617  func (p *NodeBootstrappedResult_) Write(oprot thrift.TProtocol) error {
  8618  	if err := oprot.WriteStructBegin("NodeBootstrappedResult"); err != nil {
  8619  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  8620  	}
  8621  	if p != nil {
  8622  	}
  8623  	if err := oprot.WriteFieldStop(); err != nil {
  8624  		return thrift.PrependError("write field stop error: ", err)
  8625  	}
  8626  	if err := oprot.WriteStructEnd(); err != nil {
  8627  		return thrift.PrependError("write struct stop error: ", err)
  8628  	}
  8629  	return nil
  8630  }
  8631  
  8632  func (p *NodeBootstrappedResult_) String() string {
  8633  	if p == nil {
  8634  		return "<nil>"
  8635  	}
  8636  	return fmt.Sprintf("NodeBootstrappedResult_(%+v)", *p)
  8637  }
  8638  
  8639  type NodeBootstrappedInPlacementOrNoPlacementResult_ struct {
  8640  }
  8641  
  8642  func NewNodeBootstrappedInPlacementOrNoPlacementResult_() *NodeBootstrappedInPlacementOrNoPlacementResult_ {
  8643  	return &NodeBootstrappedInPlacementOrNoPlacementResult_{}
  8644  }
  8645  
  8646  func (p *NodeBootstrappedInPlacementOrNoPlacementResult_) Read(iprot thrift.TProtocol) error {
  8647  	if _, err := iprot.ReadStructBegin(); err != nil {
  8648  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  8649  	}
  8650  
  8651  	for {
  8652  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  8653  		if err != nil {
  8654  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  8655  		}
  8656  		if fieldTypeId == thrift.STOP {
  8657  			break
  8658  		}
  8659  		if err := iprot.Skip(fieldTypeId); err != nil {
  8660  			return err
  8661  		}
  8662  		if err := iprot.ReadFieldEnd(); err != nil {
  8663  			return err
  8664  		}
  8665  	}
  8666  	if err := iprot.ReadStructEnd(); err != nil {
  8667  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  8668  	}
  8669  	return nil
  8670  }
  8671  
  8672  func (p *NodeBootstrappedInPlacementOrNoPlacementResult_) Write(oprot thrift.TProtocol) error {
  8673  	if err := oprot.WriteStructBegin("NodeBootstrappedInPlacementOrNoPlacementResult"); err != nil {
  8674  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  8675  	}
  8676  	if p != nil {
  8677  	}
  8678  	if err := oprot.WriteFieldStop(); err != nil {
  8679  		return thrift.PrependError("write field stop error: ", err)
  8680  	}
  8681  	if err := oprot.WriteStructEnd(); err != nil {
  8682  		return thrift.PrependError("write struct stop error: ", err)
  8683  	}
  8684  	return nil
  8685  }
  8686  
  8687  func (p *NodeBootstrappedInPlacementOrNoPlacementResult_) String() string {
  8688  	if p == nil {
  8689  		return "<nil>"
  8690  	}
  8691  	return fmt.Sprintf("NodeBootstrappedInPlacementOrNoPlacementResult_(%+v)", *p)
  8692  }
  8693  
  8694  // Attributes:
  8695  //  - LimitEnabled
  8696  //  - LimitMbps
  8697  //  - LimitCheckEvery
  8698  type NodePersistRateLimitResult_ struct {
  8699  	LimitEnabled    bool    `thrift:"limitEnabled,1,required" db:"limitEnabled" json:"limitEnabled"`
  8700  	LimitMbps       float64 `thrift:"limitMbps,2,required" db:"limitMbps" json:"limitMbps"`
  8701  	LimitCheckEvery int64   `thrift:"limitCheckEvery,3,required" db:"limitCheckEvery" json:"limitCheckEvery"`
  8702  }
  8703  
  8704  func NewNodePersistRateLimitResult_() *NodePersistRateLimitResult_ {
  8705  	return &NodePersistRateLimitResult_{}
  8706  }
  8707  
  8708  func (p *NodePersistRateLimitResult_) GetLimitEnabled() bool {
  8709  	return p.LimitEnabled
  8710  }
  8711  
  8712  func (p *NodePersistRateLimitResult_) GetLimitMbps() float64 {
  8713  	return p.LimitMbps
  8714  }
  8715  
  8716  func (p *NodePersistRateLimitResult_) GetLimitCheckEvery() int64 {
  8717  	return p.LimitCheckEvery
  8718  }
  8719  func (p *NodePersistRateLimitResult_) Read(iprot thrift.TProtocol) error {
  8720  	if _, err := iprot.ReadStructBegin(); err != nil {
  8721  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  8722  	}
  8723  
  8724  	var issetLimitEnabled bool = false
  8725  	var issetLimitMbps bool = false
  8726  	var issetLimitCheckEvery bool = false
  8727  
  8728  	for {
  8729  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  8730  		if err != nil {
  8731  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  8732  		}
  8733  		if fieldTypeId == thrift.STOP {
  8734  			break
  8735  		}
  8736  		switch fieldId {
  8737  		case 1:
  8738  			if err := p.ReadField1(iprot); err != nil {
  8739  				return err
  8740  			}
  8741  			issetLimitEnabled = true
  8742  		case 2:
  8743  			if err := p.ReadField2(iprot); err != nil {
  8744  				return err
  8745  			}
  8746  			issetLimitMbps = true
  8747  		case 3:
  8748  			if err := p.ReadField3(iprot); err != nil {
  8749  				return err
  8750  			}
  8751  			issetLimitCheckEvery = true
  8752  		default:
  8753  			if err := iprot.Skip(fieldTypeId); err != nil {
  8754  				return err
  8755  			}
  8756  		}
  8757  		if err := iprot.ReadFieldEnd(); err != nil {
  8758  			return err
  8759  		}
  8760  	}
  8761  	if err := iprot.ReadStructEnd(); err != nil {
  8762  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  8763  	}
  8764  	if !issetLimitEnabled {
  8765  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field LimitEnabled is not set"))
  8766  	}
  8767  	if !issetLimitMbps {
  8768  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field LimitMbps is not set"))
  8769  	}
  8770  	if !issetLimitCheckEvery {
  8771  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field LimitCheckEvery is not set"))
  8772  	}
  8773  	return nil
  8774  }
  8775  
  8776  func (p *NodePersistRateLimitResult_) ReadField1(iprot thrift.TProtocol) error {
  8777  	if v, err := iprot.ReadBool(); err != nil {
  8778  		return thrift.PrependError("error reading field 1: ", err)
  8779  	} else {
  8780  		p.LimitEnabled = v
  8781  	}
  8782  	return nil
  8783  }
  8784  
  8785  func (p *NodePersistRateLimitResult_) ReadField2(iprot thrift.TProtocol) error {
  8786  	if v, err := iprot.ReadDouble(); err != nil {
  8787  		return thrift.PrependError("error reading field 2: ", err)
  8788  	} else {
  8789  		p.LimitMbps = v
  8790  	}
  8791  	return nil
  8792  }
  8793  
  8794  func (p *NodePersistRateLimitResult_) ReadField3(iprot thrift.TProtocol) error {
  8795  	if v, err := iprot.ReadI64(); err != nil {
  8796  		return thrift.PrependError("error reading field 3: ", err)
  8797  	} else {
  8798  		p.LimitCheckEvery = v
  8799  	}
  8800  	return nil
  8801  }
  8802  
  8803  func (p *NodePersistRateLimitResult_) Write(oprot thrift.TProtocol) error {
  8804  	if err := oprot.WriteStructBegin("NodePersistRateLimitResult"); err != nil {
  8805  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  8806  	}
  8807  	if p != nil {
  8808  		if err := p.writeField1(oprot); err != nil {
  8809  			return err
  8810  		}
  8811  		if err := p.writeField2(oprot); err != nil {
  8812  			return err
  8813  		}
  8814  		if err := p.writeField3(oprot); err != nil {
  8815  			return err
  8816  		}
  8817  	}
  8818  	if err := oprot.WriteFieldStop(); err != nil {
  8819  		return thrift.PrependError("write field stop error: ", err)
  8820  	}
  8821  	if err := oprot.WriteStructEnd(); err != nil {
  8822  		return thrift.PrependError("write struct stop error: ", err)
  8823  	}
  8824  	return nil
  8825  }
  8826  
  8827  func (p *NodePersistRateLimitResult_) writeField1(oprot thrift.TProtocol) (err error) {
  8828  	if err := oprot.WriteFieldBegin("limitEnabled", thrift.BOOL, 1); err != nil {
  8829  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:limitEnabled: ", p), err)
  8830  	}
  8831  	if err := oprot.WriteBool(bool(p.LimitEnabled)); err != nil {
  8832  		return thrift.PrependError(fmt.Sprintf("%T.limitEnabled (1) field write error: ", p), err)
  8833  	}
  8834  	if err := oprot.WriteFieldEnd(); err != nil {
  8835  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:limitEnabled: ", p), err)
  8836  	}
  8837  	return err
  8838  }
  8839  
  8840  func (p *NodePersistRateLimitResult_) writeField2(oprot thrift.TProtocol) (err error) {
  8841  	if err := oprot.WriteFieldBegin("limitMbps", thrift.DOUBLE, 2); err != nil {
  8842  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:limitMbps: ", p), err)
  8843  	}
  8844  	if err := oprot.WriteDouble(float64(p.LimitMbps)); err != nil {
  8845  		return thrift.PrependError(fmt.Sprintf("%T.limitMbps (2) field write error: ", p), err)
  8846  	}
  8847  	if err := oprot.WriteFieldEnd(); err != nil {
  8848  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:limitMbps: ", p), err)
  8849  	}
  8850  	return err
  8851  }
  8852  
  8853  func (p *NodePersistRateLimitResult_) writeField3(oprot thrift.TProtocol) (err error) {
  8854  	if err := oprot.WriteFieldBegin("limitCheckEvery", thrift.I64, 3); err != nil {
  8855  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:limitCheckEvery: ", p), err)
  8856  	}
  8857  	if err := oprot.WriteI64(int64(p.LimitCheckEvery)); err != nil {
  8858  		return thrift.PrependError(fmt.Sprintf("%T.limitCheckEvery (3) field write error: ", p), err)
  8859  	}
  8860  	if err := oprot.WriteFieldEnd(); err != nil {
  8861  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:limitCheckEvery: ", p), err)
  8862  	}
  8863  	return err
  8864  }
  8865  
  8866  func (p *NodePersistRateLimitResult_) String() string {
  8867  	if p == nil {
  8868  		return "<nil>"
  8869  	}
  8870  	return fmt.Sprintf("NodePersistRateLimitResult_(%+v)", *p)
  8871  }
  8872  
  8873  // Attributes:
  8874  //  - LimitEnabled
  8875  //  - LimitMbps
  8876  //  - LimitCheckEvery
  8877  type NodeSetPersistRateLimitRequest struct {
  8878  	LimitEnabled    *bool    `thrift:"limitEnabled,1" db:"limitEnabled" json:"limitEnabled,omitempty"`
  8879  	LimitMbps       *float64 `thrift:"limitMbps,2" db:"limitMbps" json:"limitMbps,omitempty"`
  8880  	LimitCheckEvery *int64   `thrift:"limitCheckEvery,3" db:"limitCheckEvery" json:"limitCheckEvery,omitempty"`
  8881  }
  8882  
  8883  func NewNodeSetPersistRateLimitRequest() *NodeSetPersistRateLimitRequest {
  8884  	return &NodeSetPersistRateLimitRequest{}
  8885  }
  8886  
  8887  var NodeSetPersistRateLimitRequest_LimitEnabled_DEFAULT bool
  8888  
  8889  func (p *NodeSetPersistRateLimitRequest) GetLimitEnabled() bool {
  8890  	if !p.IsSetLimitEnabled() {
  8891  		return NodeSetPersistRateLimitRequest_LimitEnabled_DEFAULT
  8892  	}
  8893  	return *p.LimitEnabled
  8894  }
  8895  
  8896  var NodeSetPersistRateLimitRequest_LimitMbps_DEFAULT float64
  8897  
  8898  func (p *NodeSetPersistRateLimitRequest) GetLimitMbps() float64 {
  8899  	if !p.IsSetLimitMbps() {
  8900  		return NodeSetPersistRateLimitRequest_LimitMbps_DEFAULT
  8901  	}
  8902  	return *p.LimitMbps
  8903  }
  8904  
  8905  var NodeSetPersistRateLimitRequest_LimitCheckEvery_DEFAULT int64
  8906  
  8907  func (p *NodeSetPersistRateLimitRequest) GetLimitCheckEvery() int64 {
  8908  	if !p.IsSetLimitCheckEvery() {
  8909  		return NodeSetPersistRateLimitRequest_LimitCheckEvery_DEFAULT
  8910  	}
  8911  	return *p.LimitCheckEvery
  8912  }
  8913  func (p *NodeSetPersistRateLimitRequest) IsSetLimitEnabled() bool {
  8914  	return p.LimitEnabled != nil
  8915  }
  8916  
  8917  func (p *NodeSetPersistRateLimitRequest) IsSetLimitMbps() bool {
  8918  	return p.LimitMbps != nil
  8919  }
  8920  
  8921  func (p *NodeSetPersistRateLimitRequest) IsSetLimitCheckEvery() bool {
  8922  	return p.LimitCheckEvery != nil
  8923  }
  8924  
  8925  func (p *NodeSetPersistRateLimitRequest) Read(iprot thrift.TProtocol) error {
  8926  	if _, err := iprot.ReadStructBegin(); err != nil {
  8927  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  8928  	}
  8929  
  8930  	for {
  8931  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  8932  		if err != nil {
  8933  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  8934  		}
  8935  		if fieldTypeId == thrift.STOP {
  8936  			break
  8937  		}
  8938  		switch fieldId {
  8939  		case 1:
  8940  			if err := p.ReadField1(iprot); err != nil {
  8941  				return err
  8942  			}
  8943  		case 2:
  8944  			if err := p.ReadField2(iprot); err != nil {
  8945  				return err
  8946  			}
  8947  		case 3:
  8948  			if err := p.ReadField3(iprot); err != nil {
  8949  				return err
  8950  			}
  8951  		default:
  8952  			if err := iprot.Skip(fieldTypeId); err != nil {
  8953  				return err
  8954  			}
  8955  		}
  8956  		if err := iprot.ReadFieldEnd(); err != nil {
  8957  			return err
  8958  		}
  8959  	}
  8960  	if err := iprot.ReadStructEnd(); err != nil {
  8961  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  8962  	}
  8963  	return nil
  8964  }
  8965  
  8966  func (p *NodeSetPersistRateLimitRequest) ReadField1(iprot thrift.TProtocol) error {
  8967  	if v, err := iprot.ReadBool(); err != nil {
  8968  		return thrift.PrependError("error reading field 1: ", err)
  8969  	} else {
  8970  		p.LimitEnabled = &v
  8971  	}
  8972  	return nil
  8973  }
  8974  
  8975  func (p *NodeSetPersistRateLimitRequest) ReadField2(iprot thrift.TProtocol) error {
  8976  	if v, err := iprot.ReadDouble(); err != nil {
  8977  		return thrift.PrependError("error reading field 2: ", err)
  8978  	} else {
  8979  		p.LimitMbps = &v
  8980  	}
  8981  	return nil
  8982  }
  8983  
  8984  func (p *NodeSetPersistRateLimitRequest) ReadField3(iprot thrift.TProtocol) error {
  8985  	if v, err := iprot.ReadI64(); err != nil {
  8986  		return thrift.PrependError("error reading field 3: ", err)
  8987  	} else {
  8988  		p.LimitCheckEvery = &v
  8989  	}
  8990  	return nil
  8991  }
  8992  
  8993  func (p *NodeSetPersistRateLimitRequest) Write(oprot thrift.TProtocol) error {
  8994  	if err := oprot.WriteStructBegin("NodeSetPersistRateLimitRequest"); err != nil {
  8995  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  8996  	}
  8997  	if p != nil {
  8998  		if err := p.writeField1(oprot); err != nil {
  8999  			return err
  9000  		}
  9001  		if err := p.writeField2(oprot); err != nil {
  9002  			return err
  9003  		}
  9004  		if err := p.writeField3(oprot); err != nil {
  9005  			return err
  9006  		}
  9007  	}
  9008  	if err := oprot.WriteFieldStop(); err != nil {
  9009  		return thrift.PrependError("write field stop error: ", err)
  9010  	}
  9011  	if err := oprot.WriteStructEnd(); err != nil {
  9012  		return thrift.PrependError("write struct stop error: ", err)
  9013  	}
  9014  	return nil
  9015  }
  9016  
  9017  func (p *NodeSetPersistRateLimitRequest) writeField1(oprot thrift.TProtocol) (err error) {
  9018  	if p.IsSetLimitEnabled() {
  9019  		if err := oprot.WriteFieldBegin("limitEnabled", thrift.BOOL, 1); err != nil {
  9020  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:limitEnabled: ", p), err)
  9021  		}
  9022  		if err := oprot.WriteBool(bool(*p.LimitEnabled)); err != nil {
  9023  			return thrift.PrependError(fmt.Sprintf("%T.limitEnabled (1) field write error: ", p), err)
  9024  		}
  9025  		if err := oprot.WriteFieldEnd(); err != nil {
  9026  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:limitEnabled: ", p), err)
  9027  		}
  9028  	}
  9029  	return err
  9030  }
  9031  
  9032  func (p *NodeSetPersistRateLimitRequest) writeField2(oprot thrift.TProtocol) (err error) {
  9033  	if p.IsSetLimitMbps() {
  9034  		if err := oprot.WriteFieldBegin("limitMbps", thrift.DOUBLE, 2); err != nil {
  9035  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:limitMbps: ", p), err)
  9036  		}
  9037  		if err := oprot.WriteDouble(float64(*p.LimitMbps)); err != nil {
  9038  			return thrift.PrependError(fmt.Sprintf("%T.limitMbps (2) field write error: ", p), err)
  9039  		}
  9040  		if err := oprot.WriteFieldEnd(); err != nil {
  9041  			return thrift.PrependError(fmt.Sprintf("%T write field end error 2:limitMbps: ", p), err)
  9042  		}
  9043  	}
  9044  	return err
  9045  }
  9046  
  9047  func (p *NodeSetPersistRateLimitRequest) writeField3(oprot thrift.TProtocol) (err error) {
  9048  	if p.IsSetLimitCheckEvery() {
  9049  		if err := oprot.WriteFieldBegin("limitCheckEvery", thrift.I64, 3); err != nil {
  9050  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:limitCheckEvery: ", p), err)
  9051  		}
  9052  		if err := oprot.WriteI64(int64(*p.LimitCheckEvery)); err != nil {
  9053  			return thrift.PrependError(fmt.Sprintf("%T.limitCheckEvery (3) field write error: ", p), err)
  9054  		}
  9055  		if err := oprot.WriteFieldEnd(); err != nil {
  9056  			return thrift.PrependError(fmt.Sprintf("%T write field end error 3:limitCheckEvery: ", p), err)
  9057  		}
  9058  	}
  9059  	return err
  9060  }
  9061  
  9062  func (p *NodeSetPersistRateLimitRequest) String() string {
  9063  	if p == nil {
  9064  		return "<nil>"
  9065  	}
  9066  	return fmt.Sprintf("NodeSetPersistRateLimitRequest(%+v)", *p)
  9067  }
  9068  
  9069  // Attributes:
  9070  //  - WriteNewSeriesAsync
  9071  type NodeWriteNewSeriesAsyncResult_ struct {
  9072  	WriteNewSeriesAsync bool `thrift:"writeNewSeriesAsync,1,required" db:"writeNewSeriesAsync" json:"writeNewSeriesAsync"`
  9073  }
  9074  
  9075  func NewNodeWriteNewSeriesAsyncResult_() *NodeWriteNewSeriesAsyncResult_ {
  9076  	return &NodeWriteNewSeriesAsyncResult_{}
  9077  }
  9078  
  9079  func (p *NodeWriteNewSeriesAsyncResult_) GetWriteNewSeriesAsync() bool {
  9080  	return p.WriteNewSeriesAsync
  9081  }
  9082  func (p *NodeWriteNewSeriesAsyncResult_) Read(iprot thrift.TProtocol) error {
  9083  	if _, err := iprot.ReadStructBegin(); err != nil {
  9084  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  9085  	}
  9086  
  9087  	var issetWriteNewSeriesAsync bool = false
  9088  
  9089  	for {
  9090  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  9091  		if err != nil {
  9092  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  9093  		}
  9094  		if fieldTypeId == thrift.STOP {
  9095  			break
  9096  		}
  9097  		switch fieldId {
  9098  		case 1:
  9099  			if err := p.ReadField1(iprot); err != nil {
  9100  				return err
  9101  			}
  9102  			issetWriteNewSeriesAsync = true
  9103  		default:
  9104  			if err := iprot.Skip(fieldTypeId); err != nil {
  9105  				return err
  9106  			}
  9107  		}
  9108  		if err := iprot.ReadFieldEnd(); err != nil {
  9109  			return err
  9110  		}
  9111  	}
  9112  	if err := iprot.ReadStructEnd(); err != nil {
  9113  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  9114  	}
  9115  	if !issetWriteNewSeriesAsync {
  9116  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field WriteNewSeriesAsync is not set"))
  9117  	}
  9118  	return nil
  9119  }
  9120  
  9121  func (p *NodeWriteNewSeriesAsyncResult_) ReadField1(iprot thrift.TProtocol) error {
  9122  	if v, err := iprot.ReadBool(); err != nil {
  9123  		return thrift.PrependError("error reading field 1: ", err)
  9124  	} else {
  9125  		p.WriteNewSeriesAsync = v
  9126  	}
  9127  	return nil
  9128  }
  9129  
  9130  func (p *NodeWriteNewSeriesAsyncResult_) Write(oprot thrift.TProtocol) error {
  9131  	if err := oprot.WriteStructBegin("NodeWriteNewSeriesAsyncResult"); err != nil {
  9132  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  9133  	}
  9134  	if p != nil {
  9135  		if err := p.writeField1(oprot); err != nil {
  9136  			return err
  9137  		}
  9138  	}
  9139  	if err := oprot.WriteFieldStop(); err != nil {
  9140  		return thrift.PrependError("write field stop error: ", err)
  9141  	}
  9142  	if err := oprot.WriteStructEnd(); err != nil {
  9143  		return thrift.PrependError("write struct stop error: ", err)
  9144  	}
  9145  	return nil
  9146  }
  9147  
  9148  func (p *NodeWriteNewSeriesAsyncResult_) writeField1(oprot thrift.TProtocol) (err error) {
  9149  	if err := oprot.WriteFieldBegin("writeNewSeriesAsync", thrift.BOOL, 1); err != nil {
  9150  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:writeNewSeriesAsync: ", p), err)
  9151  	}
  9152  	if err := oprot.WriteBool(bool(p.WriteNewSeriesAsync)); err != nil {
  9153  		return thrift.PrependError(fmt.Sprintf("%T.writeNewSeriesAsync (1) field write error: ", p), err)
  9154  	}
  9155  	if err := oprot.WriteFieldEnd(); err != nil {
  9156  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:writeNewSeriesAsync: ", p), err)
  9157  	}
  9158  	return err
  9159  }
  9160  
  9161  func (p *NodeWriteNewSeriesAsyncResult_) String() string {
  9162  	if p == nil {
  9163  		return "<nil>"
  9164  	}
  9165  	return fmt.Sprintf("NodeWriteNewSeriesAsyncResult_(%+v)", *p)
  9166  }
  9167  
  9168  // Attributes:
  9169  //  - WriteNewSeriesAsync
  9170  type NodeSetWriteNewSeriesAsyncRequest struct {
  9171  	WriteNewSeriesAsync bool `thrift:"writeNewSeriesAsync,1,required" db:"writeNewSeriesAsync" json:"writeNewSeriesAsync"`
  9172  }
  9173  
  9174  func NewNodeSetWriteNewSeriesAsyncRequest() *NodeSetWriteNewSeriesAsyncRequest {
  9175  	return &NodeSetWriteNewSeriesAsyncRequest{}
  9176  }
  9177  
  9178  func (p *NodeSetWriteNewSeriesAsyncRequest) GetWriteNewSeriesAsync() bool {
  9179  	return p.WriteNewSeriesAsync
  9180  }
  9181  func (p *NodeSetWriteNewSeriesAsyncRequest) Read(iprot thrift.TProtocol) error {
  9182  	if _, err := iprot.ReadStructBegin(); err != nil {
  9183  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  9184  	}
  9185  
  9186  	var issetWriteNewSeriesAsync bool = false
  9187  
  9188  	for {
  9189  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  9190  		if err != nil {
  9191  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  9192  		}
  9193  		if fieldTypeId == thrift.STOP {
  9194  			break
  9195  		}
  9196  		switch fieldId {
  9197  		case 1:
  9198  			if err := p.ReadField1(iprot); err != nil {
  9199  				return err
  9200  			}
  9201  			issetWriteNewSeriesAsync = true
  9202  		default:
  9203  			if err := iprot.Skip(fieldTypeId); err != nil {
  9204  				return err
  9205  			}
  9206  		}
  9207  		if err := iprot.ReadFieldEnd(); err != nil {
  9208  			return err
  9209  		}
  9210  	}
  9211  	if err := iprot.ReadStructEnd(); err != nil {
  9212  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  9213  	}
  9214  	if !issetWriteNewSeriesAsync {
  9215  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field WriteNewSeriesAsync is not set"))
  9216  	}
  9217  	return nil
  9218  }
  9219  
  9220  func (p *NodeSetWriteNewSeriesAsyncRequest) ReadField1(iprot thrift.TProtocol) error {
  9221  	if v, err := iprot.ReadBool(); err != nil {
  9222  		return thrift.PrependError("error reading field 1: ", err)
  9223  	} else {
  9224  		p.WriteNewSeriesAsync = v
  9225  	}
  9226  	return nil
  9227  }
  9228  
  9229  func (p *NodeSetWriteNewSeriesAsyncRequest) Write(oprot thrift.TProtocol) error {
  9230  	if err := oprot.WriteStructBegin("NodeSetWriteNewSeriesAsyncRequest"); err != nil {
  9231  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  9232  	}
  9233  	if p != nil {
  9234  		if err := p.writeField1(oprot); err != nil {
  9235  			return err
  9236  		}
  9237  	}
  9238  	if err := oprot.WriteFieldStop(); err != nil {
  9239  		return thrift.PrependError("write field stop error: ", err)
  9240  	}
  9241  	if err := oprot.WriteStructEnd(); err != nil {
  9242  		return thrift.PrependError("write struct stop error: ", err)
  9243  	}
  9244  	return nil
  9245  }
  9246  
  9247  func (p *NodeSetWriteNewSeriesAsyncRequest) writeField1(oprot thrift.TProtocol) (err error) {
  9248  	if err := oprot.WriteFieldBegin("writeNewSeriesAsync", thrift.BOOL, 1); err != nil {
  9249  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:writeNewSeriesAsync: ", p), err)
  9250  	}
  9251  	if err := oprot.WriteBool(bool(p.WriteNewSeriesAsync)); err != nil {
  9252  		return thrift.PrependError(fmt.Sprintf("%T.writeNewSeriesAsync (1) field write error: ", p), err)
  9253  	}
  9254  	if err := oprot.WriteFieldEnd(); err != nil {
  9255  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:writeNewSeriesAsync: ", p), err)
  9256  	}
  9257  	return err
  9258  }
  9259  
  9260  func (p *NodeSetWriteNewSeriesAsyncRequest) String() string {
  9261  	if p == nil {
  9262  		return "<nil>"
  9263  	}
  9264  	return fmt.Sprintf("NodeSetWriteNewSeriesAsyncRequest(%+v)", *p)
  9265  }
  9266  
  9267  // Attributes:
  9268  //  - WriteNewSeriesBackoffDuration
  9269  //  - DurationType
  9270  type NodeWriteNewSeriesBackoffDurationResult_ struct {
  9271  	WriteNewSeriesBackoffDuration int64    `thrift:"writeNewSeriesBackoffDuration,1,required" db:"writeNewSeriesBackoffDuration" json:"writeNewSeriesBackoffDuration"`
  9272  	DurationType                  TimeType `thrift:"durationType,2,required" db:"durationType" json:"durationType"`
  9273  }
  9274  
  9275  func NewNodeWriteNewSeriesBackoffDurationResult_() *NodeWriteNewSeriesBackoffDurationResult_ {
  9276  	return &NodeWriteNewSeriesBackoffDurationResult_{}
  9277  }
  9278  
  9279  func (p *NodeWriteNewSeriesBackoffDurationResult_) GetWriteNewSeriesBackoffDuration() int64 {
  9280  	return p.WriteNewSeriesBackoffDuration
  9281  }
  9282  
  9283  func (p *NodeWriteNewSeriesBackoffDurationResult_) GetDurationType() TimeType {
  9284  	return p.DurationType
  9285  }
  9286  func (p *NodeWriteNewSeriesBackoffDurationResult_) Read(iprot thrift.TProtocol) error {
  9287  	if _, err := iprot.ReadStructBegin(); err != nil {
  9288  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  9289  	}
  9290  
  9291  	var issetWriteNewSeriesBackoffDuration bool = false
  9292  	var issetDurationType bool = false
  9293  
  9294  	for {
  9295  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  9296  		if err != nil {
  9297  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  9298  		}
  9299  		if fieldTypeId == thrift.STOP {
  9300  			break
  9301  		}
  9302  		switch fieldId {
  9303  		case 1:
  9304  			if err := p.ReadField1(iprot); err != nil {
  9305  				return err
  9306  			}
  9307  			issetWriteNewSeriesBackoffDuration = true
  9308  		case 2:
  9309  			if err := p.ReadField2(iprot); err != nil {
  9310  				return err
  9311  			}
  9312  			issetDurationType = true
  9313  		default:
  9314  			if err := iprot.Skip(fieldTypeId); err != nil {
  9315  				return err
  9316  			}
  9317  		}
  9318  		if err := iprot.ReadFieldEnd(); err != nil {
  9319  			return err
  9320  		}
  9321  	}
  9322  	if err := iprot.ReadStructEnd(); err != nil {
  9323  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  9324  	}
  9325  	if !issetWriteNewSeriesBackoffDuration {
  9326  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field WriteNewSeriesBackoffDuration is not set"))
  9327  	}
  9328  	if !issetDurationType {
  9329  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field DurationType is not set"))
  9330  	}
  9331  	return nil
  9332  }
  9333  
  9334  func (p *NodeWriteNewSeriesBackoffDurationResult_) ReadField1(iprot thrift.TProtocol) error {
  9335  	if v, err := iprot.ReadI64(); err != nil {
  9336  		return thrift.PrependError("error reading field 1: ", err)
  9337  	} else {
  9338  		p.WriteNewSeriesBackoffDuration = v
  9339  	}
  9340  	return nil
  9341  }
  9342  
  9343  func (p *NodeWriteNewSeriesBackoffDurationResult_) ReadField2(iprot thrift.TProtocol) error {
  9344  	if v, err := iprot.ReadI32(); err != nil {
  9345  		return thrift.PrependError("error reading field 2: ", err)
  9346  	} else {
  9347  		temp := TimeType(v)
  9348  		p.DurationType = temp
  9349  	}
  9350  	return nil
  9351  }
  9352  
  9353  func (p *NodeWriteNewSeriesBackoffDurationResult_) Write(oprot thrift.TProtocol) error {
  9354  	if err := oprot.WriteStructBegin("NodeWriteNewSeriesBackoffDurationResult"); err != nil {
  9355  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  9356  	}
  9357  	if p != nil {
  9358  		if err := p.writeField1(oprot); err != nil {
  9359  			return err
  9360  		}
  9361  		if err := p.writeField2(oprot); err != nil {
  9362  			return err
  9363  		}
  9364  	}
  9365  	if err := oprot.WriteFieldStop(); err != nil {
  9366  		return thrift.PrependError("write field stop error: ", err)
  9367  	}
  9368  	if err := oprot.WriteStructEnd(); err != nil {
  9369  		return thrift.PrependError("write struct stop error: ", err)
  9370  	}
  9371  	return nil
  9372  }
  9373  
  9374  func (p *NodeWriteNewSeriesBackoffDurationResult_) writeField1(oprot thrift.TProtocol) (err error) {
  9375  	if err := oprot.WriteFieldBegin("writeNewSeriesBackoffDuration", thrift.I64, 1); err != nil {
  9376  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:writeNewSeriesBackoffDuration: ", p), err)
  9377  	}
  9378  	if err := oprot.WriteI64(int64(p.WriteNewSeriesBackoffDuration)); err != nil {
  9379  		return thrift.PrependError(fmt.Sprintf("%T.writeNewSeriesBackoffDuration (1) field write error: ", p), err)
  9380  	}
  9381  	if err := oprot.WriteFieldEnd(); err != nil {
  9382  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:writeNewSeriesBackoffDuration: ", p), err)
  9383  	}
  9384  	return err
  9385  }
  9386  
  9387  func (p *NodeWriteNewSeriesBackoffDurationResult_) writeField2(oprot thrift.TProtocol) (err error) {
  9388  	if err := oprot.WriteFieldBegin("durationType", thrift.I32, 2); err != nil {
  9389  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:durationType: ", p), err)
  9390  	}
  9391  	if err := oprot.WriteI32(int32(p.DurationType)); err != nil {
  9392  		return thrift.PrependError(fmt.Sprintf("%T.durationType (2) field write error: ", p), err)
  9393  	}
  9394  	if err := oprot.WriteFieldEnd(); err != nil {
  9395  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:durationType: ", p), err)
  9396  	}
  9397  	return err
  9398  }
  9399  
  9400  func (p *NodeWriteNewSeriesBackoffDurationResult_) String() string {
  9401  	if p == nil {
  9402  		return "<nil>"
  9403  	}
  9404  	return fmt.Sprintf("NodeWriteNewSeriesBackoffDurationResult_(%+v)", *p)
  9405  }
  9406  
  9407  // Attributes:
  9408  //  - WriteNewSeriesBackoffDuration
  9409  //  - DurationType
  9410  type NodeSetWriteNewSeriesBackoffDurationRequest struct {
  9411  	WriteNewSeriesBackoffDuration int64    `thrift:"writeNewSeriesBackoffDuration,1,required" db:"writeNewSeriesBackoffDuration" json:"writeNewSeriesBackoffDuration"`
  9412  	DurationType                  TimeType `thrift:"durationType,2" db:"durationType" json:"durationType,omitempty"`
  9413  }
  9414  
  9415  func NewNodeSetWriteNewSeriesBackoffDurationRequest() *NodeSetWriteNewSeriesBackoffDurationRequest {
  9416  	return &NodeSetWriteNewSeriesBackoffDurationRequest{
  9417  		DurationType: 2,
  9418  	}
  9419  }
  9420  
  9421  func (p *NodeSetWriteNewSeriesBackoffDurationRequest) GetWriteNewSeriesBackoffDuration() int64 {
  9422  	return p.WriteNewSeriesBackoffDuration
  9423  }
  9424  
  9425  var NodeSetWriteNewSeriesBackoffDurationRequest_DurationType_DEFAULT TimeType = 2
  9426  
  9427  func (p *NodeSetWriteNewSeriesBackoffDurationRequest) GetDurationType() TimeType {
  9428  	return p.DurationType
  9429  }
  9430  func (p *NodeSetWriteNewSeriesBackoffDurationRequest) IsSetDurationType() bool {
  9431  	return p.DurationType != NodeSetWriteNewSeriesBackoffDurationRequest_DurationType_DEFAULT
  9432  }
  9433  
  9434  func (p *NodeSetWriteNewSeriesBackoffDurationRequest) Read(iprot thrift.TProtocol) error {
  9435  	if _, err := iprot.ReadStructBegin(); err != nil {
  9436  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  9437  	}
  9438  
  9439  	var issetWriteNewSeriesBackoffDuration bool = false
  9440  
  9441  	for {
  9442  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  9443  		if err != nil {
  9444  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  9445  		}
  9446  		if fieldTypeId == thrift.STOP {
  9447  			break
  9448  		}
  9449  		switch fieldId {
  9450  		case 1:
  9451  			if err := p.ReadField1(iprot); err != nil {
  9452  				return err
  9453  			}
  9454  			issetWriteNewSeriesBackoffDuration = true
  9455  		case 2:
  9456  			if err := p.ReadField2(iprot); err != nil {
  9457  				return err
  9458  			}
  9459  		default:
  9460  			if err := iprot.Skip(fieldTypeId); err != nil {
  9461  				return err
  9462  			}
  9463  		}
  9464  		if err := iprot.ReadFieldEnd(); err != nil {
  9465  			return err
  9466  		}
  9467  	}
  9468  	if err := iprot.ReadStructEnd(); err != nil {
  9469  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  9470  	}
  9471  	if !issetWriteNewSeriesBackoffDuration {
  9472  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field WriteNewSeriesBackoffDuration is not set"))
  9473  	}
  9474  	return nil
  9475  }
  9476  
  9477  func (p *NodeSetWriteNewSeriesBackoffDurationRequest) ReadField1(iprot thrift.TProtocol) error {
  9478  	if v, err := iprot.ReadI64(); err != nil {
  9479  		return thrift.PrependError("error reading field 1: ", err)
  9480  	} else {
  9481  		p.WriteNewSeriesBackoffDuration = v
  9482  	}
  9483  	return nil
  9484  }
  9485  
  9486  func (p *NodeSetWriteNewSeriesBackoffDurationRequest) ReadField2(iprot thrift.TProtocol) error {
  9487  	if v, err := iprot.ReadI32(); err != nil {
  9488  		return thrift.PrependError("error reading field 2: ", err)
  9489  	} else {
  9490  		temp := TimeType(v)
  9491  		p.DurationType = temp
  9492  	}
  9493  	return nil
  9494  }
  9495  
  9496  func (p *NodeSetWriteNewSeriesBackoffDurationRequest) Write(oprot thrift.TProtocol) error {
  9497  	if err := oprot.WriteStructBegin("NodeSetWriteNewSeriesBackoffDurationRequest"); err != nil {
  9498  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  9499  	}
  9500  	if p != nil {
  9501  		if err := p.writeField1(oprot); err != nil {
  9502  			return err
  9503  		}
  9504  		if err := p.writeField2(oprot); err != nil {
  9505  			return err
  9506  		}
  9507  	}
  9508  	if err := oprot.WriteFieldStop(); err != nil {
  9509  		return thrift.PrependError("write field stop error: ", err)
  9510  	}
  9511  	if err := oprot.WriteStructEnd(); err != nil {
  9512  		return thrift.PrependError("write struct stop error: ", err)
  9513  	}
  9514  	return nil
  9515  }
  9516  
  9517  func (p *NodeSetWriteNewSeriesBackoffDurationRequest) writeField1(oprot thrift.TProtocol) (err error) {
  9518  	if err := oprot.WriteFieldBegin("writeNewSeriesBackoffDuration", thrift.I64, 1); err != nil {
  9519  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:writeNewSeriesBackoffDuration: ", p), err)
  9520  	}
  9521  	if err := oprot.WriteI64(int64(p.WriteNewSeriesBackoffDuration)); err != nil {
  9522  		return thrift.PrependError(fmt.Sprintf("%T.writeNewSeriesBackoffDuration (1) field write error: ", p), err)
  9523  	}
  9524  	if err := oprot.WriteFieldEnd(); err != nil {
  9525  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:writeNewSeriesBackoffDuration: ", p), err)
  9526  	}
  9527  	return err
  9528  }
  9529  
  9530  func (p *NodeSetWriteNewSeriesBackoffDurationRequest) writeField2(oprot thrift.TProtocol) (err error) {
  9531  	if p.IsSetDurationType() {
  9532  		if err := oprot.WriteFieldBegin("durationType", thrift.I32, 2); err != nil {
  9533  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:durationType: ", p), err)
  9534  		}
  9535  		if err := oprot.WriteI32(int32(p.DurationType)); err != nil {
  9536  			return thrift.PrependError(fmt.Sprintf("%T.durationType (2) field write error: ", p), err)
  9537  		}
  9538  		if err := oprot.WriteFieldEnd(); err != nil {
  9539  			return thrift.PrependError(fmt.Sprintf("%T write field end error 2:durationType: ", p), err)
  9540  		}
  9541  	}
  9542  	return err
  9543  }
  9544  
  9545  func (p *NodeSetWriteNewSeriesBackoffDurationRequest) String() string {
  9546  	if p == nil {
  9547  		return "<nil>"
  9548  	}
  9549  	return fmt.Sprintf("NodeSetWriteNewSeriesBackoffDurationRequest(%+v)", *p)
  9550  }
  9551  
  9552  // Attributes:
  9553  //  - WriteNewSeriesLimitPerShardPerSecond
  9554  type NodeWriteNewSeriesLimitPerShardPerSecondResult_ struct {
  9555  	WriteNewSeriesLimitPerShardPerSecond int64 `thrift:"writeNewSeriesLimitPerShardPerSecond,1,required" db:"writeNewSeriesLimitPerShardPerSecond" json:"writeNewSeriesLimitPerShardPerSecond"`
  9556  }
  9557  
  9558  func NewNodeWriteNewSeriesLimitPerShardPerSecondResult_() *NodeWriteNewSeriesLimitPerShardPerSecondResult_ {
  9559  	return &NodeWriteNewSeriesLimitPerShardPerSecondResult_{}
  9560  }
  9561  
  9562  func (p *NodeWriteNewSeriesLimitPerShardPerSecondResult_) GetWriteNewSeriesLimitPerShardPerSecond() int64 {
  9563  	return p.WriteNewSeriesLimitPerShardPerSecond
  9564  }
  9565  func (p *NodeWriteNewSeriesLimitPerShardPerSecondResult_) Read(iprot thrift.TProtocol) error {
  9566  	if _, err := iprot.ReadStructBegin(); err != nil {
  9567  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  9568  	}
  9569  
  9570  	var issetWriteNewSeriesLimitPerShardPerSecond bool = false
  9571  
  9572  	for {
  9573  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  9574  		if err != nil {
  9575  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  9576  		}
  9577  		if fieldTypeId == thrift.STOP {
  9578  			break
  9579  		}
  9580  		switch fieldId {
  9581  		case 1:
  9582  			if err := p.ReadField1(iprot); err != nil {
  9583  				return err
  9584  			}
  9585  			issetWriteNewSeriesLimitPerShardPerSecond = true
  9586  		default:
  9587  			if err := iprot.Skip(fieldTypeId); err != nil {
  9588  				return err
  9589  			}
  9590  		}
  9591  		if err := iprot.ReadFieldEnd(); err != nil {
  9592  			return err
  9593  		}
  9594  	}
  9595  	if err := iprot.ReadStructEnd(); err != nil {
  9596  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  9597  	}
  9598  	if !issetWriteNewSeriesLimitPerShardPerSecond {
  9599  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field WriteNewSeriesLimitPerShardPerSecond is not set"))
  9600  	}
  9601  	return nil
  9602  }
  9603  
  9604  func (p *NodeWriteNewSeriesLimitPerShardPerSecondResult_) ReadField1(iprot thrift.TProtocol) error {
  9605  	if v, err := iprot.ReadI64(); err != nil {
  9606  		return thrift.PrependError("error reading field 1: ", err)
  9607  	} else {
  9608  		p.WriteNewSeriesLimitPerShardPerSecond = v
  9609  	}
  9610  	return nil
  9611  }
  9612  
  9613  func (p *NodeWriteNewSeriesLimitPerShardPerSecondResult_) Write(oprot thrift.TProtocol) error {
  9614  	if err := oprot.WriteStructBegin("NodeWriteNewSeriesLimitPerShardPerSecondResult"); err != nil {
  9615  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  9616  	}
  9617  	if p != nil {
  9618  		if err := p.writeField1(oprot); err != nil {
  9619  			return err
  9620  		}
  9621  	}
  9622  	if err := oprot.WriteFieldStop(); err != nil {
  9623  		return thrift.PrependError("write field stop error: ", err)
  9624  	}
  9625  	if err := oprot.WriteStructEnd(); err != nil {
  9626  		return thrift.PrependError("write struct stop error: ", err)
  9627  	}
  9628  	return nil
  9629  }
  9630  
  9631  func (p *NodeWriteNewSeriesLimitPerShardPerSecondResult_) writeField1(oprot thrift.TProtocol) (err error) {
  9632  	if err := oprot.WriteFieldBegin("writeNewSeriesLimitPerShardPerSecond", thrift.I64, 1); err != nil {
  9633  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:writeNewSeriesLimitPerShardPerSecond: ", p), err)
  9634  	}
  9635  	if err := oprot.WriteI64(int64(p.WriteNewSeriesLimitPerShardPerSecond)); err != nil {
  9636  		return thrift.PrependError(fmt.Sprintf("%T.writeNewSeriesLimitPerShardPerSecond (1) field write error: ", p), err)
  9637  	}
  9638  	if err := oprot.WriteFieldEnd(); err != nil {
  9639  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:writeNewSeriesLimitPerShardPerSecond: ", p), err)
  9640  	}
  9641  	return err
  9642  }
  9643  
  9644  func (p *NodeWriteNewSeriesLimitPerShardPerSecondResult_) String() string {
  9645  	if p == nil {
  9646  		return "<nil>"
  9647  	}
  9648  	return fmt.Sprintf("NodeWriteNewSeriesLimitPerShardPerSecondResult_(%+v)", *p)
  9649  }
  9650  
  9651  // Attributes:
  9652  //  - WriteNewSeriesLimitPerShardPerSecond
  9653  type NodeSetWriteNewSeriesLimitPerShardPerSecondRequest struct {
  9654  	WriteNewSeriesLimitPerShardPerSecond int64 `thrift:"writeNewSeriesLimitPerShardPerSecond,1,required" db:"writeNewSeriesLimitPerShardPerSecond" json:"writeNewSeriesLimitPerShardPerSecond"`
  9655  }
  9656  
  9657  func NewNodeSetWriteNewSeriesLimitPerShardPerSecondRequest() *NodeSetWriteNewSeriesLimitPerShardPerSecondRequest {
  9658  	return &NodeSetWriteNewSeriesLimitPerShardPerSecondRequest{}
  9659  }
  9660  
  9661  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondRequest) GetWriteNewSeriesLimitPerShardPerSecond() int64 {
  9662  	return p.WriteNewSeriesLimitPerShardPerSecond
  9663  }
  9664  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondRequest) Read(iprot thrift.TProtocol) error {
  9665  	if _, err := iprot.ReadStructBegin(); err != nil {
  9666  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  9667  	}
  9668  
  9669  	var issetWriteNewSeriesLimitPerShardPerSecond bool = false
  9670  
  9671  	for {
  9672  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  9673  		if err != nil {
  9674  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  9675  		}
  9676  		if fieldTypeId == thrift.STOP {
  9677  			break
  9678  		}
  9679  		switch fieldId {
  9680  		case 1:
  9681  			if err := p.ReadField1(iprot); err != nil {
  9682  				return err
  9683  			}
  9684  			issetWriteNewSeriesLimitPerShardPerSecond = true
  9685  		default:
  9686  			if err := iprot.Skip(fieldTypeId); err != nil {
  9687  				return err
  9688  			}
  9689  		}
  9690  		if err := iprot.ReadFieldEnd(); err != nil {
  9691  			return err
  9692  		}
  9693  	}
  9694  	if err := iprot.ReadStructEnd(); err != nil {
  9695  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  9696  	}
  9697  	if !issetWriteNewSeriesLimitPerShardPerSecond {
  9698  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field WriteNewSeriesLimitPerShardPerSecond is not set"))
  9699  	}
  9700  	return nil
  9701  }
  9702  
  9703  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondRequest) ReadField1(iprot thrift.TProtocol) error {
  9704  	if v, err := iprot.ReadI64(); err != nil {
  9705  		return thrift.PrependError("error reading field 1: ", err)
  9706  	} else {
  9707  		p.WriteNewSeriesLimitPerShardPerSecond = v
  9708  	}
  9709  	return nil
  9710  }
  9711  
  9712  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondRequest) Write(oprot thrift.TProtocol) error {
  9713  	if err := oprot.WriteStructBegin("NodeSetWriteNewSeriesLimitPerShardPerSecondRequest"); err != nil {
  9714  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  9715  	}
  9716  	if p != nil {
  9717  		if err := p.writeField1(oprot); err != nil {
  9718  			return err
  9719  		}
  9720  	}
  9721  	if err := oprot.WriteFieldStop(); err != nil {
  9722  		return thrift.PrependError("write field stop error: ", err)
  9723  	}
  9724  	if err := oprot.WriteStructEnd(); err != nil {
  9725  		return thrift.PrependError("write struct stop error: ", err)
  9726  	}
  9727  	return nil
  9728  }
  9729  
  9730  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondRequest) writeField1(oprot thrift.TProtocol) (err error) {
  9731  	if err := oprot.WriteFieldBegin("writeNewSeriesLimitPerShardPerSecond", thrift.I64, 1); err != nil {
  9732  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:writeNewSeriesLimitPerShardPerSecond: ", p), err)
  9733  	}
  9734  	if err := oprot.WriteI64(int64(p.WriteNewSeriesLimitPerShardPerSecond)); err != nil {
  9735  		return thrift.PrependError(fmt.Sprintf("%T.writeNewSeriesLimitPerShardPerSecond (1) field write error: ", p), err)
  9736  	}
  9737  	if err := oprot.WriteFieldEnd(); err != nil {
  9738  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:writeNewSeriesLimitPerShardPerSecond: ", p), err)
  9739  	}
  9740  	return err
  9741  }
  9742  
  9743  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondRequest) String() string {
  9744  	if p == nil {
  9745  		return "<nil>"
  9746  	}
  9747  	return fmt.Sprintf("NodeSetWriteNewSeriesLimitPerShardPerSecondRequest(%+v)", *p)
  9748  }
  9749  
  9750  // Attributes:
  9751  //  - Ok
  9752  //  - Status
  9753  type HealthResult_ struct {
  9754  	Ok     bool   `thrift:"ok,1,required" db:"ok" json:"ok"`
  9755  	Status string `thrift:"status,2,required" db:"status" json:"status"`
  9756  }
  9757  
  9758  func NewHealthResult_() *HealthResult_ {
  9759  	return &HealthResult_{}
  9760  }
  9761  
  9762  func (p *HealthResult_) GetOk() bool {
  9763  	return p.Ok
  9764  }
  9765  
  9766  func (p *HealthResult_) GetStatus() string {
  9767  	return p.Status
  9768  }
  9769  func (p *HealthResult_) Read(iprot thrift.TProtocol) error {
  9770  	if _, err := iprot.ReadStructBegin(); err != nil {
  9771  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
  9772  	}
  9773  
  9774  	var issetOk bool = false
  9775  	var issetStatus bool = false
  9776  
  9777  	for {
  9778  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
  9779  		if err != nil {
  9780  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
  9781  		}
  9782  		if fieldTypeId == thrift.STOP {
  9783  			break
  9784  		}
  9785  		switch fieldId {
  9786  		case 1:
  9787  			if err := p.ReadField1(iprot); err != nil {
  9788  				return err
  9789  			}
  9790  			issetOk = true
  9791  		case 2:
  9792  			if err := p.ReadField2(iprot); err != nil {
  9793  				return err
  9794  			}
  9795  			issetStatus = true
  9796  		default:
  9797  			if err := iprot.Skip(fieldTypeId); err != nil {
  9798  				return err
  9799  			}
  9800  		}
  9801  		if err := iprot.ReadFieldEnd(); err != nil {
  9802  			return err
  9803  		}
  9804  	}
  9805  	if err := iprot.ReadStructEnd(); err != nil {
  9806  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
  9807  	}
  9808  	if !issetOk {
  9809  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Ok is not set"))
  9810  	}
  9811  	if !issetStatus {
  9812  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Status is not set"))
  9813  	}
  9814  	return nil
  9815  }
  9816  
  9817  func (p *HealthResult_) ReadField1(iprot thrift.TProtocol) error {
  9818  	if v, err := iprot.ReadBool(); err != nil {
  9819  		return thrift.PrependError("error reading field 1: ", err)
  9820  	} else {
  9821  		p.Ok = v
  9822  	}
  9823  	return nil
  9824  }
  9825  
  9826  func (p *HealthResult_) ReadField2(iprot thrift.TProtocol) error {
  9827  	if v, err := iprot.ReadString(); err != nil {
  9828  		return thrift.PrependError("error reading field 2: ", err)
  9829  	} else {
  9830  		p.Status = v
  9831  	}
  9832  	return nil
  9833  }
  9834  
  9835  func (p *HealthResult_) Write(oprot thrift.TProtocol) error {
  9836  	if err := oprot.WriteStructBegin("HealthResult"); err != nil {
  9837  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
  9838  	}
  9839  	if p != nil {
  9840  		if err := p.writeField1(oprot); err != nil {
  9841  			return err
  9842  		}
  9843  		if err := p.writeField2(oprot); err != nil {
  9844  			return err
  9845  		}
  9846  	}
  9847  	if err := oprot.WriteFieldStop(); err != nil {
  9848  		return thrift.PrependError("write field stop error: ", err)
  9849  	}
  9850  	if err := oprot.WriteStructEnd(); err != nil {
  9851  		return thrift.PrependError("write struct stop error: ", err)
  9852  	}
  9853  	return nil
  9854  }
  9855  
  9856  func (p *HealthResult_) writeField1(oprot thrift.TProtocol) (err error) {
  9857  	if err := oprot.WriteFieldBegin("ok", thrift.BOOL, 1); err != nil {
  9858  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:ok: ", p), err)
  9859  	}
  9860  	if err := oprot.WriteBool(bool(p.Ok)); err != nil {
  9861  		return thrift.PrependError(fmt.Sprintf("%T.ok (1) field write error: ", p), err)
  9862  	}
  9863  	if err := oprot.WriteFieldEnd(); err != nil {
  9864  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:ok: ", p), err)
  9865  	}
  9866  	return err
  9867  }
  9868  
  9869  func (p *HealthResult_) writeField2(oprot thrift.TProtocol) (err error) {
  9870  	if err := oprot.WriteFieldBegin("status", thrift.STRING, 2); err != nil {
  9871  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:status: ", p), err)
  9872  	}
  9873  	if err := oprot.WriteString(string(p.Status)); err != nil {
  9874  		return thrift.PrependError(fmt.Sprintf("%T.status (2) field write error: ", p), err)
  9875  	}
  9876  	if err := oprot.WriteFieldEnd(); err != nil {
  9877  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:status: ", p), err)
  9878  	}
  9879  	return err
  9880  }
  9881  
  9882  func (p *HealthResult_) String() string {
  9883  	if p == nil {
  9884  		return "<nil>"
  9885  	}
  9886  	return fmt.Sprintf("HealthResult_(%+v)", *p)
  9887  }
  9888  
  9889  // Attributes:
  9890  //  - Query
  9891  //  - RangeStart
  9892  //  - RangeEnd
  9893  //  - NameSpace
  9894  //  - SeriesLimit
  9895  //  - TagNameFilter
  9896  //  - AggregateQueryType
  9897  //  - RangeType
  9898  //  - Source
  9899  //  - DocsLimit
  9900  //  - RequireExhaustive
  9901  //  - RequireNoWait
  9902  type AggregateQueryRawRequest struct {
  9903  	Query              []byte             `thrift:"query,1,required" db:"query" json:"query"`
  9904  	RangeStart         int64              `thrift:"rangeStart,2,required" db:"rangeStart" json:"rangeStart"`
  9905  	RangeEnd           int64              `thrift:"rangeEnd,3,required" db:"rangeEnd" json:"rangeEnd"`
  9906  	NameSpace          []byte             `thrift:"nameSpace,4,required" db:"nameSpace" json:"nameSpace"`
  9907  	SeriesLimit        *int64             `thrift:"seriesLimit,5" db:"seriesLimit" json:"seriesLimit,omitempty"`
  9908  	TagNameFilter      [][]byte           `thrift:"tagNameFilter,6" db:"tagNameFilter" json:"tagNameFilter,omitempty"`
  9909  	AggregateQueryType AggregateQueryType `thrift:"aggregateQueryType,7" db:"aggregateQueryType" json:"aggregateQueryType,omitempty"`
  9910  	RangeType          TimeType           `thrift:"rangeType,8" db:"rangeType" json:"rangeType,omitempty"`
  9911  	Source             []byte             `thrift:"source,9" db:"source" json:"source,omitempty"`
  9912  	DocsLimit          *int64             `thrift:"docsLimit,10" db:"docsLimit" json:"docsLimit,omitempty"`
  9913  	RequireExhaustive  *bool              `thrift:"requireExhaustive,11" db:"requireExhaustive" json:"requireExhaustive,omitempty"`
  9914  	RequireNoWait      *bool              `thrift:"requireNoWait,12" db:"requireNoWait" json:"requireNoWait,omitempty"`
  9915  }
  9916  
  9917  func NewAggregateQueryRawRequest() *AggregateQueryRawRequest {
  9918  	return &AggregateQueryRawRequest{
  9919  		AggregateQueryType: 1,
  9920  
  9921  		RangeType: 0,
  9922  	}
  9923  }
  9924  
  9925  func (p *AggregateQueryRawRequest) GetQuery() []byte {
  9926  	return p.Query
  9927  }
  9928  
  9929  func (p *AggregateQueryRawRequest) GetRangeStart() int64 {
  9930  	return p.RangeStart
  9931  }
  9932  
  9933  func (p *AggregateQueryRawRequest) GetRangeEnd() int64 {
  9934  	return p.RangeEnd
  9935  }
  9936  
  9937  func (p *AggregateQueryRawRequest) GetNameSpace() []byte {
  9938  	return p.NameSpace
  9939  }
  9940  
  9941  var AggregateQueryRawRequest_SeriesLimit_DEFAULT int64
  9942  
  9943  func (p *AggregateQueryRawRequest) GetSeriesLimit() int64 {
  9944  	if !p.IsSetSeriesLimit() {
  9945  		return AggregateQueryRawRequest_SeriesLimit_DEFAULT
  9946  	}
  9947  	return *p.SeriesLimit
  9948  }
  9949  
  9950  var AggregateQueryRawRequest_TagNameFilter_DEFAULT [][]byte
  9951  
  9952  func (p *AggregateQueryRawRequest) GetTagNameFilter() [][]byte {
  9953  	return p.TagNameFilter
  9954  }
  9955  
  9956  var AggregateQueryRawRequest_AggregateQueryType_DEFAULT AggregateQueryType = 1
  9957  
  9958  func (p *AggregateQueryRawRequest) GetAggregateQueryType() AggregateQueryType {
  9959  	return p.AggregateQueryType
  9960  }
  9961  
  9962  var AggregateQueryRawRequest_RangeType_DEFAULT TimeType = 0
  9963  
  9964  func (p *AggregateQueryRawRequest) GetRangeType() TimeType {
  9965  	return p.RangeType
  9966  }
  9967  
  9968  var AggregateQueryRawRequest_Source_DEFAULT []byte
  9969  
  9970  func (p *AggregateQueryRawRequest) GetSource() []byte {
  9971  	return p.Source
  9972  }
  9973  
  9974  var AggregateQueryRawRequest_DocsLimit_DEFAULT int64
  9975  
  9976  func (p *AggregateQueryRawRequest) GetDocsLimit() int64 {
  9977  	if !p.IsSetDocsLimit() {
  9978  		return AggregateQueryRawRequest_DocsLimit_DEFAULT
  9979  	}
  9980  	return *p.DocsLimit
  9981  }
  9982  
  9983  var AggregateQueryRawRequest_RequireExhaustive_DEFAULT bool
  9984  
  9985  func (p *AggregateQueryRawRequest) GetRequireExhaustive() bool {
  9986  	if !p.IsSetRequireExhaustive() {
  9987  		return AggregateQueryRawRequest_RequireExhaustive_DEFAULT
  9988  	}
  9989  	return *p.RequireExhaustive
  9990  }
  9991  
  9992  var AggregateQueryRawRequest_RequireNoWait_DEFAULT bool
  9993  
  9994  func (p *AggregateQueryRawRequest) GetRequireNoWait() bool {
  9995  	if !p.IsSetRequireNoWait() {
  9996  		return AggregateQueryRawRequest_RequireNoWait_DEFAULT
  9997  	}
  9998  	return *p.RequireNoWait
  9999  }
 10000  func (p *AggregateQueryRawRequest) IsSetSeriesLimit() bool {
 10001  	return p.SeriesLimit != nil
 10002  }
 10003  
 10004  func (p *AggregateQueryRawRequest) IsSetTagNameFilter() bool {
 10005  	return p.TagNameFilter != nil
 10006  }
 10007  
 10008  func (p *AggregateQueryRawRequest) IsSetAggregateQueryType() bool {
 10009  	return p.AggregateQueryType != AggregateQueryRawRequest_AggregateQueryType_DEFAULT
 10010  }
 10011  
 10012  func (p *AggregateQueryRawRequest) IsSetRangeType() bool {
 10013  	return p.RangeType != AggregateQueryRawRequest_RangeType_DEFAULT
 10014  }
 10015  
 10016  func (p *AggregateQueryRawRequest) IsSetSource() bool {
 10017  	return p.Source != nil
 10018  }
 10019  
 10020  func (p *AggregateQueryRawRequest) IsSetDocsLimit() bool {
 10021  	return p.DocsLimit != nil
 10022  }
 10023  
 10024  func (p *AggregateQueryRawRequest) IsSetRequireExhaustive() bool {
 10025  	return p.RequireExhaustive != nil
 10026  }
 10027  
 10028  func (p *AggregateQueryRawRequest) IsSetRequireNoWait() bool {
 10029  	return p.RequireNoWait != nil
 10030  }
 10031  
 10032  func (p *AggregateQueryRawRequest) Read(iprot thrift.TProtocol) error {
 10033  	if _, err := iprot.ReadStructBegin(); err != nil {
 10034  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 10035  	}
 10036  
 10037  	var issetQuery bool = false
 10038  	var issetRangeStart bool = false
 10039  	var issetRangeEnd bool = false
 10040  	var issetNameSpace bool = false
 10041  
 10042  	for {
 10043  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 10044  		if err != nil {
 10045  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 10046  		}
 10047  		if fieldTypeId == thrift.STOP {
 10048  			break
 10049  		}
 10050  		switch fieldId {
 10051  		case 1:
 10052  			if err := p.ReadField1(iprot); err != nil {
 10053  				return err
 10054  			}
 10055  			issetQuery = true
 10056  		case 2:
 10057  			if err := p.ReadField2(iprot); err != nil {
 10058  				return err
 10059  			}
 10060  			issetRangeStart = true
 10061  		case 3:
 10062  			if err := p.ReadField3(iprot); err != nil {
 10063  				return err
 10064  			}
 10065  			issetRangeEnd = true
 10066  		case 4:
 10067  			if err := p.ReadField4(iprot); err != nil {
 10068  				return err
 10069  			}
 10070  			issetNameSpace = true
 10071  		case 5:
 10072  			if err := p.ReadField5(iprot); err != nil {
 10073  				return err
 10074  			}
 10075  		case 6:
 10076  			if err := p.ReadField6(iprot); err != nil {
 10077  				return err
 10078  			}
 10079  		case 7:
 10080  			if err := p.ReadField7(iprot); err != nil {
 10081  				return err
 10082  			}
 10083  		case 8:
 10084  			if err := p.ReadField8(iprot); err != nil {
 10085  				return err
 10086  			}
 10087  		case 9:
 10088  			if err := p.ReadField9(iprot); err != nil {
 10089  				return err
 10090  			}
 10091  		case 10:
 10092  			if err := p.ReadField10(iprot); err != nil {
 10093  				return err
 10094  			}
 10095  		case 11:
 10096  			if err := p.ReadField11(iprot); err != nil {
 10097  				return err
 10098  			}
 10099  		case 12:
 10100  			if err := p.ReadField12(iprot); err != nil {
 10101  				return err
 10102  			}
 10103  		default:
 10104  			if err := iprot.Skip(fieldTypeId); err != nil {
 10105  				return err
 10106  			}
 10107  		}
 10108  		if err := iprot.ReadFieldEnd(); err != nil {
 10109  			return err
 10110  		}
 10111  	}
 10112  	if err := iprot.ReadStructEnd(); err != nil {
 10113  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 10114  	}
 10115  	if !issetQuery {
 10116  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Query is not set"))
 10117  	}
 10118  	if !issetRangeStart {
 10119  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeStart is not set"))
 10120  	}
 10121  	if !issetRangeEnd {
 10122  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeEnd is not set"))
 10123  	}
 10124  	if !issetNameSpace {
 10125  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
 10126  	}
 10127  	return nil
 10128  }
 10129  
 10130  func (p *AggregateQueryRawRequest) ReadField1(iprot thrift.TProtocol) error {
 10131  	if v, err := iprot.ReadBinary(); err != nil {
 10132  		return thrift.PrependError("error reading field 1: ", err)
 10133  	} else {
 10134  		p.Query = v
 10135  	}
 10136  	return nil
 10137  }
 10138  
 10139  func (p *AggregateQueryRawRequest) ReadField2(iprot thrift.TProtocol) error {
 10140  	if v, err := iprot.ReadI64(); err != nil {
 10141  		return thrift.PrependError("error reading field 2: ", err)
 10142  	} else {
 10143  		p.RangeStart = v
 10144  	}
 10145  	return nil
 10146  }
 10147  
 10148  func (p *AggregateQueryRawRequest) ReadField3(iprot thrift.TProtocol) error {
 10149  	if v, err := iprot.ReadI64(); err != nil {
 10150  		return thrift.PrependError("error reading field 3: ", err)
 10151  	} else {
 10152  		p.RangeEnd = v
 10153  	}
 10154  	return nil
 10155  }
 10156  
 10157  func (p *AggregateQueryRawRequest) ReadField4(iprot thrift.TProtocol) error {
 10158  	if v, err := iprot.ReadBinary(); err != nil {
 10159  		return thrift.PrependError("error reading field 4: ", err)
 10160  	} else {
 10161  		p.NameSpace = v
 10162  	}
 10163  	return nil
 10164  }
 10165  
 10166  func (p *AggregateQueryRawRequest) ReadField5(iprot thrift.TProtocol) error {
 10167  	if v, err := iprot.ReadI64(); err != nil {
 10168  		return thrift.PrependError("error reading field 5: ", err)
 10169  	} else {
 10170  		p.SeriesLimit = &v
 10171  	}
 10172  	return nil
 10173  }
 10174  
 10175  func (p *AggregateQueryRawRequest) ReadField6(iprot thrift.TProtocol) error {
 10176  	_, size, err := iprot.ReadListBegin()
 10177  	if err != nil {
 10178  		return thrift.PrependError("error reading list begin: ", err)
 10179  	}
 10180  	tSlice := make([][]byte, 0, size)
 10181  	p.TagNameFilter = tSlice
 10182  	for i := 0; i < size; i++ {
 10183  		var _elem24 []byte
 10184  		if v, err := iprot.ReadBinary(); err != nil {
 10185  			return thrift.PrependError("error reading field 0: ", err)
 10186  		} else {
 10187  			_elem24 = v
 10188  		}
 10189  		p.TagNameFilter = append(p.TagNameFilter, _elem24)
 10190  	}
 10191  	if err := iprot.ReadListEnd(); err != nil {
 10192  		return thrift.PrependError("error reading list end: ", err)
 10193  	}
 10194  	return nil
 10195  }
 10196  
 10197  func (p *AggregateQueryRawRequest) ReadField7(iprot thrift.TProtocol) error {
 10198  	if v, err := iprot.ReadI32(); err != nil {
 10199  		return thrift.PrependError("error reading field 7: ", err)
 10200  	} else {
 10201  		temp := AggregateQueryType(v)
 10202  		p.AggregateQueryType = temp
 10203  	}
 10204  	return nil
 10205  }
 10206  
 10207  func (p *AggregateQueryRawRequest) ReadField8(iprot thrift.TProtocol) error {
 10208  	if v, err := iprot.ReadI32(); err != nil {
 10209  		return thrift.PrependError("error reading field 8: ", err)
 10210  	} else {
 10211  		temp := TimeType(v)
 10212  		p.RangeType = temp
 10213  	}
 10214  	return nil
 10215  }
 10216  
 10217  func (p *AggregateQueryRawRequest) ReadField9(iprot thrift.TProtocol) error {
 10218  	if v, err := iprot.ReadBinary(); err != nil {
 10219  		return thrift.PrependError("error reading field 9: ", err)
 10220  	} else {
 10221  		p.Source = v
 10222  	}
 10223  	return nil
 10224  }
 10225  
 10226  func (p *AggregateQueryRawRequest) ReadField10(iprot thrift.TProtocol) error {
 10227  	if v, err := iprot.ReadI64(); err != nil {
 10228  		return thrift.PrependError("error reading field 10: ", err)
 10229  	} else {
 10230  		p.DocsLimit = &v
 10231  	}
 10232  	return nil
 10233  }
 10234  
 10235  func (p *AggregateQueryRawRequest) ReadField11(iprot thrift.TProtocol) error {
 10236  	if v, err := iprot.ReadBool(); err != nil {
 10237  		return thrift.PrependError("error reading field 11: ", err)
 10238  	} else {
 10239  		p.RequireExhaustive = &v
 10240  	}
 10241  	return nil
 10242  }
 10243  
 10244  func (p *AggregateQueryRawRequest) ReadField12(iprot thrift.TProtocol) error {
 10245  	if v, err := iprot.ReadBool(); err != nil {
 10246  		return thrift.PrependError("error reading field 12: ", err)
 10247  	} else {
 10248  		p.RequireNoWait = &v
 10249  	}
 10250  	return nil
 10251  }
 10252  
 10253  func (p *AggregateQueryRawRequest) Write(oprot thrift.TProtocol) error {
 10254  	if err := oprot.WriteStructBegin("AggregateQueryRawRequest"); err != nil {
 10255  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 10256  	}
 10257  	if p != nil {
 10258  		if err := p.writeField1(oprot); err != nil {
 10259  			return err
 10260  		}
 10261  		if err := p.writeField2(oprot); err != nil {
 10262  			return err
 10263  		}
 10264  		if err := p.writeField3(oprot); err != nil {
 10265  			return err
 10266  		}
 10267  		if err := p.writeField4(oprot); err != nil {
 10268  			return err
 10269  		}
 10270  		if err := p.writeField5(oprot); err != nil {
 10271  			return err
 10272  		}
 10273  		if err := p.writeField6(oprot); err != nil {
 10274  			return err
 10275  		}
 10276  		if err := p.writeField7(oprot); err != nil {
 10277  			return err
 10278  		}
 10279  		if err := p.writeField8(oprot); err != nil {
 10280  			return err
 10281  		}
 10282  		if err := p.writeField9(oprot); err != nil {
 10283  			return err
 10284  		}
 10285  		if err := p.writeField10(oprot); err != nil {
 10286  			return err
 10287  		}
 10288  		if err := p.writeField11(oprot); err != nil {
 10289  			return err
 10290  		}
 10291  		if err := p.writeField12(oprot); err != nil {
 10292  			return err
 10293  		}
 10294  	}
 10295  	if err := oprot.WriteFieldStop(); err != nil {
 10296  		return thrift.PrependError("write field stop error: ", err)
 10297  	}
 10298  	if err := oprot.WriteStructEnd(); err != nil {
 10299  		return thrift.PrependError("write struct stop error: ", err)
 10300  	}
 10301  	return nil
 10302  }
 10303  
 10304  func (p *AggregateQueryRawRequest) writeField1(oprot thrift.TProtocol) (err error) {
 10305  	if err := oprot.WriteFieldBegin("query", thrift.STRING, 1); err != nil {
 10306  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:query: ", p), err)
 10307  	}
 10308  	if err := oprot.WriteBinary(p.Query); err != nil {
 10309  		return thrift.PrependError(fmt.Sprintf("%T.query (1) field write error: ", p), err)
 10310  	}
 10311  	if err := oprot.WriteFieldEnd(); err != nil {
 10312  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:query: ", p), err)
 10313  	}
 10314  	return err
 10315  }
 10316  
 10317  func (p *AggregateQueryRawRequest) writeField2(oprot thrift.TProtocol) (err error) {
 10318  	if err := oprot.WriteFieldBegin("rangeStart", thrift.I64, 2); err != nil {
 10319  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:rangeStart: ", p), err)
 10320  	}
 10321  	if err := oprot.WriteI64(int64(p.RangeStart)); err != nil {
 10322  		return thrift.PrependError(fmt.Sprintf("%T.rangeStart (2) field write error: ", p), err)
 10323  	}
 10324  	if err := oprot.WriteFieldEnd(); err != nil {
 10325  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:rangeStart: ", p), err)
 10326  	}
 10327  	return err
 10328  }
 10329  
 10330  func (p *AggregateQueryRawRequest) writeField3(oprot thrift.TProtocol) (err error) {
 10331  	if err := oprot.WriteFieldBegin("rangeEnd", thrift.I64, 3); err != nil {
 10332  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:rangeEnd: ", p), err)
 10333  	}
 10334  	if err := oprot.WriteI64(int64(p.RangeEnd)); err != nil {
 10335  		return thrift.PrependError(fmt.Sprintf("%T.rangeEnd (3) field write error: ", p), err)
 10336  	}
 10337  	if err := oprot.WriteFieldEnd(); err != nil {
 10338  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:rangeEnd: ", p), err)
 10339  	}
 10340  	return err
 10341  }
 10342  
 10343  func (p *AggregateQueryRawRequest) writeField4(oprot thrift.TProtocol) (err error) {
 10344  	if err := oprot.WriteFieldBegin("nameSpace", thrift.STRING, 4); err != nil {
 10345  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:nameSpace: ", p), err)
 10346  	}
 10347  	if err := oprot.WriteBinary(p.NameSpace); err != nil {
 10348  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (4) field write error: ", p), err)
 10349  	}
 10350  	if err := oprot.WriteFieldEnd(); err != nil {
 10351  		return thrift.PrependError(fmt.Sprintf("%T write field end error 4:nameSpace: ", p), err)
 10352  	}
 10353  	return err
 10354  }
 10355  
 10356  func (p *AggregateQueryRawRequest) writeField5(oprot thrift.TProtocol) (err error) {
 10357  	if p.IsSetSeriesLimit() {
 10358  		if err := oprot.WriteFieldBegin("seriesLimit", thrift.I64, 5); err != nil {
 10359  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:seriesLimit: ", p), err)
 10360  		}
 10361  		if err := oprot.WriteI64(int64(*p.SeriesLimit)); err != nil {
 10362  			return thrift.PrependError(fmt.Sprintf("%T.seriesLimit (5) field write error: ", p), err)
 10363  		}
 10364  		if err := oprot.WriteFieldEnd(); err != nil {
 10365  			return thrift.PrependError(fmt.Sprintf("%T write field end error 5:seriesLimit: ", p), err)
 10366  		}
 10367  	}
 10368  	return err
 10369  }
 10370  
 10371  func (p *AggregateQueryRawRequest) writeField6(oprot thrift.TProtocol) (err error) {
 10372  	if p.IsSetTagNameFilter() {
 10373  		if err := oprot.WriteFieldBegin("tagNameFilter", thrift.LIST, 6); err != nil {
 10374  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:tagNameFilter: ", p), err)
 10375  		}
 10376  		if err := oprot.WriteListBegin(thrift.STRING, len(p.TagNameFilter)); err != nil {
 10377  			return thrift.PrependError("error writing list begin: ", err)
 10378  		}
 10379  		for _, v := range p.TagNameFilter {
 10380  			if err := oprot.WriteBinary(v); err != nil {
 10381  				return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err)
 10382  			}
 10383  		}
 10384  		if err := oprot.WriteListEnd(); err != nil {
 10385  			return thrift.PrependError("error writing list end: ", err)
 10386  		}
 10387  		if err := oprot.WriteFieldEnd(); err != nil {
 10388  			return thrift.PrependError(fmt.Sprintf("%T write field end error 6:tagNameFilter: ", p), err)
 10389  		}
 10390  	}
 10391  	return err
 10392  }
 10393  
 10394  func (p *AggregateQueryRawRequest) writeField7(oprot thrift.TProtocol) (err error) {
 10395  	if p.IsSetAggregateQueryType() {
 10396  		if err := oprot.WriteFieldBegin("aggregateQueryType", thrift.I32, 7); err != nil {
 10397  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 7:aggregateQueryType: ", p), err)
 10398  		}
 10399  		if err := oprot.WriteI32(int32(p.AggregateQueryType)); err != nil {
 10400  			return thrift.PrependError(fmt.Sprintf("%T.aggregateQueryType (7) field write error: ", p), err)
 10401  		}
 10402  		if err := oprot.WriteFieldEnd(); err != nil {
 10403  			return thrift.PrependError(fmt.Sprintf("%T write field end error 7:aggregateQueryType: ", p), err)
 10404  		}
 10405  	}
 10406  	return err
 10407  }
 10408  
 10409  func (p *AggregateQueryRawRequest) writeField8(oprot thrift.TProtocol) (err error) {
 10410  	if p.IsSetRangeType() {
 10411  		if err := oprot.WriteFieldBegin("rangeType", thrift.I32, 8); err != nil {
 10412  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 8:rangeType: ", p), err)
 10413  		}
 10414  		if err := oprot.WriteI32(int32(p.RangeType)); err != nil {
 10415  			return thrift.PrependError(fmt.Sprintf("%T.rangeType (8) field write error: ", p), err)
 10416  		}
 10417  		if err := oprot.WriteFieldEnd(); err != nil {
 10418  			return thrift.PrependError(fmt.Sprintf("%T write field end error 8:rangeType: ", p), err)
 10419  		}
 10420  	}
 10421  	return err
 10422  }
 10423  
 10424  func (p *AggregateQueryRawRequest) writeField9(oprot thrift.TProtocol) (err error) {
 10425  	if p.IsSetSource() {
 10426  		if err := oprot.WriteFieldBegin("source", thrift.STRING, 9); err != nil {
 10427  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 9:source: ", p), err)
 10428  		}
 10429  		if err := oprot.WriteBinary(p.Source); err != nil {
 10430  			return thrift.PrependError(fmt.Sprintf("%T.source (9) field write error: ", p), err)
 10431  		}
 10432  		if err := oprot.WriteFieldEnd(); err != nil {
 10433  			return thrift.PrependError(fmt.Sprintf("%T write field end error 9:source: ", p), err)
 10434  		}
 10435  	}
 10436  	return err
 10437  }
 10438  
 10439  func (p *AggregateQueryRawRequest) writeField10(oprot thrift.TProtocol) (err error) {
 10440  	if p.IsSetDocsLimit() {
 10441  		if err := oprot.WriteFieldBegin("docsLimit", thrift.I64, 10); err != nil {
 10442  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 10:docsLimit: ", p), err)
 10443  		}
 10444  		if err := oprot.WriteI64(int64(*p.DocsLimit)); err != nil {
 10445  			return thrift.PrependError(fmt.Sprintf("%T.docsLimit (10) field write error: ", p), err)
 10446  		}
 10447  		if err := oprot.WriteFieldEnd(); err != nil {
 10448  			return thrift.PrependError(fmt.Sprintf("%T write field end error 10:docsLimit: ", p), err)
 10449  		}
 10450  	}
 10451  	return err
 10452  }
 10453  
 10454  func (p *AggregateQueryRawRequest) writeField11(oprot thrift.TProtocol) (err error) {
 10455  	if p.IsSetRequireExhaustive() {
 10456  		if err := oprot.WriteFieldBegin("requireExhaustive", thrift.BOOL, 11); err != nil {
 10457  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 11:requireExhaustive: ", p), err)
 10458  		}
 10459  		if err := oprot.WriteBool(bool(*p.RequireExhaustive)); err != nil {
 10460  			return thrift.PrependError(fmt.Sprintf("%T.requireExhaustive (11) field write error: ", p), err)
 10461  		}
 10462  		if err := oprot.WriteFieldEnd(); err != nil {
 10463  			return thrift.PrependError(fmt.Sprintf("%T write field end error 11:requireExhaustive: ", p), err)
 10464  		}
 10465  	}
 10466  	return err
 10467  }
 10468  
 10469  func (p *AggregateQueryRawRequest) writeField12(oprot thrift.TProtocol) (err error) {
 10470  	if p.IsSetRequireNoWait() {
 10471  		if err := oprot.WriteFieldBegin("requireNoWait", thrift.BOOL, 12); err != nil {
 10472  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 12:requireNoWait: ", p), err)
 10473  		}
 10474  		if err := oprot.WriteBool(bool(*p.RequireNoWait)); err != nil {
 10475  			return thrift.PrependError(fmt.Sprintf("%T.requireNoWait (12) field write error: ", p), err)
 10476  		}
 10477  		if err := oprot.WriteFieldEnd(); err != nil {
 10478  			return thrift.PrependError(fmt.Sprintf("%T write field end error 12:requireNoWait: ", p), err)
 10479  		}
 10480  	}
 10481  	return err
 10482  }
 10483  
 10484  func (p *AggregateQueryRawRequest) String() string {
 10485  	if p == nil {
 10486  		return "<nil>"
 10487  	}
 10488  	return fmt.Sprintf("AggregateQueryRawRequest(%+v)", *p)
 10489  }
 10490  
 10491  // Attributes:
 10492  //  - Results
 10493  //  - Exhaustive
 10494  //  - WaitedIndex
 10495  type AggregateQueryRawResult_ struct {
 10496  	Results     []*AggregateQueryRawResultTagNameElement `thrift:"results,1,required" db:"results" json:"results"`
 10497  	Exhaustive  bool                                     `thrift:"exhaustive,2,required" db:"exhaustive" json:"exhaustive"`
 10498  	WaitedIndex *int64                                   `thrift:"waitedIndex,3" db:"waitedIndex" json:"waitedIndex,omitempty"`
 10499  }
 10500  
 10501  func NewAggregateQueryRawResult_() *AggregateQueryRawResult_ {
 10502  	return &AggregateQueryRawResult_{}
 10503  }
 10504  
 10505  func (p *AggregateQueryRawResult_) GetResults() []*AggregateQueryRawResultTagNameElement {
 10506  	return p.Results
 10507  }
 10508  
 10509  func (p *AggregateQueryRawResult_) GetExhaustive() bool {
 10510  	return p.Exhaustive
 10511  }
 10512  
 10513  var AggregateQueryRawResult__WaitedIndex_DEFAULT int64
 10514  
 10515  func (p *AggregateQueryRawResult_) GetWaitedIndex() int64 {
 10516  	if !p.IsSetWaitedIndex() {
 10517  		return AggregateQueryRawResult__WaitedIndex_DEFAULT
 10518  	}
 10519  	return *p.WaitedIndex
 10520  }
 10521  func (p *AggregateQueryRawResult_) IsSetWaitedIndex() bool {
 10522  	return p.WaitedIndex != nil
 10523  }
 10524  
 10525  func (p *AggregateQueryRawResult_) Read(iprot thrift.TProtocol) error {
 10526  	if _, err := iprot.ReadStructBegin(); err != nil {
 10527  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 10528  	}
 10529  
 10530  	var issetResults bool = false
 10531  	var issetExhaustive bool = false
 10532  
 10533  	for {
 10534  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 10535  		if err != nil {
 10536  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 10537  		}
 10538  		if fieldTypeId == thrift.STOP {
 10539  			break
 10540  		}
 10541  		switch fieldId {
 10542  		case 1:
 10543  			if err := p.ReadField1(iprot); err != nil {
 10544  				return err
 10545  			}
 10546  			issetResults = true
 10547  		case 2:
 10548  			if err := p.ReadField2(iprot); err != nil {
 10549  				return err
 10550  			}
 10551  			issetExhaustive = true
 10552  		case 3:
 10553  			if err := p.ReadField3(iprot); err != nil {
 10554  				return err
 10555  			}
 10556  		default:
 10557  			if err := iprot.Skip(fieldTypeId); err != nil {
 10558  				return err
 10559  			}
 10560  		}
 10561  		if err := iprot.ReadFieldEnd(); err != nil {
 10562  			return err
 10563  		}
 10564  	}
 10565  	if err := iprot.ReadStructEnd(); err != nil {
 10566  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 10567  	}
 10568  	if !issetResults {
 10569  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Results is not set"))
 10570  	}
 10571  	if !issetExhaustive {
 10572  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Exhaustive is not set"))
 10573  	}
 10574  	return nil
 10575  }
 10576  
 10577  func (p *AggregateQueryRawResult_) ReadField1(iprot thrift.TProtocol) error {
 10578  	_, size, err := iprot.ReadListBegin()
 10579  	if err != nil {
 10580  		return thrift.PrependError("error reading list begin: ", err)
 10581  	}
 10582  	tSlice := make([]*AggregateQueryRawResultTagNameElement, 0, size)
 10583  	p.Results = tSlice
 10584  	for i := 0; i < size; i++ {
 10585  		_elem25 := &AggregateQueryRawResultTagNameElement{}
 10586  		if err := _elem25.Read(iprot); err != nil {
 10587  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem25), err)
 10588  		}
 10589  		p.Results = append(p.Results, _elem25)
 10590  	}
 10591  	if err := iprot.ReadListEnd(); err != nil {
 10592  		return thrift.PrependError("error reading list end: ", err)
 10593  	}
 10594  	return nil
 10595  }
 10596  
 10597  func (p *AggregateQueryRawResult_) ReadField2(iprot thrift.TProtocol) error {
 10598  	if v, err := iprot.ReadBool(); err != nil {
 10599  		return thrift.PrependError("error reading field 2: ", err)
 10600  	} else {
 10601  		p.Exhaustive = v
 10602  	}
 10603  	return nil
 10604  }
 10605  
 10606  func (p *AggregateQueryRawResult_) ReadField3(iprot thrift.TProtocol) error {
 10607  	if v, err := iprot.ReadI64(); err != nil {
 10608  		return thrift.PrependError("error reading field 3: ", err)
 10609  	} else {
 10610  		p.WaitedIndex = &v
 10611  	}
 10612  	return nil
 10613  }
 10614  
 10615  func (p *AggregateQueryRawResult_) Write(oprot thrift.TProtocol) error {
 10616  	if err := oprot.WriteStructBegin("AggregateQueryRawResult"); err != nil {
 10617  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 10618  	}
 10619  	if p != nil {
 10620  		if err := p.writeField1(oprot); err != nil {
 10621  			return err
 10622  		}
 10623  		if err := p.writeField2(oprot); err != nil {
 10624  			return err
 10625  		}
 10626  		if err := p.writeField3(oprot); err != nil {
 10627  			return err
 10628  		}
 10629  	}
 10630  	if err := oprot.WriteFieldStop(); err != nil {
 10631  		return thrift.PrependError("write field stop error: ", err)
 10632  	}
 10633  	if err := oprot.WriteStructEnd(); err != nil {
 10634  		return thrift.PrependError("write struct stop error: ", err)
 10635  	}
 10636  	return nil
 10637  }
 10638  
 10639  func (p *AggregateQueryRawResult_) writeField1(oprot thrift.TProtocol) (err error) {
 10640  	if err := oprot.WriteFieldBegin("results", thrift.LIST, 1); err != nil {
 10641  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:results: ", p), err)
 10642  	}
 10643  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Results)); err != nil {
 10644  		return thrift.PrependError("error writing list begin: ", err)
 10645  	}
 10646  	for _, v := range p.Results {
 10647  		if err := v.Write(oprot); err != nil {
 10648  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
 10649  		}
 10650  	}
 10651  	if err := oprot.WriteListEnd(); err != nil {
 10652  		return thrift.PrependError("error writing list end: ", err)
 10653  	}
 10654  	if err := oprot.WriteFieldEnd(); err != nil {
 10655  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:results: ", p), err)
 10656  	}
 10657  	return err
 10658  }
 10659  
 10660  func (p *AggregateQueryRawResult_) writeField2(oprot thrift.TProtocol) (err error) {
 10661  	if err := oprot.WriteFieldBegin("exhaustive", thrift.BOOL, 2); err != nil {
 10662  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:exhaustive: ", p), err)
 10663  	}
 10664  	if err := oprot.WriteBool(bool(p.Exhaustive)); err != nil {
 10665  		return thrift.PrependError(fmt.Sprintf("%T.exhaustive (2) field write error: ", p), err)
 10666  	}
 10667  	if err := oprot.WriteFieldEnd(); err != nil {
 10668  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:exhaustive: ", p), err)
 10669  	}
 10670  	return err
 10671  }
 10672  
 10673  func (p *AggregateQueryRawResult_) writeField3(oprot thrift.TProtocol) (err error) {
 10674  	if p.IsSetWaitedIndex() {
 10675  		if err := oprot.WriteFieldBegin("waitedIndex", thrift.I64, 3); err != nil {
 10676  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:waitedIndex: ", p), err)
 10677  		}
 10678  		if err := oprot.WriteI64(int64(*p.WaitedIndex)); err != nil {
 10679  			return thrift.PrependError(fmt.Sprintf("%T.waitedIndex (3) field write error: ", p), err)
 10680  		}
 10681  		if err := oprot.WriteFieldEnd(); err != nil {
 10682  			return thrift.PrependError(fmt.Sprintf("%T write field end error 3:waitedIndex: ", p), err)
 10683  		}
 10684  	}
 10685  	return err
 10686  }
 10687  
 10688  func (p *AggregateQueryRawResult_) String() string {
 10689  	if p == nil {
 10690  		return "<nil>"
 10691  	}
 10692  	return fmt.Sprintf("AggregateQueryRawResult_(%+v)", *p)
 10693  }
 10694  
 10695  // Attributes:
 10696  //  - TagName
 10697  //  - TagValues
 10698  type AggregateQueryRawResultTagNameElement struct {
 10699  	TagName   []byte                                    `thrift:"tagName,1,required" db:"tagName" json:"tagName"`
 10700  	TagValues []*AggregateQueryRawResultTagValueElement `thrift:"tagValues,2" db:"tagValues" json:"tagValues,omitempty"`
 10701  }
 10702  
 10703  func NewAggregateQueryRawResultTagNameElement() *AggregateQueryRawResultTagNameElement {
 10704  	return &AggregateQueryRawResultTagNameElement{}
 10705  }
 10706  
 10707  func (p *AggregateQueryRawResultTagNameElement) GetTagName() []byte {
 10708  	return p.TagName
 10709  }
 10710  
 10711  var AggregateQueryRawResultTagNameElement_TagValues_DEFAULT []*AggregateQueryRawResultTagValueElement
 10712  
 10713  func (p *AggregateQueryRawResultTagNameElement) GetTagValues() []*AggregateQueryRawResultTagValueElement {
 10714  	return p.TagValues
 10715  }
 10716  func (p *AggregateQueryRawResultTagNameElement) IsSetTagValues() bool {
 10717  	return p.TagValues != nil
 10718  }
 10719  
 10720  func (p *AggregateQueryRawResultTagNameElement) Read(iprot thrift.TProtocol) error {
 10721  	if _, err := iprot.ReadStructBegin(); err != nil {
 10722  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 10723  	}
 10724  
 10725  	var issetTagName bool = false
 10726  
 10727  	for {
 10728  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 10729  		if err != nil {
 10730  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 10731  		}
 10732  		if fieldTypeId == thrift.STOP {
 10733  			break
 10734  		}
 10735  		switch fieldId {
 10736  		case 1:
 10737  			if err := p.ReadField1(iprot); err != nil {
 10738  				return err
 10739  			}
 10740  			issetTagName = true
 10741  		case 2:
 10742  			if err := p.ReadField2(iprot); err != nil {
 10743  				return err
 10744  			}
 10745  		default:
 10746  			if err := iprot.Skip(fieldTypeId); err != nil {
 10747  				return err
 10748  			}
 10749  		}
 10750  		if err := iprot.ReadFieldEnd(); err != nil {
 10751  			return err
 10752  		}
 10753  	}
 10754  	if err := iprot.ReadStructEnd(); err != nil {
 10755  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 10756  	}
 10757  	if !issetTagName {
 10758  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field TagName is not set"))
 10759  	}
 10760  	return nil
 10761  }
 10762  
 10763  func (p *AggregateQueryRawResultTagNameElement) ReadField1(iprot thrift.TProtocol) error {
 10764  	if v, err := iprot.ReadBinary(); err != nil {
 10765  		return thrift.PrependError("error reading field 1: ", err)
 10766  	} else {
 10767  		p.TagName = v
 10768  	}
 10769  	return nil
 10770  }
 10771  
 10772  func (p *AggregateQueryRawResultTagNameElement) ReadField2(iprot thrift.TProtocol) error {
 10773  	_, size, err := iprot.ReadListBegin()
 10774  	if err != nil {
 10775  		return thrift.PrependError("error reading list begin: ", err)
 10776  	}
 10777  	tSlice := make([]*AggregateQueryRawResultTagValueElement, 0, size)
 10778  	p.TagValues = tSlice
 10779  	for i := 0; i < size; i++ {
 10780  		_elem26 := &AggregateQueryRawResultTagValueElement{}
 10781  		if err := _elem26.Read(iprot); err != nil {
 10782  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem26), err)
 10783  		}
 10784  		p.TagValues = append(p.TagValues, _elem26)
 10785  	}
 10786  	if err := iprot.ReadListEnd(); err != nil {
 10787  		return thrift.PrependError("error reading list end: ", err)
 10788  	}
 10789  	return nil
 10790  }
 10791  
 10792  func (p *AggregateQueryRawResultTagNameElement) Write(oprot thrift.TProtocol) error {
 10793  	if err := oprot.WriteStructBegin("AggregateQueryRawResultTagNameElement"); err != nil {
 10794  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 10795  	}
 10796  	if p != nil {
 10797  		if err := p.writeField1(oprot); err != nil {
 10798  			return err
 10799  		}
 10800  		if err := p.writeField2(oprot); err != nil {
 10801  			return err
 10802  		}
 10803  	}
 10804  	if err := oprot.WriteFieldStop(); err != nil {
 10805  		return thrift.PrependError("write field stop error: ", err)
 10806  	}
 10807  	if err := oprot.WriteStructEnd(); err != nil {
 10808  		return thrift.PrependError("write struct stop error: ", err)
 10809  	}
 10810  	return nil
 10811  }
 10812  
 10813  func (p *AggregateQueryRawResultTagNameElement) writeField1(oprot thrift.TProtocol) (err error) {
 10814  	if err := oprot.WriteFieldBegin("tagName", thrift.STRING, 1); err != nil {
 10815  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:tagName: ", p), err)
 10816  	}
 10817  	if err := oprot.WriteBinary(p.TagName); err != nil {
 10818  		return thrift.PrependError(fmt.Sprintf("%T.tagName (1) field write error: ", p), err)
 10819  	}
 10820  	if err := oprot.WriteFieldEnd(); err != nil {
 10821  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:tagName: ", p), err)
 10822  	}
 10823  	return err
 10824  }
 10825  
 10826  func (p *AggregateQueryRawResultTagNameElement) writeField2(oprot thrift.TProtocol) (err error) {
 10827  	if p.IsSetTagValues() {
 10828  		if err := oprot.WriteFieldBegin("tagValues", thrift.LIST, 2); err != nil {
 10829  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:tagValues: ", p), err)
 10830  		}
 10831  		if err := oprot.WriteListBegin(thrift.STRUCT, len(p.TagValues)); err != nil {
 10832  			return thrift.PrependError("error writing list begin: ", err)
 10833  		}
 10834  		for _, v := range p.TagValues {
 10835  			if err := v.Write(oprot); err != nil {
 10836  				return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
 10837  			}
 10838  		}
 10839  		if err := oprot.WriteListEnd(); err != nil {
 10840  			return thrift.PrependError("error writing list end: ", err)
 10841  		}
 10842  		if err := oprot.WriteFieldEnd(); err != nil {
 10843  			return thrift.PrependError(fmt.Sprintf("%T write field end error 2:tagValues: ", p), err)
 10844  		}
 10845  	}
 10846  	return err
 10847  }
 10848  
 10849  func (p *AggregateQueryRawResultTagNameElement) String() string {
 10850  	if p == nil {
 10851  		return "<nil>"
 10852  	}
 10853  	return fmt.Sprintf("AggregateQueryRawResultTagNameElement(%+v)", *p)
 10854  }
 10855  
 10856  // Attributes:
 10857  //  - TagValue
 10858  type AggregateQueryRawResultTagValueElement struct {
 10859  	TagValue []byte `thrift:"tagValue,1,required" db:"tagValue" json:"tagValue"`
 10860  }
 10861  
 10862  func NewAggregateQueryRawResultTagValueElement() *AggregateQueryRawResultTagValueElement {
 10863  	return &AggregateQueryRawResultTagValueElement{}
 10864  }
 10865  
 10866  func (p *AggregateQueryRawResultTagValueElement) GetTagValue() []byte {
 10867  	return p.TagValue
 10868  }
 10869  func (p *AggregateQueryRawResultTagValueElement) Read(iprot thrift.TProtocol) error {
 10870  	if _, err := iprot.ReadStructBegin(); err != nil {
 10871  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 10872  	}
 10873  
 10874  	var issetTagValue bool = false
 10875  
 10876  	for {
 10877  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 10878  		if err != nil {
 10879  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 10880  		}
 10881  		if fieldTypeId == thrift.STOP {
 10882  			break
 10883  		}
 10884  		switch fieldId {
 10885  		case 1:
 10886  			if err := p.ReadField1(iprot); err != nil {
 10887  				return err
 10888  			}
 10889  			issetTagValue = true
 10890  		default:
 10891  			if err := iprot.Skip(fieldTypeId); err != nil {
 10892  				return err
 10893  			}
 10894  		}
 10895  		if err := iprot.ReadFieldEnd(); err != nil {
 10896  			return err
 10897  		}
 10898  	}
 10899  	if err := iprot.ReadStructEnd(); err != nil {
 10900  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 10901  	}
 10902  	if !issetTagValue {
 10903  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field TagValue is not set"))
 10904  	}
 10905  	return nil
 10906  }
 10907  
 10908  func (p *AggregateQueryRawResultTagValueElement) ReadField1(iprot thrift.TProtocol) error {
 10909  	if v, err := iprot.ReadBinary(); err != nil {
 10910  		return thrift.PrependError("error reading field 1: ", err)
 10911  	} else {
 10912  		p.TagValue = v
 10913  	}
 10914  	return nil
 10915  }
 10916  
 10917  func (p *AggregateQueryRawResultTagValueElement) Write(oprot thrift.TProtocol) error {
 10918  	if err := oprot.WriteStructBegin("AggregateQueryRawResultTagValueElement"); err != nil {
 10919  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 10920  	}
 10921  	if p != nil {
 10922  		if err := p.writeField1(oprot); err != nil {
 10923  			return err
 10924  		}
 10925  	}
 10926  	if err := oprot.WriteFieldStop(); err != nil {
 10927  		return thrift.PrependError("write field stop error: ", err)
 10928  	}
 10929  	if err := oprot.WriteStructEnd(); err != nil {
 10930  		return thrift.PrependError("write struct stop error: ", err)
 10931  	}
 10932  	return nil
 10933  }
 10934  
 10935  func (p *AggregateQueryRawResultTagValueElement) writeField1(oprot thrift.TProtocol) (err error) {
 10936  	if err := oprot.WriteFieldBegin("tagValue", thrift.STRING, 1); err != nil {
 10937  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:tagValue: ", p), err)
 10938  	}
 10939  	if err := oprot.WriteBinary(p.TagValue); err != nil {
 10940  		return thrift.PrependError(fmt.Sprintf("%T.tagValue (1) field write error: ", p), err)
 10941  	}
 10942  	if err := oprot.WriteFieldEnd(); err != nil {
 10943  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:tagValue: ", p), err)
 10944  	}
 10945  	return err
 10946  }
 10947  
 10948  func (p *AggregateQueryRawResultTagValueElement) String() string {
 10949  	if p == nil {
 10950  		return "<nil>"
 10951  	}
 10952  	return fmt.Sprintf("AggregateQueryRawResultTagValueElement(%+v)", *p)
 10953  }
 10954  
 10955  // Attributes:
 10956  //  - Query
 10957  //  - RangeStart
 10958  //  - RangeEnd
 10959  //  - NameSpace
 10960  //  - SeriesLimit
 10961  //  - TagNameFilter
 10962  //  - AggregateQueryType
 10963  //  - RangeType
 10964  //  - Source
 10965  //  - DocsLimit
 10966  //  - RequireExhaustive
 10967  //  - RequireNoWait
 10968  type AggregateQueryRequest struct {
 10969  	Query              *Query             `thrift:"query,1" db:"query" json:"query,omitempty"`
 10970  	RangeStart         int64              `thrift:"rangeStart,2,required" db:"rangeStart" json:"rangeStart"`
 10971  	RangeEnd           int64              `thrift:"rangeEnd,3,required" db:"rangeEnd" json:"rangeEnd"`
 10972  	NameSpace          string             `thrift:"nameSpace,4,required" db:"nameSpace" json:"nameSpace"`
 10973  	SeriesLimit        *int64             `thrift:"seriesLimit,5" db:"seriesLimit" json:"seriesLimit,omitempty"`
 10974  	TagNameFilter      []string           `thrift:"tagNameFilter,6" db:"tagNameFilter" json:"tagNameFilter,omitempty"`
 10975  	AggregateQueryType AggregateQueryType `thrift:"aggregateQueryType,7" db:"aggregateQueryType" json:"aggregateQueryType,omitempty"`
 10976  	RangeType          TimeType           `thrift:"rangeType,8" db:"rangeType" json:"rangeType,omitempty"`
 10977  	Source             []byte             `thrift:"source,9" db:"source" json:"source,omitempty"`
 10978  	DocsLimit          *int64             `thrift:"docsLimit,10" db:"docsLimit" json:"docsLimit,omitempty"`
 10979  	RequireExhaustive  *bool              `thrift:"requireExhaustive,11" db:"requireExhaustive" json:"requireExhaustive,omitempty"`
 10980  	RequireNoWait      *bool              `thrift:"requireNoWait,12" db:"requireNoWait" json:"requireNoWait,omitempty"`
 10981  }
 10982  
 10983  func NewAggregateQueryRequest() *AggregateQueryRequest {
 10984  	return &AggregateQueryRequest{
 10985  		AggregateQueryType: 1,
 10986  
 10987  		RangeType: 0,
 10988  	}
 10989  }
 10990  
 10991  var AggregateQueryRequest_Query_DEFAULT *Query
 10992  
 10993  func (p *AggregateQueryRequest) GetQuery() *Query {
 10994  	if !p.IsSetQuery() {
 10995  		return AggregateQueryRequest_Query_DEFAULT
 10996  	}
 10997  	return p.Query
 10998  }
 10999  
 11000  func (p *AggregateQueryRequest) GetRangeStart() int64 {
 11001  	return p.RangeStart
 11002  }
 11003  
 11004  func (p *AggregateQueryRequest) GetRangeEnd() int64 {
 11005  	return p.RangeEnd
 11006  }
 11007  
 11008  func (p *AggregateQueryRequest) GetNameSpace() string {
 11009  	return p.NameSpace
 11010  }
 11011  
 11012  var AggregateQueryRequest_SeriesLimit_DEFAULT int64
 11013  
 11014  func (p *AggregateQueryRequest) GetSeriesLimit() int64 {
 11015  	if !p.IsSetSeriesLimit() {
 11016  		return AggregateQueryRequest_SeriesLimit_DEFAULT
 11017  	}
 11018  	return *p.SeriesLimit
 11019  }
 11020  
 11021  var AggregateQueryRequest_TagNameFilter_DEFAULT []string
 11022  
 11023  func (p *AggregateQueryRequest) GetTagNameFilter() []string {
 11024  	return p.TagNameFilter
 11025  }
 11026  
 11027  var AggregateQueryRequest_AggregateQueryType_DEFAULT AggregateQueryType = 1
 11028  
 11029  func (p *AggregateQueryRequest) GetAggregateQueryType() AggregateQueryType {
 11030  	return p.AggregateQueryType
 11031  }
 11032  
 11033  var AggregateQueryRequest_RangeType_DEFAULT TimeType = 0
 11034  
 11035  func (p *AggregateQueryRequest) GetRangeType() TimeType {
 11036  	return p.RangeType
 11037  }
 11038  
 11039  var AggregateQueryRequest_Source_DEFAULT []byte
 11040  
 11041  func (p *AggregateQueryRequest) GetSource() []byte {
 11042  	return p.Source
 11043  }
 11044  
 11045  var AggregateQueryRequest_DocsLimit_DEFAULT int64
 11046  
 11047  func (p *AggregateQueryRequest) GetDocsLimit() int64 {
 11048  	if !p.IsSetDocsLimit() {
 11049  		return AggregateQueryRequest_DocsLimit_DEFAULT
 11050  	}
 11051  	return *p.DocsLimit
 11052  }
 11053  
 11054  var AggregateQueryRequest_RequireExhaustive_DEFAULT bool
 11055  
 11056  func (p *AggregateQueryRequest) GetRequireExhaustive() bool {
 11057  	if !p.IsSetRequireExhaustive() {
 11058  		return AggregateQueryRequest_RequireExhaustive_DEFAULT
 11059  	}
 11060  	return *p.RequireExhaustive
 11061  }
 11062  
 11063  var AggregateQueryRequest_RequireNoWait_DEFAULT bool
 11064  
 11065  func (p *AggregateQueryRequest) GetRequireNoWait() bool {
 11066  	if !p.IsSetRequireNoWait() {
 11067  		return AggregateQueryRequest_RequireNoWait_DEFAULT
 11068  	}
 11069  	return *p.RequireNoWait
 11070  }
 11071  func (p *AggregateQueryRequest) IsSetQuery() bool {
 11072  	return p.Query != nil
 11073  }
 11074  
 11075  func (p *AggregateQueryRequest) IsSetSeriesLimit() bool {
 11076  	return p.SeriesLimit != nil
 11077  }
 11078  
 11079  func (p *AggregateQueryRequest) IsSetTagNameFilter() bool {
 11080  	return p.TagNameFilter != nil
 11081  }
 11082  
 11083  func (p *AggregateQueryRequest) IsSetAggregateQueryType() bool {
 11084  	return p.AggregateQueryType != AggregateQueryRequest_AggregateQueryType_DEFAULT
 11085  }
 11086  
 11087  func (p *AggregateQueryRequest) IsSetRangeType() bool {
 11088  	return p.RangeType != AggregateQueryRequest_RangeType_DEFAULT
 11089  }
 11090  
 11091  func (p *AggregateQueryRequest) IsSetSource() bool {
 11092  	return p.Source != nil
 11093  }
 11094  
 11095  func (p *AggregateQueryRequest) IsSetDocsLimit() bool {
 11096  	return p.DocsLimit != nil
 11097  }
 11098  
 11099  func (p *AggregateQueryRequest) IsSetRequireExhaustive() bool {
 11100  	return p.RequireExhaustive != nil
 11101  }
 11102  
 11103  func (p *AggregateQueryRequest) IsSetRequireNoWait() bool {
 11104  	return p.RequireNoWait != nil
 11105  }
 11106  
 11107  func (p *AggregateQueryRequest) Read(iprot thrift.TProtocol) error {
 11108  	if _, err := iprot.ReadStructBegin(); err != nil {
 11109  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 11110  	}
 11111  
 11112  	var issetRangeStart bool = false
 11113  	var issetRangeEnd bool = false
 11114  	var issetNameSpace bool = false
 11115  
 11116  	for {
 11117  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 11118  		if err != nil {
 11119  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 11120  		}
 11121  		if fieldTypeId == thrift.STOP {
 11122  			break
 11123  		}
 11124  		switch fieldId {
 11125  		case 1:
 11126  			if err := p.ReadField1(iprot); err != nil {
 11127  				return err
 11128  			}
 11129  		case 2:
 11130  			if err := p.ReadField2(iprot); err != nil {
 11131  				return err
 11132  			}
 11133  			issetRangeStart = true
 11134  		case 3:
 11135  			if err := p.ReadField3(iprot); err != nil {
 11136  				return err
 11137  			}
 11138  			issetRangeEnd = true
 11139  		case 4:
 11140  			if err := p.ReadField4(iprot); err != nil {
 11141  				return err
 11142  			}
 11143  			issetNameSpace = true
 11144  		case 5:
 11145  			if err := p.ReadField5(iprot); err != nil {
 11146  				return err
 11147  			}
 11148  		case 6:
 11149  			if err := p.ReadField6(iprot); err != nil {
 11150  				return err
 11151  			}
 11152  		case 7:
 11153  			if err := p.ReadField7(iprot); err != nil {
 11154  				return err
 11155  			}
 11156  		case 8:
 11157  			if err := p.ReadField8(iprot); err != nil {
 11158  				return err
 11159  			}
 11160  		case 9:
 11161  			if err := p.ReadField9(iprot); err != nil {
 11162  				return err
 11163  			}
 11164  		case 10:
 11165  			if err := p.ReadField10(iprot); err != nil {
 11166  				return err
 11167  			}
 11168  		case 11:
 11169  			if err := p.ReadField11(iprot); err != nil {
 11170  				return err
 11171  			}
 11172  		case 12:
 11173  			if err := p.ReadField12(iprot); err != nil {
 11174  				return err
 11175  			}
 11176  		default:
 11177  			if err := iprot.Skip(fieldTypeId); err != nil {
 11178  				return err
 11179  			}
 11180  		}
 11181  		if err := iprot.ReadFieldEnd(); err != nil {
 11182  			return err
 11183  		}
 11184  	}
 11185  	if err := iprot.ReadStructEnd(); err != nil {
 11186  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 11187  	}
 11188  	if !issetRangeStart {
 11189  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeStart is not set"))
 11190  	}
 11191  	if !issetRangeEnd {
 11192  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeEnd is not set"))
 11193  	}
 11194  	if !issetNameSpace {
 11195  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
 11196  	}
 11197  	return nil
 11198  }
 11199  
 11200  func (p *AggregateQueryRequest) ReadField1(iprot thrift.TProtocol) error {
 11201  	p.Query = &Query{}
 11202  	if err := p.Query.Read(iprot); err != nil {
 11203  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Query), err)
 11204  	}
 11205  	return nil
 11206  }
 11207  
 11208  func (p *AggregateQueryRequest) ReadField2(iprot thrift.TProtocol) error {
 11209  	if v, err := iprot.ReadI64(); err != nil {
 11210  		return thrift.PrependError("error reading field 2: ", err)
 11211  	} else {
 11212  		p.RangeStart = v
 11213  	}
 11214  	return nil
 11215  }
 11216  
 11217  func (p *AggregateQueryRequest) ReadField3(iprot thrift.TProtocol) error {
 11218  	if v, err := iprot.ReadI64(); err != nil {
 11219  		return thrift.PrependError("error reading field 3: ", err)
 11220  	} else {
 11221  		p.RangeEnd = v
 11222  	}
 11223  	return nil
 11224  }
 11225  
 11226  func (p *AggregateQueryRequest) ReadField4(iprot thrift.TProtocol) error {
 11227  	if v, err := iprot.ReadString(); err != nil {
 11228  		return thrift.PrependError("error reading field 4: ", err)
 11229  	} else {
 11230  		p.NameSpace = v
 11231  	}
 11232  	return nil
 11233  }
 11234  
 11235  func (p *AggregateQueryRequest) ReadField5(iprot thrift.TProtocol) error {
 11236  	if v, err := iprot.ReadI64(); err != nil {
 11237  		return thrift.PrependError("error reading field 5: ", err)
 11238  	} else {
 11239  		p.SeriesLimit = &v
 11240  	}
 11241  	return nil
 11242  }
 11243  
 11244  func (p *AggregateQueryRequest) ReadField6(iprot thrift.TProtocol) error {
 11245  	_, size, err := iprot.ReadListBegin()
 11246  	if err != nil {
 11247  		return thrift.PrependError("error reading list begin: ", err)
 11248  	}
 11249  	tSlice := make([]string, 0, size)
 11250  	p.TagNameFilter = tSlice
 11251  	for i := 0; i < size; i++ {
 11252  		var _elem27 string
 11253  		if v, err := iprot.ReadString(); err != nil {
 11254  			return thrift.PrependError("error reading field 0: ", err)
 11255  		} else {
 11256  			_elem27 = v
 11257  		}
 11258  		p.TagNameFilter = append(p.TagNameFilter, _elem27)
 11259  	}
 11260  	if err := iprot.ReadListEnd(); err != nil {
 11261  		return thrift.PrependError("error reading list end: ", err)
 11262  	}
 11263  	return nil
 11264  }
 11265  
 11266  func (p *AggregateQueryRequest) ReadField7(iprot thrift.TProtocol) error {
 11267  	if v, err := iprot.ReadI32(); err != nil {
 11268  		return thrift.PrependError("error reading field 7: ", err)
 11269  	} else {
 11270  		temp := AggregateQueryType(v)
 11271  		p.AggregateQueryType = temp
 11272  	}
 11273  	return nil
 11274  }
 11275  
 11276  func (p *AggregateQueryRequest) ReadField8(iprot thrift.TProtocol) error {
 11277  	if v, err := iprot.ReadI32(); err != nil {
 11278  		return thrift.PrependError("error reading field 8: ", err)
 11279  	} else {
 11280  		temp := TimeType(v)
 11281  		p.RangeType = temp
 11282  	}
 11283  	return nil
 11284  }
 11285  
 11286  func (p *AggregateQueryRequest) ReadField9(iprot thrift.TProtocol) error {
 11287  	if v, err := iprot.ReadBinary(); err != nil {
 11288  		return thrift.PrependError("error reading field 9: ", err)
 11289  	} else {
 11290  		p.Source = v
 11291  	}
 11292  	return nil
 11293  }
 11294  
 11295  func (p *AggregateQueryRequest) ReadField10(iprot thrift.TProtocol) error {
 11296  	if v, err := iprot.ReadI64(); err != nil {
 11297  		return thrift.PrependError("error reading field 10: ", err)
 11298  	} else {
 11299  		p.DocsLimit = &v
 11300  	}
 11301  	return nil
 11302  }
 11303  
 11304  func (p *AggregateQueryRequest) ReadField11(iprot thrift.TProtocol) error {
 11305  	if v, err := iprot.ReadBool(); err != nil {
 11306  		return thrift.PrependError("error reading field 11: ", err)
 11307  	} else {
 11308  		p.RequireExhaustive = &v
 11309  	}
 11310  	return nil
 11311  }
 11312  
 11313  func (p *AggregateQueryRequest) ReadField12(iprot thrift.TProtocol) error {
 11314  	if v, err := iprot.ReadBool(); err != nil {
 11315  		return thrift.PrependError("error reading field 12: ", err)
 11316  	} else {
 11317  		p.RequireNoWait = &v
 11318  	}
 11319  	return nil
 11320  }
 11321  
 11322  func (p *AggregateQueryRequest) Write(oprot thrift.TProtocol) error {
 11323  	if err := oprot.WriteStructBegin("AggregateQueryRequest"); err != nil {
 11324  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 11325  	}
 11326  	if p != nil {
 11327  		if err := p.writeField1(oprot); err != nil {
 11328  			return err
 11329  		}
 11330  		if err := p.writeField2(oprot); err != nil {
 11331  			return err
 11332  		}
 11333  		if err := p.writeField3(oprot); err != nil {
 11334  			return err
 11335  		}
 11336  		if err := p.writeField4(oprot); err != nil {
 11337  			return err
 11338  		}
 11339  		if err := p.writeField5(oprot); err != nil {
 11340  			return err
 11341  		}
 11342  		if err := p.writeField6(oprot); err != nil {
 11343  			return err
 11344  		}
 11345  		if err := p.writeField7(oprot); err != nil {
 11346  			return err
 11347  		}
 11348  		if err := p.writeField8(oprot); err != nil {
 11349  			return err
 11350  		}
 11351  		if err := p.writeField9(oprot); err != nil {
 11352  			return err
 11353  		}
 11354  		if err := p.writeField10(oprot); err != nil {
 11355  			return err
 11356  		}
 11357  		if err := p.writeField11(oprot); err != nil {
 11358  			return err
 11359  		}
 11360  		if err := p.writeField12(oprot); err != nil {
 11361  			return err
 11362  		}
 11363  	}
 11364  	if err := oprot.WriteFieldStop(); err != nil {
 11365  		return thrift.PrependError("write field stop error: ", err)
 11366  	}
 11367  	if err := oprot.WriteStructEnd(); err != nil {
 11368  		return thrift.PrependError("write struct stop error: ", err)
 11369  	}
 11370  	return nil
 11371  }
 11372  
 11373  func (p *AggregateQueryRequest) writeField1(oprot thrift.TProtocol) (err error) {
 11374  	if p.IsSetQuery() {
 11375  		if err := oprot.WriteFieldBegin("query", thrift.STRUCT, 1); err != nil {
 11376  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:query: ", p), err)
 11377  		}
 11378  		if err := p.Query.Write(oprot); err != nil {
 11379  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Query), err)
 11380  		}
 11381  		if err := oprot.WriteFieldEnd(); err != nil {
 11382  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:query: ", p), err)
 11383  		}
 11384  	}
 11385  	return err
 11386  }
 11387  
 11388  func (p *AggregateQueryRequest) writeField2(oprot thrift.TProtocol) (err error) {
 11389  	if err := oprot.WriteFieldBegin("rangeStart", thrift.I64, 2); err != nil {
 11390  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:rangeStart: ", p), err)
 11391  	}
 11392  	if err := oprot.WriteI64(int64(p.RangeStart)); err != nil {
 11393  		return thrift.PrependError(fmt.Sprintf("%T.rangeStart (2) field write error: ", p), err)
 11394  	}
 11395  	if err := oprot.WriteFieldEnd(); err != nil {
 11396  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:rangeStart: ", p), err)
 11397  	}
 11398  	return err
 11399  }
 11400  
 11401  func (p *AggregateQueryRequest) writeField3(oprot thrift.TProtocol) (err error) {
 11402  	if err := oprot.WriteFieldBegin("rangeEnd", thrift.I64, 3); err != nil {
 11403  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:rangeEnd: ", p), err)
 11404  	}
 11405  	if err := oprot.WriteI64(int64(p.RangeEnd)); err != nil {
 11406  		return thrift.PrependError(fmt.Sprintf("%T.rangeEnd (3) field write error: ", p), err)
 11407  	}
 11408  	if err := oprot.WriteFieldEnd(); err != nil {
 11409  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:rangeEnd: ", p), err)
 11410  	}
 11411  	return err
 11412  }
 11413  
 11414  func (p *AggregateQueryRequest) writeField4(oprot thrift.TProtocol) (err error) {
 11415  	if err := oprot.WriteFieldBegin("nameSpace", thrift.STRING, 4); err != nil {
 11416  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:nameSpace: ", p), err)
 11417  	}
 11418  	if err := oprot.WriteString(string(p.NameSpace)); err != nil {
 11419  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (4) field write error: ", p), err)
 11420  	}
 11421  	if err := oprot.WriteFieldEnd(); err != nil {
 11422  		return thrift.PrependError(fmt.Sprintf("%T write field end error 4:nameSpace: ", p), err)
 11423  	}
 11424  	return err
 11425  }
 11426  
 11427  func (p *AggregateQueryRequest) writeField5(oprot thrift.TProtocol) (err error) {
 11428  	if p.IsSetSeriesLimit() {
 11429  		if err := oprot.WriteFieldBegin("seriesLimit", thrift.I64, 5); err != nil {
 11430  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:seriesLimit: ", p), err)
 11431  		}
 11432  		if err := oprot.WriteI64(int64(*p.SeriesLimit)); err != nil {
 11433  			return thrift.PrependError(fmt.Sprintf("%T.seriesLimit (5) field write error: ", p), err)
 11434  		}
 11435  		if err := oprot.WriteFieldEnd(); err != nil {
 11436  			return thrift.PrependError(fmt.Sprintf("%T write field end error 5:seriesLimit: ", p), err)
 11437  		}
 11438  	}
 11439  	return err
 11440  }
 11441  
 11442  func (p *AggregateQueryRequest) writeField6(oprot thrift.TProtocol) (err error) {
 11443  	if p.IsSetTagNameFilter() {
 11444  		if err := oprot.WriteFieldBegin("tagNameFilter", thrift.LIST, 6); err != nil {
 11445  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:tagNameFilter: ", p), err)
 11446  		}
 11447  		if err := oprot.WriteListBegin(thrift.STRING, len(p.TagNameFilter)); err != nil {
 11448  			return thrift.PrependError("error writing list begin: ", err)
 11449  		}
 11450  		for _, v := range p.TagNameFilter {
 11451  			if err := oprot.WriteString(string(v)); err != nil {
 11452  				return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err)
 11453  			}
 11454  		}
 11455  		if err := oprot.WriteListEnd(); err != nil {
 11456  			return thrift.PrependError("error writing list end: ", err)
 11457  		}
 11458  		if err := oprot.WriteFieldEnd(); err != nil {
 11459  			return thrift.PrependError(fmt.Sprintf("%T write field end error 6:tagNameFilter: ", p), err)
 11460  		}
 11461  	}
 11462  	return err
 11463  }
 11464  
 11465  func (p *AggregateQueryRequest) writeField7(oprot thrift.TProtocol) (err error) {
 11466  	if p.IsSetAggregateQueryType() {
 11467  		if err := oprot.WriteFieldBegin("aggregateQueryType", thrift.I32, 7); err != nil {
 11468  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 7:aggregateQueryType: ", p), err)
 11469  		}
 11470  		if err := oprot.WriteI32(int32(p.AggregateQueryType)); err != nil {
 11471  			return thrift.PrependError(fmt.Sprintf("%T.aggregateQueryType (7) field write error: ", p), err)
 11472  		}
 11473  		if err := oprot.WriteFieldEnd(); err != nil {
 11474  			return thrift.PrependError(fmt.Sprintf("%T write field end error 7:aggregateQueryType: ", p), err)
 11475  		}
 11476  	}
 11477  	return err
 11478  }
 11479  
 11480  func (p *AggregateQueryRequest) writeField8(oprot thrift.TProtocol) (err error) {
 11481  	if p.IsSetRangeType() {
 11482  		if err := oprot.WriteFieldBegin("rangeType", thrift.I32, 8); err != nil {
 11483  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 8:rangeType: ", p), err)
 11484  		}
 11485  		if err := oprot.WriteI32(int32(p.RangeType)); err != nil {
 11486  			return thrift.PrependError(fmt.Sprintf("%T.rangeType (8) field write error: ", p), err)
 11487  		}
 11488  		if err := oprot.WriteFieldEnd(); err != nil {
 11489  			return thrift.PrependError(fmt.Sprintf("%T write field end error 8:rangeType: ", p), err)
 11490  		}
 11491  	}
 11492  	return err
 11493  }
 11494  
 11495  func (p *AggregateQueryRequest) writeField9(oprot thrift.TProtocol) (err error) {
 11496  	if p.IsSetSource() {
 11497  		if err := oprot.WriteFieldBegin("source", thrift.STRING, 9); err != nil {
 11498  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 9:source: ", p), err)
 11499  		}
 11500  		if err := oprot.WriteBinary(p.Source); err != nil {
 11501  			return thrift.PrependError(fmt.Sprintf("%T.source (9) field write error: ", p), err)
 11502  		}
 11503  		if err := oprot.WriteFieldEnd(); err != nil {
 11504  			return thrift.PrependError(fmt.Sprintf("%T write field end error 9:source: ", p), err)
 11505  		}
 11506  	}
 11507  	return err
 11508  }
 11509  
 11510  func (p *AggregateQueryRequest) writeField10(oprot thrift.TProtocol) (err error) {
 11511  	if p.IsSetDocsLimit() {
 11512  		if err := oprot.WriteFieldBegin("docsLimit", thrift.I64, 10); err != nil {
 11513  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 10:docsLimit: ", p), err)
 11514  		}
 11515  		if err := oprot.WriteI64(int64(*p.DocsLimit)); err != nil {
 11516  			return thrift.PrependError(fmt.Sprintf("%T.docsLimit (10) field write error: ", p), err)
 11517  		}
 11518  		if err := oprot.WriteFieldEnd(); err != nil {
 11519  			return thrift.PrependError(fmt.Sprintf("%T write field end error 10:docsLimit: ", p), err)
 11520  		}
 11521  	}
 11522  	return err
 11523  }
 11524  
 11525  func (p *AggregateQueryRequest) writeField11(oprot thrift.TProtocol) (err error) {
 11526  	if p.IsSetRequireExhaustive() {
 11527  		if err := oprot.WriteFieldBegin("requireExhaustive", thrift.BOOL, 11); err != nil {
 11528  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 11:requireExhaustive: ", p), err)
 11529  		}
 11530  		if err := oprot.WriteBool(bool(*p.RequireExhaustive)); err != nil {
 11531  			return thrift.PrependError(fmt.Sprintf("%T.requireExhaustive (11) field write error: ", p), err)
 11532  		}
 11533  		if err := oprot.WriteFieldEnd(); err != nil {
 11534  			return thrift.PrependError(fmt.Sprintf("%T write field end error 11:requireExhaustive: ", p), err)
 11535  		}
 11536  	}
 11537  	return err
 11538  }
 11539  
 11540  func (p *AggregateQueryRequest) writeField12(oprot thrift.TProtocol) (err error) {
 11541  	if p.IsSetRequireNoWait() {
 11542  		if err := oprot.WriteFieldBegin("requireNoWait", thrift.BOOL, 12); err != nil {
 11543  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 12:requireNoWait: ", p), err)
 11544  		}
 11545  		if err := oprot.WriteBool(bool(*p.RequireNoWait)); err != nil {
 11546  			return thrift.PrependError(fmt.Sprintf("%T.requireNoWait (12) field write error: ", p), err)
 11547  		}
 11548  		if err := oprot.WriteFieldEnd(); err != nil {
 11549  			return thrift.PrependError(fmt.Sprintf("%T write field end error 12:requireNoWait: ", p), err)
 11550  		}
 11551  	}
 11552  	return err
 11553  }
 11554  
 11555  func (p *AggregateQueryRequest) String() string {
 11556  	if p == nil {
 11557  		return "<nil>"
 11558  	}
 11559  	return fmt.Sprintf("AggregateQueryRequest(%+v)", *p)
 11560  }
 11561  
 11562  // Attributes:
 11563  //  - Results
 11564  //  - Exhaustive
 11565  type AggregateQueryResult_ struct {
 11566  	Results    []*AggregateQueryResultTagNameElement `thrift:"results,1,required" db:"results" json:"results"`
 11567  	Exhaustive bool                                  `thrift:"exhaustive,2,required" db:"exhaustive" json:"exhaustive"`
 11568  }
 11569  
 11570  func NewAggregateQueryResult_() *AggregateQueryResult_ {
 11571  	return &AggregateQueryResult_{}
 11572  }
 11573  
 11574  func (p *AggregateQueryResult_) GetResults() []*AggregateQueryResultTagNameElement {
 11575  	return p.Results
 11576  }
 11577  
 11578  func (p *AggregateQueryResult_) GetExhaustive() bool {
 11579  	return p.Exhaustive
 11580  }
 11581  func (p *AggregateQueryResult_) Read(iprot thrift.TProtocol) error {
 11582  	if _, err := iprot.ReadStructBegin(); err != nil {
 11583  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 11584  	}
 11585  
 11586  	var issetResults bool = false
 11587  	var issetExhaustive bool = false
 11588  
 11589  	for {
 11590  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 11591  		if err != nil {
 11592  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 11593  		}
 11594  		if fieldTypeId == thrift.STOP {
 11595  			break
 11596  		}
 11597  		switch fieldId {
 11598  		case 1:
 11599  			if err := p.ReadField1(iprot); err != nil {
 11600  				return err
 11601  			}
 11602  			issetResults = true
 11603  		case 2:
 11604  			if err := p.ReadField2(iprot); err != nil {
 11605  				return err
 11606  			}
 11607  			issetExhaustive = true
 11608  		default:
 11609  			if err := iprot.Skip(fieldTypeId); err != nil {
 11610  				return err
 11611  			}
 11612  		}
 11613  		if err := iprot.ReadFieldEnd(); err != nil {
 11614  			return err
 11615  		}
 11616  	}
 11617  	if err := iprot.ReadStructEnd(); err != nil {
 11618  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 11619  	}
 11620  	if !issetResults {
 11621  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Results is not set"))
 11622  	}
 11623  	if !issetExhaustive {
 11624  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Exhaustive is not set"))
 11625  	}
 11626  	return nil
 11627  }
 11628  
 11629  func (p *AggregateQueryResult_) ReadField1(iprot thrift.TProtocol) error {
 11630  	_, size, err := iprot.ReadListBegin()
 11631  	if err != nil {
 11632  		return thrift.PrependError("error reading list begin: ", err)
 11633  	}
 11634  	tSlice := make([]*AggregateQueryResultTagNameElement, 0, size)
 11635  	p.Results = tSlice
 11636  	for i := 0; i < size; i++ {
 11637  		_elem28 := &AggregateQueryResultTagNameElement{}
 11638  		if err := _elem28.Read(iprot); err != nil {
 11639  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem28), err)
 11640  		}
 11641  		p.Results = append(p.Results, _elem28)
 11642  	}
 11643  	if err := iprot.ReadListEnd(); err != nil {
 11644  		return thrift.PrependError("error reading list end: ", err)
 11645  	}
 11646  	return nil
 11647  }
 11648  
 11649  func (p *AggregateQueryResult_) ReadField2(iprot thrift.TProtocol) error {
 11650  	if v, err := iprot.ReadBool(); err != nil {
 11651  		return thrift.PrependError("error reading field 2: ", err)
 11652  	} else {
 11653  		p.Exhaustive = v
 11654  	}
 11655  	return nil
 11656  }
 11657  
 11658  func (p *AggregateQueryResult_) Write(oprot thrift.TProtocol) error {
 11659  	if err := oprot.WriteStructBegin("AggregateQueryResult"); err != nil {
 11660  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 11661  	}
 11662  	if p != nil {
 11663  		if err := p.writeField1(oprot); err != nil {
 11664  			return err
 11665  		}
 11666  		if err := p.writeField2(oprot); err != nil {
 11667  			return err
 11668  		}
 11669  	}
 11670  	if err := oprot.WriteFieldStop(); err != nil {
 11671  		return thrift.PrependError("write field stop error: ", err)
 11672  	}
 11673  	if err := oprot.WriteStructEnd(); err != nil {
 11674  		return thrift.PrependError("write struct stop error: ", err)
 11675  	}
 11676  	return nil
 11677  }
 11678  
 11679  func (p *AggregateQueryResult_) writeField1(oprot thrift.TProtocol) (err error) {
 11680  	if err := oprot.WriteFieldBegin("results", thrift.LIST, 1); err != nil {
 11681  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:results: ", p), err)
 11682  	}
 11683  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Results)); err != nil {
 11684  		return thrift.PrependError("error writing list begin: ", err)
 11685  	}
 11686  	for _, v := range p.Results {
 11687  		if err := v.Write(oprot); err != nil {
 11688  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
 11689  		}
 11690  	}
 11691  	if err := oprot.WriteListEnd(); err != nil {
 11692  		return thrift.PrependError("error writing list end: ", err)
 11693  	}
 11694  	if err := oprot.WriteFieldEnd(); err != nil {
 11695  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:results: ", p), err)
 11696  	}
 11697  	return err
 11698  }
 11699  
 11700  func (p *AggregateQueryResult_) writeField2(oprot thrift.TProtocol) (err error) {
 11701  	if err := oprot.WriteFieldBegin("exhaustive", thrift.BOOL, 2); err != nil {
 11702  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:exhaustive: ", p), err)
 11703  	}
 11704  	if err := oprot.WriteBool(bool(p.Exhaustive)); err != nil {
 11705  		return thrift.PrependError(fmt.Sprintf("%T.exhaustive (2) field write error: ", p), err)
 11706  	}
 11707  	if err := oprot.WriteFieldEnd(); err != nil {
 11708  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:exhaustive: ", p), err)
 11709  	}
 11710  	return err
 11711  }
 11712  
 11713  func (p *AggregateQueryResult_) String() string {
 11714  	if p == nil {
 11715  		return "<nil>"
 11716  	}
 11717  	return fmt.Sprintf("AggregateQueryResult_(%+v)", *p)
 11718  }
 11719  
 11720  // Attributes:
 11721  //  - TagName
 11722  //  - TagValues
 11723  type AggregateQueryResultTagNameElement struct {
 11724  	TagName   string                                 `thrift:"tagName,1,required" db:"tagName" json:"tagName"`
 11725  	TagValues []*AggregateQueryResultTagValueElement `thrift:"tagValues,2" db:"tagValues" json:"tagValues,omitempty"`
 11726  }
 11727  
 11728  func NewAggregateQueryResultTagNameElement() *AggregateQueryResultTagNameElement {
 11729  	return &AggregateQueryResultTagNameElement{}
 11730  }
 11731  
 11732  func (p *AggregateQueryResultTagNameElement) GetTagName() string {
 11733  	return p.TagName
 11734  }
 11735  
 11736  var AggregateQueryResultTagNameElement_TagValues_DEFAULT []*AggregateQueryResultTagValueElement
 11737  
 11738  func (p *AggregateQueryResultTagNameElement) GetTagValues() []*AggregateQueryResultTagValueElement {
 11739  	return p.TagValues
 11740  }
 11741  func (p *AggregateQueryResultTagNameElement) IsSetTagValues() bool {
 11742  	return p.TagValues != nil
 11743  }
 11744  
 11745  func (p *AggregateQueryResultTagNameElement) Read(iprot thrift.TProtocol) error {
 11746  	if _, err := iprot.ReadStructBegin(); err != nil {
 11747  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 11748  	}
 11749  
 11750  	var issetTagName bool = false
 11751  
 11752  	for {
 11753  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 11754  		if err != nil {
 11755  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 11756  		}
 11757  		if fieldTypeId == thrift.STOP {
 11758  			break
 11759  		}
 11760  		switch fieldId {
 11761  		case 1:
 11762  			if err := p.ReadField1(iprot); err != nil {
 11763  				return err
 11764  			}
 11765  			issetTagName = true
 11766  		case 2:
 11767  			if err := p.ReadField2(iprot); err != nil {
 11768  				return err
 11769  			}
 11770  		default:
 11771  			if err := iprot.Skip(fieldTypeId); err != nil {
 11772  				return err
 11773  			}
 11774  		}
 11775  		if err := iprot.ReadFieldEnd(); err != nil {
 11776  			return err
 11777  		}
 11778  	}
 11779  	if err := iprot.ReadStructEnd(); err != nil {
 11780  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 11781  	}
 11782  	if !issetTagName {
 11783  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field TagName is not set"))
 11784  	}
 11785  	return nil
 11786  }
 11787  
 11788  func (p *AggregateQueryResultTagNameElement) ReadField1(iprot thrift.TProtocol) error {
 11789  	if v, err := iprot.ReadString(); err != nil {
 11790  		return thrift.PrependError("error reading field 1: ", err)
 11791  	} else {
 11792  		p.TagName = v
 11793  	}
 11794  	return nil
 11795  }
 11796  
 11797  func (p *AggregateQueryResultTagNameElement) ReadField2(iprot thrift.TProtocol) error {
 11798  	_, size, err := iprot.ReadListBegin()
 11799  	if err != nil {
 11800  		return thrift.PrependError("error reading list begin: ", err)
 11801  	}
 11802  	tSlice := make([]*AggregateQueryResultTagValueElement, 0, size)
 11803  	p.TagValues = tSlice
 11804  	for i := 0; i < size; i++ {
 11805  		_elem29 := &AggregateQueryResultTagValueElement{}
 11806  		if err := _elem29.Read(iprot); err != nil {
 11807  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem29), err)
 11808  		}
 11809  		p.TagValues = append(p.TagValues, _elem29)
 11810  	}
 11811  	if err := iprot.ReadListEnd(); err != nil {
 11812  		return thrift.PrependError("error reading list end: ", err)
 11813  	}
 11814  	return nil
 11815  }
 11816  
 11817  func (p *AggregateQueryResultTagNameElement) Write(oprot thrift.TProtocol) error {
 11818  	if err := oprot.WriteStructBegin("AggregateQueryResultTagNameElement"); err != nil {
 11819  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 11820  	}
 11821  	if p != nil {
 11822  		if err := p.writeField1(oprot); err != nil {
 11823  			return err
 11824  		}
 11825  		if err := p.writeField2(oprot); err != nil {
 11826  			return err
 11827  		}
 11828  	}
 11829  	if err := oprot.WriteFieldStop(); err != nil {
 11830  		return thrift.PrependError("write field stop error: ", err)
 11831  	}
 11832  	if err := oprot.WriteStructEnd(); err != nil {
 11833  		return thrift.PrependError("write struct stop error: ", err)
 11834  	}
 11835  	return nil
 11836  }
 11837  
 11838  func (p *AggregateQueryResultTagNameElement) writeField1(oprot thrift.TProtocol) (err error) {
 11839  	if err := oprot.WriteFieldBegin("tagName", thrift.STRING, 1); err != nil {
 11840  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:tagName: ", p), err)
 11841  	}
 11842  	if err := oprot.WriteString(string(p.TagName)); err != nil {
 11843  		return thrift.PrependError(fmt.Sprintf("%T.tagName (1) field write error: ", p), err)
 11844  	}
 11845  	if err := oprot.WriteFieldEnd(); err != nil {
 11846  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:tagName: ", p), err)
 11847  	}
 11848  	return err
 11849  }
 11850  
 11851  func (p *AggregateQueryResultTagNameElement) writeField2(oprot thrift.TProtocol) (err error) {
 11852  	if p.IsSetTagValues() {
 11853  		if err := oprot.WriteFieldBegin("tagValues", thrift.LIST, 2); err != nil {
 11854  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:tagValues: ", p), err)
 11855  		}
 11856  		if err := oprot.WriteListBegin(thrift.STRUCT, len(p.TagValues)); err != nil {
 11857  			return thrift.PrependError("error writing list begin: ", err)
 11858  		}
 11859  		for _, v := range p.TagValues {
 11860  			if err := v.Write(oprot); err != nil {
 11861  				return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
 11862  			}
 11863  		}
 11864  		if err := oprot.WriteListEnd(); err != nil {
 11865  			return thrift.PrependError("error writing list end: ", err)
 11866  		}
 11867  		if err := oprot.WriteFieldEnd(); err != nil {
 11868  			return thrift.PrependError(fmt.Sprintf("%T write field end error 2:tagValues: ", p), err)
 11869  		}
 11870  	}
 11871  	return err
 11872  }
 11873  
 11874  func (p *AggregateQueryResultTagNameElement) String() string {
 11875  	if p == nil {
 11876  		return "<nil>"
 11877  	}
 11878  	return fmt.Sprintf("AggregateQueryResultTagNameElement(%+v)", *p)
 11879  }
 11880  
 11881  // Attributes:
 11882  //  - TagValue
 11883  type AggregateQueryResultTagValueElement struct {
 11884  	TagValue string `thrift:"tagValue,1,required" db:"tagValue" json:"tagValue"`
 11885  }
 11886  
 11887  func NewAggregateQueryResultTagValueElement() *AggregateQueryResultTagValueElement {
 11888  	return &AggregateQueryResultTagValueElement{}
 11889  }
 11890  
 11891  func (p *AggregateQueryResultTagValueElement) GetTagValue() string {
 11892  	return p.TagValue
 11893  }
 11894  func (p *AggregateQueryResultTagValueElement) Read(iprot thrift.TProtocol) error {
 11895  	if _, err := iprot.ReadStructBegin(); err != nil {
 11896  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 11897  	}
 11898  
 11899  	var issetTagValue bool = false
 11900  
 11901  	for {
 11902  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 11903  		if err != nil {
 11904  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 11905  		}
 11906  		if fieldTypeId == thrift.STOP {
 11907  			break
 11908  		}
 11909  		switch fieldId {
 11910  		case 1:
 11911  			if err := p.ReadField1(iprot); err != nil {
 11912  				return err
 11913  			}
 11914  			issetTagValue = true
 11915  		default:
 11916  			if err := iprot.Skip(fieldTypeId); err != nil {
 11917  				return err
 11918  			}
 11919  		}
 11920  		if err := iprot.ReadFieldEnd(); err != nil {
 11921  			return err
 11922  		}
 11923  	}
 11924  	if err := iprot.ReadStructEnd(); err != nil {
 11925  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 11926  	}
 11927  	if !issetTagValue {
 11928  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field TagValue is not set"))
 11929  	}
 11930  	return nil
 11931  }
 11932  
 11933  func (p *AggregateQueryResultTagValueElement) ReadField1(iprot thrift.TProtocol) error {
 11934  	if v, err := iprot.ReadString(); err != nil {
 11935  		return thrift.PrependError("error reading field 1: ", err)
 11936  	} else {
 11937  		p.TagValue = v
 11938  	}
 11939  	return nil
 11940  }
 11941  
 11942  func (p *AggregateQueryResultTagValueElement) Write(oprot thrift.TProtocol) error {
 11943  	if err := oprot.WriteStructBegin("AggregateQueryResultTagValueElement"); err != nil {
 11944  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 11945  	}
 11946  	if p != nil {
 11947  		if err := p.writeField1(oprot); err != nil {
 11948  			return err
 11949  		}
 11950  	}
 11951  	if err := oprot.WriteFieldStop(); err != nil {
 11952  		return thrift.PrependError("write field stop error: ", err)
 11953  	}
 11954  	if err := oprot.WriteStructEnd(); err != nil {
 11955  		return thrift.PrependError("write struct stop error: ", err)
 11956  	}
 11957  	return nil
 11958  }
 11959  
 11960  func (p *AggregateQueryResultTagValueElement) writeField1(oprot thrift.TProtocol) (err error) {
 11961  	if err := oprot.WriteFieldBegin("tagValue", thrift.STRING, 1); err != nil {
 11962  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:tagValue: ", p), err)
 11963  	}
 11964  	if err := oprot.WriteString(string(p.TagValue)); err != nil {
 11965  		return thrift.PrependError(fmt.Sprintf("%T.tagValue (1) field write error: ", p), err)
 11966  	}
 11967  	if err := oprot.WriteFieldEnd(); err != nil {
 11968  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:tagValue: ", p), err)
 11969  	}
 11970  	return err
 11971  }
 11972  
 11973  func (p *AggregateQueryResultTagValueElement) String() string {
 11974  	if p == nil {
 11975  		return "<nil>"
 11976  	}
 11977  	return fmt.Sprintf("AggregateQueryResultTagValueElement(%+v)", *p)
 11978  }
 11979  
 11980  // Attributes:
 11981  //  - Query
 11982  //  - RangeStart
 11983  //  - RangeEnd
 11984  //  - NameSpace
 11985  //  - Limit
 11986  //  - NoData
 11987  //  - RangeType
 11988  //  - ResultTimeType
 11989  //  - Source
 11990  //  - ClusterOptions
 11991  type QueryRequest struct {
 11992  	Query          *Query               `thrift:"query,1,required" db:"query" json:"query"`
 11993  	RangeStart     int64                `thrift:"rangeStart,2,required" db:"rangeStart" json:"rangeStart"`
 11994  	RangeEnd       int64                `thrift:"rangeEnd,3,required" db:"rangeEnd" json:"rangeEnd"`
 11995  	NameSpace      string               `thrift:"nameSpace,4,required" db:"nameSpace" json:"nameSpace"`
 11996  	Limit          *int64               `thrift:"limit,5" db:"limit" json:"limit,omitempty"`
 11997  	NoData         *bool                `thrift:"noData,6" db:"noData" json:"noData,omitempty"`
 11998  	RangeType      TimeType             `thrift:"rangeType,7" db:"rangeType" json:"rangeType,omitempty"`
 11999  	ResultTimeType TimeType             `thrift:"resultTimeType,8" db:"resultTimeType" json:"resultTimeType,omitempty"`
 12000  	Source         []byte               `thrift:"source,9" db:"source" json:"source,omitempty"`
 12001  	ClusterOptions *ClusterQueryOptions `thrift:"clusterOptions,10" db:"clusterOptions" json:"clusterOptions,omitempty"`
 12002  }
 12003  
 12004  func NewQueryRequest() *QueryRequest {
 12005  	return &QueryRequest{
 12006  		RangeType: 0,
 12007  
 12008  		ResultTimeType: 0,
 12009  	}
 12010  }
 12011  
 12012  var QueryRequest_Query_DEFAULT *Query
 12013  
 12014  func (p *QueryRequest) GetQuery() *Query {
 12015  	if !p.IsSetQuery() {
 12016  		return QueryRequest_Query_DEFAULT
 12017  	}
 12018  	return p.Query
 12019  }
 12020  
 12021  func (p *QueryRequest) GetRangeStart() int64 {
 12022  	return p.RangeStart
 12023  }
 12024  
 12025  func (p *QueryRequest) GetRangeEnd() int64 {
 12026  	return p.RangeEnd
 12027  }
 12028  
 12029  func (p *QueryRequest) GetNameSpace() string {
 12030  	return p.NameSpace
 12031  }
 12032  
 12033  var QueryRequest_Limit_DEFAULT int64
 12034  
 12035  func (p *QueryRequest) GetLimit() int64 {
 12036  	if !p.IsSetLimit() {
 12037  		return QueryRequest_Limit_DEFAULT
 12038  	}
 12039  	return *p.Limit
 12040  }
 12041  
 12042  var QueryRequest_NoData_DEFAULT bool
 12043  
 12044  func (p *QueryRequest) GetNoData() bool {
 12045  	if !p.IsSetNoData() {
 12046  		return QueryRequest_NoData_DEFAULT
 12047  	}
 12048  	return *p.NoData
 12049  }
 12050  
 12051  var QueryRequest_RangeType_DEFAULT TimeType = 0
 12052  
 12053  func (p *QueryRequest) GetRangeType() TimeType {
 12054  	return p.RangeType
 12055  }
 12056  
 12057  var QueryRequest_ResultTimeType_DEFAULT TimeType = 0
 12058  
 12059  func (p *QueryRequest) GetResultTimeType() TimeType {
 12060  	return p.ResultTimeType
 12061  }
 12062  
 12063  var QueryRequest_Source_DEFAULT []byte
 12064  
 12065  func (p *QueryRequest) GetSource() []byte {
 12066  	return p.Source
 12067  }
 12068  
 12069  var QueryRequest_ClusterOptions_DEFAULT *ClusterQueryOptions
 12070  
 12071  func (p *QueryRequest) GetClusterOptions() *ClusterQueryOptions {
 12072  	if !p.IsSetClusterOptions() {
 12073  		return QueryRequest_ClusterOptions_DEFAULT
 12074  	}
 12075  	return p.ClusterOptions
 12076  }
 12077  func (p *QueryRequest) IsSetQuery() bool {
 12078  	return p.Query != nil
 12079  }
 12080  
 12081  func (p *QueryRequest) IsSetLimit() bool {
 12082  	return p.Limit != nil
 12083  }
 12084  
 12085  func (p *QueryRequest) IsSetNoData() bool {
 12086  	return p.NoData != nil
 12087  }
 12088  
 12089  func (p *QueryRequest) IsSetRangeType() bool {
 12090  	return p.RangeType != QueryRequest_RangeType_DEFAULT
 12091  }
 12092  
 12093  func (p *QueryRequest) IsSetResultTimeType() bool {
 12094  	return p.ResultTimeType != QueryRequest_ResultTimeType_DEFAULT
 12095  }
 12096  
 12097  func (p *QueryRequest) IsSetSource() bool {
 12098  	return p.Source != nil
 12099  }
 12100  
 12101  func (p *QueryRequest) IsSetClusterOptions() bool {
 12102  	return p.ClusterOptions != nil
 12103  }
 12104  
 12105  func (p *QueryRequest) Read(iprot thrift.TProtocol) error {
 12106  	if _, err := iprot.ReadStructBegin(); err != nil {
 12107  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 12108  	}
 12109  
 12110  	var issetQuery bool = false
 12111  	var issetRangeStart bool = false
 12112  	var issetRangeEnd bool = false
 12113  	var issetNameSpace bool = false
 12114  
 12115  	for {
 12116  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 12117  		if err != nil {
 12118  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 12119  		}
 12120  		if fieldTypeId == thrift.STOP {
 12121  			break
 12122  		}
 12123  		switch fieldId {
 12124  		case 1:
 12125  			if err := p.ReadField1(iprot); err != nil {
 12126  				return err
 12127  			}
 12128  			issetQuery = true
 12129  		case 2:
 12130  			if err := p.ReadField2(iprot); err != nil {
 12131  				return err
 12132  			}
 12133  			issetRangeStart = true
 12134  		case 3:
 12135  			if err := p.ReadField3(iprot); err != nil {
 12136  				return err
 12137  			}
 12138  			issetRangeEnd = true
 12139  		case 4:
 12140  			if err := p.ReadField4(iprot); err != nil {
 12141  				return err
 12142  			}
 12143  			issetNameSpace = true
 12144  		case 5:
 12145  			if err := p.ReadField5(iprot); err != nil {
 12146  				return err
 12147  			}
 12148  		case 6:
 12149  			if err := p.ReadField6(iprot); err != nil {
 12150  				return err
 12151  			}
 12152  		case 7:
 12153  			if err := p.ReadField7(iprot); err != nil {
 12154  				return err
 12155  			}
 12156  		case 8:
 12157  			if err := p.ReadField8(iprot); err != nil {
 12158  				return err
 12159  			}
 12160  		case 9:
 12161  			if err := p.ReadField9(iprot); err != nil {
 12162  				return err
 12163  			}
 12164  		case 10:
 12165  			if err := p.ReadField10(iprot); err != nil {
 12166  				return err
 12167  			}
 12168  		default:
 12169  			if err := iprot.Skip(fieldTypeId); err != nil {
 12170  				return err
 12171  			}
 12172  		}
 12173  		if err := iprot.ReadFieldEnd(); err != nil {
 12174  			return err
 12175  		}
 12176  	}
 12177  	if err := iprot.ReadStructEnd(); err != nil {
 12178  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 12179  	}
 12180  	if !issetQuery {
 12181  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Query is not set"))
 12182  	}
 12183  	if !issetRangeStart {
 12184  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeStart is not set"))
 12185  	}
 12186  	if !issetRangeEnd {
 12187  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeEnd is not set"))
 12188  	}
 12189  	if !issetNameSpace {
 12190  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field NameSpace is not set"))
 12191  	}
 12192  	return nil
 12193  }
 12194  
 12195  func (p *QueryRequest) ReadField1(iprot thrift.TProtocol) error {
 12196  	p.Query = &Query{}
 12197  	if err := p.Query.Read(iprot); err != nil {
 12198  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Query), err)
 12199  	}
 12200  	return nil
 12201  }
 12202  
 12203  func (p *QueryRequest) ReadField2(iprot thrift.TProtocol) error {
 12204  	if v, err := iprot.ReadI64(); err != nil {
 12205  		return thrift.PrependError("error reading field 2: ", err)
 12206  	} else {
 12207  		p.RangeStart = v
 12208  	}
 12209  	return nil
 12210  }
 12211  
 12212  func (p *QueryRequest) ReadField3(iprot thrift.TProtocol) error {
 12213  	if v, err := iprot.ReadI64(); err != nil {
 12214  		return thrift.PrependError("error reading field 3: ", err)
 12215  	} else {
 12216  		p.RangeEnd = v
 12217  	}
 12218  	return nil
 12219  }
 12220  
 12221  func (p *QueryRequest) ReadField4(iprot thrift.TProtocol) error {
 12222  	if v, err := iprot.ReadString(); err != nil {
 12223  		return thrift.PrependError("error reading field 4: ", err)
 12224  	} else {
 12225  		p.NameSpace = v
 12226  	}
 12227  	return nil
 12228  }
 12229  
 12230  func (p *QueryRequest) ReadField5(iprot thrift.TProtocol) error {
 12231  	if v, err := iprot.ReadI64(); err != nil {
 12232  		return thrift.PrependError("error reading field 5: ", err)
 12233  	} else {
 12234  		p.Limit = &v
 12235  	}
 12236  	return nil
 12237  }
 12238  
 12239  func (p *QueryRequest) ReadField6(iprot thrift.TProtocol) error {
 12240  	if v, err := iprot.ReadBool(); err != nil {
 12241  		return thrift.PrependError("error reading field 6: ", err)
 12242  	} else {
 12243  		p.NoData = &v
 12244  	}
 12245  	return nil
 12246  }
 12247  
 12248  func (p *QueryRequest) ReadField7(iprot thrift.TProtocol) error {
 12249  	if v, err := iprot.ReadI32(); err != nil {
 12250  		return thrift.PrependError("error reading field 7: ", err)
 12251  	} else {
 12252  		temp := TimeType(v)
 12253  		p.RangeType = temp
 12254  	}
 12255  	return nil
 12256  }
 12257  
 12258  func (p *QueryRequest) ReadField8(iprot thrift.TProtocol) error {
 12259  	if v, err := iprot.ReadI32(); err != nil {
 12260  		return thrift.PrependError("error reading field 8: ", err)
 12261  	} else {
 12262  		temp := TimeType(v)
 12263  		p.ResultTimeType = temp
 12264  	}
 12265  	return nil
 12266  }
 12267  
 12268  func (p *QueryRequest) ReadField9(iprot thrift.TProtocol) error {
 12269  	if v, err := iprot.ReadBinary(); err != nil {
 12270  		return thrift.PrependError("error reading field 9: ", err)
 12271  	} else {
 12272  		p.Source = v
 12273  	}
 12274  	return nil
 12275  }
 12276  
 12277  func (p *QueryRequest) ReadField10(iprot thrift.TProtocol) error {
 12278  	p.ClusterOptions = &ClusterQueryOptions{}
 12279  	if err := p.ClusterOptions.Read(iprot); err != nil {
 12280  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.ClusterOptions), err)
 12281  	}
 12282  	return nil
 12283  }
 12284  
 12285  func (p *QueryRequest) Write(oprot thrift.TProtocol) error {
 12286  	if err := oprot.WriteStructBegin("QueryRequest"); err != nil {
 12287  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 12288  	}
 12289  	if p != nil {
 12290  		if err := p.writeField1(oprot); err != nil {
 12291  			return err
 12292  		}
 12293  		if err := p.writeField2(oprot); err != nil {
 12294  			return err
 12295  		}
 12296  		if err := p.writeField3(oprot); err != nil {
 12297  			return err
 12298  		}
 12299  		if err := p.writeField4(oprot); err != nil {
 12300  			return err
 12301  		}
 12302  		if err := p.writeField5(oprot); err != nil {
 12303  			return err
 12304  		}
 12305  		if err := p.writeField6(oprot); err != nil {
 12306  			return err
 12307  		}
 12308  		if err := p.writeField7(oprot); err != nil {
 12309  			return err
 12310  		}
 12311  		if err := p.writeField8(oprot); err != nil {
 12312  			return err
 12313  		}
 12314  		if err := p.writeField9(oprot); err != nil {
 12315  			return err
 12316  		}
 12317  		if err := p.writeField10(oprot); err != nil {
 12318  			return err
 12319  		}
 12320  	}
 12321  	if err := oprot.WriteFieldStop(); err != nil {
 12322  		return thrift.PrependError("write field stop error: ", err)
 12323  	}
 12324  	if err := oprot.WriteStructEnd(); err != nil {
 12325  		return thrift.PrependError("write struct stop error: ", err)
 12326  	}
 12327  	return nil
 12328  }
 12329  
 12330  func (p *QueryRequest) writeField1(oprot thrift.TProtocol) (err error) {
 12331  	if err := oprot.WriteFieldBegin("query", thrift.STRUCT, 1); err != nil {
 12332  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:query: ", p), err)
 12333  	}
 12334  	if err := p.Query.Write(oprot); err != nil {
 12335  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Query), err)
 12336  	}
 12337  	if err := oprot.WriteFieldEnd(); err != nil {
 12338  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:query: ", p), err)
 12339  	}
 12340  	return err
 12341  }
 12342  
 12343  func (p *QueryRequest) writeField2(oprot thrift.TProtocol) (err error) {
 12344  	if err := oprot.WriteFieldBegin("rangeStart", thrift.I64, 2); err != nil {
 12345  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:rangeStart: ", p), err)
 12346  	}
 12347  	if err := oprot.WriteI64(int64(p.RangeStart)); err != nil {
 12348  		return thrift.PrependError(fmt.Sprintf("%T.rangeStart (2) field write error: ", p), err)
 12349  	}
 12350  	if err := oprot.WriteFieldEnd(); err != nil {
 12351  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:rangeStart: ", p), err)
 12352  	}
 12353  	return err
 12354  }
 12355  
 12356  func (p *QueryRequest) writeField3(oprot thrift.TProtocol) (err error) {
 12357  	if err := oprot.WriteFieldBegin("rangeEnd", thrift.I64, 3); err != nil {
 12358  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:rangeEnd: ", p), err)
 12359  	}
 12360  	if err := oprot.WriteI64(int64(p.RangeEnd)); err != nil {
 12361  		return thrift.PrependError(fmt.Sprintf("%T.rangeEnd (3) field write error: ", p), err)
 12362  	}
 12363  	if err := oprot.WriteFieldEnd(); err != nil {
 12364  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:rangeEnd: ", p), err)
 12365  	}
 12366  	return err
 12367  }
 12368  
 12369  func (p *QueryRequest) writeField4(oprot thrift.TProtocol) (err error) {
 12370  	if err := oprot.WriteFieldBegin("nameSpace", thrift.STRING, 4); err != nil {
 12371  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:nameSpace: ", p), err)
 12372  	}
 12373  	if err := oprot.WriteString(string(p.NameSpace)); err != nil {
 12374  		return thrift.PrependError(fmt.Sprintf("%T.nameSpace (4) field write error: ", p), err)
 12375  	}
 12376  	if err := oprot.WriteFieldEnd(); err != nil {
 12377  		return thrift.PrependError(fmt.Sprintf("%T write field end error 4:nameSpace: ", p), err)
 12378  	}
 12379  	return err
 12380  }
 12381  
 12382  func (p *QueryRequest) writeField5(oprot thrift.TProtocol) (err error) {
 12383  	if p.IsSetLimit() {
 12384  		if err := oprot.WriteFieldBegin("limit", thrift.I64, 5); err != nil {
 12385  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:limit: ", p), err)
 12386  		}
 12387  		if err := oprot.WriteI64(int64(*p.Limit)); err != nil {
 12388  			return thrift.PrependError(fmt.Sprintf("%T.limit (5) field write error: ", p), err)
 12389  		}
 12390  		if err := oprot.WriteFieldEnd(); err != nil {
 12391  			return thrift.PrependError(fmt.Sprintf("%T write field end error 5:limit: ", p), err)
 12392  		}
 12393  	}
 12394  	return err
 12395  }
 12396  
 12397  func (p *QueryRequest) writeField6(oprot thrift.TProtocol) (err error) {
 12398  	if p.IsSetNoData() {
 12399  		if err := oprot.WriteFieldBegin("noData", thrift.BOOL, 6); err != nil {
 12400  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:noData: ", p), err)
 12401  		}
 12402  		if err := oprot.WriteBool(bool(*p.NoData)); err != nil {
 12403  			return thrift.PrependError(fmt.Sprintf("%T.noData (6) field write error: ", p), err)
 12404  		}
 12405  		if err := oprot.WriteFieldEnd(); err != nil {
 12406  			return thrift.PrependError(fmt.Sprintf("%T write field end error 6:noData: ", p), err)
 12407  		}
 12408  	}
 12409  	return err
 12410  }
 12411  
 12412  func (p *QueryRequest) writeField7(oprot thrift.TProtocol) (err error) {
 12413  	if p.IsSetRangeType() {
 12414  		if err := oprot.WriteFieldBegin("rangeType", thrift.I32, 7); err != nil {
 12415  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 7:rangeType: ", p), err)
 12416  		}
 12417  		if err := oprot.WriteI32(int32(p.RangeType)); err != nil {
 12418  			return thrift.PrependError(fmt.Sprintf("%T.rangeType (7) field write error: ", p), err)
 12419  		}
 12420  		if err := oprot.WriteFieldEnd(); err != nil {
 12421  			return thrift.PrependError(fmt.Sprintf("%T write field end error 7:rangeType: ", p), err)
 12422  		}
 12423  	}
 12424  	return err
 12425  }
 12426  
 12427  func (p *QueryRequest) writeField8(oprot thrift.TProtocol) (err error) {
 12428  	if p.IsSetResultTimeType() {
 12429  		if err := oprot.WriteFieldBegin("resultTimeType", thrift.I32, 8); err != nil {
 12430  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 8:resultTimeType: ", p), err)
 12431  		}
 12432  		if err := oprot.WriteI32(int32(p.ResultTimeType)); err != nil {
 12433  			return thrift.PrependError(fmt.Sprintf("%T.resultTimeType (8) field write error: ", p), err)
 12434  		}
 12435  		if err := oprot.WriteFieldEnd(); err != nil {
 12436  			return thrift.PrependError(fmt.Sprintf("%T write field end error 8:resultTimeType: ", p), err)
 12437  		}
 12438  	}
 12439  	return err
 12440  }
 12441  
 12442  func (p *QueryRequest) writeField9(oprot thrift.TProtocol) (err error) {
 12443  	if p.IsSetSource() {
 12444  		if err := oprot.WriteFieldBegin("source", thrift.STRING, 9); err != nil {
 12445  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 9:source: ", p), err)
 12446  		}
 12447  		if err := oprot.WriteBinary(p.Source); err != nil {
 12448  			return thrift.PrependError(fmt.Sprintf("%T.source (9) field write error: ", p), err)
 12449  		}
 12450  		if err := oprot.WriteFieldEnd(); err != nil {
 12451  			return thrift.PrependError(fmt.Sprintf("%T write field end error 9:source: ", p), err)
 12452  		}
 12453  	}
 12454  	return err
 12455  }
 12456  
 12457  func (p *QueryRequest) writeField10(oprot thrift.TProtocol) (err error) {
 12458  	if p.IsSetClusterOptions() {
 12459  		if err := oprot.WriteFieldBegin("clusterOptions", thrift.STRUCT, 10); err != nil {
 12460  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 10:clusterOptions: ", p), err)
 12461  		}
 12462  		if err := p.ClusterOptions.Write(oprot); err != nil {
 12463  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.ClusterOptions), err)
 12464  		}
 12465  		if err := oprot.WriteFieldEnd(); err != nil {
 12466  			return thrift.PrependError(fmt.Sprintf("%T write field end error 10:clusterOptions: ", p), err)
 12467  		}
 12468  	}
 12469  	return err
 12470  }
 12471  
 12472  func (p *QueryRequest) String() string {
 12473  	if p == nil {
 12474  		return "<nil>"
 12475  	}
 12476  	return fmt.Sprintf("QueryRequest(%+v)", *p)
 12477  }
 12478  
 12479  // Attributes:
 12480  //  - ReadConsistency
 12481  //  - ConflictResolutionStrategy
 12482  type ClusterQueryOptions struct {
 12483  	ReadConsistency            *ReadConsistency        `thrift:"readConsistency,1" db:"readConsistency" json:"readConsistency,omitempty"`
 12484  	ConflictResolutionStrategy *EqualTimestampStrategy `thrift:"conflictResolutionStrategy,2" db:"conflictResolutionStrategy" json:"conflictResolutionStrategy,omitempty"`
 12485  }
 12486  
 12487  func NewClusterQueryOptions() *ClusterQueryOptions {
 12488  	return &ClusterQueryOptions{}
 12489  }
 12490  
 12491  var ClusterQueryOptions_ReadConsistency_DEFAULT ReadConsistency
 12492  
 12493  func (p *ClusterQueryOptions) GetReadConsistency() ReadConsistency {
 12494  	if !p.IsSetReadConsistency() {
 12495  		return ClusterQueryOptions_ReadConsistency_DEFAULT
 12496  	}
 12497  	return *p.ReadConsistency
 12498  }
 12499  
 12500  var ClusterQueryOptions_ConflictResolutionStrategy_DEFAULT EqualTimestampStrategy
 12501  
 12502  func (p *ClusterQueryOptions) GetConflictResolutionStrategy() EqualTimestampStrategy {
 12503  	if !p.IsSetConflictResolutionStrategy() {
 12504  		return ClusterQueryOptions_ConflictResolutionStrategy_DEFAULT
 12505  	}
 12506  	return *p.ConflictResolutionStrategy
 12507  }
 12508  func (p *ClusterQueryOptions) IsSetReadConsistency() bool {
 12509  	return p.ReadConsistency != nil
 12510  }
 12511  
 12512  func (p *ClusterQueryOptions) IsSetConflictResolutionStrategy() bool {
 12513  	return p.ConflictResolutionStrategy != nil
 12514  }
 12515  
 12516  func (p *ClusterQueryOptions) Read(iprot thrift.TProtocol) error {
 12517  	if _, err := iprot.ReadStructBegin(); err != nil {
 12518  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 12519  	}
 12520  
 12521  	for {
 12522  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 12523  		if err != nil {
 12524  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 12525  		}
 12526  		if fieldTypeId == thrift.STOP {
 12527  			break
 12528  		}
 12529  		switch fieldId {
 12530  		case 1:
 12531  			if err := p.ReadField1(iprot); err != nil {
 12532  				return err
 12533  			}
 12534  		case 2:
 12535  			if err := p.ReadField2(iprot); err != nil {
 12536  				return err
 12537  			}
 12538  		default:
 12539  			if err := iprot.Skip(fieldTypeId); err != nil {
 12540  				return err
 12541  			}
 12542  		}
 12543  		if err := iprot.ReadFieldEnd(); err != nil {
 12544  			return err
 12545  		}
 12546  	}
 12547  	if err := iprot.ReadStructEnd(); err != nil {
 12548  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 12549  	}
 12550  	return nil
 12551  }
 12552  
 12553  func (p *ClusterQueryOptions) ReadField1(iprot thrift.TProtocol) error {
 12554  	if v, err := iprot.ReadI32(); err != nil {
 12555  		return thrift.PrependError("error reading field 1: ", err)
 12556  	} else {
 12557  		temp := ReadConsistency(v)
 12558  		p.ReadConsistency = &temp
 12559  	}
 12560  	return nil
 12561  }
 12562  
 12563  func (p *ClusterQueryOptions) ReadField2(iprot thrift.TProtocol) error {
 12564  	if v, err := iprot.ReadI32(); err != nil {
 12565  		return thrift.PrependError("error reading field 2: ", err)
 12566  	} else {
 12567  		temp := EqualTimestampStrategy(v)
 12568  		p.ConflictResolutionStrategy = &temp
 12569  	}
 12570  	return nil
 12571  }
 12572  
 12573  func (p *ClusterQueryOptions) Write(oprot thrift.TProtocol) error {
 12574  	if err := oprot.WriteStructBegin("ClusterQueryOptions"); err != nil {
 12575  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 12576  	}
 12577  	if p != nil {
 12578  		if err := p.writeField1(oprot); err != nil {
 12579  			return err
 12580  		}
 12581  		if err := p.writeField2(oprot); err != nil {
 12582  			return err
 12583  		}
 12584  	}
 12585  	if err := oprot.WriteFieldStop(); err != nil {
 12586  		return thrift.PrependError("write field stop error: ", err)
 12587  	}
 12588  	if err := oprot.WriteStructEnd(); err != nil {
 12589  		return thrift.PrependError("write struct stop error: ", err)
 12590  	}
 12591  	return nil
 12592  }
 12593  
 12594  func (p *ClusterQueryOptions) writeField1(oprot thrift.TProtocol) (err error) {
 12595  	if p.IsSetReadConsistency() {
 12596  		if err := oprot.WriteFieldBegin("readConsistency", thrift.I32, 1); err != nil {
 12597  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:readConsistency: ", p), err)
 12598  		}
 12599  		if err := oprot.WriteI32(int32(*p.ReadConsistency)); err != nil {
 12600  			return thrift.PrependError(fmt.Sprintf("%T.readConsistency (1) field write error: ", p), err)
 12601  		}
 12602  		if err := oprot.WriteFieldEnd(); err != nil {
 12603  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:readConsistency: ", p), err)
 12604  		}
 12605  	}
 12606  	return err
 12607  }
 12608  
 12609  func (p *ClusterQueryOptions) writeField2(oprot thrift.TProtocol) (err error) {
 12610  	if p.IsSetConflictResolutionStrategy() {
 12611  		if err := oprot.WriteFieldBegin("conflictResolutionStrategy", thrift.I32, 2); err != nil {
 12612  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:conflictResolutionStrategy: ", p), err)
 12613  		}
 12614  		if err := oprot.WriteI32(int32(*p.ConflictResolutionStrategy)); err != nil {
 12615  			return thrift.PrependError(fmt.Sprintf("%T.conflictResolutionStrategy (2) field write error: ", p), err)
 12616  		}
 12617  		if err := oprot.WriteFieldEnd(); err != nil {
 12618  			return thrift.PrependError(fmt.Sprintf("%T write field end error 2:conflictResolutionStrategy: ", p), err)
 12619  		}
 12620  	}
 12621  	return err
 12622  }
 12623  
 12624  func (p *ClusterQueryOptions) String() string {
 12625  	if p == nil {
 12626  		return "<nil>"
 12627  	}
 12628  	return fmt.Sprintf("ClusterQueryOptions(%+v)", *p)
 12629  }
 12630  
 12631  // Attributes:
 12632  //  - Results
 12633  //  - Exhaustive
 12634  type QueryResult_ struct {
 12635  	Results    []*QueryResultElement `thrift:"results,1,required" db:"results" json:"results"`
 12636  	Exhaustive bool                  `thrift:"exhaustive,2,required" db:"exhaustive" json:"exhaustive"`
 12637  }
 12638  
 12639  func NewQueryResult_() *QueryResult_ {
 12640  	return &QueryResult_{}
 12641  }
 12642  
 12643  func (p *QueryResult_) GetResults() []*QueryResultElement {
 12644  	return p.Results
 12645  }
 12646  
 12647  func (p *QueryResult_) GetExhaustive() bool {
 12648  	return p.Exhaustive
 12649  }
 12650  func (p *QueryResult_) Read(iprot thrift.TProtocol) error {
 12651  	if _, err := iprot.ReadStructBegin(); err != nil {
 12652  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 12653  	}
 12654  
 12655  	var issetResults bool = false
 12656  	var issetExhaustive bool = false
 12657  
 12658  	for {
 12659  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 12660  		if err != nil {
 12661  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 12662  		}
 12663  		if fieldTypeId == thrift.STOP {
 12664  			break
 12665  		}
 12666  		switch fieldId {
 12667  		case 1:
 12668  			if err := p.ReadField1(iprot); err != nil {
 12669  				return err
 12670  			}
 12671  			issetResults = true
 12672  		case 2:
 12673  			if err := p.ReadField2(iprot); err != nil {
 12674  				return err
 12675  			}
 12676  			issetExhaustive = true
 12677  		default:
 12678  			if err := iprot.Skip(fieldTypeId); err != nil {
 12679  				return err
 12680  			}
 12681  		}
 12682  		if err := iprot.ReadFieldEnd(); err != nil {
 12683  			return err
 12684  		}
 12685  	}
 12686  	if err := iprot.ReadStructEnd(); err != nil {
 12687  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 12688  	}
 12689  	if !issetResults {
 12690  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Results is not set"))
 12691  	}
 12692  	if !issetExhaustive {
 12693  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Exhaustive is not set"))
 12694  	}
 12695  	return nil
 12696  }
 12697  
 12698  func (p *QueryResult_) ReadField1(iprot thrift.TProtocol) error {
 12699  	_, size, err := iprot.ReadListBegin()
 12700  	if err != nil {
 12701  		return thrift.PrependError("error reading list begin: ", err)
 12702  	}
 12703  	tSlice := make([]*QueryResultElement, 0, size)
 12704  	p.Results = tSlice
 12705  	for i := 0; i < size; i++ {
 12706  		_elem30 := &QueryResultElement{}
 12707  		if err := _elem30.Read(iprot); err != nil {
 12708  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem30), err)
 12709  		}
 12710  		p.Results = append(p.Results, _elem30)
 12711  	}
 12712  	if err := iprot.ReadListEnd(); err != nil {
 12713  		return thrift.PrependError("error reading list end: ", err)
 12714  	}
 12715  	return nil
 12716  }
 12717  
 12718  func (p *QueryResult_) ReadField2(iprot thrift.TProtocol) error {
 12719  	if v, err := iprot.ReadBool(); err != nil {
 12720  		return thrift.PrependError("error reading field 2: ", err)
 12721  	} else {
 12722  		p.Exhaustive = v
 12723  	}
 12724  	return nil
 12725  }
 12726  
 12727  func (p *QueryResult_) Write(oprot thrift.TProtocol) error {
 12728  	if err := oprot.WriteStructBegin("QueryResult"); err != nil {
 12729  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 12730  	}
 12731  	if p != nil {
 12732  		if err := p.writeField1(oprot); err != nil {
 12733  			return err
 12734  		}
 12735  		if err := p.writeField2(oprot); err != nil {
 12736  			return err
 12737  		}
 12738  	}
 12739  	if err := oprot.WriteFieldStop(); err != nil {
 12740  		return thrift.PrependError("write field stop error: ", err)
 12741  	}
 12742  	if err := oprot.WriteStructEnd(); err != nil {
 12743  		return thrift.PrependError("write struct stop error: ", err)
 12744  	}
 12745  	return nil
 12746  }
 12747  
 12748  func (p *QueryResult_) writeField1(oprot thrift.TProtocol) (err error) {
 12749  	if err := oprot.WriteFieldBegin("results", thrift.LIST, 1); err != nil {
 12750  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:results: ", p), err)
 12751  	}
 12752  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Results)); err != nil {
 12753  		return thrift.PrependError("error writing list begin: ", err)
 12754  	}
 12755  	for _, v := range p.Results {
 12756  		if err := v.Write(oprot); err != nil {
 12757  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
 12758  		}
 12759  	}
 12760  	if err := oprot.WriteListEnd(); err != nil {
 12761  		return thrift.PrependError("error writing list end: ", err)
 12762  	}
 12763  	if err := oprot.WriteFieldEnd(); err != nil {
 12764  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:results: ", p), err)
 12765  	}
 12766  	return err
 12767  }
 12768  
 12769  func (p *QueryResult_) writeField2(oprot thrift.TProtocol) (err error) {
 12770  	if err := oprot.WriteFieldBegin("exhaustive", thrift.BOOL, 2); err != nil {
 12771  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:exhaustive: ", p), err)
 12772  	}
 12773  	if err := oprot.WriteBool(bool(p.Exhaustive)); err != nil {
 12774  		return thrift.PrependError(fmt.Sprintf("%T.exhaustive (2) field write error: ", p), err)
 12775  	}
 12776  	if err := oprot.WriteFieldEnd(); err != nil {
 12777  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:exhaustive: ", p), err)
 12778  	}
 12779  	return err
 12780  }
 12781  
 12782  func (p *QueryResult_) String() string {
 12783  	if p == nil {
 12784  		return "<nil>"
 12785  	}
 12786  	return fmt.Sprintf("QueryResult_(%+v)", *p)
 12787  }
 12788  
 12789  // Attributes:
 12790  //  - ID
 12791  //  - Tags
 12792  //  - Datapoints
 12793  type QueryResultElement struct {
 12794  	ID         string       `thrift:"id,1,required" db:"id" json:"id"`
 12795  	Tags       []*Tag       `thrift:"tags,2,required" db:"tags" json:"tags"`
 12796  	Datapoints []*Datapoint `thrift:"datapoints,3,required" db:"datapoints" json:"datapoints"`
 12797  }
 12798  
 12799  func NewQueryResultElement() *QueryResultElement {
 12800  	return &QueryResultElement{}
 12801  }
 12802  
 12803  func (p *QueryResultElement) GetID() string {
 12804  	return p.ID
 12805  }
 12806  
 12807  func (p *QueryResultElement) GetTags() []*Tag {
 12808  	return p.Tags
 12809  }
 12810  
 12811  func (p *QueryResultElement) GetDatapoints() []*Datapoint {
 12812  	return p.Datapoints
 12813  }
 12814  func (p *QueryResultElement) Read(iprot thrift.TProtocol) error {
 12815  	if _, err := iprot.ReadStructBegin(); err != nil {
 12816  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 12817  	}
 12818  
 12819  	var issetID bool = false
 12820  	var issetTags bool = false
 12821  	var issetDatapoints bool = false
 12822  
 12823  	for {
 12824  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 12825  		if err != nil {
 12826  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 12827  		}
 12828  		if fieldTypeId == thrift.STOP {
 12829  			break
 12830  		}
 12831  		switch fieldId {
 12832  		case 1:
 12833  			if err := p.ReadField1(iprot); err != nil {
 12834  				return err
 12835  			}
 12836  			issetID = true
 12837  		case 2:
 12838  			if err := p.ReadField2(iprot); err != nil {
 12839  				return err
 12840  			}
 12841  			issetTags = true
 12842  		case 3:
 12843  			if err := p.ReadField3(iprot); err != nil {
 12844  				return err
 12845  			}
 12846  			issetDatapoints = true
 12847  		default:
 12848  			if err := iprot.Skip(fieldTypeId); err != nil {
 12849  				return err
 12850  			}
 12851  		}
 12852  		if err := iprot.ReadFieldEnd(); err != nil {
 12853  			return err
 12854  		}
 12855  	}
 12856  	if err := iprot.ReadStructEnd(); err != nil {
 12857  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 12858  	}
 12859  	if !issetID {
 12860  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ID is not set"))
 12861  	}
 12862  	if !issetTags {
 12863  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Tags is not set"))
 12864  	}
 12865  	if !issetDatapoints {
 12866  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Datapoints is not set"))
 12867  	}
 12868  	return nil
 12869  }
 12870  
 12871  func (p *QueryResultElement) ReadField1(iprot thrift.TProtocol) error {
 12872  	if v, err := iprot.ReadString(); err != nil {
 12873  		return thrift.PrependError("error reading field 1: ", err)
 12874  	} else {
 12875  		p.ID = v
 12876  	}
 12877  	return nil
 12878  }
 12879  
 12880  func (p *QueryResultElement) ReadField2(iprot thrift.TProtocol) error {
 12881  	_, size, err := iprot.ReadListBegin()
 12882  	if err != nil {
 12883  		return thrift.PrependError("error reading list begin: ", err)
 12884  	}
 12885  	tSlice := make([]*Tag, 0, size)
 12886  	p.Tags = tSlice
 12887  	for i := 0; i < size; i++ {
 12888  		_elem31 := &Tag{}
 12889  		if err := _elem31.Read(iprot); err != nil {
 12890  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem31), err)
 12891  		}
 12892  		p.Tags = append(p.Tags, _elem31)
 12893  	}
 12894  	if err := iprot.ReadListEnd(); err != nil {
 12895  		return thrift.PrependError("error reading list end: ", err)
 12896  	}
 12897  	return nil
 12898  }
 12899  
 12900  func (p *QueryResultElement) ReadField3(iprot thrift.TProtocol) error {
 12901  	_, size, err := iprot.ReadListBegin()
 12902  	if err != nil {
 12903  		return thrift.PrependError("error reading list begin: ", err)
 12904  	}
 12905  	tSlice := make([]*Datapoint, 0, size)
 12906  	p.Datapoints = tSlice
 12907  	for i := 0; i < size; i++ {
 12908  		_elem32 := &Datapoint{
 12909  			TimestampTimeType: 0,
 12910  		}
 12911  		if err := _elem32.Read(iprot); err != nil {
 12912  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem32), err)
 12913  		}
 12914  		p.Datapoints = append(p.Datapoints, _elem32)
 12915  	}
 12916  	if err := iprot.ReadListEnd(); err != nil {
 12917  		return thrift.PrependError("error reading list end: ", err)
 12918  	}
 12919  	return nil
 12920  }
 12921  
 12922  func (p *QueryResultElement) Write(oprot thrift.TProtocol) error {
 12923  	if err := oprot.WriteStructBegin("QueryResultElement"); err != nil {
 12924  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 12925  	}
 12926  	if p != nil {
 12927  		if err := p.writeField1(oprot); err != nil {
 12928  			return err
 12929  		}
 12930  		if err := p.writeField2(oprot); err != nil {
 12931  			return err
 12932  		}
 12933  		if err := p.writeField3(oprot); err != nil {
 12934  			return err
 12935  		}
 12936  	}
 12937  	if err := oprot.WriteFieldStop(); err != nil {
 12938  		return thrift.PrependError("write field stop error: ", err)
 12939  	}
 12940  	if err := oprot.WriteStructEnd(); err != nil {
 12941  		return thrift.PrependError("write struct stop error: ", err)
 12942  	}
 12943  	return nil
 12944  }
 12945  
 12946  func (p *QueryResultElement) writeField1(oprot thrift.TProtocol) (err error) {
 12947  	if err := oprot.WriteFieldBegin("id", thrift.STRING, 1); err != nil {
 12948  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:id: ", p), err)
 12949  	}
 12950  	if err := oprot.WriteString(string(p.ID)); err != nil {
 12951  		return thrift.PrependError(fmt.Sprintf("%T.id (1) field write error: ", p), err)
 12952  	}
 12953  	if err := oprot.WriteFieldEnd(); err != nil {
 12954  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:id: ", p), err)
 12955  	}
 12956  	return err
 12957  }
 12958  
 12959  func (p *QueryResultElement) writeField2(oprot thrift.TProtocol) (err error) {
 12960  	if err := oprot.WriteFieldBegin("tags", thrift.LIST, 2); err != nil {
 12961  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:tags: ", p), err)
 12962  	}
 12963  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Tags)); err != nil {
 12964  		return thrift.PrependError("error writing list begin: ", err)
 12965  	}
 12966  	for _, v := range p.Tags {
 12967  		if err := v.Write(oprot); err != nil {
 12968  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
 12969  		}
 12970  	}
 12971  	if err := oprot.WriteListEnd(); err != nil {
 12972  		return thrift.PrependError("error writing list end: ", err)
 12973  	}
 12974  	if err := oprot.WriteFieldEnd(); err != nil {
 12975  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:tags: ", p), err)
 12976  	}
 12977  	return err
 12978  }
 12979  
 12980  func (p *QueryResultElement) writeField3(oprot thrift.TProtocol) (err error) {
 12981  	if err := oprot.WriteFieldBegin("datapoints", thrift.LIST, 3); err != nil {
 12982  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:datapoints: ", p), err)
 12983  	}
 12984  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Datapoints)); err != nil {
 12985  		return thrift.PrependError("error writing list begin: ", err)
 12986  	}
 12987  	for _, v := range p.Datapoints {
 12988  		if err := v.Write(oprot); err != nil {
 12989  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
 12990  		}
 12991  	}
 12992  	if err := oprot.WriteListEnd(); err != nil {
 12993  		return thrift.PrependError("error writing list end: ", err)
 12994  	}
 12995  	if err := oprot.WriteFieldEnd(); err != nil {
 12996  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:datapoints: ", p), err)
 12997  	}
 12998  	return err
 12999  }
 13000  
 13001  func (p *QueryResultElement) String() string {
 13002  	if p == nil {
 13003  		return "<nil>"
 13004  	}
 13005  	return fmt.Sprintf("QueryResultElement(%+v)", *p)
 13006  }
 13007  
 13008  // Attributes:
 13009  //  - Field
 13010  //  - Term
 13011  type TermQuery struct {
 13012  	Field string `thrift:"field,1,required" db:"field" json:"field"`
 13013  	Term  string `thrift:"term,2,required" db:"term" json:"term"`
 13014  }
 13015  
 13016  func NewTermQuery() *TermQuery {
 13017  	return &TermQuery{}
 13018  }
 13019  
 13020  func (p *TermQuery) GetField() string {
 13021  	return p.Field
 13022  }
 13023  
 13024  func (p *TermQuery) GetTerm() string {
 13025  	return p.Term
 13026  }
 13027  func (p *TermQuery) Read(iprot thrift.TProtocol) error {
 13028  	if _, err := iprot.ReadStructBegin(); err != nil {
 13029  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 13030  	}
 13031  
 13032  	var issetField bool = false
 13033  	var issetTerm bool = false
 13034  
 13035  	for {
 13036  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 13037  		if err != nil {
 13038  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 13039  		}
 13040  		if fieldTypeId == thrift.STOP {
 13041  			break
 13042  		}
 13043  		switch fieldId {
 13044  		case 1:
 13045  			if err := p.ReadField1(iprot); err != nil {
 13046  				return err
 13047  			}
 13048  			issetField = true
 13049  		case 2:
 13050  			if err := p.ReadField2(iprot); err != nil {
 13051  				return err
 13052  			}
 13053  			issetTerm = true
 13054  		default:
 13055  			if err := iprot.Skip(fieldTypeId); err != nil {
 13056  				return err
 13057  			}
 13058  		}
 13059  		if err := iprot.ReadFieldEnd(); err != nil {
 13060  			return err
 13061  		}
 13062  	}
 13063  	if err := iprot.ReadStructEnd(); err != nil {
 13064  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 13065  	}
 13066  	if !issetField {
 13067  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Field is not set"))
 13068  	}
 13069  	if !issetTerm {
 13070  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Term is not set"))
 13071  	}
 13072  	return nil
 13073  }
 13074  
 13075  func (p *TermQuery) ReadField1(iprot thrift.TProtocol) error {
 13076  	if v, err := iprot.ReadString(); err != nil {
 13077  		return thrift.PrependError("error reading field 1: ", err)
 13078  	} else {
 13079  		p.Field = v
 13080  	}
 13081  	return nil
 13082  }
 13083  
 13084  func (p *TermQuery) ReadField2(iprot thrift.TProtocol) error {
 13085  	if v, err := iprot.ReadString(); err != nil {
 13086  		return thrift.PrependError("error reading field 2: ", err)
 13087  	} else {
 13088  		p.Term = v
 13089  	}
 13090  	return nil
 13091  }
 13092  
 13093  func (p *TermQuery) Write(oprot thrift.TProtocol) error {
 13094  	if err := oprot.WriteStructBegin("TermQuery"); err != nil {
 13095  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 13096  	}
 13097  	if p != nil {
 13098  		if err := p.writeField1(oprot); err != nil {
 13099  			return err
 13100  		}
 13101  		if err := p.writeField2(oprot); err != nil {
 13102  			return err
 13103  		}
 13104  	}
 13105  	if err := oprot.WriteFieldStop(); err != nil {
 13106  		return thrift.PrependError("write field stop error: ", err)
 13107  	}
 13108  	if err := oprot.WriteStructEnd(); err != nil {
 13109  		return thrift.PrependError("write struct stop error: ", err)
 13110  	}
 13111  	return nil
 13112  }
 13113  
 13114  func (p *TermQuery) writeField1(oprot thrift.TProtocol) (err error) {
 13115  	if err := oprot.WriteFieldBegin("field", thrift.STRING, 1); err != nil {
 13116  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:field: ", p), err)
 13117  	}
 13118  	if err := oprot.WriteString(string(p.Field)); err != nil {
 13119  		return thrift.PrependError(fmt.Sprintf("%T.field (1) field write error: ", p), err)
 13120  	}
 13121  	if err := oprot.WriteFieldEnd(); err != nil {
 13122  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:field: ", p), err)
 13123  	}
 13124  	return err
 13125  }
 13126  
 13127  func (p *TermQuery) writeField2(oprot thrift.TProtocol) (err error) {
 13128  	if err := oprot.WriteFieldBegin("term", thrift.STRING, 2); err != nil {
 13129  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:term: ", p), err)
 13130  	}
 13131  	if err := oprot.WriteString(string(p.Term)); err != nil {
 13132  		return thrift.PrependError(fmt.Sprintf("%T.term (2) field write error: ", p), err)
 13133  	}
 13134  	if err := oprot.WriteFieldEnd(); err != nil {
 13135  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:term: ", p), err)
 13136  	}
 13137  	return err
 13138  }
 13139  
 13140  func (p *TermQuery) String() string {
 13141  	if p == nil {
 13142  		return "<nil>"
 13143  	}
 13144  	return fmt.Sprintf("TermQuery(%+v)", *p)
 13145  }
 13146  
 13147  // Attributes:
 13148  //  - Field
 13149  //  - Regexp
 13150  type RegexpQuery struct {
 13151  	Field  string `thrift:"field,1,required" db:"field" json:"field"`
 13152  	Regexp string `thrift:"regexp,2,required" db:"regexp" json:"regexp"`
 13153  }
 13154  
 13155  func NewRegexpQuery() *RegexpQuery {
 13156  	return &RegexpQuery{}
 13157  }
 13158  
 13159  func (p *RegexpQuery) GetField() string {
 13160  	return p.Field
 13161  }
 13162  
 13163  func (p *RegexpQuery) GetRegexp() string {
 13164  	return p.Regexp
 13165  }
 13166  func (p *RegexpQuery) Read(iprot thrift.TProtocol) error {
 13167  	if _, err := iprot.ReadStructBegin(); err != nil {
 13168  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 13169  	}
 13170  
 13171  	var issetField bool = false
 13172  	var issetRegexp bool = false
 13173  
 13174  	for {
 13175  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 13176  		if err != nil {
 13177  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 13178  		}
 13179  		if fieldTypeId == thrift.STOP {
 13180  			break
 13181  		}
 13182  		switch fieldId {
 13183  		case 1:
 13184  			if err := p.ReadField1(iprot); err != nil {
 13185  				return err
 13186  			}
 13187  			issetField = true
 13188  		case 2:
 13189  			if err := p.ReadField2(iprot); err != nil {
 13190  				return err
 13191  			}
 13192  			issetRegexp = true
 13193  		default:
 13194  			if err := iprot.Skip(fieldTypeId); err != nil {
 13195  				return err
 13196  			}
 13197  		}
 13198  		if err := iprot.ReadFieldEnd(); err != nil {
 13199  			return err
 13200  		}
 13201  	}
 13202  	if err := iprot.ReadStructEnd(); err != nil {
 13203  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 13204  	}
 13205  	if !issetField {
 13206  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Field is not set"))
 13207  	}
 13208  	if !issetRegexp {
 13209  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Regexp is not set"))
 13210  	}
 13211  	return nil
 13212  }
 13213  
 13214  func (p *RegexpQuery) ReadField1(iprot thrift.TProtocol) error {
 13215  	if v, err := iprot.ReadString(); err != nil {
 13216  		return thrift.PrependError("error reading field 1: ", err)
 13217  	} else {
 13218  		p.Field = v
 13219  	}
 13220  	return nil
 13221  }
 13222  
 13223  func (p *RegexpQuery) ReadField2(iprot thrift.TProtocol) error {
 13224  	if v, err := iprot.ReadString(); err != nil {
 13225  		return thrift.PrependError("error reading field 2: ", err)
 13226  	} else {
 13227  		p.Regexp = v
 13228  	}
 13229  	return nil
 13230  }
 13231  
 13232  func (p *RegexpQuery) Write(oprot thrift.TProtocol) error {
 13233  	if err := oprot.WriteStructBegin("RegexpQuery"); err != nil {
 13234  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 13235  	}
 13236  	if p != nil {
 13237  		if err := p.writeField1(oprot); err != nil {
 13238  			return err
 13239  		}
 13240  		if err := p.writeField2(oprot); err != nil {
 13241  			return err
 13242  		}
 13243  	}
 13244  	if err := oprot.WriteFieldStop(); err != nil {
 13245  		return thrift.PrependError("write field stop error: ", err)
 13246  	}
 13247  	if err := oprot.WriteStructEnd(); err != nil {
 13248  		return thrift.PrependError("write struct stop error: ", err)
 13249  	}
 13250  	return nil
 13251  }
 13252  
 13253  func (p *RegexpQuery) writeField1(oprot thrift.TProtocol) (err error) {
 13254  	if err := oprot.WriteFieldBegin("field", thrift.STRING, 1); err != nil {
 13255  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:field: ", p), err)
 13256  	}
 13257  	if err := oprot.WriteString(string(p.Field)); err != nil {
 13258  		return thrift.PrependError(fmt.Sprintf("%T.field (1) field write error: ", p), err)
 13259  	}
 13260  	if err := oprot.WriteFieldEnd(); err != nil {
 13261  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:field: ", p), err)
 13262  	}
 13263  	return err
 13264  }
 13265  
 13266  func (p *RegexpQuery) writeField2(oprot thrift.TProtocol) (err error) {
 13267  	if err := oprot.WriteFieldBegin("regexp", thrift.STRING, 2); err != nil {
 13268  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:regexp: ", p), err)
 13269  	}
 13270  	if err := oprot.WriteString(string(p.Regexp)); err != nil {
 13271  		return thrift.PrependError(fmt.Sprintf("%T.regexp (2) field write error: ", p), err)
 13272  	}
 13273  	if err := oprot.WriteFieldEnd(); err != nil {
 13274  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:regexp: ", p), err)
 13275  	}
 13276  	return err
 13277  }
 13278  
 13279  func (p *RegexpQuery) String() string {
 13280  	if p == nil {
 13281  		return "<nil>"
 13282  	}
 13283  	return fmt.Sprintf("RegexpQuery(%+v)", *p)
 13284  }
 13285  
 13286  // Attributes:
 13287  //  - Query
 13288  type NegationQuery struct {
 13289  	Query *Query `thrift:"query,1,required" db:"query" json:"query"`
 13290  }
 13291  
 13292  func NewNegationQuery() *NegationQuery {
 13293  	return &NegationQuery{}
 13294  }
 13295  
 13296  var NegationQuery_Query_DEFAULT *Query
 13297  
 13298  func (p *NegationQuery) GetQuery() *Query {
 13299  	if !p.IsSetQuery() {
 13300  		return NegationQuery_Query_DEFAULT
 13301  	}
 13302  	return p.Query
 13303  }
 13304  func (p *NegationQuery) IsSetQuery() bool {
 13305  	return p.Query != nil
 13306  }
 13307  
 13308  func (p *NegationQuery) Read(iprot thrift.TProtocol) error {
 13309  	if _, err := iprot.ReadStructBegin(); err != nil {
 13310  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 13311  	}
 13312  
 13313  	var issetQuery bool = false
 13314  
 13315  	for {
 13316  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 13317  		if err != nil {
 13318  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 13319  		}
 13320  		if fieldTypeId == thrift.STOP {
 13321  			break
 13322  		}
 13323  		switch fieldId {
 13324  		case 1:
 13325  			if err := p.ReadField1(iprot); err != nil {
 13326  				return err
 13327  			}
 13328  			issetQuery = true
 13329  		default:
 13330  			if err := iprot.Skip(fieldTypeId); err != nil {
 13331  				return err
 13332  			}
 13333  		}
 13334  		if err := iprot.ReadFieldEnd(); err != nil {
 13335  			return err
 13336  		}
 13337  	}
 13338  	if err := iprot.ReadStructEnd(); err != nil {
 13339  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 13340  	}
 13341  	if !issetQuery {
 13342  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Query is not set"))
 13343  	}
 13344  	return nil
 13345  }
 13346  
 13347  func (p *NegationQuery) ReadField1(iprot thrift.TProtocol) error {
 13348  	p.Query = &Query{}
 13349  	if err := p.Query.Read(iprot); err != nil {
 13350  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Query), err)
 13351  	}
 13352  	return nil
 13353  }
 13354  
 13355  func (p *NegationQuery) Write(oprot thrift.TProtocol) error {
 13356  	if err := oprot.WriteStructBegin("NegationQuery"); err != nil {
 13357  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 13358  	}
 13359  	if p != nil {
 13360  		if err := p.writeField1(oprot); err != nil {
 13361  			return err
 13362  		}
 13363  	}
 13364  	if err := oprot.WriteFieldStop(); err != nil {
 13365  		return thrift.PrependError("write field stop error: ", err)
 13366  	}
 13367  	if err := oprot.WriteStructEnd(); err != nil {
 13368  		return thrift.PrependError("write struct stop error: ", err)
 13369  	}
 13370  	return nil
 13371  }
 13372  
 13373  func (p *NegationQuery) writeField1(oprot thrift.TProtocol) (err error) {
 13374  	if err := oprot.WriteFieldBegin("query", thrift.STRUCT, 1); err != nil {
 13375  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:query: ", p), err)
 13376  	}
 13377  	if err := p.Query.Write(oprot); err != nil {
 13378  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Query), err)
 13379  	}
 13380  	if err := oprot.WriteFieldEnd(); err != nil {
 13381  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:query: ", p), err)
 13382  	}
 13383  	return err
 13384  }
 13385  
 13386  func (p *NegationQuery) String() string {
 13387  	if p == nil {
 13388  		return "<nil>"
 13389  	}
 13390  	return fmt.Sprintf("NegationQuery(%+v)", *p)
 13391  }
 13392  
 13393  // Attributes:
 13394  //  - Queries
 13395  type ConjunctionQuery struct {
 13396  	Queries []*Query `thrift:"queries,1,required" db:"queries" json:"queries"`
 13397  }
 13398  
 13399  func NewConjunctionQuery() *ConjunctionQuery {
 13400  	return &ConjunctionQuery{}
 13401  }
 13402  
 13403  func (p *ConjunctionQuery) GetQueries() []*Query {
 13404  	return p.Queries
 13405  }
 13406  func (p *ConjunctionQuery) Read(iprot thrift.TProtocol) error {
 13407  	if _, err := iprot.ReadStructBegin(); err != nil {
 13408  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 13409  	}
 13410  
 13411  	var issetQueries bool = false
 13412  
 13413  	for {
 13414  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 13415  		if err != nil {
 13416  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 13417  		}
 13418  		if fieldTypeId == thrift.STOP {
 13419  			break
 13420  		}
 13421  		switch fieldId {
 13422  		case 1:
 13423  			if err := p.ReadField1(iprot); err != nil {
 13424  				return err
 13425  			}
 13426  			issetQueries = true
 13427  		default:
 13428  			if err := iprot.Skip(fieldTypeId); err != nil {
 13429  				return err
 13430  			}
 13431  		}
 13432  		if err := iprot.ReadFieldEnd(); err != nil {
 13433  			return err
 13434  		}
 13435  	}
 13436  	if err := iprot.ReadStructEnd(); err != nil {
 13437  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 13438  	}
 13439  	if !issetQueries {
 13440  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Queries is not set"))
 13441  	}
 13442  	return nil
 13443  }
 13444  
 13445  func (p *ConjunctionQuery) ReadField1(iprot thrift.TProtocol) error {
 13446  	_, size, err := iprot.ReadListBegin()
 13447  	if err != nil {
 13448  		return thrift.PrependError("error reading list begin: ", err)
 13449  	}
 13450  	tSlice := make([]*Query, 0, size)
 13451  	p.Queries = tSlice
 13452  	for i := 0; i < size; i++ {
 13453  		_elem33 := &Query{}
 13454  		if err := _elem33.Read(iprot); err != nil {
 13455  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem33), err)
 13456  		}
 13457  		p.Queries = append(p.Queries, _elem33)
 13458  	}
 13459  	if err := iprot.ReadListEnd(); err != nil {
 13460  		return thrift.PrependError("error reading list end: ", err)
 13461  	}
 13462  	return nil
 13463  }
 13464  
 13465  func (p *ConjunctionQuery) Write(oprot thrift.TProtocol) error {
 13466  	if err := oprot.WriteStructBegin("ConjunctionQuery"); err != nil {
 13467  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 13468  	}
 13469  	if p != nil {
 13470  		if err := p.writeField1(oprot); err != nil {
 13471  			return err
 13472  		}
 13473  	}
 13474  	if err := oprot.WriteFieldStop(); err != nil {
 13475  		return thrift.PrependError("write field stop error: ", err)
 13476  	}
 13477  	if err := oprot.WriteStructEnd(); err != nil {
 13478  		return thrift.PrependError("write struct stop error: ", err)
 13479  	}
 13480  	return nil
 13481  }
 13482  
 13483  func (p *ConjunctionQuery) writeField1(oprot thrift.TProtocol) (err error) {
 13484  	if err := oprot.WriteFieldBegin("queries", thrift.LIST, 1); err != nil {
 13485  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:queries: ", p), err)
 13486  	}
 13487  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Queries)); err != nil {
 13488  		return thrift.PrependError("error writing list begin: ", err)
 13489  	}
 13490  	for _, v := range p.Queries {
 13491  		if err := v.Write(oprot); err != nil {
 13492  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
 13493  		}
 13494  	}
 13495  	if err := oprot.WriteListEnd(); err != nil {
 13496  		return thrift.PrependError("error writing list end: ", err)
 13497  	}
 13498  	if err := oprot.WriteFieldEnd(); err != nil {
 13499  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:queries: ", p), err)
 13500  	}
 13501  	return err
 13502  }
 13503  
 13504  func (p *ConjunctionQuery) String() string {
 13505  	if p == nil {
 13506  		return "<nil>"
 13507  	}
 13508  	return fmt.Sprintf("ConjunctionQuery(%+v)", *p)
 13509  }
 13510  
 13511  // Attributes:
 13512  //  - Queries
 13513  type DisjunctionQuery struct {
 13514  	Queries []*Query `thrift:"queries,1,required" db:"queries" json:"queries"`
 13515  }
 13516  
 13517  func NewDisjunctionQuery() *DisjunctionQuery {
 13518  	return &DisjunctionQuery{}
 13519  }
 13520  
 13521  func (p *DisjunctionQuery) GetQueries() []*Query {
 13522  	return p.Queries
 13523  }
 13524  func (p *DisjunctionQuery) Read(iprot thrift.TProtocol) error {
 13525  	if _, err := iprot.ReadStructBegin(); err != nil {
 13526  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 13527  	}
 13528  
 13529  	var issetQueries bool = false
 13530  
 13531  	for {
 13532  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 13533  		if err != nil {
 13534  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 13535  		}
 13536  		if fieldTypeId == thrift.STOP {
 13537  			break
 13538  		}
 13539  		switch fieldId {
 13540  		case 1:
 13541  			if err := p.ReadField1(iprot); err != nil {
 13542  				return err
 13543  			}
 13544  			issetQueries = true
 13545  		default:
 13546  			if err := iprot.Skip(fieldTypeId); err != nil {
 13547  				return err
 13548  			}
 13549  		}
 13550  		if err := iprot.ReadFieldEnd(); err != nil {
 13551  			return err
 13552  		}
 13553  	}
 13554  	if err := iprot.ReadStructEnd(); err != nil {
 13555  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 13556  	}
 13557  	if !issetQueries {
 13558  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Queries is not set"))
 13559  	}
 13560  	return nil
 13561  }
 13562  
 13563  func (p *DisjunctionQuery) ReadField1(iprot thrift.TProtocol) error {
 13564  	_, size, err := iprot.ReadListBegin()
 13565  	if err != nil {
 13566  		return thrift.PrependError("error reading list begin: ", err)
 13567  	}
 13568  	tSlice := make([]*Query, 0, size)
 13569  	p.Queries = tSlice
 13570  	for i := 0; i < size; i++ {
 13571  		_elem34 := &Query{}
 13572  		if err := _elem34.Read(iprot); err != nil {
 13573  			return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem34), err)
 13574  		}
 13575  		p.Queries = append(p.Queries, _elem34)
 13576  	}
 13577  	if err := iprot.ReadListEnd(); err != nil {
 13578  		return thrift.PrependError("error reading list end: ", err)
 13579  	}
 13580  	return nil
 13581  }
 13582  
 13583  func (p *DisjunctionQuery) Write(oprot thrift.TProtocol) error {
 13584  	if err := oprot.WriteStructBegin("DisjunctionQuery"); err != nil {
 13585  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 13586  	}
 13587  	if p != nil {
 13588  		if err := p.writeField1(oprot); err != nil {
 13589  			return err
 13590  		}
 13591  	}
 13592  	if err := oprot.WriteFieldStop(); err != nil {
 13593  		return thrift.PrependError("write field stop error: ", err)
 13594  	}
 13595  	if err := oprot.WriteStructEnd(); err != nil {
 13596  		return thrift.PrependError("write struct stop error: ", err)
 13597  	}
 13598  	return nil
 13599  }
 13600  
 13601  func (p *DisjunctionQuery) writeField1(oprot thrift.TProtocol) (err error) {
 13602  	if err := oprot.WriteFieldBegin("queries", thrift.LIST, 1); err != nil {
 13603  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:queries: ", p), err)
 13604  	}
 13605  	if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Queries)); err != nil {
 13606  		return thrift.PrependError("error writing list begin: ", err)
 13607  	}
 13608  	for _, v := range p.Queries {
 13609  		if err := v.Write(oprot); err != nil {
 13610  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
 13611  		}
 13612  	}
 13613  	if err := oprot.WriteListEnd(); err != nil {
 13614  		return thrift.PrependError("error writing list end: ", err)
 13615  	}
 13616  	if err := oprot.WriteFieldEnd(); err != nil {
 13617  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:queries: ", p), err)
 13618  	}
 13619  	return err
 13620  }
 13621  
 13622  func (p *DisjunctionQuery) String() string {
 13623  	if p == nil {
 13624  		return "<nil>"
 13625  	}
 13626  	return fmt.Sprintf("DisjunctionQuery(%+v)", *p)
 13627  }
 13628  
 13629  type AllQuery struct {
 13630  }
 13631  
 13632  func NewAllQuery() *AllQuery {
 13633  	return &AllQuery{}
 13634  }
 13635  
 13636  func (p *AllQuery) Read(iprot thrift.TProtocol) error {
 13637  	if _, err := iprot.ReadStructBegin(); err != nil {
 13638  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 13639  	}
 13640  
 13641  	for {
 13642  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 13643  		if err != nil {
 13644  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 13645  		}
 13646  		if fieldTypeId == thrift.STOP {
 13647  			break
 13648  		}
 13649  		if err := iprot.Skip(fieldTypeId); err != nil {
 13650  			return err
 13651  		}
 13652  		if err := iprot.ReadFieldEnd(); err != nil {
 13653  			return err
 13654  		}
 13655  	}
 13656  	if err := iprot.ReadStructEnd(); err != nil {
 13657  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 13658  	}
 13659  	return nil
 13660  }
 13661  
 13662  func (p *AllQuery) Write(oprot thrift.TProtocol) error {
 13663  	if err := oprot.WriteStructBegin("AllQuery"); err != nil {
 13664  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 13665  	}
 13666  	if p != nil {
 13667  	}
 13668  	if err := oprot.WriteFieldStop(); err != nil {
 13669  		return thrift.PrependError("write field stop error: ", err)
 13670  	}
 13671  	if err := oprot.WriteStructEnd(); err != nil {
 13672  		return thrift.PrependError("write struct stop error: ", err)
 13673  	}
 13674  	return nil
 13675  }
 13676  
 13677  func (p *AllQuery) String() string {
 13678  	if p == nil {
 13679  		return "<nil>"
 13680  	}
 13681  	return fmt.Sprintf("AllQuery(%+v)", *p)
 13682  }
 13683  
 13684  // Attributes:
 13685  //  - Field
 13686  type FieldQuery struct {
 13687  	Field string `thrift:"field,1,required" db:"field" json:"field"`
 13688  }
 13689  
 13690  func NewFieldQuery() *FieldQuery {
 13691  	return &FieldQuery{}
 13692  }
 13693  
 13694  func (p *FieldQuery) GetField() string {
 13695  	return p.Field
 13696  }
 13697  func (p *FieldQuery) Read(iprot thrift.TProtocol) error {
 13698  	if _, err := iprot.ReadStructBegin(); err != nil {
 13699  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 13700  	}
 13701  
 13702  	var issetField bool = false
 13703  
 13704  	for {
 13705  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 13706  		if err != nil {
 13707  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 13708  		}
 13709  		if fieldTypeId == thrift.STOP {
 13710  			break
 13711  		}
 13712  		switch fieldId {
 13713  		case 1:
 13714  			if err := p.ReadField1(iprot); err != nil {
 13715  				return err
 13716  			}
 13717  			issetField = true
 13718  		default:
 13719  			if err := iprot.Skip(fieldTypeId); err != nil {
 13720  				return err
 13721  			}
 13722  		}
 13723  		if err := iprot.ReadFieldEnd(); err != nil {
 13724  			return err
 13725  		}
 13726  	}
 13727  	if err := iprot.ReadStructEnd(); err != nil {
 13728  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 13729  	}
 13730  	if !issetField {
 13731  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Field is not set"))
 13732  	}
 13733  	return nil
 13734  }
 13735  
 13736  func (p *FieldQuery) ReadField1(iprot thrift.TProtocol) error {
 13737  	if v, err := iprot.ReadString(); err != nil {
 13738  		return thrift.PrependError("error reading field 1: ", err)
 13739  	} else {
 13740  		p.Field = v
 13741  	}
 13742  	return nil
 13743  }
 13744  
 13745  func (p *FieldQuery) Write(oprot thrift.TProtocol) error {
 13746  	if err := oprot.WriteStructBegin("FieldQuery"); err != nil {
 13747  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 13748  	}
 13749  	if p != nil {
 13750  		if err := p.writeField1(oprot); err != nil {
 13751  			return err
 13752  		}
 13753  	}
 13754  	if err := oprot.WriteFieldStop(); err != nil {
 13755  		return thrift.PrependError("write field stop error: ", err)
 13756  	}
 13757  	if err := oprot.WriteStructEnd(); err != nil {
 13758  		return thrift.PrependError("write struct stop error: ", err)
 13759  	}
 13760  	return nil
 13761  }
 13762  
 13763  func (p *FieldQuery) writeField1(oprot thrift.TProtocol) (err error) {
 13764  	if err := oprot.WriteFieldBegin("field", thrift.STRING, 1); err != nil {
 13765  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:field: ", p), err)
 13766  	}
 13767  	if err := oprot.WriteString(string(p.Field)); err != nil {
 13768  		return thrift.PrependError(fmt.Sprintf("%T.field (1) field write error: ", p), err)
 13769  	}
 13770  	if err := oprot.WriteFieldEnd(); err != nil {
 13771  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:field: ", p), err)
 13772  	}
 13773  	return err
 13774  }
 13775  
 13776  func (p *FieldQuery) String() string {
 13777  	if p == nil {
 13778  		return "<nil>"
 13779  	}
 13780  	return fmt.Sprintf("FieldQuery(%+v)", *p)
 13781  }
 13782  
 13783  // Attributes:
 13784  //  - Term
 13785  //  - Regexp
 13786  //  - Negation
 13787  //  - Conjunction
 13788  //  - Disjunction
 13789  //  - All
 13790  //  - Field
 13791  type Query struct {
 13792  	Term        *TermQuery        `thrift:"term,1" db:"term" json:"term,omitempty"`
 13793  	Regexp      *RegexpQuery      `thrift:"regexp,2" db:"regexp" json:"regexp,omitempty"`
 13794  	Negation    *NegationQuery    `thrift:"negation,3" db:"negation" json:"negation,omitempty"`
 13795  	Conjunction *ConjunctionQuery `thrift:"conjunction,4" db:"conjunction" json:"conjunction,omitempty"`
 13796  	Disjunction *DisjunctionQuery `thrift:"disjunction,5" db:"disjunction" json:"disjunction,omitempty"`
 13797  	All         *AllQuery         `thrift:"all,6" db:"all" json:"all,omitempty"`
 13798  	Field       *FieldQuery       `thrift:"field,7" db:"field" json:"field,omitempty"`
 13799  }
 13800  
 13801  func NewQuery() *Query {
 13802  	return &Query{}
 13803  }
 13804  
 13805  var Query_Term_DEFAULT *TermQuery
 13806  
 13807  func (p *Query) GetTerm() *TermQuery {
 13808  	if !p.IsSetTerm() {
 13809  		return Query_Term_DEFAULT
 13810  	}
 13811  	return p.Term
 13812  }
 13813  
 13814  var Query_Regexp_DEFAULT *RegexpQuery
 13815  
 13816  func (p *Query) GetRegexp() *RegexpQuery {
 13817  	if !p.IsSetRegexp() {
 13818  		return Query_Regexp_DEFAULT
 13819  	}
 13820  	return p.Regexp
 13821  }
 13822  
 13823  var Query_Negation_DEFAULT *NegationQuery
 13824  
 13825  func (p *Query) GetNegation() *NegationQuery {
 13826  	if !p.IsSetNegation() {
 13827  		return Query_Negation_DEFAULT
 13828  	}
 13829  	return p.Negation
 13830  }
 13831  
 13832  var Query_Conjunction_DEFAULT *ConjunctionQuery
 13833  
 13834  func (p *Query) GetConjunction() *ConjunctionQuery {
 13835  	if !p.IsSetConjunction() {
 13836  		return Query_Conjunction_DEFAULT
 13837  	}
 13838  	return p.Conjunction
 13839  }
 13840  
 13841  var Query_Disjunction_DEFAULT *DisjunctionQuery
 13842  
 13843  func (p *Query) GetDisjunction() *DisjunctionQuery {
 13844  	if !p.IsSetDisjunction() {
 13845  		return Query_Disjunction_DEFAULT
 13846  	}
 13847  	return p.Disjunction
 13848  }
 13849  
 13850  var Query_All_DEFAULT *AllQuery
 13851  
 13852  func (p *Query) GetAll() *AllQuery {
 13853  	if !p.IsSetAll() {
 13854  		return Query_All_DEFAULT
 13855  	}
 13856  	return p.All
 13857  }
 13858  
 13859  var Query_Field_DEFAULT *FieldQuery
 13860  
 13861  func (p *Query) GetField() *FieldQuery {
 13862  	if !p.IsSetField() {
 13863  		return Query_Field_DEFAULT
 13864  	}
 13865  	return p.Field
 13866  }
 13867  func (p *Query) IsSetTerm() bool {
 13868  	return p.Term != nil
 13869  }
 13870  
 13871  func (p *Query) IsSetRegexp() bool {
 13872  	return p.Regexp != nil
 13873  }
 13874  
 13875  func (p *Query) IsSetNegation() bool {
 13876  	return p.Negation != nil
 13877  }
 13878  
 13879  func (p *Query) IsSetConjunction() bool {
 13880  	return p.Conjunction != nil
 13881  }
 13882  
 13883  func (p *Query) IsSetDisjunction() bool {
 13884  	return p.Disjunction != nil
 13885  }
 13886  
 13887  func (p *Query) IsSetAll() bool {
 13888  	return p.All != nil
 13889  }
 13890  
 13891  func (p *Query) IsSetField() bool {
 13892  	return p.Field != nil
 13893  }
 13894  
 13895  func (p *Query) Read(iprot thrift.TProtocol) error {
 13896  	if _, err := iprot.ReadStructBegin(); err != nil {
 13897  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 13898  	}
 13899  
 13900  	for {
 13901  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 13902  		if err != nil {
 13903  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 13904  		}
 13905  		if fieldTypeId == thrift.STOP {
 13906  			break
 13907  		}
 13908  		switch fieldId {
 13909  		case 1:
 13910  			if err := p.ReadField1(iprot); err != nil {
 13911  				return err
 13912  			}
 13913  		case 2:
 13914  			if err := p.ReadField2(iprot); err != nil {
 13915  				return err
 13916  			}
 13917  		case 3:
 13918  			if err := p.ReadField3(iprot); err != nil {
 13919  				return err
 13920  			}
 13921  		case 4:
 13922  			if err := p.ReadField4(iprot); err != nil {
 13923  				return err
 13924  			}
 13925  		case 5:
 13926  			if err := p.ReadField5(iprot); err != nil {
 13927  				return err
 13928  			}
 13929  		case 6:
 13930  			if err := p.ReadField6(iprot); err != nil {
 13931  				return err
 13932  			}
 13933  		case 7:
 13934  			if err := p.ReadField7(iprot); err != nil {
 13935  				return err
 13936  			}
 13937  		default:
 13938  			if err := iprot.Skip(fieldTypeId); err != nil {
 13939  				return err
 13940  			}
 13941  		}
 13942  		if err := iprot.ReadFieldEnd(); err != nil {
 13943  			return err
 13944  		}
 13945  	}
 13946  	if err := iprot.ReadStructEnd(); err != nil {
 13947  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 13948  	}
 13949  	return nil
 13950  }
 13951  
 13952  func (p *Query) ReadField1(iprot thrift.TProtocol) error {
 13953  	p.Term = &TermQuery{}
 13954  	if err := p.Term.Read(iprot); err != nil {
 13955  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Term), err)
 13956  	}
 13957  	return nil
 13958  }
 13959  
 13960  func (p *Query) ReadField2(iprot thrift.TProtocol) error {
 13961  	p.Regexp = &RegexpQuery{}
 13962  	if err := p.Regexp.Read(iprot); err != nil {
 13963  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Regexp), err)
 13964  	}
 13965  	return nil
 13966  }
 13967  
 13968  func (p *Query) ReadField3(iprot thrift.TProtocol) error {
 13969  	p.Negation = &NegationQuery{}
 13970  	if err := p.Negation.Read(iprot); err != nil {
 13971  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Negation), err)
 13972  	}
 13973  	return nil
 13974  }
 13975  
 13976  func (p *Query) ReadField4(iprot thrift.TProtocol) error {
 13977  	p.Conjunction = &ConjunctionQuery{}
 13978  	if err := p.Conjunction.Read(iprot); err != nil {
 13979  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Conjunction), err)
 13980  	}
 13981  	return nil
 13982  }
 13983  
 13984  func (p *Query) ReadField5(iprot thrift.TProtocol) error {
 13985  	p.Disjunction = &DisjunctionQuery{}
 13986  	if err := p.Disjunction.Read(iprot); err != nil {
 13987  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Disjunction), err)
 13988  	}
 13989  	return nil
 13990  }
 13991  
 13992  func (p *Query) ReadField6(iprot thrift.TProtocol) error {
 13993  	p.All = &AllQuery{}
 13994  	if err := p.All.Read(iprot); err != nil {
 13995  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.All), err)
 13996  	}
 13997  	return nil
 13998  }
 13999  
 14000  func (p *Query) ReadField7(iprot thrift.TProtocol) error {
 14001  	p.Field = &FieldQuery{}
 14002  	if err := p.Field.Read(iprot); err != nil {
 14003  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Field), err)
 14004  	}
 14005  	return nil
 14006  }
 14007  
 14008  func (p *Query) Write(oprot thrift.TProtocol) error {
 14009  	if err := oprot.WriteStructBegin("Query"); err != nil {
 14010  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 14011  	}
 14012  	if p != nil {
 14013  		if err := p.writeField1(oprot); err != nil {
 14014  			return err
 14015  		}
 14016  		if err := p.writeField2(oprot); err != nil {
 14017  			return err
 14018  		}
 14019  		if err := p.writeField3(oprot); err != nil {
 14020  			return err
 14021  		}
 14022  		if err := p.writeField4(oprot); err != nil {
 14023  			return err
 14024  		}
 14025  		if err := p.writeField5(oprot); err != nil {
 14026  			return err
 14027  		}
 14028  		if err := p.writeField6(oprot); err != nil {
 14029  			return err
 14030  		}
 14031  		if err := p.writeField7(oprot); err != nil {
 14032  			return err
 14033  		}
 14034  	}
 14035  	if err := oprot.WriteFieldStop(); err != nil {
 14036  		return thrift.PrependError("write field stop error: ", err)
 14037  	}
 14038  	if err := oprot.WriteStructEnd(); err != nil {
 14039  		return thrift.PrependError("write struct stop error: ", err)
 14040  	}
 14041  	return nil
 14042  }
 14043  
 14044  func (p *Query) writeField1(oprot thrift.TProtocol) (err error) {
 14045  	if p.IsSetTerm() {
 14046  		if err := oprot.WriteFieldBegin("term", thrift.STRUCT, 1); err != nil {
 14047  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:term: ", p), err)
 14048  		}
 14049  		if err := p.Term.Write(oprot); err != nil {
 14050  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Term), err)
 14051  		}
 14052  		if err := oprot.WriteFieldEnd(); err != nil {
 14053  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:term: ", p), err)
 14054  		}
 14055  	}
 14056  	return err
 14057  }
 14058  
 14059  func (p *Query) writeField2(oprot thrift.TProtocol) (err error) {
 14060  	if p.IsSetRegexp() {
 14061  		if err := oprot.WriteFieldBegin("regexp", thrift.STRUCT, 2); err != nil {
 14062  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:regexp: ", p), err)
 14063  		}
 14064  		if err := p.Regexp.Write(oprot); err != nil {
 14065  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Regexp), err)
 14066  		}
 14067  		if err := oprot.WriteFieldEnd(); err != nil {
 14068  			return thrift.PrependError(fmt.Sprintf("%T write field end error 2:regexp: ", p), err)
 14069  		}
 14070  	}
 14071  	return err
 14072  }
 14073  
 14074  func (p *Query) writeField3(oprot thrift.TProtocol) (err error) {
 14075  	if p.IsSetNegation() {
 14076  		if err := oprot.WriteFieldBegin("negation", thrift.STRUCT, 3); err != nil {
 14077  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:negation: ", p), err)
 14078  		}
 14079  		if err := p.Negation.Write(oprot); err != nil {
 14080  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Negation), err)
 14081  		}
 14082  		if err := oprot.WriteFieldEnd(); err != nil {
 14083  			return thrift.PrependError(fmt.Sprintf("%T write field end error 3:negation: ", p), err)
 14084  		}
 14085  	}
 14086  	return err
 14087  }
 14088  
 14089  func (p *Query) writeField4(oprot thrift.TProtocol) (err error) {
 14090  	if p.IsSetConjunction() {
 14091  		if err := oprot.WriteFieldBegin("conjunction", thrift.STRUCT, 4); err != nil {
 14092  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:conjunction: ", p), err)
 14093  		}
 14094  		if err := p.Conjunction.Write(oprot); err != nil {
 14095  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Conjunction), err)
 14096  		}
 14097  		if err := oprot.WriteFieldEnd(); err != nil {
 14098  			return thrift.PrependError(fmt.Sprintf("%T write field end error 4:conjunction: ", p), err)
 14099  		}
 14100  	}
 14101  	return err
 14102  }
 14103  
 14104  func (p *Query) writeField5(oprot thrift.TProtocol) (err error) {
 14105  	if p.IsSetDisjunction() {
 14106  		if err := oprot.WriteFieldBegin("disjunction", thrift.STRUCT, 5); err != nil {
 14107  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:disjunction: ", p), err)
 14108  		}
 14109  		if err := p.Disjunction.Write(oprot); err != nil {
 14110  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Disjunction), err)
 14111  		}
 14112  		if err := oprot.WriteFieldEnd(); err != nil {
 14113  			return thrift.PrependError(fmt.Sprintf("%T write field end error 5:disjunction: ", p), err)
 14114  		}
 14115  	}
 14116  	return err
 14117  }
 14118  
 14119  func (p *Query) writeField6(oprot thrift.TProtocol) (err error) {
 14120  	if p.IsSetAll() {
 14121  		if err := oprot.WriteFieldBegin("all", thrift.STRUCT, 6); err != nil {
 14122  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:all: ", p), err)
 14123  		}
 14124  		if err := p.All.Write(oprot); err != nil {
 14125  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.All), err)
 14126  		}
 14127  		if err := oprot.WriteFieldEnd(); err != nil {
 14128  			return thrift.PrependError(fmt.Sprintf("%T write field end error 6:all: ", p), err)
 14129  		}
 14130  	}
 14131  	return err
 14132  }
 14133  
 14134  func (p *Query) writeField7(oprot thrift.TProtocol) (err error) {
 14135  	if p.IsSetField() {
 14136  		if err := oprot.WriteFieldBegin("field", thrift.STRUCT, 7); err != nil {
 14137  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 7:field: ", p), err)
 14138  		}
 14139  		if err := p.Field.Write(oprot); err != nil {
 14140  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Field), err)
 14141  		}
 14142  		if err := oprot.WriteFieldEnd(); err != nil {
 14143  			return thrift.PrependError(fmt.Sprintf("%T write field end error 7:field: ", p), err)
 14144  		}
 14145  	}
 14146  	return err
 14147  }
 14148  
 14149  func (p *Query) String() string {
 14150  	if p == nil {
 14151  		return "<nil>"
 14152  	}
 14153  	return fmt.Sprintf("Query(%+v)", *p)
 14154  }
 14155  
 14156  // Attributes:
 14157  //  - SourceNamespace
 14158  //  - TargetNamespace
 14159  //  - RangeStart
 14160  //  - RangeEnd
 14161  //  - Step
 14162  //  - RangeType
 14163  type AggregateTilesRequest struct {
 14164  	SourceNamespace string   `thrift:"sourceNamespace,1,required" db:"sourceNamespace" json:"sourceNamespace"`
 14165  	TargetNamespace string   `thrift:"targetNamespace,2,required" db:"targetNamespace" json:"targetNamespace"`
 14166  	RangeStart      int64    `thrift:"rangeStart,3,required" db:"rangeStart" json:"rangeStart"`
 14167  	RangeEnd        int64    `thrift:"rangeEnd,4,required" db:"rangeEnd" json:"rangeEnd"`
 14168  	Step            string   `thrift:"step,5,required" db:"step" json:"step"`
 14169  	RangeType       TimeType `thrift:"rangeType,6" db:"rangeType" json:"rangeType,omitempty"`
 14170  }
 14171  
 14172  func NewAggregateTilesRequest() *AggregateTilesRequest {
 14173  	return &AggregateTilesRequest{
 14174  		RangeType: 0,
 14175  	}
 14176  }
 14177  
 14178  func (p *AggregateTilesRequest) GetSourceNamespace() string {
 14179  	return p.SourceNamespace
 14180  }
 14181  
 14182  func (p *AggregateTilesRequest) GetTargetNamespace() string {
 14183  	return p.TargetNamespace
 14184  }
 14185  
 14186  func (p *AggregateTilesRequest) GetRangeStart() int64 {
 14187  	return p.RangeStart
 14188  }
 14189  
 14190  func (p *AggregateTilesRequest) GetRangeEnd() int64 {
 14191  	return p.RangeEnd
 14192  }
 14193  
 14194  func (p *AggregateTilesRequest) GetStep() string {
 14195  	return p.Step
 14196  }
 14197  
 14198  var AggregateTilesRequest_RangeType_DEFAULT TimeType = 0
 14199  
 14200  func (p *AggregateTilesRequest) GetRangeType() TimeType {
 14201  	return p.RangeType
 14202  }
 14203  func (p *AggregateTilesRequest) IsSetRangeType() bool {
 14204  	return p.RangeType != AggregateTilesRequest_RangeType_DEFAULT
 14205  }
 14206  
 14207  func (p *AggregateTilesRequest) Read(iprot thrift.TProtocol) error {
 14208  	if _, err := iprot.ReadStructBegin(); err != nil {
 14209  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 14210  	}
 14211  
 14212  	var issetSourceNamespace bool = false
 14213  	var issetTargetNamespace bool = false
 14214  	var issetRangeStart bool = false
 14215  	var issetRangeEnd bool = false
 14216  	var issetStep bool = false
 14217  
 14218  	for {
 14219  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 14220  		if err != nil {
 14221  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 14222  		}
 14223  		if fieldTypeId == thrift.STOP {
 14224  			break
 14225  		}
 14226  		switch fieldId {
 14227  		case 1:
 14228  			if err := p.ReadField1(iprot); err != nil {
 14229  				return err
 14230  			}
 14231  			issetSourceNamespace = true
 14232  		case 2:
 14233  			if err := p.ReadField2(iprot); err != nil {
 14234  				return err
 14235  			}
 14236  			issetTargetNamespace = true
 14237  		case 3:
 14238  			if err := p.ReadField3(iprot); err != nil {
 14239  				return err
 14240  			}
 14241  			issetRangeStart = true
 14242  		case 4:
 14243  			if err := p.ReadField4(iprot); err != nil {
 14244  				return err
 14245  			}
 14246  			issetRangeEnd = true
 14247  		case 5:
 14248  			if err := p.ReadField5(iprot); err != nil {
 14249  				return err
 14250  			}
 14251  			issetStep = true
 14252  		case 6:
 14253  			if err := p.ReadField6(iprot); err != nil {
 14254  				return err
 14255  			}
 14256  		default:
 14257  			if err := iprot.Skip(fieldTypeId); err != nil {
 14258  				return err
 14259  			}
 14260  		}
 14261  		if err := iprot.ReadFieldEnd(); err != nil {
 14262  			return err
 14263  		}
 14264  	}
 14265  	if err := iprot.ReadStructEnd(); err != nil {
 14266  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 14267  	}
 14268  	if !issetSourceNamespace {
 14269  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field SourceNamespace is not set"))
 14270  	}
 14271  	if !issetTargetNamespace {
 14272  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field TargetNamespace is not set"))
 14273  	}
 14274  	if !issetRangeStart {
 14275  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeStart is not set"))
 14276  	}
 14277  	if !issetRangeEnd {
 14278  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field RangeEnd is not set"))
 14279  	}
 14280  	if !issetStep {
 14281  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Step is not set"))
 14282  	}
 14283  	return nil
 14284  }
 14285  
 14286  func (p *AggregateTilesRequest) ReadField1(iprot thrift.TProtocol) error {
 14287  	if v, err := iprot.ReadString(); err != nil {
 14288  		return thrift.PrependError("error reading field 1: ", err)
 14289  	} else {
 14290  		p.SourceNamespace = v
 14291  	}
 14292  	return nil
 14293  }
 14294  
 14295  func (p *AggregateTilesRequest) ReadField2(iprot thrift.TProtocol) error {
 14296  	if v, err := iprot.ReadString(); err != nil {
 14297  		return thrift.PrependError("error reading field 2: ", err)
 14298  	} else {
 14299  		p.TargetNamespace = v
 14300  	}
 14301  	return nil
 14302  }
 14303  
 14304  func (p *AggregateTilesRequest) ReadField3(iprot thrift.TProtocol) error {
 14305  	if v, err := iprot.ReadI64(); err != nil {
 14306  		return thrift.PrependError("error reading field 3: ", err)
 14307  	} else {
 14308  		p.RangeStart = v
 14309  	}
 14310  	return nil
 14311  }
 14312  
 14313  func (p *AggregateTilesRequest) ReadField4(iprot thrift.TProtocol) error {
 14314  	if v, err := iprot.ReadI64(); err != nil {
 14315  		return thrift.PrependError("error reading field 4: ", err)
 14316  	} else {
 14317  		p.RangeEnd = v
 14318  	}
 14319  	return nil
 14320  }
 14321  
 14322  func (p *AggregateTilesRequest) ReadField5(iprot thrift.TProtocol) error {
 14323  	if v, err := iprot.ReadString(); err != nil {
 14324  		return thrift.PrependError("error reading field 5: ", err)
 14325  	} else {
 14326  		p.Step = v
 14327  	}
 14328  	return nil
 14329  }
 14330  
 14331  func (p *AggregateTilesRequest) ReadField6(iprot thrift.TProtocol) error {
 14332  	if v, err := iprot.ReadI32(); err != nil {
 14333  		return thrift.PrependError("error reading field 6: ", err)
 14334  	} else {
 14335  		temp := TimeType(v)
 14336  		p.RangeType = temp
 14337  	}
 14338  	return nil
 14339  }
 14340  
 14341  func (p *AggregateTilesRequest) Write(oprot thrift.TProtocol) error {
 14342  	if err := oprot.WriteStructBegin("AggregateTilesRequest"); err != nil {
 14343  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 14344  	}
 14345  	if p != nil {
 14346  		if err := p.writeField1(oprot); err != nil {
 14347  			return err
 14348  		}
 14349  		if err := p.writeField2(oprot); err != nil {
 14350  			return err
 14351  		}
 14352  		if err := p.writeField3(oprot); err != nil {
 14353  			return err
 14354  		}
 14355  		if err := p.writeField4(oprot); err != nil {
 14356  			return err
 14357  		}
 14358  		if err := p.writeField5(oprot); err != nil {
 14359  			return err
 14360  		}
 14361  		if err := p.writeField6(oprot); err != nil {
 14362  			return err
 14363  		}
 14364  	}
 14365  	if err := oprot.WriteFieldStop(); err != nil {
 14366  		return thrift.PrependError("write field stop error: ", err)
 14367  	}
 14368  	if err := oprot.WriteStructEnd(); err != nil {
 14369  		return thrift.PrependError("write struct stop error: ", err)
 14370  	}
 14371  	return nil
 14372  }
 14373  
 14374  func (p *AggregateTilesRequest) writeField1(oprot thrift.TProtocol) (err error) {
 14375  	if err := oprot.WriteFieldBegin("sourceNamespace", thrift.STRING, 1); err != nil {
 14376  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:sourceNamespace: ", p), err)
 14377  	}
 14378  	if err := oprot.WriteString(string(p.SourceNamespace)); err != nil {
 14379  		return thrift.PrependError(fmt.Sprintf("%T.sourceNamespace (1) field write error: ", p), err)
 14380  	}
 14381  	if err := oprot.WriteFieldEnd(); err != nil {
 14382  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:sourceNamespace: ", p), err)
 14383  	}
 14384  	return err
 14385  }
 14386  
 14387  func (p *AggregateTilesRequest) writeField2(oprot thrift.TProtocol) (err error) {
 14388  	if err := oprot.WriteFieldBegin("targetNamespace", thrift.STRING, 2); err != nil {
 14389  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:targetNamespace: ", p), err)
 14390  	}
 14391  	if err := oprot.WriteString(string(p.TargetNamespace)); err != nil {
 14392  		return thrift.PrependError(fmt.Sprintf("%T.targetNamespace (2) field write error: ", p), err)
 14393  	}
 14394  	if err := oprot.WriteFieldEnd(); err != nil {
 14395  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:targetNamespace: ", p), err)
 14396  	}
 14397  	return err
 14398  }
 14399  
 14400  func (p *AggregateTilesRequest) writeField3(oprot thrift.TProtocol) (err error) {
 14401  	if err := oprot.WriteFieldBegin("rangeStart", thrift.I64, 3); err != nil {
 14402  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:rangeStart: ", p), err)
 14403  	}
 14404  	if err := oprot.WriteI64(int64(p.RangeStart)); err != nil {
 14405  		return thrift.PrependError(fmt.Sprintf("%T.rangeStart (3) field write error: ", p), err)
 14406  	}
 14407  	if err := oprot.WriteFieldEnd(); err != nil {
 14408  		return thrift.PrependError(fmt.Sprintf("%T write field end error 3:rangeStart: ", p), err)
 14409  	}
 14410  	return err
 14411  }
 14412  
 14413  func (p *AggregateTilesRequest) writeField4(oprot thrift.TProtocol) (err error) {
 14414  	if err := oprot.WriteFieldBegin("rangeEnd", thrift.I64, 4); err != nil {
 14415  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:rangeEnd: ", p), err)
 14416  	}
 14417  	if err := oprot.WriteI64(int64(p.RangeEnd)); err != nil {
 14418  		return thrift.PrependError(fmt.Sprintf("%T.rangeEnd (4) field write error: ", p), err)
 14419  	}
 14420  	if err := oprot.WriteFieldEnd(); err != nil {
 14421  		return thrift.PrependError(fmt.Sprintf("%T write field end error 4:rangeEnd: ", p), err)
 14422  	}
 14423  	return err
 14424  }
 14425  
 14426  func (p *AggregateTilesRequest) writeField5(oprot thrift.TProtocol) (err error) {
 14427  	if err := oprot.WriteFieldBegin("step", thrift.STRING, 5); err != nil {
 14428  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:step: ", p), err)
 14429  	}
 14430  	if err := oprot.WriteString(string(p.Step)); err != nil {
 14431  		return thrift.PrependError(fmt.Sprintf("%T.step (5) field write error: ", p), err)
 14432  	}
 14433  	if err := oprot.WriteFieldEnd(); err != nil {
 14434  		return thrift.PrependError(fmt.Sprintf("%T write field end error 5:step: ", p), err)
 14435  	}
 14436  	return err
 14437  }
 14438  
 14439  func (p *AggregateTilesRequest) writeField6(oprot thrift.TProtocol) (err error) {
 14440  	if p.IsSetRangeType() {
 14441  		if err := oprot.WriteFieldBegin("rangeType", thrift.I32, 6); err != nil {
 14442  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:rangeType: ", p), err)
 14443  		}
 14444  		if err := oprot.WriteI32(int32(p.RangeType)); err != nil {
 14445  			return thrift.PrependError(fmt.Sprintf("%T.rangeType (6) field write error: ", p), err)
 14446  		}
 14447  		if err := oprot.WriteFieldEnd(); err != nil {
 14448  			return thrift.PrependError(fmt.Sprintf("%T write field end error 6:rangeType: ", p), err)
 14449  		}
 14450  	}
 14451  	return err
 14452  }
 14453  
 14454  func (p *AggregateTilesRequest) String() string {
 14455  	if p == nil {
 14456  		return "<nil>"
 14457  	}
 14458  	return fmt.Sprintf("AggregateTilesRequest(%+v)", *p)
 14459  }
 14460  
 14461  // Attributes:
 14462  //  - ProcessedTileCount
 14463  type AggregateTilesResult_ struct {
 14464  	ProcessedTileCount int64 `thrift:"processedTileCount,1,required" db:"processedTileCount" json:"processedTileCount"`
 14465  }
 14466  
 14467  func NewAggregateTilesResult_() *AggregateTilesResult_ {
 14468  	return &AggregateTilesResult_{}
 14469  }
 14470  
 14471  func (p *AggregateTilesResult_) GetProcessedTileCount() int64 {
 14472  	return p.ProcessedTileCount
 14473  }
 14474  func (p *AggregateTilesResult_) Read(iprot thrift.TProtocol) error {
 14475  	if _, err := iprot.ReadStructBegin(); err != nil {
 14476  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 14477  	}
 14478  
 14479  	var issetProcessedTileCount bool = false
 14480  
 14481  	for {
 14482  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 14483  		if err != nil {
 14484  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 14485  		}
 14486  		if fieldTypeId == thrift.STOP {
 14487  			break
 14488  		}
 14489  		switch fieldId {
 14490  		case 1:
 14491  			if err := p.ReadField1(iprot); err != nil {
 14492  				return err
 14493  			}
 14494  			issetProcessedTileCount = true
 14495  		default:
 14496  			if err := iprot.Skip(fieldTypeId); err != nil {
 14497  				return err
 14498  			}
 14499  		}
 14500  		if err := iprot.ReadFieldEnd(); err != nil {
 14501  			return err
 14502  		}
 14503  	}
 14504  	if err := iprot.ReadStructEnd(); err != nil {
 14505  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 14506  	}
 14507  	if !issetProcessedTileCount {
 14508  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field ProcessedTileCount is not set"))
 14509  	}
 14510  	return nil
 14511  }
 14512  
 14513  func (p *AggregateTilesResult_) ReadField1(iprot thrift.TProtocol) error {
 14514  	if v, err := iprot.ReadI64(); err != nil {
 14515  		return thrift.PrependError("error reading field 1: ", err)
 14516  	} else {
 14517  		p.ProcessedTileCount = v
 14518  	}
 14519  	return nil
 14520  }
 14521  
 14522  func (p *AggregateTilesResult_) Write(oprot thrift.TProtocol) error {
 14523  	if err := oprot.WriteStructBegin("AggregateTilesResult"); err != nil {
 14524  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 14525  	}
 14526  	if p != nil {
 14527  		if err := p.writeField1(oprot); err != nil {
 14528  			return err
 14529  		}
 14530  	}
 14531  	if err := oprot.WriteFieldStop(); err != nil {
 14532  		return thrift.PrependError("write field stop error: ", err)
 14533  	}
 14534  	if err := oprot.WriteStructEnd(); err != nil {
 14535  		return thrift.PrependError("write struct stop error: ", err)
 14536  	}
 14537  	return nil
 14538  }
 14539  
 14540  func (p *AggregateTilesResult_) writeField1(oprot thrift.TProtocol) (err error) {
 14541  	if err := oprot.WriteFieldBegin("processedTileCount", thrift.I64, 1); err != nil {
 14542  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:processedTileCount: ", p), err)
 14543  	}
 14544  	if err := oprot.WriteI64(int64(p.ProcessedTileCount)); err != nil {
 14545  		return thrift.PrependError(fmt.Sprintf("%T.processedTileCount (1) field write error: ", p), err)
 14546  	}
 14547  	if err := oprot.WriteFieldEnd(); err != nil {
 14548  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:processedTileCount: ", p), err)
 14549  	}
 14550  	return err
 14551  }
 14552  
 14553  func (p *AggregateTilesResult_) String() string {
 14554  	if p == nil {
 14555  		return "<nil>"
 14556  	}
 14557  	return fmt.Sprintf("AggregateTilesResult_(%+v)", *p)
 14558  }
 14559  
 14560  // Attributes:
 14561  //  - Name
 14562  //  - FilePathTemplate
 14563  //  - Interval
 14564  //  - Duration
 14565  //  - Debug
 14566  //  - ConditionalNumGoroutinesGreaterThan
 14567  //  - ConditionalNumGoroutinesLessThan
 14568  //  - ConditionalIsOverloaded
 14569  type DebugProfileStartRequest struct {
 14570  	Name                                string  `thrift:"name,1,required" db:"name" json:"name"`
 14571  	FilePathTemplate                    string  `thrift:"filePathTemplate,2,required" db:"filePathTemplate" json:"filePathTemplate"`
 14572  	Interval                            *string `thrift:"interval,3" db:"interval" json:"interval,omitempty"`
 14573  	Duration                            *string `thrift:"duration,4" db:"duration" json:"duration,omitempty"`
 14574  	Debug                               *int64  `thrift:"debug,5" db:"debug" json:"debug,omitempty"`
 14575  	ConditionalNumGoroutinesGreaterThan *int64  `thrift:"conditionalNumGoroutinesGreaterThan,6" db:"conditionalNumGoroutinesGreaterThan" json:"conditionalNumGoroutinesGreaterThan,omitempty"`
 14576  	ConditionalNumGoroutinesLessThan    *int64  `thrift:"conditionalNumGoroutinesLessThan,7" db:"conditionalNumGoroutinesLessThan" json:"conditionalNumGoroutinesLessThan,omitempty"`
 14577  	ConditionalIsOverloaded             *bool   `thrift:"conditionalIsOverloaded,8" db:"conditionalIsOverloaded" json:"conditionalIsOverloaded,omitempty"`
 14578  }
 14579  
 14580  func NewDebugProfileStartRequest() *DebugProfileStartRequest {
 14581  	return &DebugProfileStartRequest{}
 14582  }
 14583  
 14584  func (p *DebugProfileStartRequest) GetName() string {
 14585  	return p.Name
 14586  }
 14587  
 14588  func (p *DebugProfileStartRequest) GetFilePathTemplate() string {
 14589  	return p.FilePathTemplate
 14590  }
 14591  
 14592  var DebugProfileStartRequest_Interval_DEFAULT string
 14593  
 14594  func (p *DebugProfileStartRequest) GetInterval() string {
 14595  	if !p.IsSetInterval() {
 14596  		return DebugProfileStartRequest_Interval_DEFAULT
 14597  	}
 14598  	return *p.Interval
 14599  }
 14600  
 14601  var DebugProfileStartRequest_Duration_DEFAULT string
 14602  
 14603  func (p *DebugProfileStartRequest) GetDuration() string {
 14604  	if !p.IsSetDuration() {
 14605  		return DebugProfileStartRequest_Duration_DEFAULT
 14606  	}
 14607  	return *p.Duration
 14608  }
 14609  
 14610  var DebugProfileStartRequest_Debug_DEFAULT int64
 14611  
 14612  func (p *DebugProfileStartRequest) GetDebug() int64 {
 14613  	if !p.IsSetDebug() {
 14614  		return DebugProfileStartRequest_Debug_DEFAULT
 14615  	}
 14616  	return *p.Debug
 14617  }
 14618  
 14619  var DebugProfileStartRequest_ConditionalNumGoroutinesGreaterThan_DEFAULT int64
 14620  
 14621  func (p *DebugProfileStartRequest) GetConditionalNumGoroutinesGreaterThan() int64 {
 14622  	if !p.IsSetConditionalNumGoroutinesGreaterThan() {
 14623  		return DebugProfileStartRequest_ConditionalNumGoroutinesGreaterThan_DEFAULT
 14624  	}
 14625  	return *p.ConditionalNumGoroutinesGreaterThan
 14626  }
 14627  
 14628  var DebugProfileStartRequest_ConditionalNumGoroutinesLessThan_DEFAULT int64
 14629  
 14630  func (p *DebugProfileStartRequest) GetConditionalNumGoroutinesLessThan() int64 {
 14631  	if !p.IsSetConditionalNumGoroutinesLessThan() {
 14632  		return DebugProfileStartRequest_ConditionalNumGoroutinesLessThan_DEFAULT
 14633  	}
 14634  	return *p.ConditionalNumGoroutinesLessThan
 14635  }
 14636  
 14637  var DebugProfileStartRequest_ConditionalIsOverloaded_DEFAULT bool
 14638  
 14639  func (p *DebugProfileStartRequest) GetConditionalIsOverloaded() bool {
 14640  	if !p.IsSetConditionalIsOverloaded() {
 14641  		return DebugProfileStartRequest_ConditionalIsOverloaded_DEFAULT
 14642  	}
 14643  	return *p.ConditionalIsOverloaded
 14644  }
 14645  func (p *DebugProfileStartRequest) IsSetInterval() bool {
 14646  	return p.Interval != nil
 14647  }
 14648  
 14649  func (p *DebugProfileStartRequest) IsSetDuration() bool {
 14650  	return p.Duration != nil
 14651  }
 14652  
 14653  func (p *DebugProfileStartRequest) IsSetDebug() bool {
 14654  	return p.Debug != nil
 14655  }
 14656  
 14657  func (p *DebugProfileStartRequest) IsSetConditionalNumGoroutinesGreaterThan() bool {
 14658  	return p.ConditionalNumGoroutinesGreaterThan != nil
 14659  }
 14660  
 14661  func (p *DebugProfileStartRequest) IsSetConditionalNumGoroutinesLessThan() bool {
 14662  	return p.ConditionalNumGoroutinesLessThan != nil
 14663  }
 14664  
 14665  func (p *DebugProfileStartRequest) IsSetConditionalIsOverloaded() bool {
 14666  	return p.ConditionalIsOverloaded != nil
 14667  }
 14668  
 14669  func (p *DebugProfileStartRequest) Read(iprot thrift.TProtocol) error {
 14670  	if _, err := iprot.ReadStructBegin(); err != nil {
 14671  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 14672  	}
 14673  
 14674  	var issetName bool = false
 14675  	var issetFilePathTemplate bool = false
 14676  
 14677  	for {
 14678  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 14679  		if err != nil {
 14680  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 14681  		}
 14682  		if fieldTypeId == thrift.STOP {
 14683  			break
 14684  		}
 14685  		switch fieldId {
 14686  		case 1:
 14687  			if err := p.ReadField1(iprot); err != nil {
 14688  				return err
 14689  			}
 14690  			issetName = true
 14691  		case 2:
 14692  			if err := p.ReadField2(iprot); err != nil {
 14693  				return err
 14694  			}
 14695  			issetFilePathTemplate = true
 14696  		case 3:
 14697  			if err := p.ReadField3(iprot); err != nil {
 14698  				return err
 14699  			}
 14700  		case 4:
 14701  			if err := p.ReadField4(iprot); err != nil {
 14702  				return err
 14703  			}
 14704  		case 5:
 14705  			if err := p.ReadField5(iprot); err != nil {
 14706  				return err
 14707  			}
 14708  		case 6:
 14709  			if err := p.ReadField6(iprot); err != nil {
 14710  				return err
 14711  			}
 14712  		case 7:
 14713  			if err := p.ReadField7(iprot); err != nil {
 14714  				return err
 14715  			}
 14716  		case 8:
 14717  			if err := p.ReadField8(iprot); err != nil {
 14718  				return err
 14719  			}
 14720  		default:
 14721  			if err := iprot.Skip(fieldTypeId); err != nil {
 14722  				return err
 14723  			}
 14724  		}
 14725  		if err := iprot.ReadFieldEnd(); err != nil {
 14726  			return err
 14727  		}
 14728  	}
 14729  	if err := iprot.ReadStructEnd(); err != nil {
 14730  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 14731  	}
 14732  	if !issetName {
 14733  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Name is not set"))
 14734  	}
 14735  	if !issetFilePathTemplate {
 14736  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field FilePathTemplate is not set"))
 14737  	}
 14738  	return nil
 14739  }
 14740  
 14741  func (p *DebugProfileStartRequest) ReadField1(iprot thrift.TProtocol) error {
 14742  	if v, err := iprot.ReadString(); err != nil {
 14743  		return thrift.PrependError("error reading field 1: ", err)
 14744  	} else {
 14745  		p.Name = v
 14746  	}
 14747  	return nil
 14748  }
 14749  
 14750  func (p *DebugProfileStartRequest) ReadField2(iprot thrift.TProtocol) error {
 14751  	if v, err := iprot.ReadString(); err != nil {
 14752  		return thrift.PrependError("error reading field 2: ", err)
 14753  	} else {
 14754  		p.FilePathTemplate = v
 14755  	}
 14756  	return nil
 14757  }
 14758  
 14759  func (p *DebugProfileStartRequest) ReadField3(iprot thrift.TProtocol) error {
 14760  	if v, err := iprot.ReadString(); err != nil {
 14761  		return thrift.PrependError("error reading field 3: ", err)
 14762  	} else {
 14763  		p.Interval = &v
 14764  	}
 14765  	return nil
 14766  }
 14767  
 14768  func (p *DebugProfileStartRequest) ReadField4(iprot thrift.TProtocol) error {
 14769  	if v, err := iprot.ReadString(); err != nil {
 14770  		return thrift.PrependError("error reading field 4: ", err)
 14771  	} else {
 14772  		p.Duration = &v
 14773  	}
 14774  	return nil
 14775  }
 14776  
 14777  func (p *DebugProfileStartRequest) ReadField5(iprot thrift.TProtocol) error {
 14778  	if v, err := iprot.ReadI64(); err != nil {
 14779  		return thrift.PrependError("error reading field 5: ", err)
 14780  	} else {
 14781  		p.Debug = &v
 14782  	}
 14783  	return nil
 14784  }
 14785  
 14786  func (p *DebugProfileStartRequest) ReadField6(iprot thrift.TProtocol) error {
 14787  	if v, err := iprot.ReadI64(); err != nil {
 14788  		return thrift.PrependError("error reading field 6: ", err)
 14789  	} else {
 14790  		p.ConditionalNumGoroutinesGreaterThan = &v
 14791  	}
 14792  	return nil
 14793  }
 14794  
 14795  func (p *DebugProfileStartRequest) ReadField7(iprot thrift.TProtocol) error {
 14796  	if v, err := iprot.ReadI64(); err != nil {
 14797  		return thrift.PrependError("error reading field 7: ", err)
 14798  	} else {
 14799  		p.ConditionalNumGoroutinesLessThan = &v
 14800  	}
 14801  	return nil
 14802  }
 14803  
 14804  func (p *DebugProfileStartRequest) ReadField8(iprot thrift.TProtocol) error {
 14805  	if v, err := iprot.ReadBool(); err != nil {
 14806  		return thrift.PrependError("error reading field 8: ", err)
 14807  	} else {
 14808  		p.ConditionalIsOverloaded = &v
 14809  	}
 14810  	return nil
 14811  }
 14812  
 14813  func (p *DebugProfileStartRequest) Write(oprot thrift.TProtocol) error {
 14814  	if err := oprot.WriteStructBegin("DebugProfileStartRequest"); err != nil {
 14815  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 14816  	}
 14817  	if p != nil {
 14818  		if err := p.writeField1(oprot); err != nil {
 14819  			return err
 14820  		}
 14821  		if err := p.writeField2(oprot); err != nil {
 14822  			return err
 14823  		}
 14824  		if err := p.writeField3(oprot); err != nil {
 14825  			return err
 14826  		}
 14827  		if err := p.writeField4(oprot); err != nil {
 14828  			return err
 14829  		}
 14830  		if err := p.writeField5(oprot); err != nil {
 14831  			return err
 14832  		}
 14833  		if err := p.writeField6(oprot); err != nil {
 14834  			return err
 14835  		}
 14836  		if err := p.writeField7(oprot); err != nil {
 14837  			return err
 14838  		}
 14839  		if err := p.writeField8(oprot); err != nil {
 14840  			return err
 14841  		}
 14842  	}
 14843  	if err := oprot.WriteFieldStop(); err != nil {
 14844  		return thrift.PrependError("write field stop error: ", err)
 14845  	}
 14846  	if err := oprot.WriteStructEnd(); err != nil {
 14847  		return thrift.PrependError("write struct stop error: ", err)
 14848  	}
 14849  	return nil
 14850  }
 14851  
 14852  func (p *DebugProfileStartRequest) writeField1(oprot thrift.TProtocol) (err error) {
 14853  	if err := oprot.WriteFieldBegin("name", thrift.STRING, 1); err != nil {
 14854  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:name: ", p), err)
 14855  	}
 14856  	if err := oprot.WriteString(string(p.Name)); err != nil {
 14857  		return thrift.PrependError(fmt.Sprintf("%T.name (1) field write error: ", p), err)
 14858  	}
 14859  	if err := oprot.WriteFieldEnd(); err != nil {
 14860  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:name: ", p), err)
 14861  	}
 14862  	return err
 14863  }
 14864  
 14865  func (p *DebugProfileStartRequest) writeField2(oprot thrift.TProtocol) (err error) {
 14866  	if err := oprot.WriteFieldBegin("filePathTemplate", thrift.STRING, 2); err != nil {
 14867  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:filePathTemplate: ", p), err)
 14868  	}
 14869  	if err := oprot.WriteString(string(p.FilePathTemplate)); err != nil {
 14870  		return thrift.PrependError(fmt.Sprintf("%T.filePathTemplate (2) field write error: ", p), err)
 14871  	}
 14872  	if err := oprot.WriteFieldEnd(); err != nil {
 14873  		return thrift.PrependError(fmt.Sprintf("%T write field end error 2:filePathTemplate: ", p), err)
 14874  	}
 14875  	return err
 14876  }
 14877  
 14878  func (p *DebugProfileStartRequest) writeField3(oprot thrift.TProtocol) (err error) {
 14879  	if p.IsSetInterval() {
 14880  		if err := oprot.WriteFieldBegin("interval", thrift.STRING, 3); err != nil {
 14881  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:interval: ", p), err)
 14882  		}
 14883  		if err := oprot.WriteString(string(*p.Interval)); err != nil {
 14884  			return thrift.PrependError(fmt.Sprintf("%T.interval (3) field write error: ", p), err)
 14885  		}
 14886  		if err := oprot.WriteFieldEnd(); err != nil {
 14887  			return thrift.PrependError(fmt.Sprintf("%T write field end error 3:interval: ", p), err)
 14888  		}
 14889  	}
 14890  	return err
 14891  }
 14892  
 14893  func (p *DebugProfileStartRequest) writeField4(oprot thrift.TProtocol) (err error) {
 14894  	if p.IsSetDuration() {
 14895  		if err := oprot.WriteFieldBegin("duration", thrift.STRING, 4); err != nil {
 14896  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:duration: ", p), err)
 14897  		}
 14898  		if err := oprot.WriteString(string(*p.Duration)); err != nil {
 14899  			return thrift.PrependError(fmt.Sprintf("%T.duration (4) field write error: ", p), err)
 14900  		}
 14901  		if err := oprot.WriteFieldEnd(); err != nil {
 14902  			return thrift.PrependError(fmt.Sprintf("%T write field end error 4:duration: ", p), err)
 14903  		}
 14904  	}
 14905  	return err
 14906  }
 14907  
 14908  func (p *DebugProfileStartRequest) writeField5(oprot thrift.TProtocol) (err error) {
 14909  	if p.IsSetDebug() {
 14910  		if err := oprot.WriteFieldBegin("debug", thrift.I64, 5); err != nil {
 14911  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:debug: ", p), err)
 14912  		}
 14913  		if err := oprot.WriteI64(int64(*p.Debug)); err != nil {
 14914  			return thrift.PrependError(fmt.Sprintf("%T.debug (5) field write error: ", p), err)
 14915  		}
 14916  		if err := oprot.WriteFieldEnd(); err != nil {
 14917  			return thrift.PrependError(fmt.Sprintf("%T write field end error 5:debug: ", p), err)
 14918  		}
 14919  	}
 14920  	return err
 14921  }
 14922  
 14923  func (p *DebugProfileStartRequest) writeField6(oprot thrift.TProtocol) (err error) {
 14924  	if p.IsSetConditionalNumGoroutinesGreaterThan() {
 14925  		if err := oprot.WriteFieldBegin("conditionalNumGoroutinesGreaterThan", thrift.I64, 6); err != nil {
 14926  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 6:conditionalNumGoroutinesGreaterThan: ", p), err)
 14927  		}
 14928  		if err := oprot.WriteI64(int64(*p.ConditionalNumGoroutinesGreaterThan)); err != nil {
 14929  			return thrift.PrependError(fmt.Sprintf("%T.conditionalNumGoroutinesGreaterThan (6) field write error: ", p), err)
 14930  		}
 14931  		if err := oprot.WriteFieldEnd(); err != nil {
 14932  			return thrift.PrependError(fmt.Sprintf("%T write field end error 6:conditionalNumGoroutinesGreaterThan: ", p), err)
 14933  		}
 14934  	}
 14935  	return err
 14936  }
 14937  
 14938  func (p *DebugProfileStartRequest) writeField7(oprot thrift.TProtocol) (err error) {
 14939  	if p.IsSetConditionalNumGoroutinesLessThan() {
 14940  		if err := oprot.WriteFieldBegin("conditionalNumGoroutinesLessThan", thrift.I64, 7); err != nil {
 14941  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 7:conditionalNumGoroutinesLessThan: ", p), err)
 14942  		}
 14943  		if err := oprot.WriteI64(int64(*p.ConditionalNumGoroutinesLessThan)); err != nil {
 14944  			return thrift.PrependError(fmt.Sprintf("%T.conditionalNumGoroutinesLessThan (7) field write error: ", p), err)
 14945  		}
 14946  		if err := oprot.WriteFieldEnd(); err != nil {
 14947  			return thrift.PrependError(fmt.Sprintf("%T write field end error 7:conditionalNumGoroutinesLessThan: ", p), err)
 14948  		}
 14949  	}
 14950  	return err
 14951  }
 14952  
 14953  func (p *DebugProfileStartRequest) writeField8(oprot thrift.TProtocol) (err error) {
 14954  	if p.IsSetConditionalIsOverloaded() {
 14955  		if err := oprot.WriteFieldBegin("conditionalIsOverloaded", thrift.BOOL, 8); err != nil {
 14956  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 8:conditionalIsOverloaded: ", p), err)
 14957  		}
 14958  		if err := oprot.WriteBool(bool(*p.ConditionalIsOverloaded)); err != nil {
 14959  			return thrift.PrependError(fmt.Sprintf("%T.conditionalIsOverloaded (8) field write error: ", p), err)
 14960  		}
 14961  		if err := oprot.WriteFieldEnd(); err != nil {
 14962  			return thrift.PrependError(fmt.Sprintf("%T write field end error 8:conditionalIsOverloaded: ", p), err)
 14963  		}
 14964  	}
 14965  	return err
 14966  }
 14967  
 14968  func (p *DebugProfileStartRequest) String() string {
 14969  	if p == nil {
 14970  		return "<nil>"
 14971  	}
 14972  	return fmt.Sprintf("DebugProfileStartRequest(%+v)", *p)
 14973  }
 14974  
 14975  type DebugProfileStartResult_ struct {
 14976  }
 14977  
 14978  func NewDebugProfileStartResult_() *DebugProfileStartResult_ {
 14979  	return &DebugProfileStartResult_{}
 14980  }
 14981  
 14982  func (p *DebugProfileStartResult_) Read(iprot thrift.TProtocol) error {
 14983  	if _, err := iprot.ReadStructBegin(); err != nil {
 14984  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 14985  	}
 14986  
 14987  	for {
 14988  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 14989  		if err != nil {
 14990  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 14991  		}
 14992  		if fieldTypeId == thrift.STOP {
 14993  			break
 14994  		}
 14995  		if err := iprot.Skip(fieldTypeId); err != nil {
 14996  			return err
 14997  		}
 14998  		if err := iprot.ReadFieldEnd(); err != nil {
 14999  			return err
 15000  		}
 15001  	}
 15002  	if err := iprot.ReadStructEnd(); err != nil {
 15003  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 15004  	}
 15005  	return nil
 15006  }
 15007  
 15008  func (p *DebugProfileStartResult_) Write(oprot thrift.TProtocol) error {
 15009  	if err := oprot.WriteStructBegin("DebugProfileStartResult"); err != nil {
 15010  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 15011  	}
 15012  	if p != nil {
 15013  	}
 15014  	if err := oprot.WriteFieldStop(); err != nil {
 15015  		return thrift.PrependError("write field stop error: ", err)
 15016  	}
 15017  	if err := oprot.WriteStructEnd(); err != nil {
 15018  		return thrift.PrependError("write struct stop error: ", err)
 15019  	}
 15020  	return nil
 15021  }
 15022  
 15023  func (p *DebugProfileStartResult_) String() string {
 15024  	if p == nil {
 15025  		return "<nil>"
 15026  	}
 15027  	return fmt.Sprintf("DebugProfileStartResult_(%+v)", *p)
 15028  }
 15029  
 15030  // Attributes:
 15031  //  - Name
 15032  type DebugProfileStopRequest struct {
 15033  	Name string `thrift:"name,1,required" db:"name" json:"name"`
 15034  }
 15035  
 15036  func NewDebugProfileStopRequest() *DebugProfileStopRequest {
 15037  	return &DebugProfileStopRequest{}
 15038  }
 15039  
 15040  func (p *DebugProfileStopRequest) GetName() string {
 15041  	return p.Name
 15042  }
 15043  func (p *DebugProfileStopRequest) Read(iprot thrift.TProtocol) error {
 15044  	if _, err := iprot.ReadStructBegin(); err != nil {
 15045  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 15046  	}
 15047  
 15048  	var issetName bool = false
 15049  
 15050  	for {
 15051  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 15052  		if err != nil {
 15053  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 15054  		}
 15055  		if fieldTypeId == thrift.STOP {
 15056  			break
 15057  		}
 15058  		switch fieldId {
 15059  		case 1:
 15060  			if err := p.ReadField1(iprot); err != nil {
 15061  				return err
 15062  			}
 15063  			issetName = true
 15064  		default:
 15065  			if err := iprot.Skip(fieldTypeId); err != nil {
 15066  				return err
 15067  			}
 15068  		}
 15069  		if err := iprot.ReadFieldEnd(); err != nil {
 15070  			return err
 15071  		}
 15072  	}
 15073  	if err := iprot.ReadStructEnd(); err != nil {
 15074  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 15075  	}
 15076  	if !issetName {
 15077  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Name is not set"))
 15078  	}
 15079  	return nil
 15080  }
 15081  
 15082  func (p *DebugProfileStopRequest) ReadField1(iprot thrift.TProtocol) error {
 15083  	if v, err := iprot.ReadString(); err != nil {
 15084  		return thrift.PrependError("error reading field 1: ", err)
 15085  	} else {
 15086  		p.Name = v
 15087  	}
 15088  	return nil
 15089  }
 15090  
 15091  func (p *DebugProfileStopRequest) Write(oprot thrift.TProtocol) error {
 15092  	if err := oprot.WriteStructBegin("DebugProfileStopRequest"); err != nil {
 15093  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 15094  	}
 15095  	if p != nil {
 15096  		if err := p.writeField1(oprot); err != nil {
 15097  			return err
 15098  		}
 15099  	}
 15100  	if err := oprot.WriteFieldStop(); err != nil {
 15101  		return thrift.PrependError("write field stop error: ", err)
 15102  	}
 15103  	if err := oprot.WriteStructEnd(); err != nil {
 15104  		return thrift.PrependError("write struct stop error: ", err)
 15105  	}
 15106  	return nil
 15107  }
 15108  
 15109  func (p *DebugProfileStopRequest) writeField1(oprot thrift.TProtocol) (err error) {
 15110  	if err := oprot.WriteFieldBegin("name", thrift.STRING, 1); err != nil {
 15111  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:name: ", p), err)
 15112  	}
 15113  	if err := oprot.WriteString(string(p.Name)); err != nil {
 15114  		return thrift.PrependError(fmt.Sprintf("%T.name (1) field write error: ", p), err)
 15115  	}
 15116  	if err := oprot.WriteFieldEnd(); err != nil {
 15117  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:name: ", p), err)
 15118  	}
 15119  	return err
 15120  }
 15121  
 15122  func (p *DebugProfileStopRequest) String() string {
 15123  	if p == nil {
 15124  		return "<nil>"
 15125  	}
 15126  	return fmt.Sprintf("DebugProfileStopRequest(%+v)", *p)
 15127  }
 15128  
 15129  type DebugProfileStopResult_ struct {
 15130  }
 15131  
 15132  func NewDebugProfileStopResult_() *DebugProfileStopResult_ {
 15133  	return &DebugProfileStopResult_{}
 15134  }
 15135  
 15136  func (p *DebugProfileStopResult_) Read(iprot thrift.TProtocol) error {
 15137  	if _, err := iprot.ReadStructBegin(); err != nil {
 15138  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 15139  	}
 15140  
 15141  	for {
 15142  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 15143  		if err != nil {
 15144  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 15145  		}
 15146  		if fieldTypeId == thrift.STOP {
 15147  			break
 15148  		}
 15149  		if err := iprot.Skip(fieldTypeId); err != nil {
 15150  			return err
 15151  		}
 15152  		if err := iprot.ReadFieldEnd(); err != nil {
 15153  			return err
 15154  		}
 15155  	}
 15156  	if err := iprot.ReadStructEnd(); err != nil {
 15157  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 15158  	}
 15159  	return nil
 15160  }
 15161  
 15162  func (p *DebugProfileStopResult_) Write(oprot thrift.TProtocol) error {
 15163  	if err := oprot.WriteStructBegin("DebugProfileStopResult"); err != nil {
 15164  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 15165  	}
 15166  	if p != nil {
 15167  	}
 15168  	if err := oprot.WriteFieldStop(); err != nil {
 15169  		return thrift.PrependError("write field stop error: ", err)
 15170  	}
 15171  	if err := oprot.WriteStructEnd(); err != nil {
 15172  		return thrift.PrependError("write struct stop error: ", err)
 15173  	}
 15174  	return nil
 15175  }
 15176  
 15177  func (p *DebugProfileStopResult_) String() string {
 15178  	if p == nil {
 15179  		return "<nil>"
 15180  	}
 15181  	return fmt.Sprintf("DebugProfileStopResult_(%+v)", *p)
 15182  }
 15183  
 15184  // Attributes:
 15185  //  - Directory
 15186  type DebugIndexMemorySegmentsRequest struct {
 15187  	Directory string `thrift:"directory,1,required" db:"directory" json:"directory"`
 15188  }
 15189  
 15190  func NewDebugIndexMemorySegmentsRequest() *DebugIndexMemorySegmentsRequest {
 15191  	return &DebugIndexMemorySegmentsRequest{}
 15192  }
 15193  
 15194  func (p *DebugIndexMemorySegmentsRequest) GetDirectory() string {
 15195  	return p.Directory
 15196  }
 15197  func (p *DebugIndexMemorySegmentsRequest) Read(iprot thrift.TProtocol) error {
 15198  	if _, err := iprot.ReadStructBegin(); err != nil {
 15199  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 15200  	}
 15201  
 15202  	var issetDirectory bool = false
 15203  
 15204  	for {
 15205  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 15206  		if err != nil {
 15207  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 15208  		}
 15209  		if fieldTypeId == thrift.STOP {
 15210  			break
 15211  		}
 15212  		switch fieldId {
 15213  		case 1:
 15214  			if err := p.ReadField1(iprot); err != nil {
 15215  				return err
 15216  			}
 15217  			issetDirectory = true
 15218  		default:
 15219  			if err := iprot.Skip(fieldTypeId); err != nil {
 15220  				return err
 15221  			}
 15222  		}
 15223  		if err := iprot.ReadFieldEnd(); err != nil {
 15224  			return err
 15225  		}
 15226  	}
 15227  	if err := iprot.ReadStructEnd(); err != nil {
 15228  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 15229  	}
 15230  	if !issetDirectory {
 15231  		return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field Directory is not set"))
 15232  	}
 15233  	return nil
 15234  }
 15235  
 15236  func (p *DebugIndexMemorySegmentsRequest) ReadField1(iprot thrift.TProtocol) error {
 15237  	if v, err := iprot.ReadString(); err != nil {
 15238  		return thrift.PrependError("error reading field 1: ", err)
 15239  	} else {
 15240  		p.Directory = v
 15241  	}
 15242  	return nil
 15243  }
 15244  
 15245  func (p *DebugIndexMemorySegmentsRequest) Write(oprot thrift.TProtocol) error {
 15246  	if err := oprot.WriteStructBegin("DebugIndexMemorySegmentsRequest"); err != nil {
 15247  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 15248  	}
 15249  	if p != nil {
 15250  		if err := p.writeField1(oprot); err != nil {
 15251  			return err
 15252  		}
 15253  	}
 15254  	if err := oprot.WriteFieldStop(); err != nil {
 15255  		return thrift.PrependError("write field stop error: ", err)
 15256  	}
 15257  	if err := oprot.WriteStructEnd(); err != nil {
 15258  		return thrift.PrependError("write struct stop error: ", err)
 15259  	}
 15260  	return nil
 15261  }
 15262  
 15263  func (p *DebugIndexMemorySegmentsRequest) writeField1(oprot thrift.TProtocol) (err error) {
 15264  	if err := oprot.WriteFieldBegin("directory", thrift.STRING, 1); err != nil {
 15265  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:directory: ", p), err)
 15266  	}
 15267  	if err := oprot.WriteString(string(p.Directory)); err != nil {
 15268  		return thrift.PrependError(fmt.Sprintf("%T.directory (1) field write error: ", p), err)
 15269  	}
 15270  	if err := oprot.WriteFieldEnd(); err != nil {
 15271  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:directory: ", p), err)
 15272  	}
 15273  	return err
 15274  }
 15275  
 15276  func (p *DebugIndexMemorySegmentsRequest) String() string {
 15277  	if p == nil {
 15278  		return "<nil>"
 15279  	}
 15280  	return fmt.Sprintf("DebugIndexMemorySegmentsRequest(%+v)", *p)
 15281  }
 15282  
 15283  type DebugIndexMemorySegmentsResult_ struct {
 15284  }
 15285  
 15286  func NewDebugIndexMemorySegmentsResult_() *DebugIndexMemorySegmentsResult_ {
 15287  	return &DebugIndexMemorySegmentsResult_{}
 15288  }
 15289  
 15290  func (p *DebugIndexMemorySegmentsResult_) Read(iprot thrift.TProtocol) error {
 15291  	if _, err := iprot.ReadStructBegin(); err != nil {
 15292  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 15293  	}
 15294  
 15295  	for {
 15296  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 15297  		if err != nil {
 15298  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 15299  		}
 15300  		if fieldTypeId == thrift.STOP {
 15301  			break
 15302  		}
 15303  		if err := iprot.Skip(fieldTypeId); err != nil {
 15304  			return err
 15305  		}
 15306  		if err := iprot.ReadFieldEnd(); err != nil {
 15307  			return err
 15308  		}
 15309  	}
 15310  	if err := iprot.ReadStructEnd(); err != nil {
 15311  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 15312  	}
 15313  	return nil
 15314  }
 15315  
 15316  func (p *DebugIndexMemorySegmentsResult_) Write(oprot thrift.TProtocol) error {
 15317  	if err := oprot.WriteStructBegin("DebugIndexMemorySegmentsResult"); err != nil {
 15318  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 15319  	}
 15320  	if p != nil {
 15321  	}
 15322  	if err := oprot.WriteFieldStop(); err != nil {
 15323  		return thrift.PrependError("write field stop error: ", err)
 15324  	}
 15325  	if err := oprot.WriteStructEnd(); err != nil {
 15326  		return thrift.PrependError("write struct stop error: ", err)
 15327  	}
 15328  	return nil
 15329  }
 15330  
 15331  func (p *DebugIndexMemorySegmentsResult_) String() string {
 15332  	if p == nil {
 15333  		return "<nil>"
 15334  	}
 15335  	return fmt.Sprintf("DebugIndexMemorySegmentsResult_(%+v)", *p)
 15336  }
 15337  
 15338  type Node interface {
 15339  	// Parameters:
 15340  	//  - Req
 15341  	Query(req *QueryRequest) (r *QueryResult_, err error)
 15342  	// Parameters:
 15343  	//  - Req
 15344  	Aggregate(req *AggregateQueryRequest) (r *AggregateQueryResult_, err error)
 15345  	// Parameters:
 15346  	//  - Req
 15347  	Fetch(req *FetchRequest) (r *FetchResult_, err error)
 15348  	// Parameters:
 15349  	//  - Req
 15350  	Write(req *WriteRequest) (err error)
 15351  	// Parameters:
 15352  	//  - Req
 15353  	WriteTagged(req *WriteTaggedRequest) (err error)
 15354  	// Parameters:
 15355  	//  - Req
 15356  	AggregateRaw(req *AggregateQueryRawRequest) (r *AggregateQueryRawResult_, err error)
 15357  	// Parameters:
 15358  	//  - Req
 15359  	FetchBatchRaw(req *FetchBatchRawRequest) (r *FetchBatchRawResult_, err error)
 15360  	// Parameters:
 15361  	//  - Req
 15362  	FetchBatchRawV2(req *FetchBatchRawV2Request) (r *FetchBatchRawResult_, err error)
 15363  	// Parameters:
 15364  	//  - Req
 15365  	FetchBlocksRaw(req *FetchBlocksRawRequest) (r *FetchBlocksRawResult_, err error)
 15366  	// Parameters:
 15367  	//  - Req
 15368  	FetchTagged(req *FetchTaggedRequest) (r *FetchTaggedResult_, err error)
 15369  	// Parameters:
 15370  	//  - Req
 15371  	FetchBlocksMetadataRawV2(req *FetchBlocksMetadataRawV2Request) (r *FetchBlocksMetadataRawV2Result_, err error)
 15372  	// Parameters:
 15373  	//  - Req
 15374  	WriteBatchRaw(req *WriteBatchRawRequest) (err error)
 15375  	// Parameters:
 15376  	//  - Req
 15377  	WriteBatchRawV2(req *WriteBatchRawV2Request) (err error)
 15378  	// Parameters:
 15379  	//  - Req
 15380  	WriteTaggedBatchRaw(req *WriteTaggedBatchRawRequest) (err error)
 15381  	// Parameters:
 15382  	//  - Req
 15383  	WriteTaggedBatchRawV2(req *WriteTaggedBatchRawV2Request) (err error)
 15384  	Repair() (err error)
 15385  	// Parameters:
 15386  	//  - Req
 15387  	Truncate(req *TruncateRequest) (r *TruncateResult_, err error)
 15388  	// Parameters:
 15389  	//  - Req
 15390  	AggregateTiles(req *AggregateTilesRequest) (r *AggregateTilesResult_, err error)
 15391  	Health() (r *NodeHealthResult_, err error)
 15392  	Bootstrapped() (r *NodeBootstrappedResult_, err error)
 15393  	BootstrappedInPlacementOrNoPlacement() (r *NodeBootstrappedInPlacementOrNoPlacementResult_, err error)
 15394  	GetPersistRateLimit() (r *NodePersistRateLimitResult_, err error)
 15395  	// Parameters:
 15396  	//  - Req
 15397  	SetPersistRateLimit(req *NodeSetPersistRateLimitRequest) (r *NodePersistRateLimitResult_, err error)
 15398  	GetWriteNewSeriesAsync() (r *NodeWriteNewSeriesAsyncResult_, err error)
 15399  	// Parameters:
 15400  	//  - Req
 15401  	SetWriteNewSeriesAsync(req *NodeSetWriteNewSeriesAsyncRequest) (r *NodeWriteNewSeriesAsyncResult_, err error)
 15402  	GetWriteNewSeriesBackoffDuration() (r *NodeWriteNewSeriesBackoffDurationResult_, err error)
 15403  	// Parameters:
 15404  	//  - Req
 15405  	SetWriteNewSeriesBackoffDuration(req *NodeSetWriteNewSeriesBackoffDurationRequest) (r *NodeWriteNewSeriesBackoffDurationResult_, err error)
 15406  	GetWriteNewSeriesLimitPerShardPerSecond() (r *NodeWriteNewSeriesLimitPerShardPerSecondResult_, err error)
 15407  	// Parameters:
 15408  	//  - Req
 15409  	SetWriteNewSeriesLimitPerShardPerSecond(req *NodeSetWriteNewSeriesLimitPerShardPerSecondRequest) (r *NodeWriteNewSeriesLimitPerShardPerSecondResult_, err error)
 15410  	// Parameters:
 15411  	//  - Req
 15412  	DebugProfileStart(req *DebugProfileStartRequest) (r *DebugProfileStartResult_, err error)
 15413  	// Parameters:
 15414  	//  - Req
 15415  	DebugProfileStop(req *DebugProfileStopRequest) (r *DebugProfileStopResult_, err error)
 15416  	// Parameters:
 15417  	//  - Req
 15418  	DebugIndexMemorySegments(req *DebugIndexMemorySegmentsRequest) (r *DebugIndexMemorySegmentsResult_, err error)
 15419  }
 15420  
 15421  type NodeClient struct {
 15422  	Transport       thrift.TTransport
 15423  	ProtocolFactory thrift.TProtocolFactory
 15424  	InputProtocol   thrift.TProtocol
 15425  	OutputProtocol  thrift.TProtocol
 15426  	SeqId           int32
 15427  }
 15428  
 15429  func NewNodeClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *NodeClient {
 15430  	return &NodeClient{Transport: t,
 15431  		ProtocolFactory: f,
 15432  		InputProtocol:   f.GetProtocol(t),
 15433  		OutputProtocol:  f.GetProtocol(t),
 15434  		SeqId:           0,
 15435  	}
 15436  }
 15437  
 15438  func NewNodeClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *NodeClient {
 15439  	return &NodeClient{Transport: t,
 15440  		ProtocolFactory: nil,
 15441  		InputProtocol:   iprot,
 15442  		OutputProtocol:  oprot,
 15443  		SeqId:           0,
 15444  	}
 15445  }
 15446  
 15447  // Parameters:
 15448  //  - Req
 15449  func (p *NodeClient) Query(req *QueryRequest) (r *QueryResult_, err error) {
 15450  	if err = p.sendQuery(req); err != nil {
 15451  		return
 15452  	}
 15453  	return p.recvQuery()
 15454  }
 15455  
 15456  func (p *NodeClient) sendQuery(req *QueryRequest) (err error) {
 15457  	oprot := p.OutputProtocol
 15458  	if oprot == nil {
 15459  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 15460  		p.OutputProtocol = oprot
 15461  	}
 15462  	p.SeqId++
 15463  	if err = oprot.WriteMessageBegin("query", thrift.CALL, p.SeqId); err != nil {
 15464  		return
 15465  	}
 15466  	args := NodeQueryArgs{
 15467  		Req: req,
 15468  	}
 15469  	if err = args.Write(oprot); err != nil {
 15470  		return
 15471  	}
 15472  	if err = oprot.WriteMessageEnd(); err != nil {
 15473  		return
 15474  	}
 15475  	return oprot.Flush()
 15476  }
 15477  
 15478  func (p *NodeClient) recvQuery() (value *QueryResult_, err error) {
 15479  	iprot := p.InputProtocol
 15480  	if iprot == nil {
 15481  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 15482  		p.InputProtocol = iprot
 15483  	}
 15484  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 15485  	if err != nil {
 15486  		return
 15487  	}
 15488  	if method != "query" {
 15489  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "query failed: wrong method name")
 15490  		return
 15491  	}
 15492  	if p.SeqId != seqId {
 15493  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "query failed: out of sequence response")
 15494  		return
 15495  	}
 15496  	if mTypeId == thrift.EXCEPTION {
 15497  		error35 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 15498  		var error36 error
 15499  		error36, err = error35.Read(iprot)
 15500  		if err != nil {
 15501  			return
 15502  		}
 15503  		if err = iprot.ReadMessageEnd(); err != nil {
 15504  			return
 15505  		}
 15506  		err = error36
 15507  		return
 15508  	}
 15509  	if mTypeId != thrift.REPLY {
 15510  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "query failed: invalid message type")
 15511  		return
 15512  	}
 15513  	result := NodeQueryResult{}
 15514  	if err = result.Read(iprot); err != nil {
 15515  		return
 15516  	}
 15517  	if err = iprot.ReadMessageEnd(); err != nil {
 15518  		return
 15519  	}
 15520  	if result.Err != nil {
 15521  		err = result.Err
 15522  		return
 15523  	}
 15524  	value = result.GetSuccess()
 15525  	return
 15526  }
 15527  
 15528  // Parameters:
 15529  //  - Req
 15530  func (p *NodeClient) Aggregate(req *AggregateQueryRequest) (r *AggregateQueryResult_, err error) {
 15531  	if err = p.sendAggregate(req); err != nil {
 15532  		return
 15533  	}
 15534  	return p.recvAggregate()
 15535  }
 15536  
 15537  func (p *NodeClient) sendAggregate(req *AggregateQueryRequest) (err error) {
 15538  	oprot := p.OutputProtocol
 15539  	if oprot == nil {
 15540  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 15541  		p.OutputProtocol = oprot
 15542  	}
 15543  	p.SeqId++
 15544  	if err = oprot.WriteMessageBegin("aggregate", thrift.CALL, p.SeqId); err != nil {
 15545  		return
 15546  	}
 15547  	args := NodeAggregateArgs{
 15548  		Req: req,
 15549  	}
 15550  	if err = args.Write(oprot); err != nil {
 15551  		return
 15552  	}
 15553  	if err = oprot.WriteMessageEnd(); err != nil {
 15554  		return
 15555  	}
 15556  	return oprot.Flush()
 15557  }
 15558  
 15559  func (p *NodeClient) recvAggregate() (value *AggregateQueryResult_, err error) {
 15560  	iprot := p.InputProtocol
 15561  	if iprot == nil {
 15562  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 15563  		p.InputProtocol = iprot
 15564  	}
 15565  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 15566  	if err != nil {
 15567  		return
 15568  	}
 15569  	if method != "aggregate" {
 15570  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "aggregate failed: wrong method name")
 15571  		return
 15572  	}
 15573  	if p.SeqId != seqId {
 15574  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "aggregate failed: out of sequence response")
 15575  		return
 15576  	}
 15577  	if mTypeId == thrift.EXCEPTION {
 15578  		error37 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 15579  		var error38 error
 15580  		error38, err = error37.Read(iprot)
 15581  		if err != nil {
 15582  			return
 15583  		}
 15584  		if err = iprot.ReadMessageEnd(); err != nil {
 15585  			return
 15586  		}
 15587  		err = error38
 15588  		return
 15589  	}
 15590  	if mTypeId != thrift.REPLY {
 15591  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "aggregate failed: invalid message type")
 15592  		return
 15593  	}
 15594  	result := NodeAggregateResult{}
 15595  	if err = result.Read(iprot); err != nil {
 15596  		return
 15597  	}
 15598  	if err = iprot.ReadMessageEnd(); err != nil {
 15599  		return
 15600  	}
 15601  	if result.Err != nil {
 15602  		err = result.Err
 15603  		return
 15604  	}
 15605  	value = result.GetSuccess()
 15606  	return
 15607  }
 15608  
 15609  // Parameters:
 15610  //  - Req
 15611  func (p *NodeClient) Fetch(req *FetchRequest) (r *FetchResult_, err error) {
 15612  	if err = p.sendFetch(req); err != nil {
 15613  		return
 15614  	}
 15615  	return p.recvFetch()
 15616  }
 15617  
 15618  func (p *NodeClient) sendFetch(req *FetchRequest) (err error) {
 15619  	oprot := p.OutputProtocol
 15620  	if oprot == nil {
 15621  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 15622  		p.OutputProtocol = oprot
 15623  	}
 15624  	p.SeqId++
 15625  	if err = oprot.WriteMessageBegin("fetch", thrift.CALL, p.SeqId); err != nil {
 15626  		return
 15627  	}
 15628  	args := NodeFetchArgs{
 15629  		Req: req,
 15630  	}
 15631  	if err = args.Write(oprot); err != nil {
 15632  		return
 15633  	}
 15634  	if err = oprot.WriteMessageEnd(); err != nil {
 15635  		return
 15636  	}
 15637  	return oprot.Flush()
 15638  }
 15639  
 15640  func (p *NodeClient) recvFetch() (value *FetchResult_, err error) {
 15641  	iprot := p.InputProtocol
 15642  	if iprot == nil {
 15643  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 15644  		p.InputProtocol = iprot
 15645  	}
 15646  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 15647  	if err != nil {
 15648  		return
 15649  	}
 15650  	if method != "fetch" {
 15651  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "fetch failed: wrong method name")
 15652  		return
 15653  	}
 15654  	if p.SeqId != seqId {
 15655  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "fetch failed: out of sequence response")
 15656  		return
 15657  	}
 15658  	if mTypeId == thrift.EXCEPTION {
 15659  		error39 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 15660  		var error40 error
 15661  		error40, err = error39.Read(iprot)
 15662  		if err != nil {
 15663  			return
 15664  		}
 15665  		if err = iprot.ReadMessageEnd(); err != nil {
 15666  			return
 15667  		}
 15668  		err = error40
 15669  		return
 15670  	}
 15671  	if mTypeId != thrift.REPLY {
 15672  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "fetch failed: invalid message type")
 15673  		return
 15674  	}
 15675  	result := NodeFetchResult{}
 15676  	if err = result.Read(iprot); err != nil {
 15677  		return
 15678  	}
 15679  	if err = iprot.ReadMessageEnd(); err != nil {
 15680  		return
 15681  	}
 15682  	if result.Err != nil {
 15683  		err = result.Err
 15684  		return
 15685  	}
 15686  	value = result.GetSuccess()
 15687  	return
 15688  }
 15689  
 15690  // Parameters:
 15691  //  - Req
 15692  func (p *NodeClient) Write(req *WriteRequest) (err error) {
 15693  	if err = p.sendWrite(req); err != nil {
 15694  		return
 15695  	}
 15696  	return p.recvWrite()
 15697  }
 15698  
 15699  func (p *NodeClient) sendWrite(req *WriteRequest) (err error) {
 15700  	oprot := p.OutputProtocol
 15701  	if oprot == nil {
 15702  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 15703  		p.OutputProtocol = oprot
 15704  	}
 15705  	p.SeqId++
 15706  	if err = oprot.WriteMessageBegin("write", thrift.CALL, p.SeqId); err != nil {
 15707  		return
 15708  	}
 15709  	args := NodeWriteArgs{
 15710  		Req: req,
 15711  	}
 15712  	if err = args.Write(oprot); err != nil {
 15713  		return
 15714  	}
 15715  	if err = oprot.WriteMessageEnd(); err != nil {
 15716  		return
 15717  	}
 15718  	return oprot.Flush()
 15719  }
 15720  
 15721  func (p *NodeClient) recvWrite() (err error) {
 15722  	iprot := p.InputProtocol
 15723  	if iprot == nil {
 15724  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 15725  		p.InputProtocol = iprot
 15726  	}
 15727  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 15728  	if err != nil {
 15729  		return
 15730  	}
 15731  	if method != "write" {
 15732  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "write failed: wrong method name")
 15733  		return
 15734  	}
 15735  	if p.SeqId != seqId {
 15736  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "write failed: out of sequence response")
 15737  		return
 15738  	}
 15739  	if mTypeId == thrift.EXCEPTION {
 15740  		error41 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 15741  		var error42 error
 15742  		error42, err = error41.Read(iprot)
 15743  		if err != nil {
 15744  			return
 15745  		}
 15746  		if err = iprot.ReadMessageEnd(); err != nil {
 15747  			return
 15748  		}
 15749  		err = error42
 15750  		return
 15751  	}
 15752  	if mTypeId != thrift.REPLY {
 15753  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "write failed: invalid message type")
 15754  		return
 15755  	}
 15756  	result := NodeWriteResult{}
 15757  	if err = result.Read(iprot); err != nil {
 15758  		return
 15759  	}
 15760  	if err = iprot.ReadMessageEnd(); err != nil {
 15761  		return
 15762  	}
 15763  	if result.Err != nil {
 15764  		err = result.Err
 15765  		return
 15766  	}
 15767  	return
 15768  }
 15769  
 15770  // Parameters:
 15771  //  - Req
 15772  func (p *NodeClient) WriteTagged(req *WriteTaggedRequest) (err error) {
 15773  	if err = p.sendWriteTagged(req); err != nil {
 15774  		return
 15775  	}
 15776  	return p.recvWriteTagged()
 15777  }
 15778  
 15779  func (p *NodeClient) sendWriteTagged(req *WriteTaggedRequest) (err error) {
 15780  	oprot := p.OutputProtocol
 15781  	if oprot == nil {
 15782  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 15783  		p.OutputProtocol = oprot
 15784  	}
 15785  	p.SeqId++
 15786  	if err = oprot.WriteMessageBegin("writeTagged", thrift.CALL, p.SeqId); err != nil {
 15787  		return
 15788  	}
 15789  	args := NodeWriteTaggedArgs{
 15790  		Req: req,
 15791  	}
 15792  	if err = args.Write(oprot); err != nil {
 15793  		return
 15794  	}
 15795  	if err = oprot.WriteMessageEnd(); err != nil {
 15796  		return
 15797  	}
 15798  	return oprot.Flush()
 15799  }
 15800  
 15801  func (p *NodeClient) recvWriteTagged() (err error) {
 15802  	iprot := p.InputProtocol
 15803  	if iprot == nil {
 15804  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 15805  		p.InputProtocol = iprot
 15806  	}
 15807  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 15808  	if err != nil {
 15809  		return
 15810  	}
 15811  	if method != "writeTagged" {
 15812  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "writeTagged failed: wrong method name")
 15813  		return
 15814  	}
 15815  	if p.SeqId != seqId {
 15816  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "writeTagged failed: out of sequence response")
 15817  		return
 15818  	}
 15819  	if mTypeId == thrift.EXCEPTION {
 15820  		error43 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 15821  		var error44 error
 15822  		error44, err = error43.Read(iprot)
 15823  		if err != nil {
 15824  			return
 15825  		}
 15826  		if err = iprot.ReadMessageEnd(); err != nil {
 15827  			return
 15828  		}
 15829  		err = error44
 15830  		return
 15831  	}
 15832  	if mTypeId != thrift.REPLY {
 15833  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "writeTagged failed: invalid message type")
 15834  		return
 15835  	}
 15836  	result := NodeWriteTaggedResult{}
 15837  	if err = result.Read(iprot); err != nil {
 15838  		return
 15839  	}
 15840  	if err = iprot.ReadMessageEnd(); err != nil {
 15841  		return
 15842  	}
 15843  	if result.Err != nil {
 15844  		err = result.Err
 15845  		return
 15846  	}
 15847  	return
 15848  }
 15849  
 15850  // Parameters:
 15851  //  - Req
 15852  func (p *NodeClient) AggregateRaw(req *AggregateQueryRawRequest) (r *AggregateQueryRawResult_, err error) {
 15853  	if err = p.sendAggregateRaw(req); err != nil {
 15854  		return
 15855  	}
 15856  	return p.recvAggregateRaw()
 15857  }
 15858  
 15859  func (p *NodeClient) sendAggregateRaw(req *AggregateQueryRawRequest) (err error) {
 15860  	oprot := p.OutputProtocol
 15861  	if oprot == nil {
 15862  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 15863  		p.OutputProtocol = oprot
 15864  	}
 15865  	p.SeqId++
 15866  	if err = oprot.WriteMessageBegin("aggregateRaw", thrift.CALL, p.SeqId); err != nil {
 15867  		return
 15868  	}
 15869  	args := NodeAggregateRawArgs{
 15870  		Req: req,
 15871  	}
 15872  	if err = args.Write(oprot); err != nil {
 15873  		return
 15874  	}
 15875  	if err = oprot.WriteMessageEnd(); err != nil {
 15876  		return
 15877  	}
 15878  	return oprot.Flush()
 15879  }
 15880  
 15881  func (p *NodeClient) recvAggregateRaw() (value *AggregateQueryRawResult_, err error) {
 15882  	iprot := p.InputProtocol
 15883  	if iprot == nil {
 15884  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 15885  		p.InputProtocol = iprot
 15886  	}
 15887  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 15888  	if err != nil {
 15889  		return
 15890  	}
 15891  	if method != "aggregateRaw" {
 15892  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "aggregateRaw failed: wrong method name")
 15893  		return
 15894  	}
 15895  	if p.SeqId != seqId {
 15896  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "aggregateRaw failed: out of sequence response")
 15897  		return
 15898  	}
 15899  	if mTypeId == thrift.EXCEPTION {
 15900  		error45 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 15901  		var error46 error
 15902  		error46, err = error45.Read(iprot)
 15903  		if err != nil {
 15904  			return
 15905  		}
 15906  		if err = iprot.ReadMessageEnd(); err != nil {
 15907  			return
 15908  		}
 15909  		err = error46
 15910  		return
 15911  	}
 15912  	if mTypeId != thrift.REPLY {
 15913  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "aggregateRaw failed: invalid message type")
 15914  		return
 15915  	}
 15916  	result := NodeAggregateRawResult{}
 15917  	if err = result.Read(iprot); err != nil {
 15918  		return
 15919  	}
 15920  	if err = iprot.ReadMessageEnd(); err != nil {
 15921  		return
 15922  	}
 15923  	if result.Err != nil {
 15924  		err = result.Err
 15925  		return
 15926  	}
 15927  	value = result.GetSuccess()
 15928  	return
 15929  }
 15930  
 15931  // Parameters:
 15932  //  - Req
 15933  func (p *NodeClient) FetchBatchRaw(req *FetchBatchRawRequest) (r *FetchBatchRawResult_, err error) {
 15934  	if err = p.sendFetchBatchRaw(req); err != nil {
 15935  		return
 15936  	}
 15937  	return p.recvFetchBatchRaw()
 15938  }
 15939  
 15940  func (p *NodeClient) sendFetchBatchRaw(req *FetchBatchRawRequest) (err error) {
 15941  	oprot := p.OutputProtocol
 15942  	if oprot == nil {
 15943  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 15944  		p.OutputProtocol = oprot
 15945  	}
 15946  	p.SeqId++
 15947  	if err = oprot.WriteMessageBegin("fetchBatchRaw", thrift.CALL, p.SeqId); err != nil {
 15948  		return
 15949  	}
 15950  	args := NodeFetchBatchRawArgs{
 15951  		Req: req,
 15952  	}
 15953  	if err = args.Write(oprot); err != nil {
 15954  		return
 15955  	}
 15956  	if err = oprot.WriteMessageEnd(); err != nil {
 15957  		return
 15958  	}
 15959  	return oprot.Flush()
 15960  }
 15961  
 15962  func (p *NodeClient) recvFetchBatchRaw() (value *FetchBatchRawResult_, err error) {
 15963  	iprot := p.InputProtocol
 15964  	if iprot == nil {
 15965  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 15966  		p.InputProtocol = iprot
 15967  	}
 15968  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 15969  	if err != nil {
 15970  		return
 15971  	}
 15972  	if method != "fetchBatchRaw" {
 15973  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "fetchBatchRaw failed: wrong method name")
 15974  		return
 15975  	}
 15976  	if p.SeqId != seqId {
 15977  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "fetchBatchRaw failed: out of sequence response")
 15978  		return
 15979  	}
 15980  	if mTypeId == thrift.EXCEPTION {
 15981  		error47 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 15982  		var error48 error
 15983  		error48, err = error47.Read(iprot)
 15984  		if err != nil {
 15985  			return
 15986  		}
 15987  		if err = iprot.ReadMessageEnd(); err != nil {
 15988  			return
 15989  		}
 15990  		err = error48
 15991  		return
 15992  	}
 15993  	if mTypeId != thrift.REPLY {
 15994  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "fetchBatchRaw failed: invalid message type")
 15995  		return
 15996  	}
 15997  	result := NodeFetchBatchRawResult{}
 15998  	if err = result.Read(iprot); err != nil {
 15999  		return
 16000  	}
 16001  	if err = iprot.ReadMessageEnd(); err != nil {
 16002  		return
 16003  	}
 16004  	if result.Err != nil {
 16005  		err = result.Err
 16006  		return
 16007  	}
 16008  	value = result.GetSuccess()
 16009  	return
 16010  }
 16011  
 16012  // Parameters:
 16013  //  - Req
 16014  func (p *NodeClient) FetchBatchRawV2(req *FetchBatchRawV2Request) (r *FetchBatchRawResult_, err error) {
 16015  	if err = p.sendFetchBatchRawV2(req); err != nil {
 16016  		return
 16017  	}
 16018  	return p.recvFetchBatchRawV2()
 16019  }
 16020  
 16021  func (p *NodeClient) sendFetchBatchRawV2(req *FetchBatchRawV2Request) (err error) {
 16022  	oprot := p.OutputProtocol
 16023  	if oprot == nil {
 16024  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16025  		p.OutputProtocol = oprot
 16026  	}
 16027  	p.SeqId++
 16028  	if err = oprot.WriteMessageBegin("fetchBatchRawV2", thrift.CALL, p.SeqId); err != nil {
 16029  		return
 16030  	}
 16031  	args := NodeFetchBatchRawV2Args{
 16032  		Req: req,
 16033  	}
 16034  	if err = args.Write(oprot); err != nil {
 16035  		return
 16036  	}
 16037  	if err = oprot.WriteMessageEnd(); err != nil {
 16038  		return
 16039  	}
 16040  	return oprot.Flush()
 16041  }
 16042  
 16043  func (p *NodeClient) recvFetchBatchRawV2() (value *FetchBatchRawResult_, err error) {
 16044  	iprot := p.InputProtocol
 16045  	if iprot == nil {
 16046  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16047  		p.InputProtocol = iprot
 16048  	}
 16049  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 16050  	if err != nil {
 16051  		return
 16052  	}
 16053  	if method != "fetchBatchRawV2" {
 16054  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "fetchBatchRawV2 failed: wrong method name")
 16055  		return
 16056  	}
 16057  	if p.SeqId != seqId {
 16058  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "fetchBatchRawV2 failed: out of sequence response")
 16059  		return
 16060  	}
 16061  	if mTypeId == thrift.EXCEPTION {
 16062  		error49 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 16063  		var error50 error
 16064  		error50, err = error49.Read(iprot)
 16065  		if err != nil {
 16066  			return
 16067  		}
 16068  		if err = iprot.ReadMessageEnd(); err != nil {
 16069  			return
 16070  		}
 16071  		err = error50
 16072  		return
 16073  	}
 16074  	if mTypeId != thrift.REPLY {
 16075  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "fetchBatchRawV2 failed: invalid message type")
 16076  		return
 16077  	}
 16078  	result := NodeFetchBatchRawV2Result{}
 16079  	if err = result.Read(iprot); err != nil {
 16080  		return
 16081  	}
 16082  	if err = iprot.ReadMessageEnd(); err != nil {
 16083  		return
 16084  	}
 16085  	if result.Err != nil {
 16086  		err = result.Err
 16087  		return
 16088  	}
 16089  	value = result.GetSuccess()
 16090  	return
 16091  }
 16092  
 16093  // Parameters:
 16094  //  - Req
 16095  func (p *NodeClient) FetchBlocksRaw(req *FetchBlocksRawRequest) (r *FetchBlocksRawResult_, err error) {
 16096  	if err = p.sendFetchBlocksRaw(req); err != nil {
 16097  		return
 16098  	}
 16099  	return p.recvFetchBlocksRaw()
 16100  }
 16101  
 16102  func (p *NodeClient) sendFetchBlocksRaw(req *FetchBlocksRawRequest) (err error) {
 16103  	oprot := p.OutputProtocol
 16104  	if oprot == nil {
 16105  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16106  		p.OutputProtocol = oprot
 16107  	}
 16108  	p.SeqId++
 16109  	if err = oprot.WriteMessageBegin("fetchBlocksRaw", thrift.CALL, p.SeqId); err != nil {
 16110  		return
 16111  	}
 16112  	args := NodeFetchBlocksRawArgs{
 16113  		Req: req,
 16114  	}
 16115  	if err = args.Write(oprot); err != nil {
 16116  		return
 16117  	}
 16118  	if err = oprot.WriteMessageEnd(); err != nil {
 16119  		return
 16120  	}
 16121  	return oprot.Flush()
 16122  }
 16123  
 16124  func (p *NodeClient) recvFetchBlocksRaw() (value *FetchBlocksRawResult_, err error) {
 16125  	iprot := p.InputProtocol
 16126  	if iprot == nil {
 16127  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16128  		p.InputProtocol = iprot
 16129  	}
 16130  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 16131  	if err != nil {
 16132  		return
 16133  	}
 16134  	if method != "fetchBlocksRaw" {
 16135  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "fetchBlocksRaw failed: wrong method name")
 16136  		return
 16137  	}
 16138  	if p.SeqId != seqId {
 16139  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "fetchBlocksRaw failed: out of sequence response")
 16140  		return
 16141  	}
 16142  	if mTypeId == thrift.EXCEPTION {
 16143  		error51 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 16144  		var error52 error
 16145  		error52, err = error51.Read(iprot)
 16146  		if err != nil {
 16147  			return
 16148  		}
 16149  		if err = iprot.ReadMessageEnd(); err != nil {
 16150  			return
 16151  		}
 16152  		err = error52
 16153  		return
 16154  	}
 16155  	if mTypeId != thrift.REPLY {
 16156  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "fetchBlocksRaw failed: invalid message type")
 16157  		return
 16158  	}
 16159  	result := NodeFetchBlocksRawResult{}
 16160  	if err = result.Read(iprot); err != nil {
 16161  		return
 16162  	}
 16163  	if err = iprot.ReadMessageEnd(); err != nil {
 16164  		return
 16165  	}
 16166  	if result.Err != nil {
 16167  		err = result.Err
 16168  		return
 16169  	}
 16170  	value = result.GetSuccess()
 16171  	return
 16172  }
 16173  
 16174  // Parameters:
 16175  //  - Req
 16176  func (p *NodeClient) FetchTagged(req *FetchTaggedRequest) (r *FetchTaggedResult_, err error) {
 16177  	if err = p.sendFetchTagged(req); err != nil {
 16178  		return
 16179  	}
 16180  	return p.recvFetchTagged()
 16181  }
 16182  
 16183  func (p *NodeClient) sendFetchTagged(req *FetchTaggedRequest) (err error) {
 16184  	oprot := p.OutputProtocol
 16185  	if oprot == nil {
 16186  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16187  		p.OutputProtocol = oprot
 16188  	}
 16189  	p.SeqId++
 16190  	if err = oprot.WriteMessageBegin("fetchTagged", thrift.CALL, p.SeqId); err != nil {
 16191  		return
 16192  	}
 16193  	args := NodeFetchTaggedArgs{
 16194  		Req: req,
 16195  	}
 16196  	if err = args.Write(oprot); err != nil {
 16197  		return
 16198  	}
 16199  	if err = oprot.WriteMessageEnd(); err != nil {
 16200  		return
 16201  	}
 16202  	return oprot.Flush()
 16203  }
 16204  
 16205  func (p *NodeClient) recvFetchTagged() (value *FetchTaggedResult_, err error) {
 16206  	iprot := p.InputProtocol
 16207  	if iprot == nil {
 16208  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16209  		p.InputProtocol = iprot
 16210  	}
 16211  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 16212  	if err != nil {
 16213  		return
 16214  	}
 16215  	if method != "fetchTagged" {
 16216  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "fetchTagged failed: wrong method name")
 16217  		return
 16218  	}
 16219  	if p.SeqId != seqId {
 16220  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "fetchTagged failed: out of sequence response")
 16221  		return
 16222  	}
 16223  	if mTypeId == thrift.EXCEPTION {
 16224  		error53 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 16225  		var error54 error
 16226  		error54, err = error53.Read(iprot)
 16227  		if err != nil {
 16228  			return
 16229  		}
 16230  		if err = iprot.ReadMessageEnd(); err != nil {
 16231  			return
 16232  		}
 16233  		err = error54
 16234  		return
 16235  	}
 16236  	if mTypeId != thrift.REPLY {
 16237  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "fetchTagged failed: invalid message type")
 16238  		return
 16239  	}
 16240  	result := NodeFetchTaggedResult{}
 16241  	if err = result.Read(iprot); err != nil {
 16242  		return
 16243  	}
 16244  	if err = iprot.ReadMessageEnd(); err != nil {
 16245  		return
 16246  	}
 16247  	if result.Err != nil {
 16248  		err = result.Err
 16249  		return
 16250  	}
 16251  	value = result.GetSuccess()
 16252  	return
 16253  }
 16254  
 16255  // Parameters:
 16256  //  - Req
 16257  func (p *NodeClient) FetchBlocksMetadataRawV2(req *FetchBlocksMetadataRawV2Request) (r *FetchBlocksMetadataRawV2Result_, err error) {
 16258  	if err = p.sendFetchBlocksMetadataRawV2(req); err != nil {
 16259  		return
 16260  	}
 16261  	return p.recvFetchBlocksMetadataRawV2()
 16262  }
 16263  
 16264  func (p *NodeClient) sendFetchBlocksMetadataRawV2(req *FetchBlocksMetadataRawV2Request) (err error) {
 16265  	oprot := p.OutputProtocol
 16266  	if oprot == nil {
 16267  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16268  		p.OutputProtocol = oprot
 16269  	}
 16270  	p.SeqId++
 16271  	if err = oprot.WriteMessageBegin("fetchBlocksMetadataRawV2", thrift.CALL, p.SeqId); err != nil {
 16272  		return
 16273  	}
 16274  	args := NodeFetchBlocksMetadataRawV2Args{
 16275  		Req: req,
 16276  	}
 16277  	if err = args.Write(oprot); err != nil {
 16278  		return
 16279  	}
 16280  	if err = oprot.WriteMessageEnd(); err != nil {
 16281  		return
 16282  	}
 16283  	return oprot.Flush()
 16284  }
 16285  
 16286  func (p *NodeClient) recvFetchBlocksMetadataRawV2() (value *FetchBlocksMetadataRawV2Result_, err error) {
 16287  	iprot := p.InputProtocol
 16288  	if iprot == nil {
 16289  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16290  		p.InputProtocol = iprot
 16291  	}
 16292  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 16293  	if err != nil {
 16294  		return
 16295  	}
 16296  	if method != "fetchBlocksMetadataRawV2" {
 16297  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "fetchBlocksMetadataRawV2 failed: wrong method name")
 16298  		return
 16299  	}
 16300  	if p.SeqId != seqId {
 16301  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "fetchBlocksMetadataRawV2 failed: out of sequence response")
 16302  		return
 16303  	}
 16304  	if mTypeId == thrift.EXCEPTION {
 16305  		error55 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 16306  		var error56 error
 16307  		error56, err = error55.Read(iprot)
 16308  		if err != nil {
 16309  			return
 16310  		}
 16311  		if err = iprot.ReadMessageEnd(); err != nil {
 16312  			return
 16313  		}
 16314  		err = error56
 16315  		return
 16316  	}
 16317  	if mTypeId != thrift.REPLY {
 16318  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "fetchBlocksMetadataRawV2 failed: invalid message type")
 16319  		return
 16320  	}
 16321  	result := NodeFetchBlocksMetadataRawV2Result{}
 16322  	if err = result.Read(iprot); err != nil {
 16323  		return
 16324  	}
 16325  	if err = iprot.ReadMessageEnd(); err != nil {
 16326  		return
 16327  	}
 16328  	if result.Err != nil {
 16329  		err = result.Err
 16330  		return
 16331  	}
 16332  	value = result.GetSuccess()
 16333  	return
 16334  }
 16335  
 16336  // Parameters:
 16337  //  - Req
 16338  func (p *NodeClient) WriteBatchRaw(req *WriteBatchRawRequest) (err error) {
 16339  	if err = p.sendWriteBatchRaw(req); err != nil {
 16340  		return
 16341  	}
 16342  	return p.recvWriteBatchRaw()
 16343  }
 16344  
 16345  func (p *NodeClient) sendWriteBatchRaw(req *WriteBatchRawRequest) (err error) {
 16346  	oprot := p.OutputProtocol
 16347  	if oprot == nil {
 16348  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16349  		p.OutputProtocol = oprot
 16350  	}
 16351  	p.SeqId++
 16352  	if err = oprot.WriteMessageBegin("writeBatchRaw", thrift.CALL, p.SeqId); err != nil {
 16353  		return
 16354  	}
 16355  	args := NodeWriteBatchRawArgs{
 16356  		Req: req,
 16357  	}
 16358  	if err = args.Write(oprot); err != nil {
 16359  		return
 16360  	}
 16361  	if err = oprot.WriteMessageEnd(); err != nil {
 16362  		return
 16363  	}
 16364  	return oprot.Flush()
 16365  }
 16366  
 16367  func (p *NodeClient) recvWriteBatchRaw() (err error) {
 16368  	iprot := p.InputProtocol
 16369  	if iprot == nil {
 16370  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16371  		p.InputProtocol = iprot
 16372  	}
 16373  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 16374  	if err != nil {
 16375  		return
 16376  	}
 16377  	if method != "writeBatchRaw" {
 16378  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "writeBatchRaw failed: wrong method name")
 16379  		return
 16380  	}
 16381  	if p.SeqId != seqId {
 16382  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "writeBatchRaw failed: out of sequence response")
 16383  		return
 16384  	}
 16385  	if mTypeId == thrift.EXCEPTION {
 16386  		error57 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 16387  		var error58 error
 16388  		error58, err = error57.Read(iprot)
 16389  		if err != nil {
 16390  			return
 16391  		}
 16392  		if err = iprot.ReadMessageEnd(); err != nil {
 16393  			return
 16394  		}
 16395  		err = error58
 16396  		return
 16397  	}
 16398  	if mTypeId != thrift.REPLY {
 16399  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "writeBatchRaw failed: invalid message type")
 16400  		return
 16401  	}
 16402  	result := NodeWriteBatchRawResult{}
 16403  	if err = result.Read(iprot); err != nil {
 16404  		return
 16405  	}
 16406  	if err = iprot.ReadMessageEnd(); err != nil {
 16407  		return
 16408  	}
 16409  	if result.Err != nil {
 16410  		err = result.Err
 16411  		return
 16412  	}
 16413  	return
 16414  }
 16415  
 16416  // Parameters:
 16417  //  - Req
 16418  func (p *NodeClient) WriteBatchRawV2(req *WriteBatchRawV2Request) (err error) {
 16419  	if err = p.sendWriteBatchRawV2(req); err != nil {
 16420  		return
 16421  	}
 16422  	return p.recvWriteBatchRawV2()
 16423  }
 16424  
 16425  func (p *NodeClient) sendWriteBatchRawV2(req *WriteBatchRawV2Request) (err error) {
 16426  	oprot := p.OutputProtocol
 16427  	if oprot == nil {
 16428  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16429  		p.OutputProtocol = oprot
 16430  	}
 16431  	p.SeqId++
 16432  	if err = oprot.WriteMessageBegin("writeBatchRawV2", thrift.CALL, p.SeqId); err != nil {
 16433  		return
 16434  	}
 16435  	args := NodeWriteBatchRawV2Args{
 16436  		Req: req,
 16437  	}
 16438  	if err = args.Write(oprot); err != nil {
 16439  		return
 16440  	}
 16441  	if err = oprot.WriteMessageEnd(); err != nil {
 16442  		return
 16443  	}
 16444  	return oprot.Flush()
 16445  }
 16446  
 16447  func (p *NodeClient) recvWriteBatchRawV2() (err error) {
 16448  	iprot := p.InputProtocol
 16449  	if iprot == nil {
 16450  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16451  		p.InputProtocol = iprot
 16452  	}
 16453  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 16454  	if err != nil {
 16455  		return
 16456  	}
 16457  	if method != "writeBatchRawV2" {
 16458  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "writeBatchRawV2 failed: wrong method name")
 16459  		return
 16460  	}
 16461  	if p.SeqId != seqId {
 16462  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "writeBatchRawV2 failed: out of sequence response")
 16463  		return
 16464  	}
 16465  	if mTypeId == thrift.EXCEPTION {
 16466  		error59 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 16467  		var error60 error
 16468  		error60, err = error59.Read(iprot)
 16469  		if err != nil {
 16470  			return
 16471  		}
 16472  		if err = iprot.ReadMessageEnd(); err != nil {
 16473  			return
 16474  		}
 16475  		err = error60
 16476  		return
 16477  	}
 16478  	if mTypeId != thrift.REPLY {
 16479  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "writeBatchRawV2 failed: invalid message type")
 16480  		return
 16481  	}
 16482  	result := NodeWriteBatchRawV2Result{}
 16483  	if err = result.Read(iprot); err != nil {
 16484  		return
 16485  	}
 16486  	if err = iprot.ReadMessageEnd(); err != nil {
 16487  		return
 16488  	}
 16489  	if result.Err != nil {
 16490  		err = result.Err
 16491  		return
 16492  	}
 16493  	return
 16494  }
 16495  
 16496  // Parameters:
 16497  //  - Req
 16498  func (p *NodeClient) WriteTaggedBatchRaw(req *WriteTaggedBatchRawRequest) (err error) {
 16499  	if err = p.sendWriteTaggedBatchRaw(req); err != nil {
 16500  		return
 16501  	}
 16502  	return p.recvWriteTaggedBatchRaw()
 16503  }
 16504  
 16505  func (p *NodeClient) sendWriteTaggedBatchRaw(req *WriteTaggedBatchRawRequest) (err error) {
 16506  	oprot := p.OutputProtocol
 16507  	if oprot == nil {
 16508  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16509  		p.OutputProtocol = oprot
 16510  	}
 16511  	p.SeqId++
 16512  	if err = oprot.WriteMessageBegin("writeTaggedBatchRaw", thrift.CALL, p.SeqId); err != nil {
 16513  		return
 16514  	}
 16515  	args := NodeWriteTaggedBatchRawArgs{
 16516  		Req: req,
 16517  	}
 16518  	if err = args.Write(oprot); err != nil {
 16519  		return
 16520  	}
 16521  	if err = oprot.WriteMessageEnd(); err != nil {
 16522  		return
 16523  	}
 16524  	return oprot.Flush()
 16525  }
 16526  
 16527  func (p *NodeClient) recvWriteTaggedBatchRaw() (err error) {
 16528  	iprot := p.InputProtocol
 16529  	if iprot == nil {
 16530  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16531  		p.InputProtocol = iprot
 16532  	}
 16533  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 16534  	if err != nil {
 16535  		return
 16536  	}
 16537  	if method != "writeTaggedBatchRaw" {
 16538  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "writeTaggedBatchRaw failed: wrong method name")
 16539  		return
 16540  	}
 16541  	if p.SeqId != seqId {
 16542  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "writeTaggedBatchRaw failed: out of sequence response")
 16543  		return
 16544  	}
 16545  	if mTypeId == thrift.EXCEPTION {
 16546  		error61 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 16547  		var error62 error
 16548  		error62, err = error61.Read(iprot)
 16549  		if err != nil {
 16550  			return
 16551  		}
 16552  		if err = iprot.ReadMessageEnd(); err != nil {
 16553  			return
 16554  		}
 16555  		err = error62
 16556  		return
 16557  	}
 16558  	if mTypeId != thrift.REPLY {
 16559  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "writeTaggedBatchRaw failed: invalid message type")
 16560  		return
 16561  	}
 16562  	result := NodeWriteTaggedBatchRawResult{}
 16563  	if err = result.Read(iprot); err != nil {
 16564  		return
 16565  	}
 16566  	if err = iprot.ReadMessageEnd(); err != nil {
 16567  		return
 16568  	}
 16569  	if result.Err != nil {
 16570  		err = result.Err
 16571  		return
 16572  	}
 16573  	return
 16574  }
 16575  
 16576  // Parameters:
 16577  //  - Req
 16578  func (p *NodeClient) WriteTaggedBatchRawV2(req *WriteTaggedBatchRawV2Request) (err error) {
 16579  	if err = p.sendWriteTaggedBatchRawV2(req); err != nil {
 16580  		return
 16581  	}
 16582  	return p.recvWriteTaggedBatchRawV2()
 16583  }
 16584  
 16585  func (p *NodeClient) sendWriteTaggedBatchRawV2(req *WriteTaggedBatchRawV2Request) (err error) {
 16586  	oprot := p.OutputProtocol
 16587  	if oprot == nil {
 16588  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16589  		p.OutputProtocol = oprot
 16590  	}
 16591  	p.SeqId++
 16592  	if err = oprot.WriteMessageBegin("writeTaggedBatchRawV2", thrift.CALL, p.SeqId); err != nil {
 16593  		return
 16594  	}
 16595  	args := NodeWriteTaggedBatchRawV2Args{
 16596  		Req: req,
 16597  	}
 16598  	if err = args.Write(oprot); err != nil {
 16599  		return
 16600  	}
 16601  	if err = oprot.WriteMessageEnd(); err != nil {
 16602  		return
 16603  	}
 16604  	return oprot.Flush()
 16605  }
 16606  
 16607  func (p *NodeClient) recvWriteTaggedBatchRawV2() (err error) {
 16608  	iprot := p.InputProtocol
 16609  	if iprot == nil {
 16610  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16611  		p.InputProtocol = iprot
 16612  	}
 16613  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 16614  	if err != nil {
 16615  		return
 16616  	}
 16617  	if method != "writeTaggedBatchRawV2" {
 16618  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "writeTaggedBatchRawV2 failed: wrong method name")
 16619  		return
 16620  	}
 16621  	if p.SeqId != seqId {
 16622  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "writeTaggedBatchRawV2 failed: out of sequence response")
 16623  		return
 16624  	}
 16625  	if mTypeId == thrift.EXCEPTION {
 16626  		error63 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 16627  		var error64 error
 16628  		error64, err = error63.Read(iprot)
 16629  		if err != nil {
 16630  			return
 16631  		}
 16632  		if err = iprot.ReadMessageEnd(); err != nil {
 16633  			return
 16634  		}
 16635  		err = error64
 16636  		return
 16637  	}
 16638  	if mTypeId != thrift.REPLY {
 16639  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "writeTaggedBatchRawV2 failed: invalid message type")
 16640  		return
 16641  	}
 16642  	result := NodeWriteTaggedBatchRawV2Result{}
 16643  	if err = result.Read(iprot); err != nil {
 16644  		return
 16645  	}
 16646  	if err = iprot.ReadMessageEnd(); err != nil {
 16647  		return
 16648  	}
 16649  	if result.Err != nil {
 16650  		err = result.Err
 16651  		return
 16652  	}
 16653  	return
 16654  }
 16655  
 16656  func (p *NodeClient) Repair() (err error) {
 16657  	if err = p.sendRepair(); err != nil {
 16658  		return
 16659  	}
 16660  	return p.recvRepair()
 16661  }
 16662  
 16663  func (p *NodeClient) sendRepair() (err error) {
 16664  	oprot := p.OutputProtocol
 16665  	if oprot == nil {
 16666  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16667  		p.OutputProtocol = oprot
 16668  	}
 16669  	p.SeqId++
 16670  	if err = oprot.WriteMessageBegin("repair", thrift.CALL, p.SeqId); err != nil {
 16671  		return
 16672  	}
 16673  	args := NodeRepairArgs{}
 16674  	if err = args.Write(oprot); err != nil {
 16675  		return
 16676  	}
 16677  	if err = oprot.WriteMessageEnd(); err != nil {
 16678  		return
 16679  	}
 16680  	return oprot.Flush()
 16681  }
 16682  
 16683  func (p *NodeClient) recvRepair() (err error) {
 16684  	iprot := p.InputProtocol
 16685  	if iprot == nil {
 16686  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16687  		p.InputProtocol = iprot
 16688  	}
 16689  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 16690  	if err != nil {
 16691  		return
 16692  	}
 16693  	if method != "repair" {
 16694  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "repair failed: wrong method name")
 16695  		return
 16696  	}
 16697  	if p.SeqId != seqId {
 16698  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "repair failed: out of sequence response")
 16699  		return
 16700  	}
 16701  	if mTypeId == thrift.EXCEPTION {
 16702  		error65 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 16703  		var error66 error
 16704  		error66, err = error65.Read(iprot)
 16705  		if err != nil {
 16706  			return
 16707  		}
 16708  		if err = iprot.ReadMessageEnd(); err != nil {
 16709  			return
 16710  		}
 16711  		err = error66
 16712  		return
 16713  	}
 16714  	if mTypeId != thrift.REPLY {
 16715  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "repair failed: invalid message type")
 16716  		return
 16717  	}
 16718  	result := NodeRepairResult{}
 16719  	if err = result.Read(iprot); err != nil {
 16720  		return
 16721  	}
 16722  	if err = iprot.ReadMessageEnd(); err != nil {
 16723  		return
 16724  	}
 16725  	if result.Err != nil {
 16726  		err = result.Err
 16727  		return
 16728  	}
 16729  	return
 16730  }
 16731  
 16732  // Parameters:
 16733  //  - Req
 16734  func (p *NodeClient) Truncate(req *TruncateRequest) (r *TruncateResult_, err error) {
 16735  	if err = p.sendTruncate(req); err != nil {
 16736  		return
 16737  	}
 16738  	return p.recvTruncate()
 16739  }
 16740  
 16741  func (p *NodeClient) sendTruncate(req *TruncateRequest) (err error) {
 16742  	oprot := p.OutputProtocol
 16743  	if oprot == nil {
 16744  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16745  		p.OutputProtocol = oprot
 16746  	}
 16747  	p.SeqId++
 16748  	if err = oprot.WriteMessageBegin("truncate", thrift.CALL, p.SeqId); err != nil {
 16749  		return
 16750  	}
 16751  	args := NodeTruncateArgs{
 16752  		Req: req,
 16753  	}
 16754  	if err = args.Write(oprot); err != nil {
 16755  		return
 16756  	}
 16757  	if err = oprot.WriteMessageEnd(); err != nil {
 16758  		return
 16759  	}
 16760  	return oprot.Flush()
 16761  }
 16762  
 16763  func (p *NodeClient) recvTruncate() (value *TruncateResult_, err error) {
 16764  	iprot := p.InputProtocol
 16765  	if iprot == nil {
 16766  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16767  		p.InputProtocol = iprot
 16768  	}
 16769  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 16770  	if err != nil {
 16771  		return
 16772  	}
 16773  	if method != "truncate" {
 16774  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "truncate failed: wrong method name")
 16775  		return
 16776  	}
 16777  	if p.SeqId != seqId {
 16778  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "truncate failed: out of sequence response")
 16779  		return
 16780  	}
 16781  	if mTypeId == thrift.EXCEPTION {
 16782  		error67 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 16783  		var error68 error
 16784  		error68, err = error67.Read(iprot)
 16785  		if err != nil {
 16786  			return
 16787  		}
 16788  		if err = iprot.ReadMessageEnd(); err != nil {
 16789  			return
 16790  		}
 16791  		err = error68
 16792  		return
 16793  	}
 16794  	if mTypeId != thrift.REPLY {
 16795  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "truncate failed: invalid message type")
 16796  		return
 16797  	}
 16798  	result := NodeTruncateResult{}
 16799  	if err = result.Read(iprot); err != nil {
 16800  		return
 16801  	}
 16802  	if err = iprot.ReadMessageEnd(); err != nil {
 16803  		return
 16804  	}
 16805  	if result.Err != nil {
 16806  		err = result.Err
 16807  		return
 16808  	}
 16809  	value = result.GetSuccess()
 16810  	return
 16811  }
 16812  
 16813  // Parameters:
 16814  //  - Req
 16815  func (p *NodeClient) AggregateTiles(req *AggregateTilesRequest) (r *AggregateTilesResult_, err error) {
 16816  	if err = p.sendAggregateTiles(req); err != nil {
 16817  		return
 16818  	}
 16819  	return p.recvAggregateTiles()
 16820  }
 16821  
 16822  func (p *NodeClient) sendAggregateTiles(req *AggregateTilesRequest) (err error) {
 16823  	oprot := p.OutputProtocol
 16824  	if oprot == nil {
 16825  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16826  		p.OutputProtocol = oprot
 16827  	}
 16828  	p.SeqId++
 16829  	if err = oprot.WriteMessageBegin("aggregateTiles", thrift.CALL, p.SeqId); err != nil {
 16830  		return
 16831  	}
 16832  	args := NodeAggregateTilesArgs{
 16833  		Req: req,
 16834  	}
 16835  	if err = args.Write(oprot); err != nil {
 16836  		return
 16837  	}
 16838  	if err = oprot.WriteMessageEnd(); err != nil {
 16839  		return
 16840  	}
 16841  	return oprot.Flush()
 16842  }
 16843  
 16844  func (p *NodeClient) recvAggregateTiles() (value *AggregateTilesResult_, err error) {
 16845  	iprot := p.InputProtocol
 16846  	if iprot == nil {
 16847  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16848  		p.InputProtocol = iprot
 16849  	}
 16850  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 16851  	if err != nil {
 16852  		return
 16853  	}
 16854  	if method != "aggregateTiles" {
 16855  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "aggregateTiles failed: wrong method name")
 16856  		return
 16857  	}
 16858  	if p.SeqId != seqId {
 16859  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "aggregateTiles failed: out of sequence response")
 16860  		return
 16861  	}
 16862  	if mTypeId == thrift.EXCEPTION {
 16863  		error69 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 16864  		var error70 error
 16865  		error70, err = error69.Read(iprot)
 16866  		if err != nil {
 16867  			return
 16868  		}
 16869  		if err = iprot.ReadMessageEnd(); err != nil {
 16870  			return
 16871  		}
 16872  		err = error70
 16873  		return
 16874  	}
 16875  	if mTypeId != thrift.REPLY {
 16876  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "aggregateTiles failed: invalid message type")
 16877  		return
 16878  	}
 16879  	result := NodeAggregateTilesResult{}
 16880  	if err = result.Read(iprot); err != nil {
 16881  		return
 16882  	}
 16883  	if err = iprot.ReadMessageEnd(); err != nil {
 16884  		return
 16885  	}
 16886  	if result.Err != nil {
 16887  		err = result.Err
 16888  		return
 16889  	}
 16890  	value = result.GetSuccess()
 16891  	return
 16892  }
 16893  
 16894  func (p *NodeClient) Health() (r *NodeHealthResult_, err error) {
 16895  	if err = p.sendHealth(); err != nil {
 16896  		return
 16897  	}
 16898  	return p.recvHealth()
 16899  }
 16900  
 16901  func (p *NodeClient) sendHealth() (err error) {
 16902  	oprot := p.OutputProtocol
 16903  	if oprot == nil {
 16904  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16905  		p.OutputProtocol = oprot
 16906  	}
 16907  	p.SeqId++
 16908  	if err = oprot.WriteMessageBegin("health", thrift.CALL, p.SeqId); err != nil {
 16909  		return
 16910  	}
 16911  	args := NodeHealthArgs{}
 16912  	if err = args.Write(oprot); err != nil {
 16913  		return
 16914  	}
 16915  	if err = oprot.WriteMessageEnd(); err != nil {
 16916  		return
 16917  	}
 16918  	return oprot.Flush()
 16919  }
 16920  
 16921  func (p *NodeClient) recvHealth() (value *NodeHealthResult_, err error) {
 16922  	iprot := p.InputProtocol
 16923  	if iprot == nil {
 16924  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16925  		p.InputProtocol = iprot
 16926  	}
 16927  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 16928  	if err != nil {
 16929  		return
 16930  	}
 16931  	if method != "health" {
 16932  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "health failed: wrong method name")
 16933  		return
 16934  	}
 16935  	if p.SeqId != seqId {
 16936  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "health failed: out of sequence response")
 16937  		return
 16938  	}
 16939  	if mTypeId == thrift.EXCEPTION {
 16940  		error71 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 16941  		var error72 error
 16942  		error72, err = error71.Read(iprot)
 16943  		if err != nil {
 16944  			return
 16945  		}
 16946  		if err = iprot.ReadMessageEnd(); err != nil {
 16947  			return
 16948  		}
 16949  		err = error72
 16950  		return
 16951  	}
 16952  	if mTypeId != thrift.REPLY {
 16953  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "health failed: invalid message type")
 16954  		return
 16955  	}
 16956  	result := NodeHealthResult{}
 16957  	if err = result.Read(iprot); err != nil {
 16958  		return
 16959  	}
 16960  	if err = iprot.ReadMessageEnd(); err != nil {
 16961  		return
 16962  	}
 16963  	if result.Err != nil {
 16964  		err = result.Err
 16965  		return
 16966  	}
 16967  	value = result.GetSuccess()
 16968  	return
 16969  }
 16970  
 16971  func (p *NodeClient) Bootstrapped() (r *NodeBootstrappedResult_, err error) {
 16972  	if err = p.sendBootstrapped(); err != nil {
 16973  		return
 16974  	}
 16975  	return p.recvBootstrapped()
 16976  }
 16977  
 16978  func (p *NodeClient) sendBootstrapped() (err error) {
 16979  	oprot := p.OutputProtocol
 16980  	if oprot == nil {
 16981  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 16982  		p.OutputProtocol = oprot
 16983  	}
 16984  	p.SeqId++
 16985  	if err = oprot.WriteMessageBegin("bootstrapped", thrift.CALL, p.SeqId); err != nil {
 16986  		return
 16987  	}
 16988  	args := NodeBootstrappedArgs{}
 16989  	if err = args.Write(oprot); err != nil {
 16990  		return
 16991  	}
 16992  	if err = oprot.WriteMessageEnd(); err != nil {
 16993  		return
 16994  	}
 16995  	return oprot.Flush()
 16996  }
 16997  
 16998  func (p *NodeClient) recvBootstrapped() (value *NodeBootstrappedResult_, err error) {
 16999  	iprot := p.InputProtocol
 17000  	if iprot == nil {
 17001  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17002  		p.InputProtocol = iprot
 17003  	}
 17004  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 17005  	if err != nil {
 17006  		return
 17007  	}
 17008  	if method != "bootstrapped" {
 17009  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "bootstrapped failed: wrong method name")
 17010  		return
 17011  	}
 17012  	if p.SeqId != seqId {
 17013  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "bootstrapped failed: out of sequence response")
 17014  		return
 17015  	}
 17016  	if mTypeId == thrift.EXCEPTION {
 17017  		error73 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 17018  		var error74 error
 17019  		error74, err = error73.Read(iprot)
 17020  		if err != nil {
 17021  			return
 17022  		}
 17023  		if err = iprot.ReadMessageEnd(); err != nil {
 17024  			return
 17025  		}
 17026  		err = error74
 17027  		return
 17028  	}
 17029  	if mTypeId != thrift.REPLY {
 17030  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "bootstrapped failed: invalid message type")
 17031  		return
 17032  	}
 17033  	result := NodeBootstrappedResult{}
 17034  	if err = result.Read(iprot); err != nil {
 17035  		return
 17036  	}
 17037  	if err = iprot.ReadMessageEnd(); err != nil {
 17038  		return
 17039  	}
 17040  	if result.Err != nil {
 17041  		err = result.Err
 17042  		return
 17043  	}
 17044  	value = result.GetSuccess()
 17045  	return
 17046  }
 17047  
 17048  func (p *NodeClient) BootstrappedInPlacementOrNoPlacement() (r *NodeBootstrappedInPlacementOrNoPlacementResult_, err error) {
 17049  	if err = p.sendBootstrappedInPlacementOrNoPlacement(); err != nil {
 17050  		return
 17051  	}
 17052  	return p.recvBootstrappedInPlacementOrNoPlacement()
 17053  }
 17054  
 17055  func (p *NodeClient) sendBootstrappedInPlacementOrNoPlacement() (err error) {
 17056  	oprot := p.OutputProtocol
 17057  	if oprot == nil {
 17058  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17059  		p.OutputProtocol = oprot
 17060  	}
 17061  	p.SeqId++
 17062  	if err = oprot.WriteMessageBegin("bootstrappedInPlacementOrNoPlacement", thrift.CALL, p.SeqId); err != nil {
 17063  		return
 17064  	}
 17065  	args := NodeBootstrappedInPlacementOrNoPlacementArgs{}
 17066  	if err = args.Write(oprot); err != nil {
 17067  		return
 17068  	}
 17069  	if err = oprot.WriteMessageEnd(); err != nil {
 17070  		return
 17071  	}
 17072  	return oprot.Flush()
 17073  }
 17074  
 17075  func (p *NodeClient) recvBootstrappedInPlacementOrNoPlacement() (value *NodeBootstrappedInPlacementOrNoPlacementResult_, err error) {
 17076  	iprot := p.InputProtocol
 17077  	if iprot == nil {
 17078  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17079  		p.InputProtocol = iprot
 17080  	}
 17081  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 17082  	if err != nil {
 17083  		return
 17084  	}
 17085  	if method != "bootstrappedInPlacementOrNoPlacement" {
 17086  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "bootstrappedInPlacementOrNoPlacement failed: wrong method name")
 17087  		return
 17088  	}
 17089  	if p.SeqId != seqId {
 17090  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "bootstrappedInPlacementOrNoPlacement failed: out of sequence response")
 17091  		return
 17092  	}
 17093  	if mTypeId == thrift.EXCEPTION {
 17094  		error75 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 17095  		var error76 error
 17096  		error76, err = error75.Read(iprot)
 17097  		if err != nil {
 17098  			return
 17099  		}
 17100  		if err = iprot.ReadMessageEnd(); err != nil {
 17101  			return
 17102  		}
 17103  		err = error76
 17104  		return
 17105  	}
 17106  	if mTypeId != thrift.REPLY {
 17107  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "bootstrappedInPlacementOrNoPlacement failed: invalid message type")
 17108  		return
 17109  	}
 17110  	result := NodeBootstrappedInPlacementOrNoPlacementResult{}
 17111  	if err = result.Read(iprot); err != nil {
 17112  		return
 17113  	}
 17114  	if err = iprot.ReadMessageEnd(); err != nil {
 17115  		return
 17116  	}
 17117  	if result.Err != nil {
 17118  		err = result.Err
 17119  		return
 17120  	}
 17121  	value = result.GetSuccess()
 17122  	return
 17123  }
 17124  
 17125  func (p *NodeClient) GetPersistRateLimit() (r *NodePersistRateLimitResult_, err error) {
 17126  	if err = p.sendGetPersistRateLimit(); err != nil {
 17127  		return
 17128  	}
 17129  	return p.recvGetPersistRateLimit()
 17130  }
 17131  
 17132  func (p *NodeClient) sendGetPersistRateLimit() (err error) {
 17133  	oprot := p.OutputProtocol
 17134  	if oprot == nil {
 17135  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17136  		p.OutputProtocol = oprot
 17137  	}
 17138  	p.SeqId++
 17139  	if err = oprot.WriteMessageBegin("getPersistRateLimit", thrift.CALL, p.SeqId); err != nil {
 17140  		return
 17141  	}
 17142  	args := NodeGetPersistRateLimitArgs{}
 17143  	if err = args.Write(oprot); err != nil {
 17144  		return
 17145  	}
 17146  	if err = oprot.WriteMessageEnd(); err != nil {
 17147  		return
 17148  	}
 17149  	return oprot.Flush()
 17150  }
 17151  
 17152  func (p *NodeClient) recvGetPersistRateLimit() (value *NodePersistRateLimitResult_, err error) {
 17153  	iprot := p.InputProtocol
 17154  	if iprot == nil {
 17155  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17156  		p.InputProtocol = iprot
 17157  	}
 17158  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 17159  	if err != nil {
 17160  		return
 17161  	}
 17162  	if method != "getPersistRateLimit" {
 17163  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "getPersistRateLimit failed: wrong method name")
 17164  		return
 17165  	}
 17166  	if p.SeqId != seqId {
 17167  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "getPersistRateLimit failed: out of sequence response")
 17168  		return
 17169  	}
 17170  	if mTypeId == thrift.EXCEPTION {
 17171  		error77 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 17172  		var error78 error
 17173  		error78, err = error77.Read(iprot)
 17174  		if err != nil {
 17175  			return
 17176  		}
 17177  		if err = iprot.ReadMessageEnd(); err != nil {
 17178  			return
 17179  		}
 17180  		err = error78
 17181  		return
 17182  	}
 17183  	if mTypeId != thrift.REPLY {
 17184  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "getPersistRateLimit failed: invalid message type")
 17185  		return
 17186  	}
 17187  	result := NodeGetPersistRateLimitResult{}
 17188  	if err = result.Read(iprot); err != nil {
 17189  		return
 17190  	}
 17191  	if err = iprot.ReadMessageEnd(); err != nil {
 17192  		return
 17193  	}
 17194  	if result.Err != nil {
 17195  		err = result.Err
 17196  		return
 17197  	}
 17198  	value = result.GetSuccess()
 17199  	return
 17200  }
 17201  
 17202  // Parameters:
 17203  //  - Req
 17204  func (p *NodeClient) SetPersistRateLimit(req *NodeSetPersistRateLimitRequest) (r *NodePersistRateLimitResult_, err error) {
 17205  	if err = p.sendSetPersistRateLimit(req); err != nil {
 17206  		return
 17207  	}
 17208  	return p.recvSetPersistRateLimit()
 17209  }
 17210  
 17211  func (p *NodeClient) sendSetPersistRateLimit(req *NodeSetPersistRateLimitRequest) (err error) {
 17212  	oprot := p.OutputProtocol
 17213  	if oprot == nil {
 17214  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17215  		p.OutputProtocol = oprot
 17216  	}
 17217  	p.SeqId++
 17218  	if err = oprot.WriteMessageBegin("setPersistRateLimit", thrift.CALL, p.SeqId); err != nil {
 17219  		return
 17220  	}
 17221  	args := NodeSetPersistRateLimitArgs{
 17222  		Req: req,
 17223  	}
 17224  	if err = args.Write(oprot); err != nil {
 17225  		return
 17226  	}
 17227  	if err = oprot.WriteMessageEnd(); err != nil {
 17228  		return
 17229  	}
 17230  	return oprot.Flush()
 17231  }
 17232  
 17233  func (p *NodeClient) recvSetPersistRateLimit() (value *NodePersistRateLimitResult_, err error) {
 17234  	iprot := p.InputProtocol
 17235  	if iprot == nil {
 17236  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17237  		p.InputProtocol = iprot
 17238  	}
 17239  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 17240  	if err != nil {
 17241  		return
 17242  	}
 17243  	if method != "setPersistRateLimit" {
 17244  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "setPersistRateLimit failed: wrong method name")
 17245  		return
 17246  	}
 17247  	if p.SeqId != seqId {
 17248  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "setPersistRateLimit failed: out of sequence response")
 17249  		return
 17250  	}
 17251  	if mTypeId == thrift.EXCEPTION {
 17252  		error79 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 17253  		var error80 error
 17254  		error80, err = error79.Read(iprot)
 17255  		if err != nil {
 17256  			return
 17257  		}
 17258  		if err = iprot.ReadMessageEnd(); err != nil {
 17259  			return
 17260  		}
 17261  		err = error80
 17262  		return
 17263  	}
 17264  	if mTypeId != thrift.REPLY {
 17265  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "setPersistRateLimit failed: invalid message type")
 17266  		return
 17267  	}
 17268  	result := NodeSetPersistRateLimitResult{}
 17269  	if err = result.Read(iprot); err != nil {
 17270  		return
 17271  	}
 17272  	if err = iprot.ReadMessageEnd(); err != nil {
 17273  		return
 17274  	}
 17275  	if result.Err != nil {
 17276  		err = result.Err
 17277  		return
 17278  	}
 17279  	value = result.GetSuccess()
 17280  	return
 17281  }
 17282  
 17283  func (p *NodeClient) GetWriteNewSeriesAsync() (r *NodeWriteNewSeriesAsyncResult_, err error) {
 17284  	if err = p.sendGetWriteNewSeriesAsync(); err != nil {
 17285  		return
 17286  	}
 17287  	return p.recvGetWriteNewSeriesAsync()
 17288  }
 17289  
 17290  func (p *NodeClient) sendGetWriteNewSeriesAsync() (err error) {
 17291  	oprot := p.OutputProtocol
 17292  	if oprot == nil {
 17293  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17294  		p.OutputProtocol = oprot
 17295  	}
 17296  	p.SeqId++
 17297  	if err = oprot.WriteMessageBegin("getWriteNewSeriesAsync", thrift.CALL, p.SeqId); err != nil {
 17298  		return
 17299  	}
 17300  	args := NodeGetWriteNewSeriesAsyncArgs{}
 17301  	if err = args.Write(oprot); err != nil {
 17302  		return
 17303  	}
 17304  	if err = oprot.WriteMessageEnd(); err != nil {
 17305  		return
 17306  	}
 17307  	return oprot.Flush()
 17308  }
 17309  
 17310  func (p *NodeClient) recvGetWriteNewSeriesAsync() (value *NodeWriteNewSeriesAsyncResult_, err error) {
 17311  	iprot := p.InputProtocol
 17312  	if iprot == nil {
 17313  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17314  		p.InputProtocol = iprot
 17315  	}
 17316  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 17317  	if err != nil {
 17318  		return
 17319  	}
 17320  	if method != "getWriteNewSeriesAsync" {
 17321  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "getWriteNewSeriesAsync failed: wrong method name")
 17322  		return
 17323  	}
 17324  	if p.SeqId != seqId {
 17325  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "getWriteNewSeriesAsync failed: out of sequence response")
 17326  		return
 17327  	}
 17328  	if mTypeId == thrift.EXCEPTION {
 17329  		error81 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 17330  		var error82 error
 17331  		error82, err = error81.Read(iprot)
 17332  		if err != nil {
 17333  			return
 17334  		}
 17335  		if err = iprot.ReadMessageEnd(); err != nil {
 17336  			return
 17337  		}
 17338  		err = error82
 17339  		return
 17340  	}
 17341  	if mTypeId != thrift.REPLY {
 17342  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "getWriteNewSeriesAsync failed: invalid message type")
 17343  		return
 17344  	}
 17345  	result := NodeGetWriteNewSeriesAsyncResult{}
 17346  	if err = result.Read(iprot); err != nil {
 17347  		return
 17348  	}
 17349  	if err = iprot.ReadMessageEnd(); err != nil {
 17350  		return
 17351  	}
 17352  	if result.Err != nil {
 17353  		err = result.Err
 17354  		return
 17355  	}
 17356  	value = result.GetSuccess()
 17357  	return
 17358  }
 17359  
 17360  // Parameters:
 17361  //  - Req
 17362  func (p *NodeClient) SetWriteNewSeriesAsync(req *NodeSetWriteNewSeriesAsyncRequest) (r *NodeWriteNewSeriesAsyncResult_, err error) {
 17363  	if err = p.sendSetWriteNewSeriesAsync(req); err != nil {
 17364  		return
 17365  	}
 17366  	return p.recvSetWriteNewSeriesAsync()
 17367  }
 17368  
 17369  func (p *NodeClient) sendSetWriteNewSeriesAsync(req *NodeSetWriteNewSeriesAsyncRequest) (err error) {
 17370  	oprot := p.OutputProtocol
 17371  	if oprot == nil {
 17372  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17373  		p.OutputProtocol = oprot
 17374  	}
 17375  	p.SeqId++
 17376  	if err = oprot.WriteMessageBegin("setWriteNewSeriesAsync", thrift.CALL, p.SeqId); err != nil {
 17377  		return
 17378  	}
 17379  	args := NodeSetWriteNewSeriesAsyncArgs{
 17380  		Req: req,
 17381  	}
 17382  	if err = args.Write(oprot); err != nil {
 17383  		return
 17384  	}
 17385  	if err = oprot.WriteMessageEnd(); err != nil {
 17386  		return
 17387  	}
 17388  	return oprot.Flush()
 17389  }
 17390  
 17391  func (p *NodeClient) recvSetWriteNewSeriesAsync() (value *NodeWriteNewSeriesAsyncResult_, err error) {
 17392  	iprot := p.InputProtocol
 17393  	if iprot == nil {
 17394  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17395  		p.InputProtocol = iprot
 17396  	}
 17397  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 17398  	if err != nil {
 17399  		return
 17400  	}
 17401  	if method != "setWriteNewSeriesAsync" {
 17402  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "setWriteNewSeriesAsync failed: wrong method name")
 17403  		return
 17404  	}
 17405  	if p.SeqId != seqId {
 17406  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "setWriteNewSeriesAsync failed: out of sequence response")
 17407  		return
 17408  	}
 17409  	if mTypeId == thrift.EXCEPTION {
 17410  		error83 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 17411  		var error84 error
 17412  		error84, err = error83.Read(iprot)
 17413  		if err != nil {
 17414  			return
 17415  		}
 17416  		if err = iprot.ReadMessageEnd(); err != nil {
 17417  			return
 17418  		}
 17419  		err = error84
 17420  		return
 17421  	}
 17422  	if mTypeId != thrift.REPLY {
 17423  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "setWriteNewSeriesAsync failed: invalid message type")
 17424  		return
 17425  	}
 17426  	result := NodeSetWriteNewSeriesAsyncResult{}
 17427  	if err = result.Read(iprot); err != nil {
 17428  		return
 17429  	}
 17430  	if err = iprot.ReadMessageEnd(); err != nil {
 17431  		return
 17432  	}
 17433  	if result.Err != nil {
 17434  		err = result.Err
 17435  		return
 17436  	}
 17437  	value = result.GetSuccess()
 17438  	return
 17439  }
 17440  
 17441  func (p *NodeClient) GetWriteNewSeriesBackoffDuration() (r *NodeWriteNewSeriesBackoffDurationResult_, err error) {
 17442  	if err = p.sendGetWriteNewSeriesBackoffDuration(); err != nil {
 17443  		return
 17444  	}
 17445  	return p.recvGetWriteNewSeriesBackoffDuration()
 17446  }
 17447  
 17448  func (p *NodeClient) sendGetWriteNewSeriesBackoffDuration() (err error) {
 17449  	oprot := p.OutputProtocol
 17450  	if oprot == nil {
 17451  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17452  		p.OutputProtocol = oprot
 17453  	}
 17454  	p.SeqId++
 17455  	if err = oprot.WriteMessageBegin("getWriteNewSeriesBackoffDuration", thrift.CALL, p.SeqId); err != nil {
 17456  		return
 17457  	}
 17458  	args := NodeGetWriteNewSeriesBackoffDurationArgs{}
 17459  	if err = args.Write(oprot); err != nil {
 17460  		return
 17461  	}
 17462  	if err = oprot.WriteMessageEnd(); err != nil {
 17463  		return
 17464  	}
 17465  	return oprot.Flush()
 17466  }
 17467  
 17468  func (p *NodeClient) recvGetWriteNewSeriesBackoffDuration() (value *NodeWriteNewSeriesBackoffDurationResult_, err error) {
 17469  	iprot := p.InputProtocol
 17470  	if iprot == nil {
 17471  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17472  		p.InputProtocol = iprot
 17473  	}
 17474  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 17475  	if err != nil {
 17476  		return
 17477  	}
 17478  	if method != "getWriteNewSeriesBackoffDuration" {
 17479  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "getWriteNewSeriesBackoffDuration failed: wrong method name")
 17480  		return
 17481  	}
 17482  	if p.SeqId != seqId {
 17483  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "getWriteNewSeriesBackoffDuration failed: out of sequence response")
 17484  		return
 17485  	}
 17486  	if mTypeId == thrift.EXCEPTION {
 17487  		error85 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 17488  		var error86 error
 17489  		error86, err = error85.Read(iprot)
 17490  		if err != nil {
 17491  			return
 17492  		}
 17493  		if err = iprot.ReadMessageEnd(); err != nil {
 17494  			return
 17495  		}
 17496  		err = error86
 17497  		return
 17498  	}
 17499  	if mTypeId != thrift.REPLY {
 17500  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "getWriteNewSeriesBackoffDuration failed: invalid message type")
 17501  		return
 17502  	}
 17503  	result := NodeGetWriteNewSeriesBackoffDurationResult{}
 17504  	if err = result.Read(iprot); err != nil {
 17505  		return
 17506  	}
 17507  	if err = iprot.ReadMessageEnd(); err != nil {
 17508  		return
 17509  	}
 17510  	if result.Err != nil {
 17511  		err = result.Err
 17512  		return
 17513  	}
 17514  	value = result.GetSuccess()
 17515  	return
 17516  }
 17517  
 17518  // Parameters:
 17519  //  - Req
 17520  func (p *NodeClient) SetWriteNewSeriesBackoffDuration(req *NodeSetWriteNewSeriesBackoffDurationRequest) (r *NodeWriteNewSeriesBackoffDurationResult_, err error) {
 17521  	if err = p.sendSetWriteNewSeriesBackoffDuration(req); err != nil {
 17522  		return
 17523  	}
 17524  	return p.recvSetWriteNewSeriesBackoffDuration()
 17525  }
 17526  
 17527  func (p *NodeClient) sendSetWriteNewSeriesBackoffDuration(req *NodeSetWriteNewSeriesBackoffDurationRequest) (err error) {
 17528  	oprot := p.OutputProtocol
 17529  	if oprot == nil {
 17530  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17531  		p.OutputProtocol = oprot
 17532  	}
 17533  	p.SeqId++
 17534  	if err = oprot.WriteMessageBegin("setWriteNewSeriesBackoffDuration", thrift.CALL, p.SeqId); err != nil {
 17535  		return
 17536  	}
 17537  	args := NodeSetWriteNewSeriesBackoffDurationArgs{
 17538  		Req: req,
 17539  	}
 17540  	if err = args.Write(oprot); err != nil {
 17541  		return
 17542  	}
 17543  	if err = oprot.WriteMessageEnd(); err != nil {
 17544  		return
 17545  	}
 17546  	return oprot.Flush()
 17547  }
 17548  
 17549  func (p *NodeClient) recvSetWriteNewSeriesBackoffDuration() (value *NodeWriteNewSeriesBackoffDurationResult_, err error) {
 17550  	iprot := p.InputProtocol
 17551  	if iprot == nil {
 17552  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17553  		p.InputProtocol = iprot
 17554  	}
 17555  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 17556  	if err != nil {
 17557  		return
 17558  	}
 17559  	if method != "setWriteNewSeriesBackoffDuration" {
 17560  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "setWriteNewSeriesBackoffDuration failed: wrong method name")
 17561  		return
 17562  	}
 17563  	if p.SeqId != seqId {
 17564  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "setWriteNewSeriesBackoffDuration failed: out of sequence response")
 17565  		return
 17566  	}
 17567  	if mTypeId == thrift.EXCEPTION {
 17568  		error87 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 17569  		var error88 error
 17570  		error88, err = error87.Read(iprot)
 17571  		if err != nil {
 17572  			return
 17573  		}
 17574  		if err = iprot.ReadMessageEnd(); err != nil {
 17575  			return
 17576  		}
 17577  		err = error88
 17578  		return
 17579  	}
 17580  	if mTypeId != thrift.REPLY {
 17581  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "setWriteNewSeriesBackoffDuration failed: invalid message type")
 17582  		return
 17583  	}
 17584  	result := NodeSetWriteNewSeriesBackoffDurationResult{}
 17585  	if err = result.Read(iprot); err != nil {
 17586  		return
 17587  	}
 17588  	if err = iprot.ReadMessageEnd(); err != nil {
 17589  		return
 17590  	}
 17591  	if result.Err != nil {
 17592  		err = result.Err
 17593  		return
 17594  	}
 17595  	value = result.GetSuccess()
 17596  	return
 17597  }
 17598  
 17599  func (p *NodeClient) GetWriteNewSeriesLimitPerShardPerSecond() (r *NodeWriteNewSeriesLimitPerShardPerSecondResult_, err error) {
 17600  	if err = p.sendGetWriteNewSeriesLimitPerShardPerSecond(); err != nil {
 17601  		return
 17602  	}
 17603  	return p.recvGetWriteNewSeriesLimitPerShardPerSecond()
 17604  }
 17605  
 17606  func (p *NodeClient) sendGetWriteNewSeriesLimitPerShardPerSecond() (err error) {
 17607  	oprot := p.OutputProtocol
 17608  	if oprot == nil {
 17609  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17610  		p.OutputProtocol = oprot
 17611  	}
 17612  	p.SeqId++
 17613  	if err = oprot.WriteMessageBegin("getWriteNewSeriesLimitPerShardPerSecond", thrift.CALL, p.SeqId); err != nil {
 17614  		return
 17615  	}
 17616  	args := NodeGetWriteNewSeriesLimitPerShardPerSecondArgs{}
 17617  	if err = args.Write(oprot); err != nil {
 17618  		return
 17619  	}
 17620  	if err = oprot.WriteMessageEnd(); err != nil {
 17621  		return
 17622  	}
 17623  	return oprot.Flush()
 17624  }
 17625  
 17626  func (p *NodeClient) recvGetWriteNewSeriesLimitPerShardPerSecond() (value *NodeWriteNewSeriesLimitPerShardPerSecondResult_, err error) {
 17627  	iprot := p.InputProtocol
 17628  	if iprot == nil {
 17629  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17630  		p.InputProtocol = iprot
 17631  	}
 17632  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 17633  	if err != nil {
 17634  		return
 17635  	}
 17636  	if method != "getWriteNewSeriesLimitPerShardPerSecond" {
 17637  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "getWriteNewSeriesLimitPerShardPerSecond failed: wrong method name")
 17638  		return
 17639  	}
 17640  	if p.SeqId != seqId {
 17641  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "getWriteNewSeriesLimitPerShardPerSecond failed: out of sequence response")
 17642  		return
 17643  	}
 17644  	if mTypeId == thrift.EXCEPTION {
 17645  		error89 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 17646  		var error90 error
 17647  		error90, err = error89.Read(iprot)
 17648  		if err != nil {
 17649  			return
 17650  		}
 17651  		if err = iprot.ReadMessageEnd(); err != nil {
 17652  			return
 17653  		}
 17654  		err = error90
 17655  		return
 17656  	}
 17657  	if mTypeId != thrift.REPLY {
 17658  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "getWriteNewSeriesLimitPerShardPerSecond failed: invalid message type")
 17659  		return
 17660  	}
 17661  	result := NodeGetWriteNewSeriesLimitPerShardPerSecondResult{}
 17662  	if err = result.Read(iprot); err != nil {
 17663  		return
 17664  	}
 17665  	if err = iprot.ReadMessageEnd(); err != nil {
 17666  		return
 17667  	}
 17668  	if result.Err != nil {
 17669  		err = result.Err
 17670  		return
 17671  	}
 17672  	value = result.GetSuccess()
 17673  	return
 17674  }
 17675  
 17676  // Parameters:
 17677  //  - Req
 17678  func (p *NodeClient) SetWriteNewSeriesLimitPerShardPerSecond(req *NodeSetWriteNewSeriesLimitPerShardPerSecondRequest) (r *NodeWriteNewSeriesLimitPerShardPerSecondResult_, err error) {
 17679  	if err = p.sendSetWriteNewSeriesLimitPerShardPerSecond(req); err != nil {
 17680  		return
 17681  	}
 17682  	return p.recvSetWriteNewSeriesLimitPerShardPerSecond()
 17683  }
 17684  
 17685  func (p *NodeClient) sendSetWriteNewSeriesLimitPerShardPerSecond(req *NodeSetWriteNewSeriesLimitPerShardPerSecondRequest) (err error) {
 17686  	oprot := p.OutputProtocol
 17687  	if oprot == nil {
 17688  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17689  		p.OutputProtocol = oprot
 17690  	}
 17691  	p.SeqId++
 17692  	if err = oprot.WriteMessageBegin("setWriteNewSeriesLimitPerShardPerSecond", thrift.CALL, p.SeqId); err != nil {
 17693  		return
 17694  	}
 17695  	args := NodeSetWriteNewSeriesLimitPerShardPerSecondArgs{
 17696  		Req: req,
 17697  	}
 17698  	if err = args.Write(oprot); err != nil {
 17699  		return
 17700  	}
 17701  	if err = oprot.WriteMessageEnd(); err != nil {
 17702  		return
 17703  	}
 17704  	return oprot.Flush()
 17705  }
 17706  
 17707  func (p *NodeClient) recvSetWriteNewSeriesLimitPerShardPerSecond() (value *NodeWriteNewSeriesLimitPerShardPerSecondResult_, err error) {
 17708  	iprot := p.InputProtocol
 17709  	if iprot == nil {
 17710  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17711  		p.InputProtocol = iprot
 17712  	}
 17713  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 17714  	if err != nil {
 17715  		return
 17716  	}
 17717  	if method != "setWriteNewSeriesLimitPerShardPerSecond" {
 17718  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "setWriteNewSeriesLimitPerShardPerSecond failed: wrong method name")
 17719  		return
 17720  	}
 17721  	if p.SeqId != seqId {
 17722  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "setWriteNewSeriesLimitPerShardPerSecond failed: out of sequence response")
 17723  		return
 17724  	}
 17725  	if mTypeId == thrift.EXCEPTION {
 17726  		error91 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 17727  		var error92 error
 17728  		error92, err = error91.Read(iprot)
 17729  		if err != nil {
 17730  			return
 17731  		}
 17732  		if err = iprot.ReadMessageEnd(); err != nil {
 17733  			return
 17734  		}
 17735  		err = error92
 17736  		return
 17737  	}
 17738  	if mTypeId != thrift.REPLY {
 17739  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "setWriteNewSeriesLimitPerShardPerSecond failed: invalid message type")
 17740  		return
 17741  	}
 17742  	result := NodeSetWriteNewSeriesLimitPerShardPerSecondResult{}
 17743  	if err = result.Read(iprot); err != nil {
 17744  		return
 17745  	}
 17746  	if err = iprot.ReadMessageEnd(); err != nil {
 17747  		return
 17748  	}
 17749  	if result.Err != nil {
 17750  		err = result.Err
 17751  		return
 17752  	}
 17753  	value = result.GetSuccess()
 17754  	return
 17755  }
 17756  
 17757  // Parameters:
 17758  //  - Req
 17759  func (p *NodeClient) DebugProfileStart(req *DebugProfileStartRequest) (r *DebugProfileStartResult_, err error) {
 17760  	if err = p.sendDebugProfileStart(req); err != nil {
 17761  		return
 17762  	}
 17763  	return p.recvDebugProfileStart()
 17764  }
 17765  
 17766  func (p *NodeClient) sendDebugProfileStart(req *DebugProfileStartRequest) (err error) {
 17767  	oprot := p.OutputProtocol
 17768  	if oprot == nil {
 17769  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17770  		p.OutputProtocol = oprot
 17771  	}
 17772  	p.SeqId++
 17773  	if err = oprot.WriteMessageBegin("debugProfileStart", thrift.CALL, p.SeqId); err != nil {
 17774  		return
 17775  	}
 17776  	args := NodeDebugProfileStartArgs{
 17777  		Req: req,
 17778  	}
 17779  	if err = args.Write(oprot); err != nil {
 17780  		return
 17781  	}
 17782  	if err = oprot.WriteMessageEnd(); err != nil {
 17783  		return
 17784  	}
 17785  	return oprot.Flush()
 17786  }
 17787  
 17788  func (p *NodeClient) recvDebugProfileStart() (value *DebugProfileStartResult_, err error) {
 17789  	iprot := p.InputProtocol
 17790  	if iprot == nil {
 17791  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17792  		p.InputProtocol = iprot
 17793  	}
 17794  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 17795  	if err != nil {
 17796  		return
 17797  	}
 17798  	if method != "debugProfileStart" {
 17799  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "debugProfileStart failed: wrong method name")
 17800  		return
 17801  	}
 17802  	if p.SeqId != seqId {
 17803  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "debugProfileStart failed: out of sequence response")
 17804  		return
 17805  	}
 17806  	if mTypeId == thrift.EXCEPTION {
 17807  		error93 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 17808  		var error94 error
 17809  		error94, err = error93.Read(iprot)
 17810  		if err != nil {
 17811  			return
 17812  		}
 17813  		if err = iprot.ReadMessageEnd(); err != nil {
 17814  			return
 17815  		}
 17816  		err = error94
 17817  		return
 17818  	}
 17819  	if mTypeId != thrift.REPLY {
 17820  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "debugProfileStart failed: invalid message type")
 17821  		return
 17822  	}
 17823  	result := NodeDebugProfileStartResult{}
 17824  	if err = result.Read(iprot); err != nil {
 17825  		return
 17826  	}
 17827  	if err = iprot.ReadMessageEnd(); err != nil {
 17828  		return
 17829  	}
 17830  	if result.Err != nil {
 17831  		err = result.Err
 17832  		return
 17833  	}
 17834  	value = result.GetSuccess()
 17835  	return
 17836  }
 17837  
 17838  // Parameters:
 17839  //  - Req
 17840  func (p *NodeClient) DebugProfileStop(req *DebugProfileStopRequest) (r *DebugProfileStopResult_, err error) {
 17841  	if err = p.sendDebugProfileStop(req); err != nil {
 17842  		return
 17843  	}
 17844  	return p.recvDebugProfileStop()
 17845  }
 17846  
 17847  func (p *NodeClient) sendDebugProfileStop(req *DebugProfileStopRequest) (err error) {
 17848  	oprot := p.OutputProtocol
 17849  	if oprot == nil {
 17850  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17851  		p.OutputProtocol = oprot
 17852  	}
 17853  	p.SeqId++
 17854  	if err = oprot.WriteMessageBegin("debugProfileStop", thrift.CALL, p.SeqId); err != nil {
 17855  		return
 17856  	}
 17857  	args := NodeDebugProfileStopArgs{
 17858  		Req: req,
 17859  	}
 17860  	if err = args.Write(oprot); err != nil {
 17861  		return
 17862  	}
 17863  	if err = oprot.WriteMessageEnd(); err != nil {
 17864  		return
 17865  	}
 17866  	return oprot.Flush()
 17867  }
 17868  
 17869  func (p *NodeClient) recvDebugProfileStop() (value *DebugProfileStopResult_, err error) {
 17870  	iprot := p.InputProtocol
 17871  	if iprot == nil {
 17872  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17873  		p.InputProtocol = iprot
 17874  	}
 17875  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 17876  	if err != nil {
 17877  		return
 17878  	}
 17879  	if method != "debugProfileStop" {
 17880  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "debugProfileStop failed: wrong method name")
 17881  		return
 17882  	}
 17883  	if p.SeqId != seqId {
 17884  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "debugProfileStop failed: out of sequence response")
 17885  		return
 17886  	}
 17887  	if mTypeId == thrift.EXCEPTION {
 17888  		error95 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 17889  		var error96 error
 17890  		error96, err = error95.Read(iprot)
 17891  		if err != nil {
 17892  			return
 17893  		}
 17894  		if err = iprot.ReadMessageEnd(); err != nil {
 17895  			return
 17896  		}
 17897  		err = error96
 17898  		return
 17899  	}
 17900  	if mTypeId != thrift.REPLY {
 17901  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "debugProfileStop failed: invalid message type")
 17902  		return
 17903  	}
 17904  	result := NodeDebugProfileStopResult{}
 17905  	if err = result.Read(iprot); err != nil {
 17906  		return
 17907  	}
 17908  	if err = iprot.ReadMessageEnd(); err != nil {
 17909  		return
 17910  	}
 17911  	if result.Err != nil {
 17912  		err = result.Err
 17913  		return
 17914  	}
 17915  	value = result.GetSuccess()
 17916  	return
 17917  }
 17918  
 17919  // Parameters:
 17920  //  - Req
 17921  func (p *NodeClient) DebugIndexMemorySegments(req *DebugIndexMemorySegmentsRequest) (r *DebugIndexMemorySegmentsResult_, err error) {
 17922  	if err = p.sendDebugIndexMemorySegments(req); err != nil {
 17923  		return
 17924  	}
 17925  	return p.recvDebugIndexMemorySegments()
 17926  }
 17927  
 17928  func (p *NodeClient) sendDebugIndexMemorySegments(req *DebugIndexMemorySegmentsRequest) (err error) {
 17929  	oprot := p.OutputProtocol
 17930  	if oprot == nil {
 17931  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17932  		p.OutputProtocol = oprot
 17933  	}
 17934  	p.SeqId++
 17935  	if err = oprot.WriteMessageBegin("debugIndexMemorySegments", thrift.CALL, p.SeqId); err != nil {
 17936  		return
 17937  	}
 17938  	args := NodeDebugIndexMemorySegmentsArgs{
 17939  		Req: req,
 17940  	}
 17941  	if err = args.Write(oprot); err != nil {
 17942  		return
 17943  	}
 17944  	if err = oprot.WriteMessageEnd(); err != nil {
 17945  		return
 17946  	}
 17947  	return oprot.Flush()
 17948  }
 17949  
 17950  func (p *NodeClient) recvDebugIndexMemorySegments() (value *DebugIndexMemorySegmentsResult_, err error) {
 17951  	iprot := p.InputProtocol
 17952  	if iprot == nil {
 17953  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 17954  		p.InputProtocol = iprot
 17955  	}
 17956  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 17957  	if err != nil {
 17958  		return
 17959  	}
 17960  	if method != "debugIndexMemorySegments" {
 17961  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "debugIndexMemorySegments failed: wrong method name")
 17962  		return
 17963  	}
 17964  	if p.SeqId != seqId {
 17965  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "debugIndexMemorySegments failed: out of sequence response")
 17966  		return
 17967  	}
 17968  	if mTypeId == thrift.EXCEPTION {
 17969  		error97 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 17970  		var error98 error
 17971  		error98, err = error97.Read(iprot)
 17972  		if err != nil {
 17973  			return
 17974  		}
 17975  		if err = iprot.ReadMessageEnd(); err != nil {
 17976  			return
 17977  		}
 17978  		err = error98
 17979  		return
 17980  	}
 17981  	if mTypeId != thrift.REPLY {
 17982  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "debugIndexMemorySegments failed: invalid message type")
 17983  		return
 17984  	}
 17985  	result := NodeDebugIndexMemorySegmentsResult{}
 17986  	if err = result.Read(iprot); err != nil {
 17987  		return
 17988  	}
 17989  	if err = iprot.ReadMessageEnd(); err != nil {
 17990  		return
 17991  	}
 17992  	if result.Err != nil {
 17993  		err = result.Err
 17994  		return
 17995  	}
 17996  	value = result.GetSuccess()
 17997  	return
 17998  }
 17999  
 18000  type NodeProcessor struct {
 18001  	processorMap map[string]thrift.TProcessorFunction
 18002  	handler      Node
 18003  }
 18004  
 18005  func (p *NodeProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction) {
 18006  	p.processorMap[key] = processor
 18007  }
 18008  
 18009  func (p *NodeProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool) {
 18010  	processor, ok = p.processorMap[key]
 18011  	return processor, ok
 18012  }
 18013  
 18014  func (p *NodeProcessor) ProcessorMap() map[string]thrift.TProcessorFunction {
 18015  	return p.processorMap
 18016  }
 18017  
 18018  func NewNodeProcessor(handler Node) *NodeProcessor {
 18019  
 18020  	self99 := &NodeProcessor{handler: handler, processorMap: make(map[string]thrift.TProcessorFunction)}
 18021  	self99.processorMap["query"] = &nodeProcessorQuery{handler: handler}
 18022  	self99.processorMap["aggregate"] = &nodeProcessorAggregate{handler: handler}
 18023  	self99.processorMap["fetch"] = &nodeProcessorFetch{handler: handler}
 18024  	self99.processorMap["write"] = &nodeProcessorWrite{handler: handler}
 18025  	self99.processorMap["writeTagged"] = &nodeProcessorWriteTagged{handler: handler}
 18026  	self99.processorMap["aggregateRaw"] = &nodeProcessorAggregateRaw{handler: handler}
 18027  	self99.processorMap["fetchBatchRaw"] = &nodeProcessorFetchBatchRaw{handler: handler}
 18028  	self99.processorMap["fetchBatchRawV2"] = &nodeProcessorFetchBatchRawV2{handler: handler}
 18029  	self99.processorMap["fetchBlocksRaw"] = &nodeProcessorFetchBlocksRaw{handler: handler}
 18030  	self99.processorMap["fetchTagged"] = &nodeProcessorFetchTagged{handler: handler}
 18031  	self99.processorMap["fetchBlocksMetadataRawV2"] = &nodeProcessorFetchBlocksMetadataRawV2{handler: handler}
 18032  	self99.processorMap["writeBatchRaw"] = &nodeProcessorWriteBatchRaw{handler: handler}
 18033  	self99.processorMap["writeBatchRawV2"] = &nodeProcessorWriteBatchRawV2{handler: handler}
 18034  	self99.processorMap["writeTaggedBatchRaw"] = &nodeProcessorWriteTaggedBatchRaw{handler: handler}
 18035  	self99.processorMap["writeTaggedBatchRawV2"] = &nodeProcessorWriteTaggedBatchRawV2{handler: handler}
 18036  	self99.processorMap["repair"] = &nodeProcessorRepair{handler: handler}
 18037  	self99.processorMap["truncate"] = &nodeProcessorTruncate{handler: handler}
 18038  	self99.processorMap["aggregateTiles"] = &nodeProcessorAggregateTiles{handler: handler}
 18039  	self99.processorMap["health"] = &nodeProcessorHealth{handler: handler}
 18040  	self99.processorMap["bootstrapped"] = &nodeProcessorBootstrapped{handler: handler}
 18041  	self99.processorMap["bootstrappedInPlacementOrNoPlacement"] = &nodeProcessorBootstrappedInPlacementOrNoPlacement{handler: handler}
 18042  	self99.processorMap["getPersistRateLimit"] = &nodeProcessorGetPersistRateLimit{handler: handler}
 18043  	self99.processorMap["setPersistRateLimit"] = &nodeProcessorSetPersistRateLimit{handler: handler}
 18044  	self99.processorMap["getWriteNewSeriesAsync"] = &nodeProcessorGetWriteNewSeriesAsync{handler: handler}
 18045  	self99.processorMap["setWriteNewSeriesAsync"] = &nodeProcessorSetWriteNewSeriesAsync{handler: handler}
 18046  	self99.processorMap["getWriteNewSeriesBackoffDuration"] = &nodeProcessorGetWriteNewSeriesBackoffDuration{handler: handler}
 18047  	self99.processorMap["setWriteNewSeriesBackoffDuration"] = &nodeProcessorSetWriteNewSeriesBackoffDuration{handler: handler}
 18048  	self99.processorMap["getWriteNewSeriesLimitPerShardPerSecond"] = &nodeProcessorGetWriteNewSeriesLimitPerShardPerSecond{handler: handler}
 18049  	self99.processorMap["setWriteNewSeriesLimitPerShardPerSecond"] = &nodeProcessorSetWriteNewSeriesLimitPerShardPerSecond{handler: handler}
 18050  	self99.processorMap["debugProfileStart"] = &nodeProcessorDebugProfileStart{handler: handler}
 18051  	self99.processorMap["debugProfileStop"] = &nodeProcessorDebugProfileStop{handler: handler}
 18052  	self99.processorMap["debugIndexMemorySegments"] = &nodeProcessorDebugIndexMemorySegments{handler: handler}
 18053  	return self99
 18054  }
 18055  
 18056  func (p *NodeProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18057  	name, _, seqId, err := iprot.ReadMessageBegin()
 18058  	if err != nil {
 18059  		return false, err
 18060  	}
 18061  	if processor, ok := p.GetProcessorFunction(name); ok {
 18062  		return processor.Process(seqId, iprot, oprot)
 18063  	}
 18064  	iprot.Skip(thrift.STRUCT)
 18065  	iprot.ReadMessageEnd()
 18066  	x100 := thrift.NewTApplicationException(thrift.UNKNOWN_METHOD, "Unknown function "+name)
 18067  	oprot.WriteMessageBegin(name, thrift.EXCEPTION, seqId)
 18068  	x100.Write(oprot)
 18069  	oprot.WriteMessageEnd()
 18070  	oprot.Flush()
 18071  	return false, x100
 18072  
 18073  }
 18074  
 18075  type nodeProcessorQuery struct {
 18076  	handler Node
 18077  }
 18078  
 18079  func (p *nodeProcessorQuery) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18080  	args := NodeQueryArgs{}
 18081  	if err = args.Read(iprot); err != nil {
 18082  		iprot.ReadMessageEnd()
 18083  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18084  		oprot.WriteMessageBegin("query", thrift.EXCEPTION, seqId)
 18085  		x.Write(oprot)
 18086  		oprot.WriteMessageEnd()
 18087  		oprot.Flush()
 18088  		return false, err
 18089  	}
 18090  
 18091  	iprot.ReadMessageEnd()
 18092  	result := NodeQueryResult{}
 18093  	var retval *QueryResult_
 18094  	var err2 error
 18095  	if retval, err2 = p.handler.Query(args.Req); err2 != nil {
 18096  		switch v := err2.(type) {
 18097  		case *Error:
 18098  			result.Err = v
 18099  		default:
 18100  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing query: "+err2.Error())
 18101  			oprot.WriteMessageBegin("query", thrift.EXCEPTION, seqId)
 18102  			x.Write(oprot)
 18103  			oprot.WriteMessageEnd()
 18104  			oprot.Flush()
 18105  			return true, err2
 18106  		}
 18107  	} else {
 18108  		result.Success = retval
 18109  	}
 18110  	if err2 = oprot.WriteMessageBegin("query", thrift.REPLY, seqId); err2 != nil {
 18111  		err = err2
 18112  	}
 18113  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18114  		err = err2
 18115  	}
 18116  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18117  		err = err2
 18118  	}
 18119  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18120  		err = err2
 18121  	}
 18122  	if err != nil {
 18123  		return
 18124  	}
 18125  	return true, err
 18126  }
 18127  
 18128  type nodeProcessorAggregate struct {
 18129  	handler Node
 18130  }
 18131  
 18132  func (p *nodeProcessorAggregate) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18133  	args := NodeAggregateArgs{}
 18134  	if err = args.Read(iprot); err != nil {
 18135  		iprot.ReadMessageEnd()
 18136  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18137  		oprot.WriteMessageBegin("aggregate", thrift.EXCEPTION, seqId)
 18138  		x.Write(oprot)
 18139  		oprot.WriteMessageEnd()
 18140  		oprot.Flush()
 18141  		return false, err
 18142  	}
 18143  
 18144  	iprot.ReadMessageEnd()
 18145  	result := NodeAggregateResult{}
 18146  	var retval *AggregateQueryResult_
 18147  	var err2 error
 18148  	if retval, err2 = p.handler.Aggregate(args.Req); err2 != nil {
 18149  		switch v := err2.(type) {
 18150  		case *Error:
 18151  			result.Err = v
 18152  		default:
 18153  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing aggregate: "+err2.Error())
 18154  			oprot.WriteMessageBegin("aggregate", thrift.EXCEPTION, seqId)
 18155  			x.Write(oprot)
 18156  			oprot.WriteMessageEnd()
 18157  			oprot.Flush()
 18158  			return true, err2
 18159  		}
 18160  	} else {
 18161  		result.Success = retval
 18162  	}
 18163  	if err2 = oprot.WriteMessageBegin("aggregate", thrift.REPLY, seqId); err2 != nil {
 18164  		err = err2
 18165  	}
 18166  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18167  		err = err2
 18168  	}
 18169  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18170  		err = err2
 18171  	}
 18172  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18173  		err = err2
 18174  	}
 18175  	if err != nil {
 18176  		return
 18177  	}
 18178  	return true, err
 18179  }
 18180  
 18181  type nodeProcessorFetch struct {
 18182  	handler Node
 18183  }
 18184  
 18185  func (p *nodeProcessorFetch) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18186  	args := NodeFetchArgs{}
 18187  	if err = args.Read(iprot); err != nil {
 18188  		iprot.ReadMessageEnd()
 18189  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18190  		oprot.WriteMessageBegin("fetch", thrift.EXCEPTION, seqId)
 18191  		x.Write(oprot)
 18192  		oprot.WriteMessageEnd()
 18193  		oprot.Flush()
 18194  		return false, err
 18195  	}
 18196  
 18197  	iprot.ReadMessageEnd()
 18198  	result := NodeFetchResult{}
 18199  	var retval *FetchResult_
 18200  	var err2 error
 18201  	if retval, err2 = p.handler.Fetch(args.Req); err2 != nil {
 18202  		switch v := err2.(type) {
 18203  		case *Error:
 18204  			result.Err = v
 18205  		default:
 18206  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing fetch: "+err2.Error())
 18207  			oprot.WriteMessageBegin("fetch", thrift.EXCEPTION, seqId)
 18208  			x.Write(oprot)
 18209  			oprot.WriteMessageEnd()
 18210  			oprot.Flush()
 18211  			return true, err2
 18212  		}
 18213  	} else {
 18214  		result.Success = retval
 18215  	}
 18216  	if err2 = oprot.WriteMessageBegin("fetch", thrift.REPLY, seqId); err2 != nil {
 18217  		err = err2
 18218  	}
 18219  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18220  		err = err2
 18221  	}
 18222  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18223  		err = err2
 18224  	}
 18225  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18226  		err = err2
 18227  	}
 18228  	if err != nil {
 18229  		return
 18230  	}
 18231  	return true, err
 18232  }
 18233  
 18234  type nodeProcessorWrite struct {
 18235  	handler Node
 18236  }
 18237  
 18238  func (p *nodeProcessorWrite) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18239  	args := NodeWriteArgs{}
 18240  	if err = args.Read(iprot); err != nil {
 18241  		iprot.ReadMessageEnd()
 18242  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18243  		oprot.WriteMessageBegin("write", thrift.EXCEPTION, seqId)
 18244  		x.Write(oprot)
 18245  		oprot.WriteMessageEnd()
 18246  		oprot.Flush()
 18247  		return false, err
 18248  	}
 18249  
 18250  	iprot.ReadMessageEnd()
 18251  	result := NodeWriteResult{}
 18252  	var err2 error
 18253  	if err2 = p.handler.Write(args.Req); err2 != nil {
 18254  		switch v := err2.(type) {
 18255  		case *Error:
 18256  			result.Err = v
 18257  		default:
 18258  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing write: "+err2.Error())
 18259  			oprot.WriteMessageBegin("write", thrift.EXCEPTION, seqId)
 18260  			x.Write(oprot)
 18261  			oprot.WriteMessageEnd()
 18262  			oprot.Flush()
 18263  			return true, err2
 18264  		}
 18265  	}
 18266  	if err2 = oprot.WriteMessageBegin("write", thrift.REPLY, seqId); err2 != nil {
 18267  		err = err2
 18268  	}
 18269  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18270  		err = err2
 18271  	}
 18272  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18273  		err = err2
 18274  	}
 18275  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18276  		err = err2
 18277  	}
 18278  	if err != nil {
 18279  		return
 18280  	}
 18281  	return true, err
 18282  }
 18283  
 18284  type nodeProcessorWriteTagged struct {
 18285  	handler Node
 18286  }
 18287  
 18288  func (p *nodeProcessorWriteTagged) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18289  	args := NodeWriteTaggedArgs{}
 18290  	if err = args.Read(iprot); err != nil {
 18291  		iprot.ReadMessageEnd()
 18292  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18293  		oprot.WriteMessageBegin("writeTagged", thrift.EXCEPTION, seqId)
 18294  		x.Write(oprot)
 18295  		oprot.WriteMessageEnd()
 18296  		oprot.Flush()
 18297  		return false, err
 18298  	}
 18299  
 18300  	iprot.ReadMessageEnd()
 18301  	result := NodeWriteTaggedResult{}
 18302  	var err2 error
 18303  	if err2 = p.handler.WriteTagged(args.Req); err2 != nil {
 18304  		switch v := err2.(type) {
 18305  		case *Error:
 18306  			result.Err = v
 18307  		default:
 18308  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing writeTagged: "+err2.Error())
 18309  			oprot.WriteMessageBegin("writeTagged", thrift.EXCEPTION, seqId)
 18310  			x.Write(oprot)
 18311  			oprot.WriteMessageEnd()
 18312  			oprot.Flush()
 18313  			return true, err2
 18314  		}
 18315  	}
 18316  	if err2 = oprot.WriteMessageBegin("writeTagged", thrift.REPLY, seqId); err2 != nil {
 18317  		err = err2
 18318  	}
 18319  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18320  		err = err2
 18321  	}
 18322  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18323  		err = err2
 18324  	}
 18325  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18326  		err = err2
 18327  	}
 18328  	if err != nil {
 18329  		return
 18330  	}
 18331  	return true, err
 18332  }
 18333  
 18334  type nodeProcessorAggregateRaw struct {
 18335  	handler Node
 18336  }
 18337  
 18338  func (p *nodeProcessorAggregateRaw) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18339  	args := NodeAggregateRawArgs{}
 18340  	if err = args.Read(iprot); err != nil {
 18341  		iprot.ReadMessageEnd()
 18342  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18343  		oprot.WriteMessageBegin("aggregateRaw", thrift.EXCEPTION, seqId)
 18344  		x.Write(oprot)
 18345  		oprot.WriteMessageEnd()
 18346  		oprot.Flush()
 18347  		return false, err
 18348  	}
 18349  
 18350  	iprot.ReadMessageEnd()
 18351  	result := NodeAggregateRawResult{}
 18352  	var retval *AggregateQueryRawResult_
 18353  	var err2 error
 18354  	if retval, err2 = p.handler.AggregateRaw(args.Req); err2 != nil {
 18355  		switch v := err2.(type) {
 18356  		case *Error:
 18357  			result.Err = v
 18358  		default:
 18359  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing aggregateRaw: "+err2.Error())
 18360  			oprot.WriteMessageBegin("aggregateRaw", thrift.EXCEPTION, seqId)
 18361  			x.Write(oprot)
 18362  			oprot.WriteMessageEnd()
 18363  			oprot.Flush()
 18364  			return true, err2
 18365  		}
 18366  	} else {
 18367  		result.Success = retval
 18368  	}
 18369  	if err2 = oprot.WriteMessageBegin("aggregateRaw", thrift.REPLY, seqId); err2 != nil {
 18370  		err = err2
 18371  	}
 18372  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18373  		err = err2
 18374  	}
 18375  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18376  		err = err2
 18377  	}
 18378  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18379  		err = err2
 18380  	}
 18381  	if err != nil {
 18382  		return
 18383  	}
 18384  	return true, err
 18385  }
 18386  
 18387  type nodeProcessorFetchBatchRaw struct {
 18388  	handler Node
 18389  }
 18390  
 18391  func (p *nodeProcessorFetchBatchRaw) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18392  	args := NodeFetchBatchRawArgs{}
 18393  	if err = args.Read(iprot); err != nil {
 18394  		iprot.ReadMessageEnd()
 18395  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18396  		oprot.WriteMessageBegin("fetchBatchRaw", thrift.EXCEPTION, seqId)
 18397  		x.Write(oprot)
 18398  		oprot.WriteMessageEnd()
 18399  		oprot.Flush()
 18400  		return false, err
 18401  	}
 18402  
 18403  	iprot.ReadMessageEnd()
 18404  	result := NodeFetchBatchRawResult{}
 18405  	var retval *FetchBatchRawResult_
 18406  	var err2 error
 18407  	if retval, err2 = p.handler.FetchBatchRaw(args.Req); err2 != nil {
 18408  		switch v := err2.(type) {
 18409  		case *Error:
 18410  			result.Err = v
 18411  		default:
 18412  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing fetchBatchRaw: "+err2.Error())
 18413  			oprot.WriteMessageBegin("fetchBatchRaw", thrift.EXCEPTION, seqId)
 18414  			x.Write(oprot)
 18415  			oprot.WriteMessageEnd()
 18416  			oprot.Flush()
 18417  			return true, err2
 18418  		}
 18419  	} else {
 18420  		result.Success = retval
 18421  	}
 18422  	if err2 = oprot.WriteMessageBegin("fetchBatchRaw", thrift.REPLY, seqId); err2 != nil {
 18423  		err = err2
 18424  	}
 18425  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18426  		err = err2
 18427  	}
 18428  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18429  		err = err2
 18430  	}
 18431  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18432  		err = err2
 18433  	}
 18434  	if err != nil {
 18435  		return
 18436  	}
 18437  	return true, err
 18438  }
 18439  
 18440  type nodeProcessorFetchBatchRawV2 struct {
 18441  	handler Node
 18442  }
 18443  
 18444  func (p *nodeProcessorFetchBatchRawV2) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18445  	args := NodeFetchBatchRawV2Args{}
 18446  	if err = args.Read(iprot); err != nil {
 18447  		iprot.ReadMessageEnd()
 18448  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18449  		oprot.WriteMessageBegin("fetchBatchRawV2", thrift.EXCEPTION, seqId)
 18450  		x.Write(oprot)
 18451  		oprot.WriteMessageEnd()
 18452  		oprot.Flush()
 18453  		return false, err
 18454  	}
 18455  
 18456  	iprot.ReadMessageEnd()
 18457  	result := NodeFetchBatchRawV2Result{}
 18458  	var retval *FetchBatchRawResult_
 18459  	var err2 error
 18460  	if retval, err2 = p.handler.FetchBatchRawV2(args.Req); err2 != nil {
 18461  		switch v := err2.(type) {
 18462  		case *Error:
 18463  			result.Err = v
 18464  		default:
 18465  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing fetchBatchRawV2: "+err2.Error())
 18466  			oprot.WriteMessageBegin("fetchBatchRawV2", thrift.EXCEPTION, seqId)
 18467  			x.Write(oprot)
 18468  			oprot.WriteMessageEnd()
 18469  			oprot.Flush()
 18470  			return true, err2
 18471  		}
 18472  	} else {
 18473  		result.Success = retval
 18474  	}
 18475  	if err2 = oprot.WriteMessageBegin("fetchBatchRawV2", thrift.REPLY, seqId); err2 != nil {
 18476  		err = err2
 18477  	}
 18478  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18479  		err = err2
 18480  	}
 18481  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18482  		err = err2
 18483  	}
 18484  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18485  		err = err2
 18486  	}
 18487  	if err != nil {
 18488  		return
 18489  	}
 18490  	return true, err
 18491  }
 18492  
 18493  type nodeProcessorFetchBlocksRaw struct {
 18494  	handler Node
 18495  }
 18496  
 18497  func (p *nodeProcessorFetchBlocksRaw) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18498  	args := NodeFetchBlocksRawArgs{}
 18499  	if err = args.Read(iprot); err != nil {
 18500  		iprot.ReadMessageEnd()
 18501  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18502  		oprot.WriteMessageBegin("fetchBlocksRaw", thrift.EXCEPTION, seqId)
 18503  		x.Write(oprot)
 18504  		oprot.WriteMessageEnd()
 18505  		oprot.Flush()
 18506  		return false, err
 18507  	}
 18508  
 18509  	iprot.ReadMessageEnd()
 18510  	result := NodeFetchBlocksRawResult{}
 18511  	var retval *FetchBlocksRawResult_
 18512  	var err2 error
 18513  	if retval, err2 = p.handler.FetchBlocksRaw(args.Req); err2 != nil {
 18514  		switch v := err2.(type) {
 18515  		case *Error:
 18516  			result.Err = v
 18517  		default:
 18518  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing fetchBlocksRaw: "+err2.Error())
 18519  			oprot.WriteMessageBegin("fetchBlocksRaw", thrift.EXCEPTION, seqId)
 18520  			x.Write(oprot)
 18521  			oprot.WriteMessageEnd()
 18522  			oprot.Flush()
 18523  			return true, err2
 18524  		}
 18525  	} else {
 18526  		result.Success = retval
 18527  	}
 18528  	if err2 = oprot.WriteMessageBegin("fetchBlocksRaw", thrift.REPLY, seqId); err2 != nil {
 18529  		err = err2
 18530  	}
 18531  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18532  		err = err2
 18533  	}
 18534  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18535  		err = err2
 18536  	}
 18537  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18538  		err = err2
 18539  	}
 18540  	if err != nil {
 18541  		return
 18542  	}
 18543  	return true, err
 18544  }
 18545  
 18546  type nodeProcessorFetchTagged struct {
 18547  	handler Node
 18548  }
 18549  
 18550  func (p *nodeProcessorFetchTagged) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18551  	args := NodeFetchTaggedArgs{}
 18552  	if err = args.Read(iprot); err != nil {
 18553  		iprot.ReadMessageEnd()
 18554  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18555  		oprot.WriteMessageBegin("fetchTagged", thrift.EXCEPTION, seqId)
 18556  		x.Write(oprot)
 18557  		oprot.WriteMessageEnd()
 18558  		oprot.Flush()
 18559  		return false, err
 18560  	}
 18561  
 18562  	iprot.ReadMessageEnd()
 18563  	result := NodeFetchTaggedResult{}
 18564  	var retval *FetchTaggedResult_
 18565  	var err2 error
 18566  	if retval, err2 = p.handler.FetchTagged(args.Req); err2 != nil {
 18567  		switch v := err2.(type) {
 18568  		case *Error:
 18569  			result.Err = v
 18570  		default:
 18571  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing fetchTagged: "+err2.Error())
 18572  			oprot.WriteMessageBegin("fetchTagged", thrift.EXCEPTION, seqId)
 18573  			x.Write(oprot)
 18574  			oprot.WriteMessageEnd()
 18575  			oprot.Flush()
 18576  			return true, err2
 18577  		}
 18578  	} else {
 18579  		result.Success = retval
 18580  	}
 18581  	if err2 = oprot.WriteMessageBegin("fetchTagged", thrift.REPLY, seqId); err2 != nil {
 18582  		err = err2
 18583  	}
 18584  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18585  		err = err2
 18586  	}
 18587  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18588  		err = err2
 18589  	}
 18590  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18591  		err = err2
 18592  	}
 18593  	if err != nil {
 18594  		return
 18595  	}
 18596  	return true, err
 18597  }
 18598  
 18599  type nodeProcessorFetchBlocksMetadataRawV2 struct {
 18600  	handler Node
 18601  }
 18602  
 18603  func (p *nodeProcessorFetchBlocksMetadataRawV2) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18604  	args := NodeFetchBlocksMetadataRawV2Args{}
 18605  	if err = args.Read(iprot); err != nil {
 18606  		iprot.ReadMessageEnd()
 18607  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18608  		oprot.WriteMessageBegin("fetchBlocksMetadataRawV2", thrift.EXCEPTION, seqId)
 18609  		x.Write(oprot)
 18610  		oprot.WriteMessageEnd()
 18611  		oprot.Flush()
 18612  		return false, err
 18613  	}
 18614  
 18615  	iprot.ReadMessageEnd()
 18616  	result := NodeFetchBlocksMetadataRawV2Result{}
 18617  	var retval *FetchBlocksMetadataRawV2Result_
 18618  	var err2 error
 18619  	if retval, err2 = p.handler.FetchBlocksMetadataRawV2(args.Req); err2 != nil {
 18620  		switch v := err2.(type) {
 18621  		case *Error:
 18622  			result.Err = v
 18623  		default:
 18624  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing fetchBlocksMetadataRawV2: "+err2.Error())
 18625  			oprot.WriteMessageBegin("fetchBlocksMetadataRawV2", thrift.EXCEPTION, seqId)
 18626  			x.Write(oprot)
 18627  			oprot.WriteMessageEnd()
 18628  			oprot.Flush()
 18629  			return true, err2
 18630  		}
 18631  	} else {
 18632  		result.Success = retval
 18633  	}
 18634  	if err2 = oprot.WriteMessageBegin("fetchBlocksMetadataRawV2", thrift.REPLY, seqId); err2 != nil {
 18635  		err = err2
 18636  	}
 18637  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18638  		err = err2
 18639  	}
 18640  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18641  		err = err2
 18642  	}
 18643  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18644  		err = err2
 18645  	}
 18646  	if err != nil {
 18647  		return
 18648  	}
 18649  	return true, err
 18650  }
 18651  
 18652  type nodeProcessorWriteBatchRaw struct {
 18653  	handler Node
 18654  }
 18655  
 18656  func (p *nodeProcessorWriteBatchRaw) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18657  	args := NodeWriteBatchRawArgs{}
 18658  	if err = args.Read(iprot); err != nil {
 18659  		iprot.ReadMessageEnd()
 18660  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18661  		oprot.WriteMessageBegin("writeBatchRaw", thrift.EXCEPTION, seqId)
 18662  		x.Write(oprot)
 18663  		oprot.WriteMessageEnd()
 18664  		oprot.Flush()
 18665  		return false, err
 18666  	}
 18667  
 18668  	iprot.ReadMessageEnd()
 18669  	result := NodeWriteBatchRawResult{}
 18670  	var err2 error
 18671  	if err2 = p.handler.WriteBatchRaw(args.Req); err2 != nil {
 18672  		switch v := err2.(type) {
 18673  		case *WriteBatchRawErrors:
 18674  			result.Err = v
 18675  		default:
 18676  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing writeBatchRaw: "+err2.Error())
 18677  			oprot.WriteMessageBegin("writeBatchRaw", thrift.EXCEPTION, seqId)
 18678  			x.Write(oprot)
 18679  			oprot.WriteMessageEnd()
 18680  			oprot.Flush()
 18681  			return true, err2
 18682  		}
 18683  	}
 18684  	if err2 = oprot.WriteMessageBegin("writeBatchRaw", thrift.REPLY, seqId); err2 != nil {
 18685  		err = err2
 18686  	}
 18687  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18688  		err = err2
 18689  	}
 18690  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18691  		err = err2
 18692  	}
 18693  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18694  		err = err2
 18695  	}
 18696  	if err != nil {
 18697  		return
 18698  	}
 18699  	return true, err
 18700  }
 18701  
 18702  type nodeProcessorWriteBatchRawV2 struct {
 18703  	handler Node
 18704  }
 18705  
 18706  func (p *nodeProcessorWriteBatchRawV2) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18707  	args := NodeWriteBatchRawV2Args{}
 18708  	if err = args.Read(iprot); err != nil {
 18709  		iprot.ReadMessageEnd()
 18710  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18711  		oprot.WriteMessageBegin("writeBatchRawV2", thrift.EXCEPTION, seqId)
 18712  		x.Write(oprot)
 18713  		oprot.WriteMessageEnd()
 18714  		oprot.Flush()
 18715  		return false, err
 18716  	}
 18717  
 18718  	iprot.ReadMessageEnd()
 18719  	result := NodeWriteBatchRawV2Result{}
 18720  	var err2 error
 18721  	if err2 = p.handler.WriteBatchRawV2(args.Req); err2 != nil {
 18722  		switch v := err2.(type) {
 18723  		case *WriteBatchRawErrors:
 18724  			result.Err = v
 18725  		default:
 18726  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing writeBatchRawV2: "+err2.Error())
 18727  			oprot.WriteMessageBegin("writeBatchRawV2", thrift.EXCEPTION, seqId)
 18728  			x.Write(oprot)
 18729  			oprot.WriteMessageEnd()
 18730  			oprot.Flush()
 18731  			return true, err2
 18732  		}
 18733  	}
 18734  	if err2 = oprot.WriteMessageBegin("writeBatchRawV2", thrift.REPLY, seqId); err2 != nil {
 18735  		err = err2
 18736  	}
 18737  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18738  		err = err2
 18739  	}
 18740  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18741  		err = err2
 18742  	}
 18743  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18744  		err = err2
 18745  	}
 18746  	if err != nil {
 18747  		return
 18748  	}
 18749  	return true, err
 18750  }
 18751  
 18752  type nodeProcessorWriteTaggedBatchRaw struct {
 18753  	handler Node
 18754  }
 18755  
 18756  func (p *nodeProcessorWriteTaggedBatchRaw) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18757  	args := NodeWriteTaggedBatchRawArgs{}
 18758  	if err = args.Read(iprot); err != nil {
 18759  		iprot.ReadMessageEnd()
 18760  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18761  		oprot.WriteMessageBegin("writeTaggedBatchRaw", thrift.EXCEPTION, seqId)
 18762  		x.Write(oprot)
 18763  		oprot.WriteMessageEnd()
 18764  		oprot.Flush()
 18765  		return false, err
 18766  	}
 18767  
 18768  	iprot.ReadMessageEnd()
 18769  	result := NodeWriteTaggedBatchRawResult{}
 18770  	var err2 error
 18771  	if err2 = p.handler.WriteTaggedBatchRaw(args.Req); err2 != nil {
 18772  		switch v := err2.(type) {
 18773  		case *WriteBatchRawErrors:
 18774  			result.Err = v
 18775  		default:
 18776  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing writeTaggedBatchRaw: "+err2.Error())
 18777  			oprot.WriteMessageBegin("writeTaggedBatchRaw", thrift.EXCEPTION, seqId)
 18778  			x.Write(oprot)
 18779  			oprot.WriteMessageEnd()
 18780  			oprot.Flush()
 18781  			return true, err2
 18782  		}
 18783  	}
 18784  	if err2 = oprot.WriteMessageBegin("writeTaggedBatchRaw", thrift.REPLY, seqId); err2 != nil {
 18785  		err = err2
 18786  	}
 18787  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18788  		err = err2
 18789  	}
 18790  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18791  		err = err2
 18792  	}
 18793  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18794  		err = err2
 18795  	}
 18796  	if err != nil {
 18797  		return
 18798  	}
 18799  	return true, err
 18800  }
 18801  
 18802  type nodeProcessorWriteTaggedBatchRawV2 struct {
 18803  	handler Node
 18804  }
 18805  
 18806  func (p *nodeProcessorWriteTaggedBatchRawV2) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18807  	args := NodeWriteTaggedBatchRawV2Args{}
 18808  	if err = args.Read(iprot); err != nil {
 18809  		iprot.ReadMessageEnd()
 18810  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18811  		oprot.WriteMessageBegin("writeTaggedBatchRawV2", thrift.EXCEPTION, seqId)
 18812  		x.Write(oprot)
 18813  		oprot.WriteMessageEnd()
 18814  		oprot.Flush()
 18815  		return false, err
 18816  	}
 18817  
 18818  	iprot.ReadMessageEnd()
 18819  	result := NodeWriteTaggedBatchRawV2Result{}
 18820  	var err2 error
 18821  	if err2 = p.handler.WriteTaggedBatchRawV2(args.Req); err2 != nil {
 18822  		switch v := err2.(type) {
 18823  		case *WriteBatchRawErrors:
 18824  			result.Err = v
 18825  		default:
 18826  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing writeTaggedBatchRawV2: "+err2.Error())
 18827  			oprot.WriteMessageBegin("writeTaggedBatchRawV2", thrift.EXCEPTION, seqId)
 18828  			x.Write(oprot)
 18829  			oprot.WriteMessageEnd()
 18830  			oprot.Flush()
 18831  			return true, err2
 18832  		}
 18833  	}
 18834  	if err2 = oprot.WriteMessageBegin("writeTaggedBatchRawV2", thrift.REPLY, seqId); err2 != nil {
 18835  		err = err2
 18836  	}
 18837  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18838  		err = err2
 18839  	}
 18840  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18841  		err = err2
 18842  	}
 18843  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18844  		err = err2
 18845  	}
 18846  	if err != nil {
 18847  		return
 18848  	}
 18849  	return true, err
 18850  }
 18851  
 18852  type nodeProcessorRepair struct {
 18853  	handler Node
 18854  }
 18855  
 18856  func (p *nodeProcessorRepair) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18857  	args := NodeRepairArgs{}
 18858  	if err = args.Read(iprot); err != nil {
 18859  		iprot.ReadMessageEnd()
 18860  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18861  		oprot.WriteMessageBegin("repair", thrift.EXCEPTION, seqId)
 18862  		x.Write(oprot)
 18863  		oprot.WriteMessageEnd()
 18864  		oprot.Flush()
 18865  		return false, err
 18866  	}
 18867  
 18868  	iprot.ReadMessageEnd()
 18869  	result := NodeRepairResult{}
 18870  	var err2 error
 18871  	if err2 = p.handler.Repair(); err2 != nil {
 18872  		switch v := err2.(type) {
 18873  		case *Error:
 18874  			result.Err = v
 18875  		default:
 18876  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing repair: "+err2.Error())
 18877  			oprot.WriteMessageBegin("repair", thrift.EXCEPTION, seqId)
 18878  			x.Write(oprot)
 18879  			oprot.WriteMessageEnd()
 18880  			oprot.Flush()
 18881  			return true, err2
 18882  		}
 18883  	}
 18884  	if err2 = oprot.WriteMessageBegin("repair", thrift.REPLY, seqId); err2 != nil {
 18885  		err = err2
 18886  	}
 18887  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18888  		err = err2
 18889  	}
 18890  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18891  		err = err2
 18892  	}
 18893  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18894  		err = err2
 18895  	}
 18896  	if err != nil {
 18897  		return
 18898  	}
 18899  	return true, err
 18900  }
 18901  
 18902  type nodeProcessorTruncate struct {
 18903  	handler Node
 18904  }
 18905  
 18906  func (p *nodeProcessorTruncate) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18907  	args := NodeTruncateArgs{}
 18908  	if err = args.Read(iprot); err != nil {
 18909  		iprot.ReadMessageEnd()
 18910  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18911  		oprot.WriteMessageBegin("truncate", thrift.EXCEPTION, seqId)
 18912  		x.Write(oprot)
 18913  		oprot.WriteMessageEnd()
 18914  		oprot.Flush()
 18915  		return false, err
 18916  	}
 18917  
 18918  	iprot.ReadMessageEnd()
 18919  	result := NodeTruncateResult{}
 18920  	var retval *TruncateResult_
 18921  	var err2 error
 18922  	if retval, err2 = p.handler.Truncate(args.Req); err2 != nil {
 18923  		switch v := err2.(type) {
 18924  		case *Error:
 18925  			result.Err = v
 18926  		default:
 18927  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing truncate: "+err2.Error())
 18928  			oprot.WriteMessageBegin("truncate", thrift.EXCEPTION, seqId)
 18929  			x.Write(oprot)
 18930  			oprot.WriteMessageEnd()
 18931  			oprot.Flush()
 18932  			return true, err2
 18933  		}
 18934  	} else {
 18935  		result.Success = retval
 18936  	}
 18937  	if err2 = oprot.WriteMessageBegin("truncate", thrift.REPLY, seqId); err2 != nil {
 18938  		err = err2
 18939  	}
 18940  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18941  		err = err2
 18942  	}
 18943  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18944  		err = err2
 18945  	}
 18946  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 18947  		err = err2
 18948  	}
 18949  	if err != nil {
 18950  		return
 18951  	}
 18952  	return true, err
 18953  }
 18954  
 18955  type nodeProcessorAggregateTiles struct {
 18956  	handler Node
 18957  }
 18958  
 18959  func (p *nodeProcessorAggregateTiles) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 18960  	args := NodeAggregateTilesArgs{}
 18961  	if err = args.Read(iprot); err != nil {
 18962  		iprot.ReadMessageEnd()
 18963  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 18964  		oprot.WriteMessageBegin("aggregateTiles", thrift.EXCEPTION, seqId)
 18965  		x.Write(oprot)
 18966  		oprot.WriteMessageEnd()
 18967  		oprot.Flush()
 18968  		return false, err
 18969  	}
 18970  
 18971  	iprot.ReadMessageEnd()
 18972  	result := NodeAggregateTilesResult{}
 18973  	var retval *AggregateTilesResult_
 18974  	var err2 error
 18975  	if retval, err2 = p.handler.AggregateTiles(args.Req); err2 != nil {
 18976  		switch v := err2.(type) {
 18977  		case *Error:
 18978  			result.Err = v
 18979  		default:
 18980  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing aggregateTiles: "+err2.Error())
 18981  			oprot.WriteMessageBegin("aggregateTiles", thrift.EXCEPTION, seqId)
 18982  			x.Write(oprot)
 18983  			oprot.WriteMessageEnd()
 18984  			oprot.Flush()
 18985  			return true, err2
 18986  		}
 18987  	} else {
 18988  		result.Success = retval
 18989  	}
 18990  	if err2 = oprot.WriteMessageBegin("aggregateTiles", thrift.REPLY, seqId); err2 != nil {
 18991  		err = err2
 18992  	}
 18993  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 18994  		err = err2
 18995  	}
 18996  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 18997  		err = err2
 18998  	}
 18999  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 19000  		err = err2
 19001  	}
 19002  	if err != nil {
 19003  		return
 19004  	}
 19005  	return true, err
 19006  }
 19007  
 19008  type nodeProcessorHealth struct {
 19009  	handler Node
 19010  }
 19011  
 19012  func (p *nodeProcessorHealth) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 19013  	args := NodeHealthArgs{}
 19014  	if err = args.Read(iprot); err != nil {
 19015  		iprot.ReadMessageEnd()
 19016  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 19017  		oprot.WriteMessageBegin("health", thrift.EXCEPTION, seqId)
 19018  		x.Write(oprot)
 19019  		oprot.WriteMessageEnd()
 19020  		oprot.Flush()
 19021  		return false, err
 19022  	}
 19023  
 19024  	iprot.ReadMessageEnd()
 19025  	result := NodeHealthResult{}
 19026  	var retval *NodeHealthResult_
 19027  	var err2 error
 19028  	if retval, err2 = p.handler.Health(); err2 != nil {
 19029  		switch v := err2.(type) {
 19030  		case *Error:
 19031  			result.Err = v
 19032  		default:
 19033  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing health: "+err2.Error())
 19034  			oprot.WriteMessageBegin("health", thrift.EXCEPTION, seqId)
 19035  			x.Write(oprot)
 19036  			oprot.WriteMessageEnd()
 19037  			oprot.Flush()
 19038  			return true, err2
 19039  		}
 19040  	} else {
 19041  		result.Success = retval
 19042  	}
 19043  	if err2 = oprot.WriteMessageBegin("health", thrift.REPLY, seqId); err2 != nil {
 19044  		err = err2
 19045  	}
 19046  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 19047  		err = err2
 19048  	}
 19049  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 19050  		err = err2
 19051  	}
 19052  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 19053  		err = err2
 19054  	}
 19055  	if err != nil {
 19056  		return
 19057  	}
 19058  	return true, err
 19059  }
 19060  
 19061  type nodeProcessorBootstrapped struct {
 19062  	handler Node
 19063  }
 19064  
 19065  func (p *nodeProcessorBootstrapped) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 19066  	args := NodeBootstrappedArgs{}
 19067  	if err = args.Read(iprot); err != nil {
 19068  		iprot.ReadMessageEnd()
 19069  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 19070  		oprot.WriteMessageBegin("bootstrapped", thrift.EXCEPTION, seqId)
 19071  		x.Write(oprot)
 19072  		oprot.WriteMessageEnd()
 19073  		oprot.Flush()
 19074  		return false, err
 19075  	}
 19076  
 19077  	iprot.ReadMessageEnd()
 19078  	result := NodeBootstrappedResult{}
 19079  	var retval *NodeBootstrappedResult_
 19080  	var err2 error
 19081  	if retval, err2 = p.handler.Bootstrapped(); err2 != nil {
 19082  		switch v := err2.(type) {
 19083  		case *Error:
 19084  			result.Err = v
 19085  		default:
 19086  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing bootstrapped: "+err2.Error())
 19087  			oprot.WriteMessageBegin("bootstrapped", thrift.EXCEPTION, seqId)
 19088  			x.Write(oprot)
 19089  			oprot.WriteMessageEnd()
 19090  			oprot.Flush()
 19091  			return true, err2
 19092  		}
 19093  	} else {
 19094  		result.Success = retval
 19095  	}
 19096  	if err2 = oprot.WriteMessageBegin("bootstrapped", thrift.REPLY, seqId); err2 != nil {
 19097  		err = err2
 19098  	}
 19099  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 19100  		err = err2
 19101  	}
 19102  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 19103  		err = err2
 19104  	}
 19105  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 19106  		err = err2
 19107  	}
 19108  	if err != nil {
 19109  		return
 19110  	}
 19111  	return true, err
 19112  }
 19113  
 19114  type nodeProcessorBootstrappedInPlacementOrNoPlacement struct {
 19115  	handler Node
 19116  }
 19117  
 19118  func (p *nodeProcessorBootstrappedInPlacementOrNoPlacement) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 19119  	args := NodeBootstrappedInPlacementOrNoPlacementArgs{}
 19120  	if err = args.Read(iprot); err != nil {
 19121  		iprot.ReadMessageEnd()
 19122  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 19123  		oprot.WriteMessageBegin("bootstrappedInPlacementOrNoPlacement", thrift.EXCEPTION, seqId)
 19124  		x.Write(oprot)
 19125  		oprot.WriteMessageEnd()
 19126  		oprot.Flush()
 19127  		return false, err
 19128  	}
 19129  
 19130  	iprot.ReadMessageEnd()
 19131  	result := NodeBootstrappedInPlacementOrNoPlacementResult{}
 19132  	var retval *NodeBootstrappedInPlacementOrNoPlacementResult_
 19133  	var err2 error
 19134  	if retval, err2 = p.handler.BootstrappedInPlacementOrNoPlacement(); err2 != nil {
 19135  		switch v := err2.(type) {
 19136  		case *Error:
 19137  			result.Err = v
 19138  		default:
 19139  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing bootstrappedInPlacementOrNoPlacement: "+err2.Error())
 19140  			oprot.WriteMessageBegin("bootstrappedInPlacementOrNoPlacement", thrift.EXCEPTION, seqId)
 19141  			x.Write(oprot)
 19142  			oprot.WriteMessageEnd()
 19143  			oprot.Flush()
 19144  			return true, err2
 19145  		}
 19146  	} else {
 19147  		result.Success = retval
 19148  	}
 19149  	if err2 = oprot.WriteMessageBegin("bootstrappedInPlacementOrNoPlacement", thrift.REPLY, seqId); err2 != nil {
 19150  		err = err2
 19151  	}
 19152  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 19153  		err = err2
 19154  	}
 19155  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 19156  		err = err2
 19157  	}
 19158  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 19159  		err = err2
 19160  	}
 19161  	if err != nil {
 19162  		return
 19163  	}
 19164  	return true, err
 19165  }
 19166  
 19167  type nodeProcessorGetPersistRateLimit struct {
 19168  	handler Node
 19169  }
 19170  
 19171  func (p *nodeProcessorGetPersistRateLimit) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 19172  	args := NodeGetPersistRateLimitArgs{}
 19173  	if err = args.Read(iprot); err != nil {
 19174  		iprot.ReadMessageEnd()
 19175  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 19176  		oprot.WriteMessageBegin("getPersistRateLimit", thrift.EXCEPTION, seqId)
 19177  		x.Write(oprot)
 19178  		oprot.WriteMessageEnd()
 19179  		oprot.Flush()
 19180  		return false, err
 19181  	}
 19182  
 19183  	iprot.ReadMessageEnd()
 19184  	result := NodeGetPersistRateLimitResult{}
 19185  	var retval *NodePersistRateLimitResult_
 19186  	var err2 error
 19187  	if retval, err2 = p.handler.GetPersistRateLimit(); err2 != nil {
 19188  		switch v := err2.(type) {
 19189  		case *Error:
 19190  			result.Err = v
 19191  		default:
 19192  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing getPersistRateLimit: "+err2.Error())
 19193  			oprot.WriteMessageBegin("getPersistRateLimit", thrift.EXCEPTION, seqId)
 19194  			x.Write(oprot)
 19195  			oprot.WriteMessageEnd()
 19196  			oprot.Flush()
 19197  			return true, err2
 19198  		}
 19199  	} else {
 19200  		result.Success = retval
 19201  	}
 19202  	if err2 = oprot.WriteMessageBegin("getPersistRateLimit", thrift.REPLY, seqId); err2 != nil {
 19203  		err = err2
 19204  	}
 19205  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 19206  		err = err2
 19207  	}
 19208  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 19209  		err = err2
 19210  	}
 19211  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 19212  		err = err2
 19213  	}
 19214  	if err != nil {
 19215  		return
 19216  	}
 19217  	return true, err
 19218  }
 19219  
 19220  type nodeProcessorSetPersistRateLimit struct {
 19221  	handler Node
 19222  }
 19223  
 19224  func (p *nodeProcessorSetPersistRateLimit) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 19225  	args := NodeSetPersistRateLimitArgs{}
 19226  	if err = args.Read(iprot); err != nil {
 19227  		iprot.ReadMessageEnd()
 19228  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 19229  		oprot.WriteMessageBegin("setPersistRateLimit", thrift.EXCEPTION, seqId)
 19230  		x.Write(oprot)
 19231  		oprot.WriteMessageEnd()
 19232  		oprot.Flush()
 19233  		return false, err
 19234  	}
 19235  
 19236  	iprot.ReadMessageEnd()
 19237  	result := NodeSetPersistRateLimitResult{}
 19238  	var retval *NodePersistRateLimitResult_
 19239  	var err2 error
 19240  	if retval, err2 = p.handler.SetPersistRateLimit(args.Req); err2 != nil {
 19241  		switch v := err2.(type) {
 19242  		case *Error:
 19243  			result.Err = v
 19244  		default:
 19245  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing setPersistRateLimit: "+err2.Error())
 19246  			oprot.WriteMessageBegin("setPersistRateLimit", thrift.EXCEPTION, seqId)
 19247  			x.Write(oprot)
 19248  			oprot.WriteMessageEnd()
 19249  			oprot.Flush()
 19250  			return true, err2
 19251  		}
 19252  	} else {
 19253  		result.Success = retval
 19254  	}
 19255  	if err2 = oprot.WriteMessageBegin("setPersistRateLimit", thrift.REPLY, seqId); err2 != nil {
 19256  		err = err2
 19257  	}
 19258  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 19259  		err = err2
 19260  	}
 19261  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 19262  		err = err2
 19263  	}
 19264  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 19265  		err = err2
 19266  	}
 19267  	if err != nil {
 19268  		return
 19269  	}
 19270  	return true, err
 19271  }
 19272  
 19273  type nodeProcessorGetWriteNewSeriesAsync struct {
 19274  	handler Node
 19275  }
 19276  
 19277  func (p *nodeProcessorGetWriteNewSeriesAsync) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 19278  	args := NodeGetWriteNewSeriesAsyncArgs{}
 19279  	if err = args.Read(iprot); err != nil {
 19280  		iprot.ReadMessageEnd()
 19281  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 19282  		oprot.WriteMessageBegin("getWriteNewSeriesAsync", thrift.EXCEPTION, seqId)
 19283  		x.Write(oprot)
 19284  		oprot.WriteMessageEnd()
 19285  		oprot.Flush()
 19286  		return false, err
 19287  	}
 19288  
 19289  	iprot.ReadMessageEnd()
 19290  	result := NodeGetWriteNewSeriesAsyncResult{}
 19291  	var retval *NodeWriteNewSeriesAsyncResult_
 19292  	var err2 error
 19293  	if retval, err2 = p.handler.GetWriteNewSeriesAsync(); err2 != nil {
 19294  		switch v := err2.(type) {
 19295  		case *Error:
 19296  			result.Err = v
 19297  		default:
 19298  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing getWriteNewSeriesAsync: "+err2.Error())
 19299  			oprot.WriteMessageBegin("getWriteNewSeriesAsync", thrift.EXCEPTION, seqId)
 19300  			x.Write(oprot)
 19301  			oprot.WriteMessageEnd()
 19302  			oprot.Flush()
 19303  			return true, err2
 19304  		}
 19305  	} else {
 19306  		result.Success = retval
 19307  	}
 19308  	if err2 = oprot.WriteMessageBegin("getWriteNewSeriesAsync", thrift.REPLY, seqId); err2 != nil {
 19309  		err = err2
 19310  	}
 19311  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 19312  		err = err2
 19313  	}
 19314  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 19315  		err = err2
 19316  	}
 19317  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 19318  		err = err2
 19319  	}
 19320  	if err != nil {
 19321  		return
 19322  	}
 19323  	return true, err
 19324  }
 19325  
 19326  type nodeProcessorSetWriteNewSeriesAsync struct {
 19327  	handler Node
 19328  }
 19329  
 19330  func (p *nodeProcessorSetWriteNewSeriesAsync) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 19331  	args := NodeSetWriteNewSeriesAsyncArgs{}
 19332  	if err = args.Read(iprot); err != nil {
 19333  		iprot.ReadMessageEnd()
 19334  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 19335  		oprot.WriteMessageBegin("setWriteNewSeriesAsync", thrift.EXCEPTION, seqId)
 19336  		x.Write(oprot)
 19337  		oprot.WriteMessageEnd()
 19338  		oprot.Flush()
 19339  		return false, err
 19340  	}
 19341  
 19342  	iprot.ReadMessageEnd()
 19343  	result := NodeSetWriteNewSeriesAsyncResult{}
 19344  	var retval *NodeWriteNewSeriesAsyncResult_
 19345  	var err2 error
 19346  	if retval, err2 = p.handler.SetWriteNewSeriesAsync(args.Req); err2 != nil {
 19347  		switch v := err2.(type) {
 19348  		case *Error:
 19349  			result.Err = v
 19350  		default:
 19351  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing setWriteNewSeriesAsync: "+err2.Error())
 19352  			oprot.WriteMessageBegin("setWriteNewSeriesAsync", thrift.EXCEPTION, seqId)
 19353  			x.Write(oprot)
 19354  			oprot.WriteMessageEnd()
 19355  			oprot.Flush()
 19356  			return true, err2
 19357  		}
 19358  	} else {
 19359  		result.Success = retval
 19360  	}
 19361  	if err2 = oprot.WriteMessageBegin("setWriteNewSeriesAsync", thrift.REPLY, seqId); err2 != nil {
 19362  		err = err2
 19363  	}
 19364  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 19365  		err = err2
 19366  	}
 19367  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 19368  		err = err2
 19369  	}
 19370  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 19371  		err = err2
 19372  	}
 19373  	if err != nil {
 19374  		return
 19375  	}
 19376  	return true, err
 19377  }
 19378  
 19379  type nodeProcessorGetWriteNewSeriesBackoffDuration struct {
 19380  	handler Node
 19381  }
 19382  
 19383  func (p *nodeProcessorGetWriteNewSeriesBackoffDuration) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 19384  	args := NodeGetWriteNewSeriesBackoffDurationArgs{}
 19385  	if err = args.Read(iprot); err != nil {
 19386  		iprot.ReadMessageEnd()
 19387  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 19388  		oprot.WriteMessageBegin("getWriteNewSeriesBackoffDuration", thrift.EXCEPTION, seqId)
 19389  		x.Write(oprot)
 19390  		oprot.WriteMessageEnd()
 19391  		oprot.Flush()
 19392  		return false, err
 19393  	}
 19394  
 19395  	iprot.ReadMessageEnd()
 19396  	result := NodeGetWriteNewSeriesBackoffDurationResult{}
 19397  	var retval *NodeWriteNewSeriesBackoffDurationResult_
 19398  	var err2 error
 19399  	if retval, err2 = p.handler.GetWriteNewSeriesBackoffDuration(); err2 != nil {
 19400  		switch v := err2.(type) {
 19401  		case *Error:
 19402  			result.Err = v
 19403  		default:
 19404  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing getWriteNewSeriesBackoffDuration: "+err2.Error())
 19405  			oprot.WriteMessageBegin("getWriteNewSeriesBackoffDuration", thrift.EXCEPTION, seqId)
 19406  			x.Write(oprot)
 19407  			oprot.WriteMessageEnd()
 19408  			oprot.Flush()
 19409  			return true, err2
 19410  		}
 19411  	} else {
 19412  		result.Success = retval
 19413  	}
 19414  	if err2 = oprot.WriteMessageBegin("getWriteNewSeriesBackoffDuration", thrift.REPLY, seqId); err2 != nil {
 19415  		err = err2
 19416  	}
 19417  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 19418  		err = err2
 19419  	}
 19420  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 19421  		err = err2
 19422  	}
 19423  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 19424  		err = err2
 19425  	}
 19426  	if err != nil {
 19427  		return
 19428  	}
 19429  	return true, err
 19430  }
 19431  
 19432  type nodeProcessorSetWriteNewSeriesBackoffDuration struct {
 19433  	handler Node
 19434  }
 19435  
 19436  func (p *nodeProcessorSetWriteNewSeriesBackoffDuration) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 19437  	args := NodeSetWriteNewSeriesBackoffDurationArgs{}
 19438  	if err = args.Read(iprot); err != nil {
 19439  		iprot.ReadMessageEnd()
 19440  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 19441  		oprot.WriteMessageBegin("setWriteNewSeriesBackoffDuration", thrift.EXCEPTION, seqId)
 19442  		x.Write(oprot)
 19443  		oprot.WriteMessageEnd()
 19444  		oprot.Flush()
 19445  		return false, err
 19446  	}
 19447  
 19448  	iprot.ReadMessageEnd()
 19449  	result := NodeSetWriteNewSeriesBackoffDurationResult{}
 19450  	var retval *NodeWriteNewSeriesBackoffDurationResult_
 19451  	var err2 error
 19452  	if retval, err2 = p.handler.SetWriteNewSeriesBackoffDuration(args.Req); err2 != nil {
 19453  		switch v := err2.(type) {
 19454  		case *Error:
 19455  			result.Err = v
 19456  		default:
 19457  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing setWriteNewSeriesBackoffDuration: "+err2.Error())
 19458  			oprot.WriteMessageBegin("setWriteNewSeriesBackoffDuration", thrift.EXCEPTION, seqId)
 19459  			x.Write(oprot)
 19460  			oprot.WriteMessageEnd()
 19461  			oprot.Flush()
 19462  			return true, err2
 19463  		}
 19464  	} else {
 19465  		result.Success = retval
 19466  	}
 19467  	if err2 = oprot.WriteMessageBegin("setWriteNewSeriesBackoffDuration", thrift.REPLY, seqId); err2 != nil {
 19468  		err = err2
 19469  	}
 19470  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 19471  		err = err2
 19472  	}
 19473  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 19474  		err = err2
 19475  	}
 19476  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 19477  		err = err2
 19478  	}
 19479  	if err != nil {
 19480  		return
 19481  	}
 19482  	return true, err
 19483  }
 19484  
 19485  type nodeProcessorGetWriteNewSeriesLimitPerShardPerSecond struct {
 19486  	handler Node
 19487  }
 19488  
 19489  func (p *nodeProcessorGetWriteNewSeriesLimitPerShardPerSecond) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 19490  	args := NodeGetWriteNewSeriesLimitPerShardPerSecondArgs{}
 19491  	if err = args.Read(iprot); err != nil {
 19492  		iprot.ReadMessageEnd()
 19493  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 19494  		oprot.WriteMessageBegin("getWriteNewSeriesLimitPerShardPerSecond", thrift.EXCEPTION, seqId)
 19495  		x.Write(oprot)
 19496  		oprot.WriteMessageEnd()
 19497  		oprot.Flush()
 19498  		return false, err
 19499  	}
 19500  
 19501  	iprot.ReadMessageEnd()
 19502  	result := NodeGetWriteNewSeriesLimitPerShardPerSecondResult{}
 19503  	var retval *NodeWriteNewSeriesLimitPerShardPerSecondResult_
 19504  	var err2 error
 19505  	if retval, err2 = p.handler.GetWriteNewSeriesLimitPerShardPerSecond(); err2 != nil {
 19506  		switch v := err2.(type) {
 19507  		case *Error:
 19508  			result.Err = v
 19509  		default:
 19510  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing getWriteNewSeriesLimitPerShardPerSecond: "+err2.Error())
 19511  			oprot.WriteMessageBegin("getWriteNewSeriesLimitPerShardPerSecond", thrift.EXCEPTION, seqId)
 19512  			x.Write(oprot)
 19513  			oprot.WriteMessageEnd()
 19514  			oprot.Flush()
 19515  			return true, err2
 19516  		}
 19517  	} else {
 19518  		result.Success = retval
 19519  	}
 19520  	if err2 = oprot.WriteMessageBegin("getWriteNewSeriesLimitPerShardPerSecond", thrift.REPLY, seqId); err2 != nil {
 19521  		err = err2
 19522  	}
 19523  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 19524  		err = err2
 19525  	}
 19526  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 19527  		err = err2
 19528  	}
 19529  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 19530  		err = err2
 19531  	}
 19532  	if err != nil {
 19533  		return
 19534  	}
 19535  	return true, err
 19536  }
 19537  
 19538  type nodeProcessorSetWriteNewSeriesLimitPerShardPerSecond struct {
 19539  	handler Node
 19540  }
 19541  
 19542  func (p *nodeProcessorSetWriteNewSeriesLimitPerShardPerSecond) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 19543  	args := NodeSetWriteNewSeriesLimitPerShardPerSecondArgs{}
 19544  	if err = args.Read(iprot); err != nil {
 19545  		iprot.ReadMessageEnd()
 19546  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 19547  		oprot.WriteMessageBegin("setWriteNewSeriesLimitPerShardPerSecond", thrift.EXCEPTION, seqId)
 19548  		x.Write(oprot)
 19549  		oprot.WriteMessageEnd()
 19550  		oprot.Flush()
 19551  		return false, err
 19552  	}
 19553  
 19554  	iprot.ReadMessageEnd()
 19555  	result := NodeSetWriteNewSeriesLimitPerShardPerSecondResult{}
 19556  	var retval *NodeWriteNewSeriesLimitPerShardPerSecondResult_
 19557  	var err2 error
 19558  	if retval, err2 = p.handler.SetWriteNewSeriesLimitPerShardPerSecond(args.Req); err2 != nil {
 19559  		switch v := err2.(type) {
 19560  		case *Error:
 19561  			result.Err = v
 19562  		default:
 19563  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing setWriteNewSeriesLimitPerShardPerSecond: "+err2.Error())
 19564  			oprot.WriteMessageBegin("setWriteNewSeriesLimitPerShardPerSecond", thrift.EXCEPTION, seqId)
 19565  			x.Write(oprot)
 19566  			oprot.WriteMessageEnd()
 19567  			oprot.Flush()
 19568  			return true, err2
 19569  		}
 19570  	} else {
 19571  		result.Success = retval
 19572  	}
 19573  	if err2 = oprot.WriteMessageBegin("setWriteNewSeriesLimitPerShardPerSecond", thrift.REPLY, seqId); err2 != nil {
 19574  		err = err2
 19575  	}
 19576  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 19577  		err = err2
 19578  	}
 19579  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 19580  		err = err2
 19581  	}
 19582  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 19583  		err = err2
 19584  	}
 19585  	if err != nil {
 19586  		return
 19587  	}
 19588  	return true, err
 19589  }
 19590  
 19591  type nodeProcessorDebugProfileStart struct {
 19592  	handler Node
 19593  }
 19594  
 19595  func (p *nodeProcessorDebugProfileStart) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 19596  	args := NodeDebugProfileStartArgs{}
 19597  	if err = args.Read(iprot); err != nil {
 19598  		iprot.ReadMessageEnd()
 19599  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 19600  		oprot.WriteMessageBegin("debugProfileStart", thrift.EXCEPTION, seqId)
 19601  		x.Write(oprot)
 19602  		oprot.WriteMessageEnd()
 19603  		oprot.Flush()
 19604  		return false, err
 19605  	}
 19606  
 19607  	iprot.ReadMessageEnd()
 19608  	result := NodeDebugProfileStartResult{}
 19609  	var retval *DebugProfileStartResult_
 19610  	var err2 error
 19611  	if retval, err2 = p.handler.DebugProfileStart(args.Req); err2 != nil {
 19612  		switch v := err2.(type) {
 19613  		case *Error:
 19614  			result.Err = v
 19615  		default:
 19616  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing debugProfileStart: "+err2.Error())
 19617  			oprot.WriteMessageBegin("debugProfileStart", thrift.EXCEPTION, seqId)
 19618  			x.Write(oprot)
 19619  			oprot.WriteMessageEnd()
 19620  			oprot.Flush()
 19621  			return true, err2
 19622  		}
 19623  	} else {
 19624  		result.Success = retval
 19625  	}
 19626  	if err2 = oprot.WriteMessageBegin("debugProfileStart", thrift.REPLY, seqId); err2 != nil {
 19627  		err = err2
 19628  	}
 19629  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 19630  		err = err2
 19631  	}
 19632  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 19633  		err = err2
 19634  	}
 19635  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 19636  		err = err2
 19637  	}
 19638  	if err != nil {
 19639  		return
 19640  	}
 19641  	return true, err
 19642  }
 19643  
 19644  type nodeProcessorDebugProfileStop struct {
 19645  	handler Node
 19646  }
 19647  
 19648  func (p *nodeProcessorDebugProfileStop) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 19649  	args := NodeDebugProfileStopArgs{}
 19650  	if err = args.Read(iprot); err != nil {
 19651  		iprot.ReadMessageEnd()
 19652  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 19653  		oprot.WriteMessageBegin("debugProfileStop", thrift.EXCEPTION, seqId)
 19654  		x.Write(oprot)
 19655  		oprot.WriteMessageEnd()
 19656  		oprot.Flush()
 19657  		return false, err
 19658  	}
 19659  
 19660  	iprot.ReadMessageEnd()
 19661  	result := NodeDebugProfileStopResult{}
 19662  	var retval *DebugProfileStopResult_
 19663  	var err2 error
 19664  	if retval, err2 = p.handler.DebugProfileStop(args.Req); err2 != nil {
 19665  		switch v := err2.(type) {
 19666  		case *Error:
 19667  			result.Err = v
 19668  		default:
 19669  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing debugProfileStop: "+err2.Error())
 19670  			oprot.WriteMessageBegin("debugProfileStop", thrift.EXCEPTION, seqId)
 19671  			x.Write(oprot)
 19672  			oprot.WriteMessageEnd()
 19673  			oprot.Flush()
 19674  			return true, err2
 19675  		}
 19676  	} else {
 19677  		result.Success = retval
 19678  	}
 19679  	if err2 = oprot.WriteMessageBegin("debugProfileStop", thrift.REPLY, seqId); err2 != nil {
 19680  		err = err2
 19681  	}
 19682  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 19683  		err = err2
 19684  	}
 19685  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 19686  		err = err2
 19687  	}
 19688  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 19689  		err = err2
 19690  	}
 19691  	if err != nil {
 19692  		return
 19693  	}
 19694  	return true, err
 19695  }
 19696  
 19697  type nodeProcessorDebugIndexMemorySegments struct {
 19698  	handler Node
 19699  }
 19700  
 19701  func (p *nodeProcessorDebugIndexMemorySegments) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 19702  	args := NodeDebugIndexMemorySegmentsArgs{}
 19703  	if err = args.Read(iprot); err != nil {
 19704  		iprot.ReadMessageEnd()
 19705  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 19706  		oprot.WriteMessageBegin("debugIndexMemorySegments", thrift.EXCEPTION, seqId)
 19707  		x.Write(oprot)
 19708  		oprot.WriteMessageEnd()
 19709  		oprot.Flush()
 19710  		return false, err
 19711  	}
 19712  
 19713  	iprot.ReadMessageEnd()
 19714  	result := NodeDebugIndexMemorySegmentsResult{}
 19715  	var retval *DebugIndexMemorySegmentsResult_
 19716  	var err2 error
 19717  	if retval, err2 = p.handler.DebugIndexMemorySegments(args.Req); err2 != nil {
 19718  		switch v := err2.(type) {
 19719  		case *Error:
 19720  			result.Err = v
 19721  		default:
 19722  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing debugIndexMemorySegments: "+err2.Error())
 19723  			oprot.WriteMessageBegin("debugIndexMemorySegments", thrift.EXCEPTION, seqId)
 19724  			x.Write(oprot)
 19725  			oprot.WriteMessageEnd()
 19726  			oprot.Flush()
 19727  			return true, err2
 19728  		}
 19729  	} else {
 19730  		result.Success = retval
 19731  	}
 19732  	if err2 = oprot.WriteMessageBegin("debugIndexMemorySegments", thrift.REPLY, seqId); err2 != nil {
 19733  		err = err2
 19734  	}
 19735  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 19736  		err = err2
 19737  	}
 19738  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 19739  		err = err2
 19740  	}
 19741  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 19742  		err = err2
 19743  	}
 19744  	if err != nil {
 19745  		return
 19746  	}
 19747  	return true, err
 19748  }
 19749  
 19750  // HELPER FUNCTIONS AND STRUCTURES
 19751  
 19752  // Attributes:
 19753  //  - Req
 19754  type NodeQueryArgs struct {
 19755  	Req *QueryRequest `thrift:"req,1" db:"req" json:"req"`
 19756  }
 19757  
 19758  func NewNodeQueryArgs() *NodeQueryArgs {
 19759  	return &NodeQueryArgs{}
 19760  }
 19761  
 19762  var NodeQueryArgs_Req_DEFAULT *QueryRequest
 19763  
 19764  func (p *NodeQueryArgs) GetReq() *QueryRequest {
 19765  	if !p.IsSetReq() {
 19766  		return NodeQueryArgs_Req_DEFAULT
 19767  	}
 19768  	return p.Req
 19769  }
 19770  func (p *NodeQueryArgs) IsSetReq() bool {
 19771  	return p.Req != nil
 19772  }
 19773  
 19774  func (p *NodeQueryArgs) Read(iprot thrift.TProtocol) error {
 19775  	if _, err := iprot.ReadStructBegin(); err != nil {
 19776  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 19777  	}
 19778  
 19779  	for {
 19780  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 19781  		if err != nil {
 19782  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 19783  		}
 19784  		if fieldTypeId == thrift.STOP {
 19785  			break
 19786  		}
 19787  		switch fieldId {
 19788  		case 1:
 19789  			if err := p.ReadField1(iprot); err != nil {
 19790  				return err
 19791  			}
 19792  		default:
 19793  			if err := iprot.Skip(fieldTypeId); err != nil {
 19794  				return err
 19795  			}
 19796  		}
 19797  		if err := iprot.ReadFieldEnd(); err != nil {
 19798  			return err
 19799  		}
 19800  	}
 19801  	if err := iprot.ReadStructEnd(); err != nil {
 19802  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 19803  	}
 19804  	return nil
 19805  }
 19806  
 19807  func (p *NodeQueryArgs) ReadField1(iprot thrift.TProtocol) error {
 19808  	p.Req = &QueryRequest{
 19809  		RangeType: 0,
 19810  
 19811  		ResultTimeType: 0,
 19812  	}
 19813  	if err := p.Req.Read(iprot); err != nil {
 19814  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 19815  	}
 19816  	return nil
 19817  }
 19818  
 19819  func (p *NodeQueryArgs) Write(oprot thrift.TProtocol) error {
 19820  	if err := oprot.WriteStructBegin("query_args"); err != nil {
 19821  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 19822  	}
 19823  	if p != nil {
 19824  		if err := p.writeField1(oprot); err != nil {
 19825  			return err
 19826  		}
 19827  	}
 19828  	if err := oprot.WriteFieldStop(); err != nil {
 19829  		return thrift.PrependError("write field stop error: ", err)
 19830  	}
 19831  	if err := oprot.WriteStructEnd(); err != nil {
 19832  		return thrift.PrependError("write struct stop error: ", err)
 19833  	}
 19834  	return nil
 19835  }
 19836  
 19837  func (p *NodeQueryArgs) writeField1(oprot thrift.TProtocol) (err error) {
 19838  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 19839  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 19840  	}
 19841  	if err := p.Req.Write(oprot); err != nil {
 19842  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 19843  	}
 19844  	if err := oprot.WriteFieldEnd(); err != nil {
 19845  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 19846  	}
 19847  	return err
 19848  }
 19849  
 19850  func (p *NodeQueryArgs) String() string {
 19851  	if p == nil {
 19852  		return "<nil>"
 19853  	}
 19854  	return fmt.Sprintf("NodeQueryArgs(%+v)", *p)
 19855  }
 19856  
 19857  // Attributes:
 19858  //  - Success
 19859  //  - Err
 19860  type NodeQueryResult struct {
 19861  	Success *QueryResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 19862  	Err     *Error        `thrift:"err,1" db:"err" json:"err,omitempty"`
 19863  }
 19864  
 19865  func NewNodeQueryResult() *NodeQueryResult {
 19866  	return &NodeQueryResult{}
 19867  }
 19868  
 19869  var NodeQueryResult_Success_DEFAULT *QueryResult_
 19870  
 19871  func (p *NodeQueryResult) GetSuccess() *QueryResult_ {
 19872  	if !p.IsSetSuccess() {
 19873  		return NodeQueryResult_Success_DEFAULT
 19874  	}
 19875  	return p.Success
 19876  }
 19877  
 19878  var NodeQueryResult_Err_DEFAULT *Error
 19879  
 19880  func (p *NodeQueryResult) GetErr() *Error {
 19881  	if !p.IsSetErr() {
 19882  		return NodeQueryResult_Err_DEFAULT
 19883  	}
 19884  	return p.Err
 19885  }
 19886  func (p *NodeQueryResult) IsSetSuccess() bool {
 19887  	return p.Success != nil
 19888  }
 19889  
 19890  func (p *NodeQueryResult) IsSetErr() bool {
 19891  	return p.Err != nil
 19892  }
 19893  
 19894  func (p *NodeQueryResult) Read(iprot thrift.TProtocol) error {
 19895  	if _, err := iprot.ReadStructBegin(); err != nil {
 19896  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 19897  	}
 19898  
 19899  	for {
 19900  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 19901  		if err != nil {
 19902  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 19903  		}
 19904  		if fieldTypeId == thrift.STOP {
 19905  			break
 19906  		}
 19907  		switch fieldId {
 19908  		case 0:
 19909  			if err := p.ReadField0(iprot); err != nil {
 19910  				return err
 19911  			}
 19912  		case 1:
 19913  			if err := p.ReadField1(iprot); err != nil {
 19914  				return err
 19915  			}
 19916  		default:
 19917  			if err := iprot.Skip(fieldTypeId); err != nil {
 19918  				return err
 19919  			}
 19920  		}
 19921  		if err := iprot.ReadFieldEnd(); err != nil {
 19922  			return err
 19923  		}
 19924  	}
 19925  	if err := iprot.ReadStructEnd(); err != nil {
 19926  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 19927  	}
 19928  	return nil
 19929  }
 19930  
 19931  func (p *NodeQueryResult) ReadField0(iprot thrift.TProtocol) error {
 19932  	p.Success = &QueryResult_{}
 19933  	if err := p.Success.Read(iprot); err != nil {
 19934  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 19935  	}
 19936  	return nil
 19937  }
 19938  
 19939  func (p *NodeQueryResult) ReadField1(iprot thrift.TProtocol) error {
 19940  	p.Err = &Error{
 19941  		Type: 0,
 19942  	}
 19943  	if err := p.Err.Read(iprot); err != nil {
 19944  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 19945  	}
 19946  	return nil
 19947  }
 19948  
 19949  func (p *NodeQueryResult) Write(oprot thrift.TProtocol) error {
 19950  	if err := oprot.WriteStructBegin("query_result"); err != nil {
 19951  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 19952  	}
 19953  	if p != nil {
 19954  		if err := p.writeField0(oprot); err != nil {
 19955  			return err
 19956  		}
 19957  		if err := p.writeField1(oprot); err != nil {
 19958  			return err
 19959  		}
 19960  	}
 19961  	if err := oprot.WriteFieldStop(); err != nil {
 19962  		return thrift.PrependError("write field stop error: ", err)
 19963  	}
 19964  	if err := oprot.WriteStructEnd(); err != nil {
 19965  		return thrift.PrependError("write struct stop error: ", err)
 19966  	}
 19967  	return nil
 19968  }
 19969  
 19970  func (p *NodeQueryResult) writeField0(oprot thrift.TProtocol) (err error) {
 19971  	if p.IsSetSuccess() {
 19972  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 19973  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 19974  		}
 19975  		if err := p.Success.Write(oprot); err != nil {
 19976  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 19977  		}
 19978  		if err := oprot.WriteFieldEnd(); err != nil {
 19979  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 19980  		}
 19981  	}
 19982  	return err
 19983  }
 19984  
 19985  func (p *NodeQueryResult) writeField1(oprot thrift.TProtocol) (err error) {
 19986  	if p.IsSetErr() {
 19987  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 19988  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 19989  		}
 19990  		if err := p.Err.Write(oprot); err != nil {
 19991  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 19992  		}
 19993  		if err := oprot.WriteFieldEnd(); err != nil {
 19994  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 19995  		}
 19996  	}
 19997  	return err
 19998  }
 19999  
 20000  func (p *NodeQueryResult) String() string {
 20001  	if p == nil {
 20002  		return "<nil>"
 20003  	}
 20004  	return fmt.Sprintf("NodeQueryResult(%+v)", *p)
 20005  }
 20006  
 20007  // Attributes:
 20008  //  - Req
 20009  type NodeAggregateArgs struct {
 20010  	Req *AggregateQueryRequest `thrift:"req,1" db:"req" json:"req"`
 20011  }
 20012  
 20013  func NewNodeAggregateArgs() *NodeAggregateArgs {
 20014  	return &NodeAggregateArgs{}
 20015  }
 20016  
 20017  var NodeAggregateArgs_Req_DEFAULT *AggregateQueryRequest
 20018  
 20019  func (p *NodeAggregateArgs) GetReq() *AggregateQueryRequest {
 20020  	if !p.IsSetReq() {
 20021  		return NodeAggregateArgs_Req_DEFAULT
 20022  	}
 20023  	return p.Req
 20024  }
 20025  func (p *NodeAggregateArgs) IsSetReq() bool {
 20026  	return p.Req != nil
 20027  }
 20028  
 20029  func (p *NodeAggregateArgs) Read(iprot thrift.TProtocol) error {
 20030  	if _, err := iprot.ReadStructBegin(); err != nil {
 20031  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 20032  	}
 20033  
 20034  	for {
 20035  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 20036  		if err != nil {
 20037  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 20038  		}
 20039  		if fieldTypeId == thrift.STOP {
 20040  			break
 20041  		}
 20042  		switch fieldId {
 20043  		case 1:
 20044  			if err := p.ReadField1(iprot); err != nil {
 20045  				return err
 20046  			}
 20047  		default:
 20048  			if err := iprot.Skip(fieldTypeId); err != nil {
 20049  				return err
 20050  			}
 20051  		}
 20052  		if err := iprot.ReadFieldEnd(); err != nil {
 20053  			return err
 20054  		}
 20055  	}
 20056  	if err := iprot.ReadStructEnd(); err != nil {
 20057  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 20058  	}
 20059  	return nil
 20060  }
 20061  
 20062  func (p *NodeAggregateArgs) ReadField1(iprot thrift.TProtocol) error {
 20063  	p.Req = &AggregateQueryRequest{
 20064  		AggregateQueryType: 1,
 20065  
 20066  		RangeType: 0,
 20067  	}
 20068  	if err := p.Req.Read(iprot); err != nil {
 20069  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 20070  	}
 20071  	return nil
 20072  }
 20073  
 20074  func (p *NodeAggregateArgs) Write(oprot thrift.TProtocol) error {
 20075  	if err := oprot.WriteStructBegin("aggregate_args"); err != nil {
 20076  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 20077  	}
 20078  	if p != nil {
 20079  		if err := p.writeField1(oprot); err != nil {
 20080  			return err
 20081  		}
 20082  	}
 20083  	if err := oprot.WriteFieldStop(); err != nil {
 20084  		return thrift.PrependError("write field stop error: ", err)
 20085  	}
 20086  	if err := oprot.WriteStructEnd(); err != nil {
 20087  		return thrift.PrependError("write struct stop error: ", err)
 20088  	}
 20089  	return nil
 20090  }
 20091  
 20092  func (p *NodeAggregateArgs) writeField1(oprot thrift.TProtocol) (err error) {
 20093  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 20094  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 20095  	}
 20096  	if err := p.Req.Write(oprot); err != nil {
 20097  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 20098  	}
 20099  	if err := oprot.WriteFieldEnd(); err != nil {
 20100  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 20101  	}
 20102  	return err
 20103  }
 20104  
 20105  func (p *NodeAggregateArgs) String() string {
 20106  	if p == nil {
 20107  		return "<nil>"
 20108  	}
 20109  	return fmt.Sprintf("NodeAggregateArgs(%+v)", *p)
 20110  }
 20111  
 20112  // Attributes:
 20113  //  - Success
 20114  //  - Err
 20115  type NodeAggregateResult struct {
 20116  	Success *AggregateQueryResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 20117  	Err     *Error                 `thrift:"err,1" db:"err" json:"err,omitempty"`
 20118  }
 20119  
 20120  func NewNodeAggregateResult() *NodeAggregateResult {
 20121  	return &NodeAggregateResult{}
 20122  }
 20123  
 20124  var NodeAggregateResult_Success_DEFAULT *AggregateQueryResult_
 20125  
 20126  func (p *NodeAggregateResult) GetSuccess() *AggregateQueryResult_ {
 20127  	if !p.IsSetSuccess() {
 20128  		return NodeAggregateResult_Success_DEFAULT
 20129  	}
 20130  	return p.Success
 20131  }
 20132  
 20133  var NodeAggregateResult_Err_DEFAULT *Error
 20134  
 20135  func (p *NodeAggregateResult) GetErr() *Error {
 20136  	if !p.IsSetErr() {
 20137  		return NodeAggregateResult_Err_DEFAULT
 20138  	}
 20139  	return p.Err
 20140  }
 20141  func (p *NodeAggregateResult) IsSetSuccess() bool {
 20142  	return p.Success != nil
 20143  }
 20144  
 20145  func (p *NodeAggregateResult) IsSetErr() bool {
 20146  	return p.Err != nil
 20147  }
 20148  
 20149  func (p *NodeAggregateResult) Read(iprot thrift.TProtocol) error {
 20150  	if _, err := iprot.ReadStructBegin(); err != nil {
 20151  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 20152  	}
 20153  
 20154  	for {
 20155  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 20156  		if err != nil {
 20157  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 20158  		}
 20159  		if fieldTypeId == thrift.STOP {
 20160  			break
 20161  		}
 20162  		switch fieldId {
 20163  		case 0:
 20164  			if err := p.ReadField0(iprot); err != nil {
 20165  				return err
 20166  			}
 20167  		case 1:
 20168  			if err := p.ReadField1(iprot); err != nil {
 20169  				return err
 20170  			}
 20171  		default:
 20172  			if err := iprot.Skip(fieldTypeId); err != nil {
 20173  				return err
 20174  			}
 20175  		}
 20176  		if err := iprot.ReadFieldEnd(); err != nil {
 20177  			return err
 20178  		}
 20179  	}
 20180  	if err := iprot.ReadStructEnd(); err != nil {
 20181  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 20182  	}
 20183  	return nil
 20184  }
 20185  
 20186  func (p *NodeAggregateResult) ReadField0(iprot thrift.TProtocol) error {
 20187  	p.Success = &AggregateQueryResult_{}
 20188  	if err := p.Success.Read(iprot); err != nil {
 20189  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 20190  	}
 20191  	return nil
 20192  }
 20193  
 20194  func (p *NodeAggregateResult) ReadField1(iprot thrift.TProtocol) error {
 20195  	p.Err = &Error{
 20196  		Type: 0,
 20197  	}
 20198  	if err := p.Err.Read(iprot); err != nil {
 20199  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 20200  	}
 20201  	return nil
 20202  }
 20203  
 20204  func (p *NodeAggregateResult) Write(oprot thrift.TProtocol) error {
 20205  	if err := oprot.WriteStructBegin("aggregate_result"); err != nil {
 20206  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 20207  	}
 20208  	if p != nil {
 20209  		if err := p.writeField0(oprot); err != nil {
 20210  			return err
 20211  		}
 20212  		if err := p.writeField1(oprot); err != nil {
 20213  			return err
 20214  		}
 20215  	}
 20216  	if err := oprot.WriteFieldStop(); err != nil {
 20217  		return thrift.PrependError("write field stop error: ", err)
 20218  	}
 20219  	if err := oprot.WriteStructEnd(); err != nil {
 20220  		return thrift.PrependError("write struct stop error: ", err)
 20221  	}
 20222  	return nil
 20223  }
 20224  
 20225  func (p *NodeAggregateResult) writeField0(oprot thrift.TProtocol) (err error) {
 20226  	if p.IsSetSuccess() {
 20227  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 20228  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 20229  		}
 20230  		if err := p.Success.Write(oprot); err != nil {
 20231  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 20232  		}
 20233  		if err := oprot.WriteFieldEnd(); err != nil {
 20234  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 20235  		}
 20236  	}
 20237  	return err
 20238  }
 20239  
 20240  func (p *NodeAggregateResult) writeField1(oprot thrift.TProtocol) (err error) {
 20241  	if p.IsSetErr() {
 20242  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 20243  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 20244  		}
 20245  		if err := p.Err.Write(oprot); err != nil {
 20246  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 20247  		}
 20248  		if err := oprot.WriteFieldEnd(); err != nil {
 20249  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 20250  		}
 20251  	}
 20252  	return err
 20253  }
 20254  
 20255  func (p *NodeAggregateResult) String() string {
 20256  	if p == nil {
 20257  		return "<nil>"
 20258  	}
 20259  	return fmt.Sprintf("NodeAggregateResult(%+v)", *p)
 20260  }
 20261  
 20262  // Attributes:
 20263  //  - Req
 20264  type NodeFetchArgs struct {
 20265  	Req *FetchRequest `thrift:"req,1" db:"req" json:"req"`
 20266  }
 20267  
 20268  func NewNodeFetchArgs() *NodeFetchArgs {
 20269  	return &NodeFetchArgs{}
 20270  }
 20271  
 20272  var NodeFetchArgs_Req_DEFAULT *FetchRequest
 20273  
 20274  func (p *NodeFetchArgs) GetReq() *FetchRequest {
 20275  	if !p.IsSetReq() {
 20276  		return NodeFetchArgs_Req_DEFAULT
 20277  	}
 20278  	return p.Req
 20279  }
 20280  func (p *NodeFetchArgs) IsSetReq() bool {
 20281  	return p.Req != nil
 20282  }
 20283  
 20284  func (p *NodeFetchArgs) Read(iprot thrift.TProtocol) error {
 20285  	if _, err := iprot.ReadStructBegin(); err != nil {
 20286  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 20287  	}
 20288  
 20289  	for {
 20290  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 20291  		if err != nil {
 20292  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 20293  		}
 20294  		if fieldTypeId == thrift.STOP {
 20295  			break
 20296  		}
 20297  		switch fieldId {
 20298  		case 1:
 20299  			if err := p.ReadField1(iprot); err != nil {
 20300  				return err
 20301  			}
 20302  		default:
 20303  			if err := iprot.Skip(fieldTypeId); err != nil {
 20304  				return err
 20305  			}
 20306  		}
 20307  		if err := iprot.ReadFieldEnd(); err != nil {
 20308  			return err
 20309  		}
 20310  	}
 20311  	if err := iprot.ReadStructEnd(); err != nil {
 20312  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 20313  	}
 20314  	return nil
 20315  }
 20316  
 20317  func (p *NodeFetchArgs) ReadField1(iprot thrift.TProtocol) error {
 20318  	p.Req = &FetchRequest{
 20319  		RangeType: 0,
 20320  
 20321  		ResultTimeType: 0,
 20322  	}
 20323  	if err := p.Req.Read(iprot); err != nil {
 20324  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 20325  	}
 20326  	return nil
 20327  }
 20328  
 20329  func (p *NodeFetchArgs) Write(oprot thrift.TProtocol) error {
 20330  	if err := oprot.WriteStructBegin("fetch_args"); err != nil {
 20331  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 20332  	}
 20333  	if p != nil {
 20334  		if err := p.writeField1(oprot); err != nil {
 20335  			return err
 20336  		}
 20337  	}
 20338  	if err := oprot.WriteFieldStop(); err != nil {
 20339  		return thrift.PrependError("write field stop error: ", err)
 20340  	}
 20341  	if err := oprot.WriteStructEnd(); err != nil {
 20342  		return thrift.PrependError("write struct stop error: ", err)
 20343  	}
 20344  	return nil
 20345  }
 20346  
 20347  func (p *NodeFetchArgs) writeField1(oprot thrift.TProtocol) (err error) {
 20348  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 20349  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 20350  	}
 20351  	if err := p.Req.Write(oprot); err != nil {
 20352  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 20353  	}
 20354  	if err := oprot.WriteFieldEnd(); err != nil {
 20355  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 20356  	}
 20357  	return err
 20358  }
 20359  
 20360  func (p *NodeFetchArgs) String() string {
 20361  	if p == nil {
 20362  		return "<nil>"
 20363  	}
 20364  	return fmt.Sprintf("NodeFetchArgs(%+v)", *p)
 20365  }
 20366  
 20367  // Attributes:
 20368  //  - Success
 20369  //  - Err
 20370  type NodeFetchResult struct {
 20371  	Success *FetchResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 20372  	Err     *Error        `thrift:"err,1" db:"err" json:"err,omitempty"`
 20373  }
 20374  
 20375  func NewNodeFetchResult() *NodeFetchResult {
 20376  	return &NodeFetchResult{}
 20377  }
 20378  
 20379  var NodeFetchResult_Success_DEFAULT *FetchResult_
 20380  
 20381  func (p *NodeFetchResult) GetSuccess() *FetchResult_ {
 20382  	if !p.IsSetSuccess() {
 20383  		return NodeFetchResult_Success_DEFAULT
 20384  	}
 20385  	return p.Success
 20386  }
 20387  
 20388  var NodeFetchResult_Err_DEFAULT *Error
 20389  
 20390  func (p *NodeFetchResult) GetErr() *Error {
 20391  	if !p.IsSetErr() {
 20392  		return NodeFetchResult_Err_DEFAULT
 20393  	}
 20394  	return p.Err
 20395  }
 20396  func (p *NodeFetchResult) IsSetSuccess() bool {
 20397  	return p.Success != nil
 20398  }
 20399  
 20400  func (p *NodeFetchResult) IsSetErr() bool {
 20401  	return p.Err != nil
 20402  }
 20403  
 20404  func (p *NodeFetchResult) Read(iprot thrift.TProtocol) error {
 20405  	if _, err := iprot.ReadStructBegin(); err != nil {
 20406  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 20407  	}
 20408  
 20409  	for {
 20410  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 20411  		if err != nil {
 20412  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 20413  		}
 20414  		if fieldTypeId == thrift.STOP {
 20415  			break
 20416  		}
 20417  		switch fieldId {
 20418  		case 0:
 20419  			if err := p.ReadField0(iprot); err != nil {
 20420  				return err
 20421  			}
 20422  		case 1:
 20423  			if err := p.ReadField1(iprot); err != nil {
 20424  				return err
 20425  			}
 20426  		default:
 20427  			if err := iprot.Skip(fieldTypeId); err != nil {
 20428  				return err
 20429  			}
 20430  		}
 20431  		if err := iprot.ReadFieldEnd(); err != nil {
 20432  			return err
 20433  		}
 20434  	}
 20435  	if err := iprot.ReadStructEnd(); err != nil {
 20436  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 20437  	}
 20438  	return nil
 20439  }
 20440  
 20441  func (p *NodeFetchResult) ReadField0(iprot thrift.TProtocol) error {
 20442  	p.Success = &FetchResult_{}
 20443  	if err := p.Success.Read(iprot); err != nil {
 20444  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 20445  	}
 20446  	return nil
 20447  }
 20448  
 20449  func (p *NodeFetchResult) ReadField1(iprot thrift.TProtocol) error {
 20450  	p.Err = &Error{
 20451  		Type: 0,
 20452  	}
 20453  	if err := p.Err.Read(iprot); err != nil {
 20454  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 20455  	}
 20456  	return nil
 20457  }
 20458  
 20459  func (p *NodeFetchResult) Write(oprot thrift.TProtocol) error {
 20460  	if err := oprot.WriteStructBegin("fetch_result"); err != nil {
 20461  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 20462  	}
 20463  	if p != nil {
 20464  		if err := p.writeField0(oprot); err != nil {
 20465  			return err
 20466  		}
 20467  		if err := p.writeField1(oprot); err != nil {
 20468  			return err
 20469  		}
 20470  	}
 20471  	if err := oprot.WriteFieldStop(); err != nil {
 20472  		return thrift.PrependError("write field stop error: ", err)
 20473  	}
 20474  	if err := oprot.WriteStructEnd(); err != nil {
 20475  		return thrift.PrependError("write struct stop error: ", err)
 20476  	}
 20477  	return nil
 20478  }
 20479  
 20480  func (p *NodeFetchResult) writeField0(oprot thrift.TProtocol) (err error) {
 20481  	if p.IsSetSuccess() {
 20482  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 20483  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 20484  		}
 20485  		if err := p.Success.Write(oprot); err != nil {
 20486  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 20487  		}
 20488  		if err := oprot.WriteFieldEnd(); err != nil {
 20489  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 20490  		}
 20491  	}
 20492  	return err
 20493  }
 20494  
 20495  func (p *NodeFetchResult) writeField1(oprot thrift.TProtocol) (err error) {
 20496  	if p.IsSetErr() {
 20497  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 20498  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 20499  		}
 20500  		if err := p.Err.Write(oprot); err != nil {
 20501  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 20502  		}
 20503  		if err := oprot.WriteFieldEnd(); err != nil {
 20504  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 20505  		}
 20506  	}
 20507  	return err
 20508  }
 20509  
 20510  func (p *NodeFetchResult) String() string {
 20511  	if p == nil {
 20512  		return "<nil>"
 20513  	}
 20514  	return fmt.Sprintf("NodeFetchResult(%+v)", *p)
 20515  }
 20516  
 20517  // Attributes:
 20518  //  - Req
 20519  type NodeWriteArgs struct {
 20520  	Req *WriteRequest `thrift:"req,1" db:"req" json:"req"`
 20521  }
 20522  
 20523  func NewNodeWriteArgs() *NodeWriteArgs {
 20524  	return &NodeWriteArgs{}
 20525  }
 20526  
 20527  var NodeWriteArgs_Req_DEFAULT *WriteRequest
 20528  
 20529  func (p *NodeWriteArgs) GetReq() *WriteRequest {
 20530  	if !p.IsSetReq() {
 20531  		return NodeWriteArgs_Req_DEFAULT
 20532  	}
 20533  	return p.Req
 20534  }
 20535  func (p *NodeWriteArgs) IsSetReq() bool {
 20536  	return p.Req != nil
 20537  }
 20538  
 20539  func (p *NodeWriteArgs) Read(iprot thrift.TProtocol) error {
 20540  	if _, err := iprot.ReadStructBegin(); err != nil {
 20541  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 20542  	}
 20543  
 20544  	for {
 20545  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 20546  		if err != nil {
 20547  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 20548  		}
 20549  		if fieldTypeId == thrift.STOP {
 20550  			break
 20551  		}
 20552  		switch fieldId {
 20553  		case 1:
 20554  			if err := p.ReadField1(iprot); err != nil {
 20555  				return err
 20556  			}
 20557  		default:
 20558  			if err := iprot.Skip(fieldTypeId); err != nil {
 20559  				return err
 20560  			}
 20561  		}
 20562  		if err := iprot.ReadFieldEnd(); err != nil {
 20563  			return err
 20564  		}
 20565  	}
 20566  	if err := iprot.ReadStructEnd(); err != nil {
 20567  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 20568  	}
 20569  	return nil
 20570  }
 20571  
 20572  func (p *NodeWriteArgs) ReadField1(iprot thrift.TProtocol) error {
 20573  	p.Req = &WriteRequest{}
 20574  	if err := p.Req.Read(iprot); err != nil {
 20575  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 20576  	}
 20577  	return nil
 20578  }
 20579  
 20580  func (p *NodeWriteArgs) Write(oprot thrift.TProtocol) error {
 20581  	if err := oprot.WriteStructBegin("write_args"); err != nil {
 20582  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 20583  	}
 20584  	if p != nil {
 20585  		if err := p.writeField1(oprot); err != nil {
 20586  			return err
 20587  		}
 20588  	}
 20589  	if err := oprot.WriteFieldStop(); err != nil {
 20590  		return thrift.PrependError("write field stop error: ", err)
 20591  	}
 20592  	if err := oprot.WriteStructEnd(); err != nil {
 20593  		return thrift.PrependError("write struct stop error: ", err)
 20594  	}
 20595  	return nil
 20596  }
 20597  
 20598  func (p *NodeWriteArgs) writeField1(oprot thrift.TProtocol) (err error) {
 20599  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 20600  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 20601  	}
 20602  	if err := p.Req.Write(oprot); err != nil {
 20603  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 20604  	}
 20605  	if err := oprot.WriteFieldEnd(); err != nil {
 20606  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 20607  	}
 20608  	return err
 20609  }
 20610  
 20611  func (p *NodeWriteArgs) String() string {
 20612  	if p == nil {
 20613  		return "<nil>"
 20614  	}
 20615  	return fmt.Sprintf("NodeWriteArgs(%+v)", *p)
 20616  }
 20617  
 20618  // Attributes:
 20619  //  - Err
 20620  type NodeWriteResult struct {
 20621  	Err *Error `thrift:"err,1" db:"err" json:"err,omitempty"`
 20622  }
 20623  
 20624  func NewNodeWriteResult() *NodeWriteResult {
 20625  	return &NodeWriteResult{}
 20626  }
 20627  
 20628  var NodeWriteResult_Err_DEFAULT *Error
 20629  
 20630  func (p *NodeWriteResult) GetErr() *Error {
 20631  	if !p.IsSetErr() {
 20632  		return NodeWriteResult_Err_DEFAULT
 20633  	}
 20634  	return p.Err
 20635  }
 20636  func (p *NodeWriteResult) IsSetErr() bool {
 20637  	return p.Err != nil
 20638  }
 20639  
 20640  func (p *NodeWriteResult) Read(iprot thrift.TProtocol) error {
 20641  	if _, err := iprot.ReadStructBegin(); err != nil {
 20642  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 20643  	}
 20644  
 20645  	for {
 20646  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 20647  		if err != nil {
 20648  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 20649  		}
 20650  		if fieldTypeId == thrift.STOP {
 20651  			break
 20652  		}
 20653  		switch fieldId {
 20654  		case 1:
 20655  			if err := p.ReadField1(iprot); err != nil {
 20656  				return err
 20657  			}
 20658  		default:
 20659  			if err := iprot.Skip(fieldTypeId); err != nil {
 20660  				return err
 20661  			}
 20662  		}
 20663  		if err := iprot.ReadFieldEnd(); err != nil {
 20664  			return err
 20665  		}
 20666  	}
 20667  	if err := iprot.ReadStructEnd(); err != nil {
 20668  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 20669  	}
 20670  	return nil
 20671  }
 20672  
 20673  func (p *NodeWriteResult) ReadField1(iprot thrift.TProtocol) error {
 20674  	p.Err = &Error{
 20675  		Type: 0,
 20676  	}
 20677  	if err := p.Err.Read(iprot); err != nil {
 20678  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 20679  	}
 20680  	return nil
 20681  }
 20682  
 20683  func (p *NodeWriteResult) Write(oprot thrift.TProtocol) error {
 20684  	if err := oprot.WriteStructBegin("write_result"); err != nil {
 20685  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 20686  	}
 20687  	if p != nil {
 20688  		if err := p.writeField1(oprot); err != nil {
 20689  			return err
 20690  		}
 20691  	}
 20692  	if err := oprot.WriteFieldStop(); err != nil {
 20693  		return thrift.PrependError("write field stop error: ", err)
 20694  	}
 20695  	if err := oprot.WriteStructEnd(); err != nil {
 20696  		return thrift.PrependError("write struct stop error: ", err)
 20697  	}
 20698  	return nil
 20699  }
 20700  
 20701  func (p *NodeWriteResult) writeField1(oprot thrift.TProtocol) (err error) {
 20702  	if p.IsSetErr() {
 20703  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 20704  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 20705  		}
 20706  		if err := p.Err.Write(oprot); err != nil {
 20707  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 20708  		}
 20709  		if err := oprot.WriteFieldEnd(); err != nil {
 20710  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 20711  		}
 20712  	}
 20713  	return err
 20714  }
 20715  
 20716  func (p *NodeWriteResult) String() string {
 20717  	if p == nil {
 20718  		return "<nil>"
 20719  	}
 20720  	return fmt.Sprintf("NodeWriteResult(%+v)", *p)
 20721  }
 20722  
 20723  // Attributes:
 20724  //  - Req
 20725  type NodeWriteTaggedArgs struct {
 20726  	Req *WriteTaggedRequest `thrift:"req,1" db:"req" json:"req"`
 20727  }
 20728  
 20729  func NewNodeWriteTaggedArgs() *NodeWriteTaggedArgs {
 20730  	return &NodeWriteTaggedArgs{}
 20731  }
 20732  
 20733  var NodeWriteTaggedArgs_Req_DEFAULT *WriteTaggedRequest
 20734  
 20735  func (p *NodeWriteTaggedArgs) GetReq() *WriteTaggedRequest {
 20736  	if !p.IsSetReq() {
 20737  		return NodeWriteTaggedArgs_Req_DEFAULT
 20738  	}
 20739  	return p.Req
 20740  }
 20741  func (p *NodeWriteTaggedArgs) IsSetReq() bool {
 20742  	return p.Req != nil
 20743  }
 20744  
 20745  func (p *NodeWriteTaggedArgs) Read(iprot thrift.TProtocol) error {
 20746  	if _, err := iprot.ReadStructBegin(); err != nil {
 20747  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 20748  	}
 20749  
 20750  	for {
 20751  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 20752  		if err != nil {
 20753  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 20754  		}
 20755  		if fieldTypeId == thrift.STOP {
 20756  			break
 20757  		}
 20758  		switch fieldId {
 20759  		case 1:
 20760  			if err := p.ReadField1(iprot); err != nil {
 20761  				return err
 20762  			}
 20763  		default:
 20764  			if err := iprot.Skip(fieldTypeId); err != nil {
 20765  				return err
 20766  			}
 20767  		}
 20768  		if err := iprot.ReadFieldEnd(); err != nil {
 20769  			return err
 20770  		}
 20771  	}
 20772  	if err := iprot.ReadStructEnd(); err != nil {
 20773  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 20774  	}
 20775  	return nil
 20776  }
 20777  
 20778  func (p *NodeWriteTaggedArgs) ReadField1(iprot thrift.TProtocol) error {
 20779  	p.Req = &WriteTaggedRequest{}
 20780  	if err := p.Req.Read(iprot); err != nil {
 20781  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 20782  	}
 20783  	return nil
 20784  }
 20785  
 20786  func (p *NodeWriteTaggedArgs) Write(oprot thrift.TProtocol) error {
 20787  	if err := oprot.WriteStructBegin("writeTagged_args"); err != nil {
 20788  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 20789  	}
 20790  	if p != nil {
 20791  		if err := p.writeField1(oprot); err != nil {
 20792  			return err
 20793  		}
 20794  	}
 20795  	if err := oprot.WriteFieldStop(); err != nil {
 20796  		return thrift.PrependError("write field stop error: ", err)
 20797  	}
 20798  	if err := oprot.WriteStructEnd(); err != nil {
 20799  		return thrift.PrependError("write struct stop error: ", err)
 20800  	}
 20801  	return nil
 20802  }
 20803  
 20804  func (p *NodeWriteTaggedArgs) writeField1(oprot thrift.TProtocol) (err error) {
 20805  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 20806  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 20807  	}
 20808  	if err := p.Req.Write(oprot); err != nil {
 20809  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 20810  	}
 20811  	if err := oprot.WriteFieldEnd(); err != nil {
 20812  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 20813  	}
 20814  	return err
 20815  }
 20816  
 20817  func (p *NodeWriteTaggedArgs) String() string {
 20818  	if p == nil {
 20819  		return "<nil>"
 20820  	}
 20821  	return fmt.Sprintf("NodeWriteTaggedArgs(%+v)", *p)
 20822  }
 20823  
 20824  // Attributes:
 20825  //  - Err
 20826  type NodeWriteTaggedResult struct {
 20827  	Err *Error `thrift:"err,1" db:"err" json:"err,omitempty"`
 20828  }
 20829  
 20830  func NewNodeWriteTaggedResult() *NodeWriteTaggedResult {
 20831  	return &NodeWriteTaggedResult{}
 20832  }
 20833  
 20834  var NodeWriteTaggedResult_Err_DEFAULT *Error
 20835  
 20836  func (p *NodeWriteTaggedResult) GetErr() *Error {
 20837  	if !p.IsSetErr() {
 20838  		return NodeWriteTaggedResult_Err_DEFAULT
 20839  	}
 20840  	return p.Err
 20841  }
 20842  func (p *NodeWriteTaggedResult) IsSetErr() bool {
 20843  	return p.Err != nil
 20844  }
 20845  
 20846  func (p *NodeWriteTaggedResult) Read(iprot thrift.TProtocol) error {
 20847  	if _, err := iprot.ReadStructBegin(); err != nil {
 20848  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 20849  	}
 20850  
 20851  	for {
 20852  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 20853  		if err != nil {
 20854  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 20855  		}
 20856  		if fieldTypeId == thrift.STOP {
 20857  			break
 20858  		}
 20859  		switch fieldId {
 20860  		case 1:
 20861  			if err := p.ReadField1(iprot); err != nil {
 20862  				return err
 20863  			}
 20864  		default:
 20865  			if err := iprot.Skip(fieldTypeId); err != nil {
 20866  				return err
 20867  			}
 20868  		}
 20869  		if err := iprot.ReadFieldEnd(); err != nil {
 20870  			return err
 20871  		}
 20872  	}
 20873  	if err := iprot.ReadStructEnd(); err != nil {
 20874  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 20875  	}
 20876  	return nil
 20877  }
 20878  
 20879  func (p *NodeWriteTaggedResult) ReadField1(iprot thrift.TProtocol) error {
 20880  	p.Err = &Error{
 20881  		Type: 0,
 20882  	}
 20883  	if err := p.Err.Read(iprot); err != nil {
 20884  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 20885  	}
 20886  	return nil
 20887  }
 20888  
 20889  func (p *NodeWriteTaggedResult) Write(oprot thrift.TProtocol) error {
 20890  	if err := oprot.WriteStructBegin("writeTagged_result"); err != nil {
 20891  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 20892  	}
 20893  	if p != nil {
 20894  		if err := p.writeField1(oprot); err != nil {
 20895  			return err
 20896  		}
 20897  	}
 20898  	if err := oprot.WriteFieldStop(); err != nil {
 20899  		return thrift.PrependError("write field stop error: ", err)
 20900  	}
 20901  	if err := oprot.WriteStructEnd(); err != nil {
 20902  		return thrift.PrependError("write struct stop error: ", err)
 20903  	}
 20904  	return nil
 20905  }
 20906  
 20907  func (p *NodeWriteTaggedResult) writeField1(oprot thrift.TProtocol) (err error) {
 20908  	if p.IsSetErr() {
 20909  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 20910  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 20911  		}
 20912  		if err := p.Err.Write(oprot); err != nil {
 20913  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 20914  		}
 20915  		if err := oprot.WriteFieldEnd(); err != nil {
 20916  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 20917  		}
 20918  	}
 20919  	return err
 20920  }
 20921  
 20922  func (p *NodeWriteTaggedResult) String() string {
 20923  	if p == nil {
 20924  		return "<nil>"
 20925  	}
 20926  	return fmt.Sprintf("NodeWriteTaggedResult(%+v)", *p)
 20927  }
 20928  
 20929  // Attributes:
 20930  //  - Req
 20931  type NodeAggregateRawArgs struct {
 20932  	Req *AggregateQueryRawRequest `thrift:"req,1" db:"req" json:"req"`
 20933  }
 20934  
 20935  func NewNodeAggregateRawArgs() *NodeAggregateRawArgs {
 20936  	return &NodeAggregateRawArgs{}
 20937  }
 20938  
 20939  var NodeAggregateRawArgs_Req_DEFAULT *AggregateQueryRawRequest
 20940  
 20941  func (p *NodeAggregateRawArgs) GetReq() *AggregateQueryRawRequest {
 20942  	if !p.IsSetReq() {
 20943  		return NodeAggregateRawArgs_Req_DEFAULT
 20944  	}
 20945  	return p.Req
 20946  }
 20947  func (p *NodeAggregateRawArgs) IsSetReq() bool {
 20948  	return p.Req != nil
 20949  }
 20950  
 20951  func (p *NodeAggregateRawArgs) Read(iprot thrift.TProtocol) error {
 20952  	if _, err := iprot.ReadStructBegin(); err != nil {
 20953  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 20954  	}
 20955  
 20956  	for {
 20957  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 20958  		if err != nil {
 20959  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 20960  		}
 20961  		if fieldTypeId == thrift.STOP {
 20962  			break
 20963  		}
 20964  		switch fieldId {
 20965  		case 1:
 20966  			if err := p.ReadField1(iprot); err != nil {
 20967  				return err
 20968  			}
 20969  		default:
 20970  			if err := iprot.Skip(fieldTypeId); err != nil {
 20971  				return err
 20972  			}
 20973  		}
 20974  		if err := iprot.ReadFieldEnd(); err != nil {
 20975  			return err
 20976  		}
 20977  	}
 20978  	if err := iprot.ReadStructEnd(); err != nil {
 20979  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 20980  	}
 20981  	return nil
 20982  }
 20983  
 20984  func (p *NodeAggregateRawArgs) ReadField1(iprot thrift.TProtocol) error {
 20985  	p.Req = &AggregateQueryRawRequest{
 20986  		AggregateQueryType: 1,
 20987  
 20988  		RangeType: 0,
 20989  	}
 20990  	if err := p.Req.Read(iprot); err != nil {
 20991  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 20992  	}
 20993  	return nil
 20994  }
 20995  
 20996  func (p *NodeAggregateRawArgs) Write(oprot thrift.TProtocol) error {
 20997  	if err := oprot.WriteStructBegin("aggregateRaw_args"); err != nil {
 20998  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 20999  	}
 21000  	if p != nil {
 21001  		if err := p.writeField1(oprot); err != nil {
 21002  			return err
 21003  		}
 21004  	}
 21005  	if err := oprot.WriteFieldStop(); err != nil {
 21006  		return thrift.PrependError("write field stop error: ", err)
 21007  	}
 21008  	if err := oprot.WriteStructEnd(); err != nil {
 21009  		return thrift.PrependError("write struct stop error: ", err)
 21010  	}
 21011  	return nil
 21012  }
 21013  
 21014  func (p *NodeAggregateRawArgs) writeField1(oprot thrift.TProtocol) (err error) {
 21015  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 21016  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 21017  	}
 21018  	if err := p.Req.Write(oprot); err != nil {
 21019  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 21020  	}
 21021  	if err := oprot.WriteFieldEnd(); err != nil {
 21022  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 21023  	}
 21024  	return err
 21025  }
 21026  
 21027  func (p *NodeAggregateRawArgs) String() string {
 21028  	if p == nil {
 21029  		return "<nil>"
 21030  	}
 21031  	return fmt.Sprintf("NodeAggregateRawArgs(%+v)", *p)
 21032  }
 21033  
 21034  // Attributes:
 21035  //  - Success
 21036  //  - Err
 21037  type NodeAggregateRawResult struct {
 21038  	Success *AggregateQueryRawResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 21039  	Err     *Error                    `thrift:"err,1" db:"err" json:"err,omitempty"`
 21040  }
 21041  
 21042  func NewNodeAggregateRawResult() *NodeAggregateRawResult {
 21043  	return &NodeAggregateRawResult{}
 21044  }
 21045  
 21046  var NodeAggregateRawResult_Success_DEFAULT *AggregateQueryRawResult_
 21047  
 21048  func (p *NodeAggregateRawResult) GetSuccess() *AggregateQueryRawResult_ {
 21049  	if !p.IsSetSuccess() {
 21050  		return NodeAggregateRawResult_Success_DEFAULT
 21051  	}
 21052  	return p.Success
 21053  }
 21054  
 21055  var NodeAggregateRawResult_Err_DEFAULT *Error
 21056  
 21057  func (p *NodeAggregateRawResult) GetErr() *Error {
 21058  	if !p.IsSetErr() {
 21059  		return NodeAggregateRawResult_Err_DEFAULT
 21060  	}
 21061  	return p.Err
 21062  }
 21063  func (p *NodeAggregateRawResult) IsSetSuccess() bool {
 21064  	return p.Success != nil
 21065  }
 21066  
 21067  func (p *NodeAggregateRawResult) IsSetErr() bool {
 21068  	return p.Err != nil
 21069  }
 21070  
 21071  func (p *NodeAggregateRawResult) Read(iprot thrift.TProtocol) error {
 21072  	if _, err := iprot.ReadStructBegin(); err != nil {
 21073  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 21074  	}
 21075  
 21076  	for {
 21077  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 21078  		if err != nil {
 21079  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 21080  		}
 21081  		if fieldTypeId == thrift.STOP {
 21082  			break
 21083  		}
 21084  		switch fieldId {
 21085  		case 0:
 21086  			if err := p.ReadField0(iprot); err != nil {
 21087  				return err
 21088  			}
 21089  		case 1:
 21090  			if err := p.ReadField1(iprot); err != nil {
 21091  				return err
 21092  			}
 21093  		default:
 21094  			if err := iprot.Skip(fieldTypeId); err != nil {
 21095  				return err
 21096  			}
 21097  		}
 21098  		if err := iprot.ReadFieldEnd(); err != nil {
 21099  			return err
 21100  		}
 21101  	}
 21102  	if err := iprot.ReadStructEnd(); err != nil {
 21103  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 21104  	}
 21105  	return nil
 21106  }
 21107  
 21108  func (p *NodeAggregateRawResult) ReadField0(iprot thrift.TProtocol) error {
 21109  	p.Success = &AggregateQueryRawResult_{}
 21110  	if err := p.Success.Read(iprot); err != nil {
 21111  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 21112  	}
 21113  	return nil
 21114  }
 21115  
 21116  func (p *NodeAggregateRawResult) ReadField1(iprot thrift.TProtocol) error {
 21117  	p.Err = &Error{
 21118  		Type: 0,
 21119  	}
 21120  	if err := p.Err.Read(iprot); err != nil {
 21121  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 21122  	}
 21123  	return nil
 21124  }
 21125  
 21126  func (p *NodeAggregateRawResult) Write(oprot thrift.TProtocol) error {
 21127  	if err := oprot.WriteStructBegin("aggregateRaw_result"); err != nil {
 21128  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 21129  	}
 21130  	if p != nil {
 21131  		if err := p.writeField0(oprot); err != nil {
 21132  			return err
 21133  		}
 21134  		if err := p.writeField1(oprot); err != nil {
 21135  			return err
 21136  		}
 21137  	}
 21138  	if err := oprot.WriteFieldStop(); err != nil {
 21139  		return thrift.PrependError("write field stop error: ", err)
 21140  	}
 21141  	if err := oprot.WriteStructEnd(); err != nil {
 21142  		return thrift.PrependError("write struct stop error: ", err)
 21143  	}
 21144  	return nil
 21145  }
 21146  
 21147  func (p *NodeAggregateRawResult) writeField0(oprot thrift.TProtocol) (err error) {
 21148  	if p.IsSetSuccess() {
 21149  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 21150  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 21151  		}
 21152  		if err := p.Success.Write(oprot); err != nil {
 21153  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 21154  		}
 21155  		if err := oprot.WriteFieldEnd(); err != nil {
 21156  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 21157  		}
 21158  	}
 21159  	return err
 21160  }
 21161  
 21162  func (p *NodeAggregateRawResult) writeField1(oprot thrift.TProtocol) (err error) {
 21163  	if p.IsSetErr() {
 21164  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 21165  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 21166  		}
 21167  		if err := p.Err.Write(oprot); err != nil {
 21168  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 21169  		}
 21170  		if err := oprot.WriteFieldEnd(); err != nil {
 21171  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 21172  		}
 21173  	}
 21174  	return err
 21175  }
 21176  
 21177  func (p *NodeAggregateRawResult) String() string {
 21178  	if p == nil {
 21179  		return "<nil>"
 21180  	}
 21181  	return fmt.Sprintf("NodeAggregateRawResult(%+v)", *p)
 21182  }
 21183  
 21184  // Attributes:
 21185  //  - Req
 21186  type NodeFetchBatchRawArgs struct {
 21187  	Req *FetchBatchRawRequest `thrift:"req,1" db:"req" json:"req"`
 21188  }
 21189  
 21190  func NewNodeFetchBatchRawArgs() *NodeFetchBatchRawArgs {
 21191  	return &NodeFetchBatchRawArgs{}
 21192  }
 21193  
 21194  var NodeFetchBatchRawArgs_Req_DEFAULT *FetchBatchRawRequest
 21195  
 21196  func (p *NodeFetchBatchRawArgs) GetReq() *FetchBatchRawRequest {
 21197  	if !p.IsSetReq() {
 21198  		return NodeFetchBatchRawArgs_Req_DEFAULT
 21199  	}
 21200  	return p.Req
 21201  }
 21202  func (p *NodeFetchBatchRawArgs) IsSetReq() bool {
 21203  	return p.Req != nil
 21204  }
 21205  
 21206  func (p *NodeFetchBatchRawArgs) Read(iprot thrift.TProtocol) error {
 21207  	if _, err := iprot.ReadStructBegin(); err != nil {
 21208  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 21209  	}
 21210  
 21211  	for {
 21212  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 21213  		if err != nil {
 21214  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 21215  		}
 21216  		if fieldTypeId == thrift.STOP {
 21217  			break
 21218  		}
 21219  		switch fieldId {
 21220  		case 1:
 21221  			if err := p.ReadField1(iprot); err != nil {
 21222  				return err
 21223  			}
 21224  		default:
 21225  			if err := iprot.Skip(fieldTypeId); err != nil {
 21226  				return err
 21227  			}
 21228  		}
 21229  		if err := iprot.ReadFieldEnd(); err != nil {
 21230  			return err
 21231  		}
 21232  	}
 21233  	if err := iprot.ReadStructEnd(); err != nil {
 21234  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 21235  	}
 21236  	return nil
 21237  }
 21238  
 21239  func (p *NodeFetchBatchRawArgs) ReadField1(iprot thrift.TProtocol) error {
 21240  	p.Req = &FetchBatchRawRequest{
 21241  		RangeTimeType: 0,
 21242  	}
 21243  	if err := p.Req.Read(iprot); err != nil {
 21244  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 21245  	}
 21246  	return nil
 21247  }
 21248  
 21249  func (p *NodeFetchBatchRawArgs) Write(oprot thrift.TProtocol) error {
 21250  	if err := oprot.WriteStructBegin("fetchBatchRaw_args"); err != nil {
 21251  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 21252  	}
 21253  	if p != nil {
 21254  		if err := p.writeField1(oprot); err != nil {
 21255  			return err
 21256  		}
 21257  	}
 21258  	if err := oprot.WriteFieldStop(); err != nil {
 21259  		return thrift.PrependError("write field stop error: ", err)
 21260  	}
 21261  	if err := oprot.WriteStructEnd(); err != nil {
 21262  		return thrift.PrependError("write struct stop error: ", err)
 21263  	}
 21264  	return nil
 21265  }
 21266  
 21267  func (p *NodeFetchBatchRawArgs) writeField1(oprot thrift.TProtocol) (err error) {
 21268  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 21269  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 21270  	}
 21271  	if err := p.Req.Write(oprot); err != nil {
 21272  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 21273  	}
 21274  	if err := oprot.WriteFieldEnd(); err != nil {
 21275  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 21276  	}
 21277  	return err
 21278  }
 21279  
 21280  func (p *NodeFetchBatchRawArgs) String() string {
 21281  	if p == nil {
 21282  		return "<nil>"
 21283  	}
 21284  	return fmt.Sprintf("NodeFetchBatchRawArgs(%+v)", *p)
 21285  }
 21286  
 21287  // Attributes:
 21288  //  - Success
 21289  //  - Err
 21290  type NodeFetchBatchRawResult struct {
 21291  	Success *FetchBatchRawResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 21292  	Err     *Error                `thrift:"err,1" db:"err" json:"err,omitempty"`
 21293  }
 21294  
 21295  func NewNodeFetchBatchRawResult() *NodeFetchBatchRawResult {
 21296  	return &NodeFetchBatchRawResult{}
 21297  }
 21298  
 21299  var NodeFetchBatchRawResult_Success_DEFAULT *FetchBatchRawResult_
 21300  
 21301  func (p *NodeFetchBatchRawResult) GetSuccess() *FetchBatchRawResult_ {
 21302  	if !p.IsSetSuccess() {
 21303  		return NodeFetchBatchRawResult_Success_DEFAULT
 21304  	}
 21305  	return p.Success
 21306  }
 21307  
 21308  var NodeFetchBatchRawResult_Err_DEFAULT *Error
 21309  
 21310  func (p *NodeFetchBatchRawResult) GetErr() *Error {
 21311  	if !p.IsSetErr() {
 21312  		return NodeFetchBatchRawResult_Err_DEFAULT
 21313  	}
 21314  	return p.Err
 21315  }
 21316  func (p *NodeFetchBatchRawResult) IsSetSuccess() bool {
 21317  	return p.Success != nil
 21318  }
 21319  
 21320  func (p *NodeFetchBatchRawResult) IsSetErr() bool {
 21321  	return p.Err != nil
 21322  }
 21323  
 21324  func (p *NodeFetchBatchRawResult) Read(iprot thrift.TProtocol) error {
 21325  	if _, err := iprot.ReadStructBegin(); err != nil {
 21326  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 21327  	}
 21328  
 21329  	for {
 21330  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 21331  		if err != nil {
 21332  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 21333  		}
 21334  		if fieldTypeId == thrift.STOP {
 21335  			break
 21336  		}
 21337  		switch fieldId {
 21338  		case 0:
 21339  			if err := p.ReadField0(iprot); err != nil {
 21340  				return err
 21341  			}
 21342  		case 1:
 21343  			if err := p.ReadField1(iprot); err != nil {
 21344  				return err
 21345  			}
 21346  		default:
 21347  			if err := iprot.Skip(fieldTypeId); err != nil {
 21348  				return err
 21349  			}
 21350  		}
 21351  		if err := iprot.ReadFieldEnd(); err != nil {
 21352  			return err
 21353  		}
 21354  	}
 21355  	if err := iprot.ReadStructEnd(); err != nil {
 21356  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 21357  	}
 21358  	return nil
 21359  }
 21360  
 21361  func (p *NodeFetchBatchRawResult) ReadField0(iprot thrift.TProtocol) error {
 21362  	p.Success = &FetchBatchRawResult_{}
 21363  	if err := p.Success.Read(iprot); err != nil {
 21364  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 21365  	}
 21366  	return nil
 21367  }
 21368  
 21369  func (p *NodeFetchBatchRawResult) ReadField1(iprot thrift.TProtocol) error {
 21370  	p.Err = &Error{
 21371  		Type: 0,
 21372  	}
 21373  	if err := p.Err.Read(iprot); err != nil {
 21374  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 21375  	}
 21376  	return nil
 21377  }
 21378  
 21379  func (p *NodeFetchBatchRawResult) Write(oprot thrift.TProtocol) error {
 21380  	if err := oprot.WriteStructBegin("fetchBatchRaw_result"); err != nil {
 21381  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 21382  	}
 21383  	if p != nil {
 21384  		if err := p.writeField0(oprot); err != nil {
 21385  			return err
 21386  		}
 21387  		if err := p.writeField1(oprot); err != nil {
 21388  			return err
 21389  		}
 21390  	}
 21391  	if err := oprot.WriteFieldStop(); err != nil {
 21392  		return thrift.PrependError("write field stop error: ", err)
 21393  	}
 21394  	if err := oprot.WriteStructEnd(); err != nil {
 21395  		return thrift.PrependError("write struct stop error: ", err)
 21396  	}
 21397  	return nil
 21398  }
 21399  
 21400  func (p *NodeFetchBatchRawResult) writeField0(oprot thrift.TProtocol) (err error) {
 21401  	if p.IsSetSuccess() {
 21402  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 21403  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 21404  		}
 21405  		if err := p.Success.Write(oprot); err != nil {
 21406  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 21407  		}
 21408  		if err := oprot.WriteFieldEnd(); err != nil {
 21409  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 21410  		}
 21411  	}
 21412  	return err
 21413  }
 21414  
 21415  func (p *NodeFetchBatchRawResult) writeField1(oprot thrift.TProtocol) (err error) {
 21416  	if p.IsSetErr() {
 21417  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 21418  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 21419  		}
 21420  		if err := p.Err.Write(oprot); err != nil {
 21421  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 21422  		}
 21423  		if err := oprot.WriteFieldEnd(); err != nil {
 21424  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 21425  		}
 21426  	}
 21427  	return err
 21428  }
 21429  
 21430  func (p *NodeFetchBatchRawResult) String() string {
 21431  	if p == nil {
 21432  		return "<nil>"
 21433  	}
 21434  	return fmt.Sprintf("NodeFetchBatchRawResult(%+v)", *p)
 21435  }
 21436  
 21437  // Attributes:
 21438  //  - Req
 21439  type NodeFetchBatchRawV2Args struct {
 21440  	Req *FetchBatchRawV2Request `thrift:"req,1" db:"req" json:"req"`
 21441  }
 21442  
 21443  func NewNodeFetchBatchRawV2Args() *NodeFetchBatchRawV2Args {
 21444  	return &NodeFetchBatchRawV2Args{}
 21445  }
 21446  
 21447  var NodeFetchBatchRawV2Args_Req_DEFAULT *FetchBatchRawV2Request
 21448  
 21449  func (p *NodeFetchBatchRawV2Args) GetReq() *FetchBatchRawV2Request {
 21450  	if !p.IsSetReq() {
 21451  		return NodeFetchBatchRawV2Args_Req_DEFAULT
 21452  	}
 21453  	return p.Req
 21454  }
 21455  func (p *NodeFetchBatchRawV2Args) IsSetReq() bool {
 21456  	return p.Req != nil
 21457  }
 21458  
 21459  func (p *NodeFetchBatchRawV2Args) Read(iprot thrift.TProtocol) error {
 21460  	if _, err := iprot.ReadStructBegin(); err != nil {
 21461  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 21462  	}
 21463  
 21464  	for {
 21465  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 21466  		if err != nil {
 21467  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 21468  		}
 21469  		if fieldTypeId == thrift.STOP {
 21470  			break
 21471  		}
 21472  		switch fieldId {
 21473  		case 1:
 21474  			if err := p.ReadField1(iprot); err != nil {
 21475  				return err
 21476  			}
 21477  		default:
 21478  			if err := iprot.Skip(fieldTypeId); err != nil {
 21479  				return err
 21480  			}
 21481  		}
 21482  		if err := iprot.ReadFieldEnd(); err != nil {
 21483  			return err
 21484  		}
 21485  	}
 21486  	if err := iprot.ReadStructEnd(); err != nil {
 21487  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 21488  	}
 21489  	return nil
 21490  }
 21491  
 21492  func (p *NodeFetchBatchRawV2Args) ReadField1(iprot thrift.TProtocol) error {
 21493  	p.Req = &FetchBatchRawV2Request{}
 21494  	if err := p.Req.Read(iprot); err != nil {
 21495  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 21496  	}
 21497  	return nil
 21498  }
 21499  
 21500  func (p *NodeFetchBatchRawV2Args) Write(oprot thrift.TProtocol) error {
 21501  	if err := oprot.WriteStructBegin("fetchBatchRawV2_args"); err != nil {
 21502  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 21503  	}
 21504  	if p != nil {
 21505  		if err := p.writeField1(oprot); err != nil {
 21506  			return err
 21507  		}
 21508  	}
 21509  	if err := oprot.WriteFieldStop(); err != nil {
 21510  		return thrift.PrependError("write field stop error: ", err)
 21511  	}
 21512  	if err := oprot.WriteStructEnd(); err != nil {
 21513  		return thrift.PrependError("write struct stop error: ", err)
 21514  	}
 21515  	return nil
 21516  }
 21517  
 21518  func (p *NodeFetchBatchRawV2Args) writeField1(oprot thrift.TProtocol) (err error) {
 21519  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 21520  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 21521  	}
 21522  	if err := p.Req.Write(oprot); err != nil {
 21523  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 21524  	}
 21525  	if err := oprot.WriteFieldEnd(); err != nil {
 21526  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 21527  	}
 21528  	return err
 21529  }
 21530  
 21531  func (p *NodeFetchBatchRawV2Args) String() string {
 21532  	if p == nil {
 21533  		return "<nil>"
 21534  	}
 21535  	return fmt.Sprintf("NodeFetchBatchRawV2Args(%+v)", *p)
 21536  }
 21537  
 21538  // Attributes:
 21539  //  - Success
 21540  //  - Err
 21541  type NodeFetchBatchRawV2Result struct {
 21542  	Success *FetchBatchRawResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 21543  	Err     *Error                `thrift:"err,1" db:"err" json:"err,omitempty"`
 21544  }
 21545  
 21546  func NewNodeFetchBatchRawV2Result() *NodeFetchBatchRawV2Result {
 21547  	return &NodeFetchBatchRawV2Result{}
 21548  }
 21549  
 21550  var NodeFetchBatchRawV2Result_Success_DEFAULT *FetchBatchRawResult_
 21551  
 21552  func (p *NodeFetchBatchRawV2Result) GetSuccess() *FetchBatchRawResult_ {
 21553  	if !p.IsSetSuccess() {
 21554  		return NodeFetchBatchRawV2Result_Success_DEFAULT
 21555  	}
 21556  	return p.Success
 21557  }
 21558  
 21559  var NodeFetchBatchRawV2Result_Err_DEFAULT *Error
 21560  
 21561  func (p *NodeFetchBatchRawV2Result) GetErr() *Error {
 21562  	if !p.IsSetErr() {
 21563  		return NodeFetchBatchRawV2Result_Err_DEFAULT
 21564  	}
 21565  	return p.Err
 21566  }
 21567  func (p *NodeFetchBatchRawV2Result) IsSetSuccess() bool {
 21568  	return p.Success != nil
 21569  }
 21570  
 21571  func (p *NodeFetchBatchRawV2Result) IsSetErr() bool {
 21572  	return p.Err != nil
 21573  }
 21574  
 21575  func (p *NodeFetchBatchRawV2Result) Read(iprot thrift.TProtocol) error {
 21576  	if _, err := iprot.ReadStructBegin(); err != nil {
 21577  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 21578  	}
 21579  
 21580  	for {
 21581  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 21582  		if err != nil {
 21583  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 21584  		}
 21585  		if fieldTypeId == thrift.STOP {
 21586  			break
 21587  		}
 21588  		switch fieldId {
 21589  		case 0:
 21590  			if err := p.ReadField0(iprot); err != nil {
 21591  				return err
 21592  			}
 21593  		case 1:
 21594  			if err := p.ReadField1(iprot); err != nil {
 21595  				return err
 21596  			}
 21597  		default:
 21598  			if err := iprot.Skip(fieldTypeId); err != nil {
 21599  				return err
 21600  			}
 21601  		}
 21602  		if err := iprot.ReadFieldEnd(); err != nil {
 21603  			return err
 21604  		}
 21605  	}
 21606  	if err := iprot.ReadStructEnd(); err != nil {
 21607  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 21608  	}
 21609  	return nil
 21610  }
 21611  
 21612  func (p *NodeFetchBatchRawV2Result) ReadField0(iprot thrift.TProtocol) error {
 21613  	p.Success = &FetchBatchRawResult_{}
 21614  	if err := p.Success.Read(iprot); err != nil {
 21615  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 21616  	}
 21617  	return nil
 21618  }
 21619  
 21620  func (p *NodeFetchBatchRawV2Result) ReadField1(iprot thrift.TProtocol) error {
 21621  	p.Err = &Error{
 21622  		Type: 0,
 21623  	}
 21624  	if err := p.Err.Read(iprot); err != nil {
 21625  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 21626  	}
 21627  	return nil
 21628  }
 21629  
 21630  func (p *NodeFetchBatchRawV2Result) Write(oprot thrift.TProtocol) error {
 21631  	if err := oprot.WriteStructBegin("fetchBatchRawV2_result"); err != nil {
 21632  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 21633  	}
 21634  	if p != nil {
 21635  		if err := p.writeField0(oprot); err != nil {
 21636  			return err
 21637  		}
 21638  		if err := p.writeField1(oprot); err != nil {
 21639  			return err
 21640  		}
 21641  	}
 21642  	if err := oprot.WriteFieldStop(); err != nil {
 21643  		return thrift.PrependError("write field stop error: ", err)
 21644  	}
 21645  	if err := oprot.WriteStructEnd(); err != nil {
 21646  		return thrift.PrependError("write struct stop error: ", err)
 21647  	}
 21648  	return nil
 21649  }
 21650  
 21651  func (p *NodeFetchBatchRawV2Result) writeField0(oprot thrift.TProtocol) (err error) {
 21652  	if p.IsSetSuccess() {
 21653  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 21654  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 21655  		}
 21656  		if err := p.Success.Write(oprot); err != nil {
 21657  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 21658  		}
 21659  		if err := oprot.WriteFieldEnd(); err != nil {
 21660  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 21661  		}
 21662  	}
 21663  	return err
 21664  }
 21665  
 21666  func (p *NodeFetchBatchRawV2Result) writeField1(oprot thrift.TProtocol) (err error) {
 21667  	if p.IsSetErr() {
 21668  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 21669  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 21670  		}
 21671  		if err := p.Err.Write(oprot); err != nil {
 21672  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 21673  		}
 21674  		if err := oprot.WriteFieldEnd(); err != nil {
 21675  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 21676  		}
 21677  	}
 21678  	return err
 21679  }
 21680  
 21681  func (p *NodeFetchBatchRawV2Result) String() string {
 21682  	if p == nil {
 21683  		return "<nil>"
 21684  	}
 21685  	return fmt.Sprintf("NodeFetchBatchRawV2Result(%+v)", *p)
 21686  }
 21687  
 21688  // Attributes:
 21689  //  - Req
 21690  type NodeFetchBlocksRawArgs struct {
 21691  	Req *FetchBlocksRawRequest `thrift:"req,1" db:"req" json:"req"`
 21692  }
 21693  
 21694  func NewNodeFetchBlocksRawArgs() *NodeFetchBlocksRawArgs {
 21695  	return &NodeFetchBlocksRawArgs{}
 21696  }
 21697  
 21698  var NodeFetchBlocksRawArgs_Req_DEFAULT *FetchBlocksRawRequest
 21699  
 21700  func (p *NodeFetchBlocksRawArgs) GetReq() *FetchBlocksRawRequest {
 21701  	if !p.IsSetReq() {
 21702  		return NodeFetchBlocksRawArgs_Req_DEFAULT
 21703  	}
 21704  	return p.Req
 21705  }
 21706  func (p *NodeFetchBlocksRawArgs) IsSetReq() bool {
 21707  	return p.Req != nil
 21708  }
 21709  
 21710  func (p *NodeFetchBlocksRawArgs) Read(iprot thrift.TProtocol) error {
 21711  	if _, err := iprot.ReadStructBegin(); err != nil {
 21712  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 21713  	}
 21714  
 21715  	for {
 21716  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 21717  		if err != nil {
 21718  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 21719  		}
 21720  		if fieldTypeId == thrift.STOP {
 21721  			break
 21722  		}
 21723  		switch fieldId {
 21724  		case 1:
 21725  			if err := p.ReadField1(iprot); err != nil {
 21726  				return err
 21727  			}
 21728  		default:
 21729  			if err := iprot.Skip(fieldTypeId); err != nil {
 21730  				return err
 21731  			}
 21732  		}
 21733  		if err := iprot.ReadFieldEnd(); err != nil {
 21734  			return err
 21735  		}
 21736  	}
 21737  	if err := iprot.ReadStructEnd(); err != nil {
 21738  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 21739  	}
 21740  	return nil
 21741  }
 21742  
 21743  func (p *NodeFetchBlocksRawArgs) ReadField1(iprot thrift.TProtocol) error {
 21744  	p.Req = &FetchBlocksRawRequest{}
 21745  	if err := p.Req.Read(iprot); err != nil {
 21746  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 21747  	}
 21748  	return nil
 21749  }
 21750  
 21751  func (p *NodeFetchBlocksRawArgs) Write(oprot thrift.TProtocol) error {
 21752  	if err := oprot.WriteStructBegin("fetchBlocksRaw_args"); err != nil {
 21753  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 21754  	}
 21755  	if p != nil {
 21756  		if err := p.writeField1(oprot); err != nil {
 21757  			return err
 21758  		}
 21759  	}
 21760  	if err := oprot.WriteFieldStop(); err != nil {
 21761  		return thrift.PrependError("write field stop error: ", err)
 21762  	}
 21763  	if err := oprot.WriteStructEnd(); err != nil {
 21764  		return thrift.PrependError("write struct stop error: ", err)
 21765  	}
 21766  	return nil
 21767  }
 21768  
 21769  func (p *NodeFetchBlocksRawArgs) writeField1(oprot thrift.TProtocol) (err error) {
 21770  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 21771  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 21772  	}
 21773  	if err := p.Req.Write(oprot); err != nil {
 21774  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 21775  	}
 21776  	if err := oprot.WriteFieldEnd(); err != nil {
 21777  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 21778  	}
 21779  	return err
 21780  }
 21781  
 21782  func (p *NodeFetchBlocksRawArgs) String() string {
 21783  	if p == nil {
 21784  		return "<nil>"
 21785  	}
 21786  	return fmt.Sprintf("NodeFetchBlocksRawArgs(%+v)", *p)
 21787  }
 21788  
 21789  // Attributes:
 21790  //  - Success
 21791  //  - Err
 21792  type NodeFetchBlocksRawResult struct {
 21793  	Success *FetchBlocksRawResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 21794  	Err     *Error                 `thrift:"err,1" db:"err" json:"err,omitempty"`
 21795  }
 21796  
 21797  func NewNodeFetchBlocksRawResult() *NodeFetchBlocksRawResult {
 21798  	return &NodeFetchBlocksRawResult{}
 21799  }
 21800  
 21801  var NodeFetchBlocksRawResult_Success_DEFAULT *FetchBlocksRawResult_
 21802  
 21803  func (p *NodeFetchBlocksRawResult) GetSuccess() *FetchBlocksRawResult_ {
 21804  	if !p.IsSetSuccess() {
 21805  		return NodeFetchBlocksRawResult_Success_DEFAULT
 21806  	}
 21807  	return p.Success
 21808  }
 21809  
 21810  var NodeFetchBlocksRawResult_Err_DEFAULT *Error
 21811  
 21812  func (p *NodeFetchBlocksRawResult) GetErr() *Error {
 21813  	if !p.IsSetErr() {
 21814  		return NodeFetchBlocksRawResult_Err_DEFAULT
 21815  	}
 21816  	return p.Err
 21817  }
 21818  func (p *NodeFetchBlocksRawResult) IsSetSuccess() bool {
 21819  	return p.Success != nil
 21820  }
 21821  
 21822  func (p *NodeFetchBlocksRawResult) IsSetErr() bool {
 21823  	return p.Err != nil
 21824  }
 21825  
 21826  func (p *NodeFetchBlocksRawResult) Read(iprot thrift.TProtocol) error {
 21827  	if _, err := iprot.ReadStructBegin(); err != nil {
 21828  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 21829  	}
 21830  
 21831  	for {
 21832  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 21833  		if err != nil {
 21834  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 21835  		}
 21836  		if fieldTypeId == thrift.STOP {
 21837  			break
 21838  		}
 21839  		switch fieldId {
 21840  		case 0:
 21841  			if err := p.ReadField0(iprot); err != nil {
 21842  				return err
 21843  			}
 21844  		case 1:
 21845  			if err := p.ReadField1(iprot); err != nil {
 21846  				return err
 21847  			}
 21848  		default:
 21849  			if err := iprot.Skip(fieldTypeId); err != nil {
 21850  				return err
 21851  			}
 21852  		}
 21853  		if err := iprot.ReadFieldEnd(); err != nil {
 21854  			return err
 21855  		}
 21856  	}
 21857  	if err := iprot.ReadStructEnd(); err != nil {
 21858  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 21859  	}
 21860  	return nil
 21861  }
 21862  
 21863  func (p *NodeFetchBlocksRawResult) ReadField0(iprot thrift.TProtocol) error {
 21864  	p.Success = &FetchBlocksRawResult_{}
 21865  	if err := p.Success.Read(iprot); err != nil {
 21866  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 21867  	}
 21868  	return nil
 21869  }
 21870  
 21871  func (p *NodeFetchBlocksRawResult) ReadField1(iprot thrift.TProtocol) error {
 21872  	p.Err = &Error{
 21873  		Type: 0,
 21874  	}
 21875  	if err := p.Err.Read(iprot); err != nil {
 21876  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 21877  	}
 21878  	return nil
 21879  }
 21880  
 21881  func (p *NodeFetchBlocksRawResult) Write(oprot thrift.TProtocol) error {
 21882  	if err := oprot.WriteStructBegin("fetchBlocksRaw_result"); err != nil {
 21883  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 21884  	}
 21885  	if p != nil {
 21886  		if err := p.writeField0(oprot); err != nil {
 21887  			return err
 21888  		}
 21889  		if err := p.writeField1(oprot); err != nil {
 21890  			return err
 21891  		}
 21892  	}
 21893  	if err := oprot.WriteFieldStop(); err != nil {
 21894  		return thrift.PrependError("write field stop error: ", err)
 21895  	}
 21896  	if err := oprot.WriteStructEnd(); err != nil {
 21897  		return thrift.PrependError("write struct stop error: ", err)
 21898  	}
 21899  	return nil
 21900  }
 21901  
 21902  func (p *NodeFetchBlocksRawResult) writeField0(oprot thrift.TProtocol) (err error) {
 21903  	if p.IsSetSuccess() {
 21904  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 21905  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 21906  		}
 21907  		if err := p.Success.Write(oprot); err != nil {
 21908  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 21909  		}
 21910  		if err := oprot.WriteFieldEnd(); err != nil {
 21911  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 21912  		}
 21913  	}
 21914  	return err
 21915  }
 21916  
 21917  func (p *NodeFetchBlocksRawResult) writeField1(oprot thrift.TProtocol) (err error) {
 21918  	if p.IsSetErr() {
 21919  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 21920  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 21921  		}
 21922  		if err := p.Err.Write(oprot); err != nil {
 21923  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 21924  		}
 21925  		if err := oprot.WriteFieldEnd(); err != nil {
 21926  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 21927  		}
 21928  	}
 21929  	return err
 21930  }
 21931  
 21932  func (p *NodeFetchBlocksRawResult) String() string {
 21933  	if p == nil {
 21934  		return "<nil>"
 21935  	}
 21936  	return fmt.Sprintf("NodeFetchBlocksRawResult(%+v)", *p)
 21937  }
 21938  
 21939  // Attributes:
 21940  //  - Req
 21941  type NodeFetchTaggedArgs struct {
 21942  	Req *FetchTaggedRequest `thrift:"req,1" db:"req" json:"req"`
 21943  }
 21944  
 21945  func NewNodeFetchTaggedArgs() *NodeFetchTaggedArgs {
 21946  	return &NodeFetchTaggedArgs{}
 21947  }
 21948  
 21949  var NodeFetchTaggedArgs_Req_DEFAULT *FetchTaggedRequest
 21950  
 21951  func (p *NodeFetchTaggedArgs) GetReq() *FetchTaggedRequest {
 21952  	if !p.IsSetReq() {
 21953  		return NodeFetchTaggedArgs_Req_DEFAULT
 21954  	}
 21955  	return p.Req
 21956  }
 21957  func (p *NodeFetchTaggedArgs) IsSetReq() bool {
 21958  	return p.Req != nil
 21959  }
 21960  
 21961  func (p *NodeFetchTaggedArgs) Read(iprot thrift.TProtocol) error {
 21962  	if _, err := iprot.ReadStructBegin(); err != nil {
 21963  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 21964  	}
 21965  
 21966  	for {
 21967  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 21968  		if err != nil {
 21969  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 21970  		}
 21971  		if fieldTypeId == thrift.STOP {
 21972  			break
 21973  		}
 21974  		switch fieldId {
 21975  		case 1:
 21976  			if err := p.ReadField1(iprot); err != nil {
 21977  				return err
 21978  			}
 21979  		default:
 21980  			if err := iprot.Skip(fieldTypeId); err != nil {
 21981  				return err
 21982  			}
 21983  		}
 21984  		if err := iprot.ReadFieldEnd(); err != nil {
 21985  			return err
 21986  		}
 21987  	}
 21988  	if err := iprot.ReadStructEnd(); err != nil {
 21989  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 21990  	}
 21991  	return nil
 21992  }
 21993  
 21994  func (p *NodeFetchTaggedArgs) ReadField1(iprot thrift.TProtocol) error {
 21995  	p.Req = &FetchTaggedRequest{
 21996  		RangeTimeType: 0,
 21997  
 21998  		RequireExhaustive: true,
 21999  	}
 22000  	if err := p.Req.Read(iprot); err != nil {
 22001  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 22002  	}
 22003  	return nil
 22004  }
 22005  
 22006  func (p *NodeFetchTaggedArgs) Write(oprot thrift.TProtocol) error {
 22007  	if err := oprot.WriteStructBegin("fetchTagged_args"); err != nil {
 22008  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 22009  	}
 22010  	if p != nil {
 22011  		if err := p.writeField1(oprot); err != nil {
 22012  			return err
 22013  		}
 22014  	}
 22015  	if err := oprot.WriteFieldStop(); err != nil {
 22016  		return thrift.PrependError("write field stop error: ", err)
 22017  	}
 22018  	if err := oprot.WriteStructEnd(); err != nil {
 22019  		return thrift.PrependError("write struct stop error: ", err)
 22020  	}
 22021  	return nil
 22022  }
 22023  
 22024  func (p *NodeFetchTaggedArgs) writeField1(oprot thrift.TProtocol) (err error) {
 22025  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 22026  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 22027  	}
 22028  	if err := p.Req.Write(oprot); err != nil {
 22029  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 22030  	}
 22031  	if err := oprot.WriteFieldEnd(); err != nil {
 22032  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 22033  	}
 22034  	return err
 22035  }
 22036  
 22037  func (p *NodeFetchTaggedArgs) String() string {
 22038  	if p == nil {
 22039  		return "<nil>"
 22040  	}
 22041  	return fmt.Sprintf("NodeFetchTaggedArgs(%+v)", *p)
 22042  }
 22043  
 22044  // Attributes:
 22045  //  - Success
 22046  //  - Err
 22047  type NodeFetchTaggedResult struct {
 22048  	Success *FetchTaggedResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 22049  	Err     *Error              `thrift:"err,1" db:"err" json:"err,omitempty"`
 22050  }
 22051  
 22052  func NewNodeFetchTaggedResult() *NodeFetchTaggedResult {
 22053  	return &NodeFetchTaggedResult{}
 22054  }
 22055  
 22056  var NodeFetchTaggedResult_Success_DEFAULT *FetchTaggedResult_
 22057  
 22058  func (p *NodeFetchTaggedResult) GetSuccess() *FetchTaggedResult_ {
 22059  	if !p.IsSetSuccess() {
 22060  		return NodeFetchTaggedResult_Success_DEFAULT
 22061  	}
 22062  	return p.Success
 22063  }
 22064  
 22065  var NodeFetchTaggedResult_Err_DEFAULT *Error
 22066  
 22067  func (p *NodeFetchTaggedResult) GetErr() *Error {
 22068  	if !p.IsSetErr() {
 22069  		return NodeFetchTaggedResult_Err_DEFAULT
 22070  	}
 22071  	return p.Err
 22072  }
 22073  func (p *NodeFetchTaggedResult) IsSetSuccess() bool {
 22074  	return p.Success != nil
 22075  }
 22076  
 22077  func (p *NodeFetchTaggedResult) IsSetErr() bool {
 22078  	return p.Err != nil
 22079  }
 22080  
 22081  func (p *NodeFetchTaggedResult) Read(iprot thrift.TProtocol) error {
 22082  	if _, err := iprot.ReadStructBegin(); err != nil {
 22083  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 22084  	}
 22085  
 22086  	for {
 22087  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 22088  		if err != nil {
 22089  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 22090  		}
 22091  		if fieldTypeId == thrift.STOP {
 22092  			break
 22093  		}
 22094  		switch fieldId {
 22095  		case 0:
 22096  			if err := p.ReadField0(iprot); err != nil {
 22097  				return err
 22098  			}
 22099  		case 1:
 22100  			if err := p.ReadField1(iprot); err != nil {
 22101  				return err
 22102  			}
 22103  		default:
 22104  			if err := iprot.Skip(fieldTypeId); err != nil {
 22105  				return err
 22106  			}
 22107  		}
 22108  		if err := iprot.ReadFieldEnd(); err != nil {
 22109  			return err
 22110  		}
 22111  	}
 22112  	if err := iprot.ReadStructEnd(); err != nil {
 22113  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 22114  	}
 22115  	return nil
 22116  }
 22117  
 22118  func (p *NodeFetchTaggedResult) ReadField0(iprot thrift.TProtocol) error {
 22119  	p.Success = &FetchTaggedResult_{}
 22120  	if err := p.Success.Read(iprot); err != nil {
 22121  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 22122  	}
 22123  	return nil
 22124  }
 22125  
 22126  func (p *NodeFetchTaggedResult) ReadField1(iprot thrift.TProtocol) error {
 22127  	p.Err = &Error{
 22128  		Type: 0,
 22129  	}
 22130  	if err := p.Err.Read(iprot); err != nil {
 22131  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 22132  	}
 22133  	return nil
 22134  }
 22135  
 22136  func (p *NodeFetchTaggedResult) Write(oprot thrift.TProtocol) error {
 22137  	if err := oprot.WriteStructBegin("fetchTagged_result"); err != nil {
 22138  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 22139  	}
 22140  	if p != nil {
 22141  		if err := p.writeField0(oprot); err != nil {
 22142  			return err
 22143  		}
 22144  		if err := p.writeField1(oprot); err != nil {
 22145  			return err
 22146  		}
 22147  	}
 22148  	if err := oprot.WriteFieldStop(); err != nil {
 22149  		return thrift.PrependError("write field stop error: ", err)
 22150  	}
 22151  	if err := oprot.WriteStructEnd(); err != nil {
 22152  		return thrift.PrependError("write struct stop error: ", err)
 22153  	}
 22154  	return nil
 22155  }
 22156  
 22157  func (p *NodeFetchTaggedResult) writeField0(oprot thrift.TProtocol) (err error) {
 22158  	if p.IsSetSuccess() {
 22159  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 22160  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 22161  		}
 22162  		if err := p.Success.Write(oprot); err != nil {
 22163  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 22164  		}
 22165  		if err := oprot.WriteFieldEnd(); err != nil {
 22166  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 22167  		}
 22168  	}
 22169  	return err
 22170  }
 22171  
 22172  func (p *NodeFetchTaggedResult) writeField1(oprot thrift.TProtocol) (err error) {
 22173  	if p.IsSetErr() {
 22174  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 22175  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 22176  		}
 22177  		if err := p.Err.Write(oprot); err != nil {
 22178  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 22179  		}
 22180  		if err := oprot.WriteFieldEnd(); err != nil {
 22181  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 22182  		}
 22183  	}
 22184  	return err
 22185  }
 22186  
 22187  func (p *NodeFetchTaggedResult) String() string {
 22188  	if p == nil {
 22189  		return "<nil>"
 22190  	}
 22191  	return fmt.Sprintf("NodeFetchTaggedResult(%+v)", *p)
 22192  }
 22193  
 22194  // Attributes:
 22195  //  - Req
 22196  type NodeFetchBlocksMetadataRawV2Args struct {
 22197  	Req *FetchBlocksMetadataRawV2Request `thrift:"req,1" db:"req" json:"req"`
 22198  }
 22199  
 22200  func NewNodeFetchBlocksMetadataRawV2Args() *NodeFetchBlocksMetadataRawV2Args {
 22201  	return &NodeFetchBlocksMetadataRawV2Args{}
 22202  }
 22203  
 22204  var NodeFetchBlocksMetadataRawV2Args_Req_DEFAULT *FetchBlocksMetadataRawV2Request
 22205  
 22206  func (p *NodeFetchBlocksMetadataRawV2Args) GetReq() *FetchBlocksMetadataRawV2Request {
 22207  	if !p.IsSetReq() {
 22208  		return NodeFetchBlocksMetadataRawV2Args_Req_DEFAULT
 22209  	}
 22210  	return p.Req
 22211  }
 22212  func (p *NodeFetchBlocksMetadataRawV2Args) IsSetReq() bool {
 22213  	return p.Req != nil
 22214  }
 22215  
 22216  func (p *NodeFetchBlocksMetadataRawV2Args) Read(iprot thrift.TProtocol) error {
 22217  	if _, err := iprot.ReadStructBegin(); err != nil {
 22218  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 22219  	}
 22220  
 22221  	for {
 22222  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 22223  		if err != nil {
 22224  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 22225  		}
 22226  		if fieldTypeId == thrift.STOP {
 22227  			break
 22228  		}
 22229  		switch fieldId {
 22230  		case 1:
 22231  			if err := p.ReadField1(iprot); err != nil {
 22232  				return err
 22233  			}
 22234  		default:
 22235  			if err := iprot.Skip(fieldTypeId); err != nil {
 22236  				return err
 22237  			}
 22238  		}
 22239  		if err := iprot.ReadFieldEnd(); err != nil {
 22240  			return err
 22241  		}
 22242  	}
 22243  	if err := iprot.ReadStructEnd(); err != nil {
 22244  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 22245  	}
 22246  	return nil
 22247  }
 22248  
 22249  func (p *NodeFetchBlocksMetadataRawV2Args) ReadField1(iprot thrift.TProtocol) error {
 22250  	p.Req = &FetchBlocksMetadataRawV2Request{}
 22251  	if err := p.Req.Read(iprot); err != nil {
 22252  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 22253  	}
 22254  	return nil
 22255  }
 22256  
 22257  func (p *NodeFetchBlocksMetadataRawV2Args) Write(oprot thrift.TProtocol) error {
 22258  	if err := oprot.WriteStructBegin("fetchBlocksMetadataRawV2_args"); err != nil {
 22259  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 22260  	}
 22261  	if p != nil {
 22262  		if err := p.writeField1(oprot); err != nil {
 22263  			return err
 22264  		}
 22265  	}
 22266  	if err := oprot.WriteFieldStop(); err != nil {
 22267  		return thrift.PrependError("write field stop error: ", err)
 22268  	}
 22269  	if err := oprot.WriteStructEnd(); err != nil {
 22270  		return thrift.PrependError("write struct stop error: ", err)
 22271  	}
 22272  	return nil
 22273  }
 22274  
 22275  func (p *NodeFetchBlocksMetadataRawV2Args) writeField1(oprot thrift.TProtocol) (err error) {
 22276  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 22277  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 22278  	}
 22279  	if err := p.Req.Write(oprot); err != nil {
 22280  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 22281  	}
 22282  	if err := oprot.WriteFieldEnd(); err != nil {
 22283  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 22284  	}
 22285  	return err
 22286  }
 22287  
 22288  func (p *NodeFetchBlocksMetadataRawV2Args) String() string {
 22289  	if p == nil {
 22290  		return "<nil>"
 22291  	}
 22292  	return fmt.Sprintf("NodeFetchBlocksMetadataRawV2Args(%+v)", *p)
 22293  }
 22294  
 22295  // Attributes:
 22296  //  - Success
 22297  //  - Err
 22298  type NodeFetchBlocksMetadataRawV2Result struct {
 22299  	Success *FetchBlocksMetadataRawV2Result_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 22300  	Err     *Error                           `thrift:"err,1" db:"err" json:"err,omitempty"`
 22301  }
 22302  
 22303  func NewNodeFetchBlocksMetadataRawV2Result() *NodeFetchBlocksMetadataRawV2Result {
 22304  	return &NodeFetchBlocksMetadataRawV2Result{}
 22305  }
 22306  
 22307  var NodeFetchBlocksMetadataRawV2Result_Success_DEFAULT *FetchBlocksMetadataRawV2Result_
 22308  
 22309  func (p *NodeFetchBlocksMetadataRawV2Result) GetSuccess() *FetchBlocksMetadataRawV2Result_ {
 22310  	if !p.IsSetSuccess() {
 22311  		return NodeFetchBlocksMetadataRawV2Result_Success_DEFAULT
 22312  	}
 22313  	return p.Success
 22314  }
 22315  
 22316  var NodeFetchBlocksMetadataRawV2Result_Err_DEFAULT *Error
 22317  
 22318  func (p *NodeFetchBlocksMetadataRawV2Result) GetErr() *Error {
 22319  	if !p.IsSetErr() {
 22320  		return NodeFetchBlocksMetadataRawV2Result_Err_DEFAULT
 22321  	}
 22322  	return p.Err
 22323  }
 22324  func (p *NodeFetchBlocksMetadataRawV2Result) IsSetSuccess() bool {
 22325  	return p.Success != nil
 22326  }
 22327  
 22328  func (p *NodeFetchBlocksMetadataRawV2Result) IsSetErr() bool {
 22329  	return p.Err != nil
 22330  }
 22331  
 22332  func (p *NodeFetchBlocksMetadataRawV2Result) Read(iprot thrift.TProtocol) error {
 22333  	if _, err := iprot.ReadStructBegin(); err != nil {
 22334  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 22335  	}
 22336  
 22337  	for {
 22338  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 22339  		if err != nil {
 22340  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 22341  		}
 22342  		if fieldTypeId == thrift.STOP {
 22343  			break
 22344  		}
 22345  		switch fieldId {
 22346  		case 0:
 22347  			if err := p.ReadField0(iprot); err != nil {
 22348  				return err
 22349  			}
 22350  		case 1:
 22351  			if err := p.ReadField1(iprot); err != nil {
 22352  				return err
 22353  			}
 22354  		default:
 22355  			if err := iprot.Skip(fieldTypeId); err != nil {
 22356  				return err
 22357  			}
 22358  		}
 22359  		if err := iprot.ReadFieldEnd(); err != nil {
 22360  			return err
 22361  		}
 22362  	}
 22363  	if err := iprot.ReadStructEnd(); err != nil {
 22364  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 22365  	}
 22366  	return nil
 22367  }
 22368  
 22369  func (p *NodeFetchBlocksMetadataRawV2Result) ReadField0(iprot thrift.TProtocol) error {
 22370  	p.Success = &FetchBlocksMetadataRawV2Result_{}
 22371  	if err := p.Success.Read(iprot); err != nil {
 22372  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 22373  	}
 22374  	return nil
 22375  }
 22376  
 22377  func (p *NodeFetchBlocksMetadataRawV2Result) ReadField1(iprot thrift.TProtocol) error {
 22378  	p.Err = &Error{
 22379  		Type: 0,
 22380  	}
 22381  	if err := p.Err.Read(iprot); err != nil {
 22382  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 22383  	}
 22384  	return nil
 22385  }
 22386  
 22387  func (p *NodeFetchBlocksMetadataRawV2Result) Write(oprot thrift.TProtocol) error {
 22388  	if err := oprot.WriteStructBegin("fetchBlocksMetadataRawV2_result"); err != nil {
 22389  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 22390  	}
 22391  	if p != nil {
 22392  		if err := p.writeField0(oprot); err != nil {
 22393  			return err
 22394  		}
 22395  		if err := p.writeField1(oprot); err != nil {
 22396  			return err
 22397  		}
 22398  	}
 22399  	if err := oprot.WriteFieldStop(); err != nil {
 22400  		return thrift.PrependError("write field stop error: ", err)
 22401  	}
 22402  	if err := oprot.WriteStructEnd(); err != nil {
 22403  		return thrift.PrependError("write struct stop error: ", err)
 22404  	}
 22405  	return nil
 22406  }
 22407  
 22408  func (p *NodeFetchBlocksMetadataRawV2Result) writeField0(oprot thrift.TProtocol) (err error) {
 22409  	if p.IsSetSuccess() {
 22410  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 22411  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 22412  		}
 22413  		if err := p.Success.Write(oprot); err != nil {
 22414  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 22415  		}
 22416  		if err := oprot.WriteFieldEnd(); err != nil {
 22417  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 22418  		}
 22419  	}
 22420  	return err
 22421  }
 22422  
 22423  func (p *NodeFetchBlocksMetadataRawV2Result) writeField1(oprot thrift.TProtocol) (err error) {
 22424  	if p.IsSetErr() {
 22425  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 22426  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 22427  		}
 22428  		if err := p.Err.Write(oprot); err != nil {
 22429  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 22430  		}
 22431  		if err := oprot.WriteFieldEnd(); err != nil {
 22432  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 22433  		}
 22434  	}
 22435  	return err
 22436  }
 22437  
 22438  func (p *NodeFetchBlocksMetadataRawV2Result) String() string {
 22439  	if p == nil {
 22440  		return "<nil>"
 22441  	}
 22442  	return fmt.Sprintf("NodeFetchBlocksMetadataRawV2Result(%+v)", *p)
 22443  }
 22444  
 22445  // Attributes:
 22446  //  - Req
 22447  type NodeWriteBatchRawArgs struct {
 22448  	Req *WriteBatchRawRequest `thrift:"req,1" db:"req" json:"req"`
 22449  }
 22450  
 22451  func NewNodeWriteBatchRawArgs() *NodeWriteBatchRawArgs {
 22452  	return &NodeWriteBatchRawArgs{}
 22453  }
 22454  
 22455  var NodeWriteBatchRawArgs_Req_DEFAULT *WriteBatchRawRequest
 22456  
 22457  func (p *NodeWriteBatchRawArgs) GetReq() *WriteBatchRawRequest {
 22458  	if !p.IsSetReq() {
 22459  		return NodeWriteBatchRawArgs_Req_DEFAULT
 22460  	}
 22461  	return p.Req
 22462  }
 22463  func (p *NodeWriteBatchRawArgs) IsSetReq() bool {
 22464  	return p.Req != nil
 22465  }
 22466  
 22467  func (p *NodeWriteBatchRawArgs) Read(iprot thrift.TProtocol) error {
 22468  	if _, err := iprot.ReadStructBegin(); err != nil {
 22469  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 22470  	}
 22471  
 22472  	for {
 22473  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 22474  		if err != nil {
 22475  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 22476  		}
 22477  		if fieldTypeId == thrift.STOP {
 22478  			break
 22479  		}
 22480  		switch fieldId {
 22481  		case 1:
 22482  			if err := p.ReadField1(iprot); err != nil {
 22483  				return err
 22484  			}
 22485  		default:
 22486  			if err := iprot.Skip(fieldTypeId); err != nil {
 22487  				return err
 22488  			}
 22489  		}
 22490  		if err := iprot.ReadFieldEnd(); err != nil {
 22491  			return err
 22492  		}
 22493  	}
 22494  	if err := iprot.ReadStructEnd(); err != nil {
 22495  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 22496  	}
 22497  	return nil
 22498  }
 22499  
 22500  func (p *NodeWriteBatchRawArgs) ReadField1(iprot thrift.TProtocol) error {
 22501  	p.Req = &WriteBatchRawRequest{}
 22502  	if err := p.Req.Read(iprot); err != nil {
 22503  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 22504  	}
 22505  	return nil
 22506  }
 22507  
 22508  func (p *NodeWriteBatchRawArgs) Write(oprot thrift.TProtocol) error {
 22509  	if err := oprot.WriteStructBegin("writeBatchRaw_args"); err != nil {
 22510  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 22511  	}
 22512  	if p != nil {
 22513  		if err := p.writeField1(oprot); err != nil {
 22514  			return err
 22515  		}
 22516  	}
 22517  	if err := oprot.WriteFieldStop(); err != nil {
 22518  		return thrift.PrependError("write field stop error: ", err)
 22519  	}
 22520  	if err := oprot.WriteStructEnd(); err != nil {
 22521  		return thrift.PrependError("write struct stop error: ", err)
 22522  	}
 22523  	return nil
 22524  }
 22525  
 22526  func (p *NodeWriteBatchRawArgs) writeField1(oprot thrift.TProtocol) (err error) {
 22527  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 22528  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 22529  	}
 22530  	if err := p.Req.Write(oprot); err != nil {
 22531  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 22532  	}
 22533  	if err := oprot.WriteFieldEnd(); err != nil {
 22534  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 22535  	}
 22536  	return err
 22537  }
 22538  
 22539  func (p *NodeWriteBatchRawArgs) String() string {
 22540  	if p == nil {
 22541  		return "<nil>"
 22542  	}
 22543  	return fmt.Sprintf("NodeWriteBatchRawArgs(%+v)", *p)
 22544  }
 22545  
 22546  // Attributes:
 22547  //  - Err
 22548  type NodeWriteBatchRawResult struct {
 22549  	Err *WriteBatchRawErrors `thrift:"err,1" db:"err" json:"err,omitempty"`
 22550  }
 22551  
 22552  func NewNodeWriteBatchRawResult() *NodeWriteBatchRawResult {
 22553  	return &NodeWriteBatchRawResult{}
 22554  }
 22555  
 22556  var NodeWriteBatchRawResult_Err_DEFAULT *WriteBatchRawErrors
 22557  
 22558  func (p *NodeWriteBatchRawResult) GetErr() *WriteBatchRawErrors {
 22559  	if !p.IsSetErr() {
 22560  		return NodeWriteBatchRawResult_Err_DEFAULT
 22561  	}
 22562  	return p.Err
 22563  }
 22564  func (p *NodeWriteBatchRawResult) IsSetErr() bool {
 22565  	return p.Err != nil
 22566  }
 22567  
 22568  func (p *NodeWriteBatchRawResult) Read(iprot thrift.TProtocol) error {
 22569  	if _, err := iprot.ReadStructBegin(); err != nil {
 22570  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 22571  	}
 22572  
 22573  	for {
 22574  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 22575  		if err != nil {
 22576  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 22577  		}
 22578  		if fieldTypeId == thrift.STOP {
 22579  			break
 22580  		}
 22581  		switch fieldId {
 22582  		case 1:
 22583  			if err := p.ReadField1(iprot); err != nil {
 22584  				return err
 22585  			}
 22586  		default:
 22587  			if err := iprot.Skip(fieldTypeId); err != nil {
 22588  				return err
 22589  			}
 22590  		}
 22591  		if err := iprot.ReadFieldEnd(); err != nil {
 22592  			return err
 22593  		}
 22594  	}
 22595  	if err := iprot.ReadStructEnd(); err != nil {
 22596  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 22597  	}
 22598  	return nil
 22599  }
 22600  
 22601  func (p *NodeWriteBatchRawResult) ReadField1(iprot thrift.TProtocol) error {
 22602  	p.Err = &WriteBatchRawErrors{}
 22603  	if err := p.Err.Read(iprot); err != nil {
 22604  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 22605  	}
 22606  	return nil
 22607  }
 22608  
 22609  func (p *NodeWriteBatchRawResult) Write(oprot thrift.TProtocol) error {
 22610  	if err := oprot.WriteStructBegin("writeBatchRaw_result"); err != nil {
 22611  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 22612  	}
 22613  	if p != nil {
 22614  		if err := p.writeField1(oprot); err != nil {
 22615  			return err
 22616  		}
 22617  	}
 22618  	if err := oprot.WriteFieldStop(); err != nil {
 22619  		return thrift.PrependError("write field stop error: ", err)
 22620  	}
 22621  	if err := oprot.WriteStructEnd(); err != nil {
 22622  		return thrift.PrependError("write struct stop error: ", err)
 22623  	}
 22624  	return nil
 22625  }
 22626  
 22627  func (p *NodeWriteBatchRawResult) writeField1(oprot thrift.TProtocol) (err error) {
 22628  	if p.IsSetErr() {
 22629  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 22630  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 22631  		}
 22632  		if err := p.Err.Write(oprot); err != nil {
 22633  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 22634  		}
 22635  		if err := oprot.WriteFieldEnd(); err != nil {
 22636  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 22637  		}
 22638  	}
 22639  	return err
 22640  }
 22641  
 22642  func (p *NodeWriteBatchRawResult) String() string {
 22643  	if p == nil {
 22644  		return "<nil>"
 22645  	}
 22646  	return fmt.Sprintf("NodeWriteBatchRawResult(%+v)", *p)
 22647  }
 22648  
 22649  // Attributes:
 22650  //  - Req
 22651  type NodeWriteBatchRawV2Args struct {
 22652  	Req *WriteBatchRawV2Request `thrift:"req,1" db:"req" json:"req"`
 22653  }
 22654  
 22655  func NewNodeWriteBatchRawV2Args() *NodeWriteBatchRawV2Args {
 22656  	return &NodeWriteBatchRawV2Args{}
 22657  }
 22658  
 22659  var NodeWriteBatchRawV2Args_Req_DEFAULT *WriteBatchRawV2Request
 22660  
 22661  func (p *NodeWriteBatchRawV2Args) GetReq() *WriteBatchRawV2Request {
 22662  	if !p.IsSetReq() {
 22663  		return NodeWriteBatchRawV2Args_Req_DEFAULT
 22664  	}
 22665  	return p.Req
 22666  }
 22667  func (p *NodeWriteBatchRawV2Args) IsSetReq() bool {
 22668  	return p.Req != nil
 22669  }
 22670  
 22671  func (p *NodeWriteBatchRawV2Args) Read(iprot thrift.TProtocol) error {
 22672  	if _, err := iprot.ReadStructBegin(); err != nil {
 22673  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 22674  	}
 22675  
 22676  	for {
 22677  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 22678  		if err != nil {
 22679  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 22680  		}
 22681  		if fieldTypeId == thrift.STOP {
 22682  			break
 22683  		}
 22684  		switch fieldId {
 22685  		case 1:
 22686  			if err := p.ReadField1(iprot); err != nil {
 22687  				return err
 22688  			}
 22689  		default:
 22690  			if err := iprot.Skip(fieldTypeId); err != nil {
 22691  				return err
 22692  			}
 22693  		}
 22694  		if err := iprot.ReadFieldEnd(); err != nil {
 22695  			return err
 22696  		}
 22697  	}
 22698  	if err := iprot.ReadStructEnd(); err != nil {
 22699  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 22700  	}
 22701  	return nil
 22702  }
 22703  
 22704  func (p *NodeWriteBatchRawV2Args) ReadField1(iprot thrift.TProtocol) error {
 22705  	p.Req = &WriteBatchRawV2Request{}
 22706  	if err := p.Req.Read(iprot); err != nil {
 22707  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 22708  	}
 22709  	return nil
 22710  }
 22711  
 22712  func (p *NodeWriteBatchRawV2Args) Write(oprot thrift.TProtocol) error {
 22713  	if err := oprot.WriteStructBegin("writeBatchRawV2_args"); err != nil {
 22714  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 22715  	}
 22716  	if p != nil {
 22717  		if err := p.writeField1(oprot); err != nil {
 22718  			return err
 22719  		}
 22720  	}
 22721  	if err := oprot.WriteFieldStop(); err != nil {
 22722  		return thrift.PrependError("write field stop error: ", err)
 22723  	}
 22724  	if err := oprot.WriteStructEnd(); err != nil {
 22725  		return thrift.PrependError("write struct stop error: ", err)
 22726  	}
 22727  	return nil
 22728  }
 22729  
 22730  func (p *NodeWriteBatchRawV2Args) writeField1(oprot thrift.TProtocol) (err error) {
 22731  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 22732  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 22733  	}
 22734  	if err := p.Req.Write(oprot); err != nil {
 22735  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 22736  	}
 22737  	if err := oprot.WriteFieldEnd(); err != nil {
 22738  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 22739  	}
 22740  	return err
 22741  }
 22742  
 22743  func (p *NodeWriteBatchRawV2Args) String() string {
 22744  	if p == nil {
 22745  		return "<nil>"
 22746  	}
 22747  	return fmt.Sprintf("NodeWriteBatchRawV2Args(%+v)", *p)
 22748  }
 22749  
 22750  // Attributes:
 22751  //  - Err
 22752  type NodeWriteBatchRawV2Result struct {
 22753  	Err *WriteBatchRawErrors `thrift:"err,1" db:"err" json:"err,omitempty"`
 22754  }
 22755  
 22756  func NewNodeWriteBatchRawV2Result() *NodeWriteBatchRawV2Result {
 22757  	return &NodeWriteBatchRawV2Result{}
 22758  }
 22759  
 22760  var NodeWriteBatchRawV2Result_Err_DEFAULT *WriteBatchRawErrors
 22761  
 22762  func (p *NodeWriteBatchRawV2Result) GetErr() *WriteBatchRawErrors {
 22763  	if !p.IsSetErr() {
 22764  		return NodeWriteBatchRawV2Result_Err_DEFAULT
 22765  	}
 22766  	return p.Err
 22767  }
 22768  func (p *NodeWriteBatchRawV2Result) IsSetErr() bool {
 22769  	return p.Err != nil
 22770  }
 22771  
 22772  func (p *NodeWriteBatchRawV2Result) Read(iprot thrift.TProtocol) error {
 22773  	if _, err := iprot.ReadStructBegin(); err != nil {
 22774  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 22775  	}
 22776  
 22777  	for {
 22778  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 22779  		if err != nil {
 22780  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 22781  		}
 22782  		if fieldTypeId == thrift.STOP {
 22783  			break
 22784  		}
 22785  		switch fieldId {
 22786  		case 1:
 22787  			if err := p.ReadField1(iprot); err != nil {
 22788  				return err
 22789  			}
 22790  		default:
 22791  			if err := iprot.Skip(fieldTypeId); err != nil {
 22792  				return err
 22793  			}
 22794  		}
 22795  		if err := iprot.ReadFieldEnd(); err != nil {
 22796  			return err
 22797  		}
 22798  	}
 22799  	if err := iprot.ReadStructEnd(); err != nil {
 22800  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 22801  	}
 22802  	return nil
 22803  }
 22804  
 22805  func (p *NodeWriteBatchRawV2Result) ReadField1(iprot thrift.TProtocol) error {
 22806  	p.Err = &WriteBatchRawErrors{}
 22807  	if err := p.Err.Read(iprot); err != nil {
 22808  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 22809  	}
 22810  	return nil
 22811  }
 22812  
 22813  func (p *NodeWriteBatchRawV2Result) Write(oprot thrift.TProtocol) error {
 22814  	if err := oprot.WriteStructBegin("writeBatchRawV2_result"); err != nil {
 22815  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 22816  	}
 22817  	if p != nil {
 22818  		if err := p.writeField1(oprot); err != nil {
 22819  			return err
 22820  		}
 22821  	}
 22822  	if err := oprot.WriteFieldStop(); err != nil {
 22823  		return thrift.PrependError("write field stop error: ", err)
 22824  	}
 22825  	if err := oprot.WriteStructEnd(); err != nil {
 22826  		return thrift.PrependError("write struct stop error: ", err)
 22827  	}
 22828  	return nil
 22829  }
 22830  
 22831  func (p *NodeWriteBatchRawV2Result) writeField1(oprot thrift.TProtocol) (err error) {
 22832  	if p.IsSetErr() {
 22833  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 22834  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 22835  		}
 22836  		if err := p.Err.Write(oprot); err != nil {
 22837  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 22838  		}
 22839  		if err := oprot.WriteFieldEnd(); err != nil {
 22840  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 22841  		}
 22842  	}
 22843  	return err
 22844  }
 22845  
 22846  func (p *NodeWriteBatchRawV2Result) String() string {
 22847  	if p == nil {
 22848  		return "<nil>"
 22849  	}
 22850  	return fmt.Sprintf("NodeWriteBatchRawV2Result(%+v)", *p)
 22851  }
 22852  
 22853  // Attributes:
 22854  //  - Req
 22855  type NodeWriteTaggedBatchRawArgs struct {
 22856  	Req *WriteTaggedBatchRawRequest `thrift:"req,1" db:"req" json:"req"`
 22857  }
 22858  
 22859  func NewNodeWriteTaggedBatchRawArgs() *NodeWriteTaggedBatchRawArgs {
 22860  	return &NodeWriteTaggedBatchRawArgs{}
 22861  }
 22862  
 22863  var NodeWriteTaggedBatchRawArgs_Req_DEFAULT *WriteTaggedBatchRawRequest
 22864  
 22865  func (p *NodeWriteTaggedBatchRawArgs) GetReq() *WriteTaggedBatchRawRequest {
 22866  	if !p.IsSetReq() {
 22867  		return NodeWriteTaggedBatchRawArgs_Req_DEFAULT
 22868  	}
 22869  	return p.Req
 22870  }
 22871  func (p *NodeWriteTaggedBatchRawArgs) IsSetReq() bool {
 22872  	return p.Req != nil
 22873  }
 22874  
 22875  func (p *NodeWriteTaggedBatchRawArgs) Read(iprot thrift.TProtocol) error {
 22876  	if _, err := iprot.ReadStructBegin(); err != nil {
 22877  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 22878  	}
 22879  
 22880  	for {
 22881  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 22882  		if err != nil {
 22883  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 22884  		}
 22885  		if fieldTypeId == thrift.STOP {
 22886  			break
 22887  		}
 22888  		switch fieldId {
 22889  		case 1:
 22890  			if err := p.ReadField1(iprot); err != nil {
 22891  				return err
 22892  			}
 22893  		default:
 22894  			if err := iprot.Skip(fieldTypeId); err != nil {
 22895  				return err
 22896  			}
 22897  		}
 22898  		if err := iprot.ReadFieldEnd(); err != nil {
 22899  			return err
 22900  		}
 22901  	}
 22902  	if err := iprot.ReadStructEnd(); err != nil {
 22903  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 22904  	}
 22905  	return nil
 22906  }
 22907  
 22908  func (p *NodeWriteTaggedBatchRawArgs) ReadField1(iprot thrift.TProtocol) error {
 22909  	p.Req = &WriteTaggedBatchRawRequest{}
 22910  	if err := p.Req.Read(iprot); err != nil {
 22911  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 22912  	}
 22913  	return nil
 22914  }
 22915  
 22916  func (p *NodeWriteTaggedBatchRawArgs) Write(oprot thrift.TProtocol) error {
 22917  	if err := oprot.WriteStructBegin("writeTaggedBatchRaw_args"); err != nil {
 22918  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 22919  	}
 22920  	if p != nil {
 22921  		if err := p.writeField1(oprot); err != nil {
 22922  			return err
 22923  		}
 22924  	}
 22925  	if err := oprot.WriteFieldStop(); err != nil {
 22926  		return thrift.PrependError("write field stop error: ", err)
 22927  	}
 22928  	if err := oprot.WriteStructEnd(); err != nil {
 22929  		return thrift.PrependError("write struct stop error: ", err)
 22930  	}
 22931  	return nil
 22932  }
 22933  
 22934  func (p *NodeWriteTaggedBatchRawArgs) writeField1(oprot thrift.TProtocol) (err error) {
 22935  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 22936  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 22937  	}
 22938  	if err := p.Req.Write(oprot); err != nil {
 22939  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 22940  	}
 22941  	if err := oprot.WriteFieldEnd(); err != nil {
 22942  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 22943  	}
 22944  	return err
 22945  }
 22946  
 22947  func (p *NodeWriteTaggedBatchRawArgs) String() string {
 22948  	if p == nil {
 22949  		return "<nil>"
 22950  	}
 22951  	return fmt.Sprintf("NodeWriteTaggedBatchRawArgs(%+v)", *p)
 22952  }
 22953  
 22954  // Attributes:
 22955  //  - Err
 22956  type NodeWriteTaggedBatchRawResult struct {
 22957  	Err *WriteBatchRawErrors `thrift:"err,1" db:"err" json:"err,omitempty"`
 22958  }
 22959  
 22960  func NewNodeWriteTaggedBatchRawResult() *NodeWriteTaggedBatchRawResult {
 22961  	return &NodeWriteTaggedBatchRawResult{}
 22962  }
 22963  
 22964  var NodeWriteTaggedBatchRawResult_Err_DEFAULT *WriteBatchRawErrors
 22965  
 22966  func (p *NodeWriteTaggedBatchRawResult) GetErr() *WriteBatchRawErrors {
 22967  	if !p.IsSetErr() {
 22968  		return NodeWriteTaggedBatchRawResult_Err_DEFAULT
 22969  	}
 22970  	return p.Err
 22971  }
 22972  func (p *NodeWriteTaggedBatchRawResult) IsSetErr() bool {
 22973  	return p.Err != nil
 22974  }
 22975  
 22976  func (p *NodeWriteTaggedBatchRawResult) Read(iprot thrift.TProtocol) error {
 22977  	if _, err := iprot.ReadStructBegin(); err != nil {
 22978  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 22979  	}
 22980  
 22981  	for {
 22982  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 22983  		if err != nil {
 22984  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 22985  		}
 22986  		if fieldTypeId == thrift.STOP {
 22987  			break
 22988  		}
 22989  		switch fieldId {
 22990  		case 1:
 22991  			if err := p.ReadField1(iprot); err != nil {
 22992  				return err
 22993  			}
 22994  		default:
 22995  			if err := iprot.Skip(fieldTypeId); err != nil {
 22996  				return err
 22997  			}
 22998  		}
 22999  		if err := iprot.ReadFieldEnd(); err != nil {
 23000  			return err
 23001  		}
 23002  	}
 23003  	if err := iprot.ReadStructEnd(); err != nil {
 23004  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 23005  	}
 23006  	return nil
 23007  }
 23008  
 23009  func (p *NodeWriteTaggedBatchRawResult) ReadField1(iprot thrift.TProtocol) error {
 23010  	p.Err = &WriteBatchRawErrors{}
 23011  	if err := p.Err.Read(iprot); err != nil {
 23012  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 23013  	}
 23014  	return nil
 23015  }
 23016  
 23017  func (p *NodeWriteTaggedBatchRawResult) Write(oprot thrift.TProtocol) error {
 23018  	if err := oprot.WriteStructBegin("writeTaggedBatchRaw_result"); err != nil {
 23019  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 23020  	}
 23021  	if p != nil {
 23022  		if err := p.writeField1(oprot); err != nil {
 23023  			return err
 23024  		}
 23025  	}
 23026  	if err := oprot.WriteFieldStop(); err != nil {
 23027  		return thrift.PrependError("write field stop error: ", err)
 23028  	}
 23029  	if err := oprot.WriteStructEnd(); err != nil {
 23030  		return thrift.PrependError("write struct stop error: ", err)
 23031  	}
 23032  	return nil
 23033  }
 23034  
 23035  func (p *NodeWriteTaggedBatchRawResult) writeField1(oprot thrift.TProtocol) (err error) {
 23036  	if p.IsSetErr() {
 23037  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 23038  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 23039  		}
 23040  		if err := p.Err.Write(oprot); err != nil {
 23041  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 23042  		}
 23043  		if err := oprot.WriteFieldEnd(); err != nil {
 23044  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 23045  		}
 23046  	}
 23047  	return err
 23048  }
 23049  
 23050  func (p *NodeWriteTaggedBatchRawResult) String() string {
 23051  	if p == nil {
 23052  		return "<nil>"
 23053  	}
 23054  	return fmt.Sprintf("NodeWriteTaggedBatchRawResult(%+v)", *p)
 23055  }
 23056  
 23057  // Attributes:
 23058  //  - Req
 23059  type NodeWriteTaggedBatchRawV2Args struct {
 23060  	Req *WriteTaggedBatchRawV2Request `thrift:"req,1" db:"req" json:"req"`
 23061  }
 23062  
 23063  func NewNodeWriteTaggedBatchRawV2Args() *NodeWriteTaggedBatchRawV2Args {
 23064  	return &NodeWriteTaggedBatchRawV2Args{}
 23065  }
 23066  
 23067  var NodeWriteTaggedBatchRawV2Args_Req_DEFAULT *WriteTaggedBatchRawV2Request
 23068  
 23069  func (p *NodeWriteTaggedBatchRawV2Args) GetReq() *WriteTaggedBatchRawV2Request {
 23070  	if !p.IsSetReq() {
 23071  		return NodeWriteTaggedBatchRawV2Args_Req_DEFAULT
 23072  	}
 23073  	return p.Req
 23074  }
 23075  func (p *NodeWriteTaggedBatchRawV2Args) IsSetReq() bool {
 23076  	return p.Req != nil
 23077  }
 23078  
 23079  func (p *NodeWriteTaggedBatchRawV2Args) Read(iprot thrift.TProtocol) error {
 23080  	if _, err := iprot.ReadStructBegin(); err != nil {
 23081  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 23082  	}
 23083  
 23084  	for {
 23085  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 23086  		if err != nil {
 23087  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 23088  		}
 23089  		if fieldTypeId == thrift.STOP {
 23090  			break
 23091  		}
 23092  		switch fieldId {
 23093  		case 1:
 23094  			if err := p.ReadField1(iprot); err != nil {
 23095  				return err
 23096  			}
 23097  		default:
 23098  			if err := iprot.Skip(fieldTypeId); err != nil {
 23099  				return err
 23100  			}
 23101  		}
 23102  		if err := iprot.ReadFieldEnd(); err != nil {
 23103  			return err
 23104  		}
 23105  	}
 23106  	if err := iprot.ReadStructEnd(); err != nil {
 23107  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 23108  	}
 23109  	return nil
 23110  }
 23111  
 23112  func (p *NodeWriteTaggedBatchRawV2Args) ReadField1(iprot thrift.TProtocol) error {
 23113  	p.Req = &WriteTaggedBatchRawV2Request{}
 23114  	if err := p.Req.Read(iprot); err != nil {
 23115  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 23116  	}
 23117  	return nil
 23118  }
 23119  
 23120  func (p *NodeWriteTaggedBatchRawV2Args) Write(oprot thrift.TProtocol) error {
 23121  	if err := oprot.WriteStructBegin("writeTaggedBatchRawV2_args"); err != nil {
 23122  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 23123  	}
 23124  	if p != nil {
 23125  		if err := p.writeField1(oprot); err != nil {
 23126  			return err
 23127  		}
 23128  	}
 23129  	if err := oprot.WriteFieldStop(); err != nil {
 23130  		return thrift.PrependError("write field stop error: ", err)
 23131  	}
 23132  	if err := oprot.WriteStructEnd(); err != nil {
 23133  		return thrift.PrependError("write struct stop error: ", err)
 23134  	}
 23135  	return nil
 23136  }
 23137  
 23138  func (p *NodeWriteTaggedBatchRawV2Args) writeField1(oprot thrift.TProtocol) (err error) {
 23139  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 23140  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 23141  	}
 23142  	if err := p.Req.Write(oprot); err != nil {
 23143  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 23144  	}
 23145  	if err := oprot.WriteFieldEnd(); err != nil {
 23146  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 23147  	}
 23148  	return err
 23149  }
 23150  
 23151  func (p *NodeWriteTaggedBatchRawV2Args) String() string {
 23152  	if p == nil {
 23153  		return "<nil>"
 23154  	}
 23155  	return fmt.Sprintf("NodeWriteTaggedBatchRawV2Args(%+v)", *p)
 23156  }
 23157  
 23158  // Attributes:
 23159  //  - Err
 23160  type NodeWriteTaggedBatchRawV2Result struct {
 23161  	Err *WriteBatchRawErrors `thrift:"err,1" db:"err" json:"err,omitempty"`
 23162  }
 23163  
 23164  func NewNodeWriteTaggedBatchRawV2Result() *NodeWriteTaggedBatchRawV2Result {
 23165  	return &NodeWriteTaggedBatchRawV2Result{}
 23166  }
 23167  
 23168  var NodeWriteTaggedBatchRawV2Result_Err_DEFAULT *WriteBatchRawErrors
 23169  
 23170  func (p *NodeWriteTaggedBatchRawV2Result) GetErr() *WriteBatchRawErrors {
 23171  	if !p.IsSetErr() {
 23172  		return NodeWriteTaggedBatchRawV2Result_Err_DEFAULT
 23173  	}
 23174  	return p.Err
 23175  }
 23176  func (p *NodeWriteTaggedBatchRawV2Result) IsSetErr() bool {
 23177  	return p.Err != nil
 23178  }
 23179  
 23180  func (p *NodeWriteTaggedBatchRawV2Result) Read(iprot thrift.TProtocol) error {
 23181  	if _, err := iprot.ReadStructBegin(); err != nil {
 23182  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 23183  	}
 23184  
 23185  	for {
 23186  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 23187  		if err != nil {
 23188  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 23189  		}
 23190  		if fieldTypeId == thrift.STOP {
 23191  			break
 23192  		}
 23193  		switch fieldId {
 23194  		case 1:
 23195  			if err := p.ReadField1(iprot); err != nil {
 23196  				return err
 23197  			}
 23198  		default:
 23199  			if err := iprot.Skip(fieldTypeId); err != nil {
 23200  				return err
 23201  			}
 23202  		}
 23203  		if err := iprot.ReadFieldEnd(); err != nil {
 23204  			return err
 23205  		}
 23206  	}
 23207  	if err := iprot.ReadStructEnd(); err != nil {
 23208  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 23209  	}
 23210  	return nil
 23211  }
 23212  
 23213  func (p *NodeWriteTaggedBatchRawV2Result) ReadField1(iprot thrift.TProtocol) error {
 23214  	p.Err = &WriteBatchRawErrors{}
 23215  	if err := p.Err.Read(iprot); err != nil {
 23216  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 23217  	}
 23218  	return nil
 23219  }
 23220  
 23221  func (p *NodeWriteTaggedBatchRawV2Result) Write(oprot thrift.TProtocol) error {
 23222  	if err := oprot.WriteStructBegin("writeTaggedBatchRawV2_result"); err != nil {
 23223  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 23224  	}
 23225  	if p != nil {
 23226  		if err := p.writeField1(oprot); err != nil {
 23227  			return err
 23228  		}
 23229  	}
 23230  	if err := oprot.WriteFieldStop(); err != nil {
 23231  		return thrift.PrependError("write field stop error: ", err)
 23232  	}
 23233  	if err := oprot.WriteStructEnd(); err != nil {
 23234  		return thrift.PrependError("write struct stop error: ", err)
 23235  	}
 23236  	return nil
 23237  }
 23238  
 23239  func (p *NodeWriteTaggedBatchRawV2Result) writeField1(oprot thrift.TProtocol) (err error) {
 23240  	if p.IsSetErr() {
 23241  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 23242  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 23243  		}
 23244  		if err := p.Err.Write(oprot); err != nil {
 23245  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 23246  		}
 23247  		if err := oprot.WriteFieldEnd(); err != nil {
 23248  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 23249  		}
 23250  	}
 23251  	return err
 23252  }
 23253  
 23254  func (p *NodeWriteTaggedBatchRawV2Result) String() string {
 23255  	if p == nil {
 23256  		return "<nil>"
 23257  	}
 23258  	return fmt.Sprintf("NodeWriteTaggedBatchRawV2Result(%+v)", *p)
 23259  }
 23260  
 23261  type NodeRepairArgs struct {
 23262  }
 23263  
 23264  func NewNodeRepairArgs() *NodeRepairArgs {
 23265  	return &NodeRepairArgs{}
 23266  }
 23267  
 23268  func (p *NodeRepairArgs) Read(iprot thrift.TProtocol) error {
 23269  	if _, err := iprot.ReadStructBegin(); err != nil {
 23270  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 23271  	}
 23272  
 23273  	for {
 23274  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 23275  		if err != nil {
 23276  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 23277  		}
 23278  		if fieldTypeId == thrift.STOP {
 23279  			break
 23280  		}
 23281  		if err := iprot.Skip(fieldTypeId); err != nil {
 23282  			return err
 23283  		}
 23284  		if err := iprot.ReadFieldEnd(); err != nil {
 23285  			return err
 23286  		}
 23287  	}
 23288  	if err := iprot.ReadStructEnd(); err != nil {
 23289  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 23290  	}
 23291  	return nil
 23292  }
 23293  
 23294  func (p *NodeRepairArgs) Write(oprot thrift.TProtocol) error {
 23295  	if err := oprot.WriteStructBegin("repair_args"); err != nil {
 23296  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 23297  	}
 23298  	if p != nil {
 23299  	}
 23300  	if err := oprot.WriteFieldStop(); err != nil {
 23301  		return thrift.PrependError("write field stop error: ", err)
 23302  	}
 23303  	if err := oprot.WriteStructEnd(); err != nil {
 23304  		return thrift.PrependError("write struct stop error: ", err)
 23305  	}
 23306  	return nil
 23307  }
 23308  
 23309  func (p *NodeRepairArgs) String() string {
 23310  	if p == nil {
 23311  		return "<nil>"
 23312  	}
 23313  	return fmt.Sprintf("NodeRepairArgs(%+v)", *p)
 23314  }
 23315  
 23316  // Attributes:
 23317  //  - Err
 23318  type NodeRepairResult struct {
 23319  	Err *Error `thrift:"err,1" db:"err" json:"err,omitempty"`
 23320  }
 23321  
 23322  func NewNodeRepairResult() *NodeRepairResult {
 23323  	return &NodeRepairResult{}
 23324  }
 23325  
 23326  var NodeRepairResult_Err_DEFAULT *Error
 23327  
 23328  func (p *NodeRepairResult) GetErr() *Error {
 23329  	if !p.IsSetErr() {
 23330  		return NodeRepairResult_Err_DEFAULT
 23331  	}
 23332  	return p.Err
 23333  }
 23334  func (p *NodeRepairResult) IsSetErr() bool {
 23335  	return p.Err != nil
 23336  }
 23337  
 23338  func (p *NodeRepairResult) Read(iprot thrift.TProtocol) error {
 23339  	if _, err := iprot.ReadStructBegin(); err != nil {
 23340  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 23341  	}
 23342  
 23343  	for {
 23344  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 23345  		if err != nil {
 23346  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 23347  		}
 23348  		if fieldTypeId == thrift.STOP {
 23349  			break
 23350  		}
 23351  		switch fieldId {
 23352  		case 1:
 23353  			if err := p.ReadField1(iprot); err != nil {
 23354  				return err
 23355  			}
 23356  		default:
 23357  			if err := iprot.Skip(fieldTypeId); err != nil {
 23358  				return err
 23359  			}
 23360  		}
 23361  		if err := iprot.ReadFieldEnd(); err != nil {
 23362  			return err
 23363  		}
 23364  	}
 23365  	if err := iprot.ReadStructEnd(); err != nil {
 23366  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 23367  	}
 23368  	return nil
 23369  }
 23370  
 23371  func (p *NodeRepairResult) ReadField1(iprot thrift.TProtocol) error {
 23372  	p.Err = &Error{
 23373  		Type: 0,
 23374  	}
 23375  	if err := p.Err.Read(iprot); err != nil {
 23376  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 23377  	}
 23378  	return nil
 23379  }
 23380  
 23381  func (p *NodeRepairResult) Write(oprot thrift.TProtocol) error {
 23382  	if err := oprot.WriteStructBegin("repair_result"); err != nil {
 23383  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 23384  	}
 23385  	if p != nil {
 23386  		if err := p.writeField1(oprot); err != nil {
 23387  			return err
 23388  		}
 23389  	}
 23390  	if err := oprot.WriteFieldStop(); err != nil {
 23391  		return thrift.PrependError("write field stop error: ", err)
 23392  	}
 23393  	if err := oprot.WriteStructEnd(); err != nil {
 23394  		return thrift.PrependError("write struct stop error: ", err)
 23395  	}
 23396  	return nil
 23397  }
 23398  
 23399  func (p *NodeRepairResult) writeField1(oprot thrift.TProtocol) (err error) {
 23400  	if p.IsSetErr() {
 23401  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 23402  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 23403  		}
 23404  		if err := p.Err.Write(oprot); err != nil {
 23405  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 23406  		}
 23407  		if err := oprot.WriteFieldEnd(); err != nil {
 23408  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 23409  		}
 23410  	}
 23411  	return err
 23412  }
 23413  
 23414  func (p *NodeRepairResult) String() string {
 23415  	if p == nil {
 23416  		return "<nil>"
 23417  	}
 23418  	return fmt.Sprintf("NodeRepairResult(%+v)", *p)
 23419  }
 23420  
 23421  // Attributes:
 23422  //  - Req
 23423  type NodeTruncateArgs struct {
 23424  	Req *TruncateRequest `thrift:"req,1" db:"req" json:"req"`
 23425  }
 23426  
 23427  func NewNodeTruncateArgs() *NodeTruncateArgs {
 23428  	return &NodeTruncateArgs{}
 23429  }
 23430  
 23431  var NodeTruncateArgs_Req_DEFAULT *TruncateRequest
 23432  
 23433  func (p *NodeTruncateArgs) GetReq() *TruncateRequest {
 23434  	if !p.IsSetReq() {
 23435  		return NodeTruncateArgs_Req_DEFAULT
 23436  	}
 23437  	return p.Req
 23438  }
 23439  func (p *NodeTruncateArgs) IsSetReq() bool {
 23440  	return p.Req != nil
 23441  }
 23442  
 23443  func (p *NodeTruncateArgs) Read(iprot thrift.TProtocol) error {
 23444  	if _, err := iprot.ReadStructBegin(); err != nil {
 23445  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 23446  	}
 23447  
 23448  	for {
 23449  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 23450  		if err != nil {
 23451  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 23452  		}
 23453  		if fieldTypeId == thrift.STOP {
 23454  			break
 23455  		}
 23456  		switch fieldId {
 23457  		case 1:
 23458  			if err := p.ReadField1(iprot); err != nil {
 23459  				return err
 23460  			}
 23461  		default:
 23462  			if err := iprot.Skip(fieldTypeId); err != nil {
 23463  				return err
 23464  			}
 23465  		}
 23466  		if err := iprot.ReadFieldEnd(); err != nil {
 23467  			return err
 23468  		}
 23469  	}
 23470  	if err := iprot.ReadStructEnd(); err != nil {
 23471  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 23472  	}
 23473  	return nil
 23474  }
 23475  
 23476  func (p *NodeTruncateArgs) ReadField1(iprot thrift.TProtocol) error {
 23477  	p.Req = &TruncateRequest{}
 23478  	if err := p.Req.Read(iprot); err != nil {
 23479  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 23480  	}
 23481  	return nil
 23482  }
 23483  
 23484  func (p *NodeTruncateArgs) Write(oprot thrift.TProtocol) error {
 23485  	if err := oprot.WriteStructBegin("truncate_args"); err != nil {
 23486  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 23487  	}
 23488  	if p != nil {
 23489  		if err := p.writeField1(oprot); err != nil {
 23490  			return err
 23491  		}
 23492  	}
 23493  	if err := oprot.WriteFieldStop(); err != nil {
 23494  		return thrift.PrependError("write field stop error: ", err)
 23495  	}
 23496  	if err := oprot.WriteStructEnd(); err != nil {
 23497  		return thrift.PrependError("write struct stop error: ", err)
 23498  	}
 23499  	return nil
 23500  }
 23501  
 23502  func (p *NodeTruncateArgs) writeField1(oprot thrift.TProtocol) (err error) {
 23503  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 23504  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 23505  	}
 23506  	if err := p.Req.Write(oprot); err != nil {
 23507  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 23508  	}
 23509  	if err := oprot.WriteFieldEnd(); err != nil {
 23510  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 23511  	}
 23512  	return err
 23513  }
 23514  
 23515  func (p *NodeTruncateArgs) String() string {
 23516  	if p == nil {
 23517  		return "<nil>"
 23518  	}
 23519  	return fmt.Sprintf("NodeTruncateArgs(%+v)", *p)
 23520  }
 23521  
 23522  // Attributes:
 23523  //  - Success
 23524  //  - Err
 23525  type NodeTruncateResult struct {
 23526  	Success *TruncateResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 23527  	Err     *Error           `thrift:"err,1" db:"err" json:"err,omitempty"`
 23528  }
 23529  
 23530  func NewNodeTruncateResult() *NodeTruncateResult {
 23531  	return &NodeTruncateResult{}
 23532  }
 23533  
 23534  var NodeTruncateResult_Success_DEFAULT *TruncateResult_
 23535  
 23536  func (p *NodeTruncateResult) GetSuccess() *TruncateResult_ {
 23537  	if !p.IsSetSuccess() {
 23538  		return NodeTruncateResult_Success_DEFAULT
 23539  	}
 23540  	return p.Success
 23541  }
 23542  
 23543  var NodeTruncateResult_Err_DEFAULT *Error
 23544  
 23545  func (p *NodeTruncateResult) GetErr() *Error {
 23546  	if !p.IsSetErr() {
 23547  		return NodeTruncateResult_Err_DEFAULT
 23548  	}
 23549  	return p.Err
 23550  }
 23551  func (p *NodeTruncateResult) IsSetSuccess() bool {
 23552  	return p.Success != nil
 23553  }
 23554  
 23555  func (p *NodeTruncateResult) IsSetErr() bool {
 23556  	return p.Err != nil
 23557  }
 23558  
 23559  func (p *NodeTruncateResult) Read(iprot thrift.TProtocol) error {
 23560  	if _, err := iprot.ReadStructBegin(); err != nil {
 23561  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 23562  	}
 23563  
 23564  	for {
 23565  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 23566  		if err != nil {
 23567  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 23568  		}
 23569  		if fieldTypeId == thrift.STOP {
 23570  			break
 23571  		}
 23572  		switch fieldId {
 23573  		case 0:
 23574  			if err := p.ReadField0(iprot); err != nil {
 23575  				return err
 23576  			}
 23577  		case 1:
 23578  			if err := p.ReadField1(iprot); err != nil {
 23579  				return err
 23580  			}
 23581  		default:
 23582  			if err := iprot.Skip(fieldTypeId); err != nil {
 23583  				return err
 23584  			}
 23585  		}
 23586  		if err := iprot.ReadFieldEnd(); err != nil {
 23587  			return err
 23588  		}
 23589  	}
 23590  	if err := iprot.ReadStructEnd(); err != nil {
 23591  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 23592  	}
 23593  	return nil
 23594  }
 23595  
 23596  func (p *NodeTruncateResult) ReadField0(iprot thrift.TProtocol) error {
 23597  	p.Success = &TruncateResult_{}
 23598  	if err := p.Success.Read(iprot); err != nil {
 23599  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 23600  	}
 23601  	return nil
 23602  }
 23603  
 23604  func (p *NodeTruncateResult) ReadField1(iprot thrift.TProtocol) error {
 23605  	p.Err = &Error{
 23606  		Type: 0,
 23607  	}
 23608  	if err := p.Err.Read(iprot); err != nil {
 23609  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 23610  	}
 23611  	return nil
 23612  }
 23613  
 23614  func (p *NodeTruncateResult) Write(oprot thrift.TProtocol) error {
 23615  	if err := oprot.WriteStructBegin("truncate_result"); err != nil {
 23616  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 23617  	}
 23618  	if p != nil {
 23619  		if err := p.writeField0(oprot); err != nil {
 23620  			return err
 23621  		}
 23622  		if err := p.writeField1(oprot); err != nil {
 23623  			return err
 23624  		}
 23625  	}
 23626  	if err := oprot.WriteFieldStop(); err != nil {
 23627  		return thrift.PrependError("write field stop error: ", err)
 23628  	}
 23629  	if err := oprot.WriteStructEnd(); err != nil {
 23630  		return thrift.PrependError("write struct stop error: ", err)
 23631  	}
 23632  	return nil
 23633  }
 23634  
 23635  func (p *NodeTruncateResult) writeField0(oprot thrift.TProtocol) (err error) {
 23636  	if p.IsSetSuccess() {
 23637  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 23638  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 23639  		}
 23640  		if err := p.Success.Write(oprot); err != nil {
 23641  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 23642  		}
 23643  		if err := oprot.WriteFieldEnd(); err != nil {
 23644  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 23645  		}
 23646  	}
 23647  	return err
 23648  }
 23649  
 23650  func (p *NodeTruncateResult) writeField1(oprot thrift.TProtocol) (err error) {
 23651  	if p.IsSetErr() {
 23652  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 23653  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 23654  		}
 23655  		if err := p.Err.Write(oprot); err != nil {
 23656  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 23657  		}
 23658  		if err := oprot.WriteFieldEnd(); err != nil {
 23659  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 23660  		}
 23661  	}
 23662  	return err
 23663  }
 23664  
 23665  func (p *NodeTruncateResult) String() string {
 23666  	if p == nil {
 23667  		return "<nil>"
 23668  	}
 23669  	return fmt.Sprintf("NodeTruncateResult(%+v)", *p)
 23670  }
 23671  
 23672  // Attributes:
 23673  //  - Req
 23674  type NodeAggregateTilesArgs struct {
 23675  	Req *AggregateTilesRequest `thrift:"req,1" db:"req" json:"req"`
 23676  }
 23677  
 23678  func NewNodeAggregateTilesArgs() *NodeAggregateTilesArgs {
 23679  	return &NodeAggregateTilesArgs{}
 23680  }
 23681  
 23682  var NodeAggregateTilesArgs_Req_DEFAULT *AggregateTilesRequest
 23683  
 23684  func (p *NodeAggregateTilesArgs) GetReq() *AggregateTilesRequest {
 23685  	if !p.IsSetReq() {
 23686  		return NodeAggregateTilesArgs_Req_DEFAULT
 23687  	}
 23688  	return p.Req
 23689  }
 23690  func (p *NodeAggregateTilesArgs) IsSetReq() bool {
 23691  	return p.Req != nil
 23692  }
 23693  
 23694  func (p *NodeAggregateTilesArgs) Read(iprot thrift.TProtocol) error {
 23695  	if _, err := iprot.ReadStructBegin(); err != nil {
 23696  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 23697  	}
 23698  
 23699  	for {
 23700  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 23701  		if err != nil {
 23702  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 23703  		}
 23704  		if fieldTypeId == thrift.STOP {
 23705  			break
 23706  		}
 23707  		switch fieldId {
 23708  		case 1:
 23709  			if err := p.ReadField1(iprot); err != nil {
 23710  				return err
 23711  			}
 23712  		default:
 23713  			if err := iprot.Skip(fieldTypeId); err != nil {
 23714  				return err
 23715  			}
 23716  		}
 23717  		if err := iprot.ReadFieldEnd(); err != nil {
 23718  			return err
 23719  		}
 23720  	}
 23721  	if err := iprot.ReadStructEnd(); err != nil {
 23722  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 23723  	}
 23724  	return nil
 23725  }
 23726  
 23727  func (p *NodeAggregateTilesArgs) ReadField1(iprot thrift.TProtocol) error {
 23728  	p.Req = &AggregateTilesRequest{
 23729  		RangeType: 0,
 23730  	}
 23731  	if err := p.Req.Read(iprot); err != nil {
 23732  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 23733  	}
 23734  	return nil
 23735  }
 23736  
 23737  func (p *NodeAggregateTilesArgs) Write(oprot thrift.TProtocol) error {
 23738  	if err := oprot.WriteStructBegin("aggregateTiles_args"); err != nil {
 23739  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 23740  	}
 23741  	if p != nil {
 23742  		if err := p.writeField1(oprot); err != nil {
 23743  			return err
 23744  		}
 23745  	}
 23746  	if err := oprot.WriteFieldStop(); err != nil {
 23747  		return thrift.PrependError("write field stop error: ", err)
 23748  	}
 23749  	if err := oprot.WriteStructEnd(); err != nil {
 23750  		return thrift.PrependError("write struct stop error: ", err)
 23751  	}
 23752  	return nil
 23753  }
 23754  
 23755  func (p *NodeAggregateTilesArgs) writeField1(oprot thrift.TProtocol) (err error) {
 23756  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 23757  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 23758  	}
 23759  	if err := p.Req.Write(oprot); err != nil {
 23760  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 23761  	}
 23762  	if err := oprot.WriteFieldEnd(); err != nil {
 23763  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 23764  	}
 23765  	return err
 23766  }
 23767  
 23768  func (p *NodeAggregateTilesArgs) String() string {
 23769  	if p == nil {
 23770  		return "<nil>"
 23771  	}
 23772  	return fmt.Sprintf("NodeAggregateTilesArgs(%+v)", *p)
 23773  }
 23774  
 23775  // Attributes:
 23776  //  - Success
 23777  //  - Err
 23778  type NodeAggregateTilesResult struct {
 23779  	Success *AggregateTilesResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 23780  	Err     *Error                 `thrift:"err,1" db:"err" json:"err,omitempty"`
 23781  }
 23782  
 23783  func NewNodeAggregateTilesResult() *NodeAggregateTilesResult {
 23784  	return &NodeAggregateTilesResult{}
 23785  }
 23786  
 23787  var NodeAggregateTilesResult_Success_DEFAULT *AggregateTilesResult_
 23788  
 23789  func (p *NodeAggregateTilesResult) GetSuccess() *AggregateTilesResult_ {
 23790  	if !p.IsSetSuccess() {
 23791  		return NodeAggregateTilesResult_Success_DEFAULT
 23792  	}
 23793  	return p.Success
 23794  }
 23795  
 23796  var NodeAggregateTilesResult_Err_DEFAULT *Error
 23797  
 23798  func (p *NodeAggregateTilesResult) GetErr() *Error {
 23799  	if !p.IsSetErr() {
 23800  		return NodeAggregateTilesResult_Err_DEFAULT
 23801  	}
 23802  	return p.Err
 23803  }
 23804  func (p *NodeAggregateTilesResult) IsSetSuccess() bool {
 23805  	return p.Success != nil
 23806  }
 23807  
 23808  func (p *NodeAggregateTilesResult) IsSetErr() bool {
 23809  	return p.Err != nil
 23810  }
 23811  
 23812  func (p *NodeAggregateTilesResult) Read(iprot thrift.TProtocol) error {
 23813  	if _, err := iprot.ReadStructBegin(); err != nil {
 23814  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 23815  	}
 23816  
 23817  	for {
 23818  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 23819  		if err != nil {
 23820  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 23821  		}
 23822  		if fieldTypeId == thrift.STOP {
 23823  			break
 23824  		}
 23825  		switch fieldId {
 23826  		case 0:
 23827  			if err := p.ReadField0(iprot); err != nil {
 23828  				return err
 23829  			}
 23830  		case 1:
 23831  			if err := p.ReadField1(iprot); err != nil {
 23832  				return err
 23833  			}
 23834  		default:
 23835  			if err := iprot.Skip(fieldTypeId); err != nil {
 23836  				return err
 23837  			}
 23838  		}
 23839  		if err := iprot.ReadFieldEnd(); err != nil {
 23840  			return err
 23841  		}
 23842  	}
 23843  	if err := iprot.ReadStructEnd(); err != nil {
 23844  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 23845  	}
 23846  	return nil
 23847  }
 23848  
 23849  func (p *NodeAggregateTilesResult) ReadField0(iprot thrift.TProtocol) error {
 23850  	p.Success = &AggregateTilesResult_{}
 23851  	if err := p.Success.Read(iprot); err != nil {
 23852  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 23853  	}
 23854  	return nil
 23855  }
 23856  
 23857  func (p *NodeAggregateTilesResult) ReadField1(iprot thrift.TProtocol) error {
 23858  	p.Err = &Error{
 23859  		Type: 0,
 23860  	}
 23861  	if err := p.Err.Read(iprot); err != nil {
 23862  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 23863  	}
 23864  	return nil
 23865  }
 23866  
 23867  func (p *NodeAggregateTilesResult) Write(oprot thrift.TProtocol) error {
 23868  	if err := oprot.WriteStructBegin("aggregateTiles_result"); err != nil {
 23869  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 23870  	}
 23871  	if p != nil {
 23872  		if err := p.writeField0(oprot); err != nil {
 23873  			return err
 23874  		}
 23875  		if err := p.writeField1(oprot); err != nil {
 23876  			return err
 23877  		}
 23878  	}
 23879  	if err := oprot.WriteFieldStop(); err != nil {
 23880  		return thrift.PrependError("write field stop error: ", err)
 23881  	}
 23882  	if err := oprot.WriteStructEnd(); err != nil {
 23883  		return thrift.PrependError("write struct stop error: ", err)
 23884  	}
 23885  	return nil
 23886  }
 23887  
 23888  func (p *NodeAggregateTilesResult) writeField0(oprot thrift.TProtocol) (err error) {
 23889  	if p.IsSetSuccess() {
 23890  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 23891  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 23892  		}
 23893  		if err := p.Success.Write(oprot); err != nil {
 23894  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 23895  		}
 23896  		if err := oprot.WriteFieldEnd(); err != nil {
 23897  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 23898  		}
 23899  	}
 23900  	return err
 23901  }
 23902  
 23903  func (p *NodeAggregateTilesResult) writeField1(oprot thrift.TProtocol) (err error) {
 23904  	if p.IsSetErr() {
 23905  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 23906  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 23907  		}
 23908  		if err := p.Err.Write(oprot); err != nil {
 23909  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 23910  		}
 23911  		if err := oprot.WriteFieldEnd(); err != nil {
 23912  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 23913  		}
 23914  	}
 23915  	return err
 23916  }
 23917  
 23918  func (p *NodeAggregateTilesResult) String() string {
 23919  	if p == nil {
 23920  		return "<nil>"
 23921  	}
 23922  	return fmt.Sprintf("NodeAggregateTilesResult(%+v)", *p)
 23923  }
 23924  
 23925  type NodeHealthArgs struct {
 23926  }
 23927  
 23928  func NewNodeHealthArgs() *NodeHealthArgs {
 23929  	return &NodeHealthArgs{}
 23930  }
 23931  
 23932  func (p *NodeHealthArgs) Read(iprot thrift.TProtocol) error {
 23933  	if _, err := iprot.ReadStructBegin(); err != nil {
 23934  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 23935  	}
 23936  
 23937  	for {
 23938  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 23939  		if err != nil {
 23940  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 23941  		}
 23942  		if fieldTypeId == thrift.STOP {
 23943  			break
 23944  		}
 23945  		if err := iprot.Skip(fieldTypeId); err != nil {
 23946  			return err
 23947  		}
 23948  		if err := iprot.ReadFieldEnd(); err != nil {
 23949  			return err
 23950  		}
 23951  	}
 23952  	if err := iprot.ReadStructEnd(); err != nil {
 23953  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 23954  	}
 23955  	return nil
 23956  }
 23957  
 23958  func (p *NodeHealthArgs) Write(oprot thrift.TProtocol) error {
 23959  	if err := oprot.WriteStructBegin("health_args"); err != nil {
 23960  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 23961  	}
 23962  	if p != nil {
 23963  	}
 23964  	if err := oprot.WriteFieldStop(); err != nil {
 23965  		return thrift.PrependError("write field stop error: ", err)
 23966  	}
 23967  	if err := oprot.WriteStructEnd(); err != nil {
 23968  		return thrift.PrependError("write struct stop error: ", err)
 23969  	}
 23970  	return nil
 23971  }
 23972  
 23973  func (p *NodeHealthArgs) String() string {
 23974  	if p == nil {
 23975  		return "<nil>"
 23976  	}
 23977  	return fmt.Sprintf("NodeHealthArgs(%+v)", *p)
 23978  }
 23979  
 23980  // Attributes:
 23981  //  - Success
 23982  //  - Err
 23983  type NodeHealthResult struct {
 23984  	Success *NodeHealthResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 23985  	Err     *Error             `thrift:"err,1" db:"err" json:"err,omitempty"`
 23986  }
 23987  
 23988  func NewNodeHealthResult() *NodeHealthResult {
 23989  	return &NodeHealthResult{}
 23990  }
 23991  
 23992  var NodeHealthResult_Success_DEFAULT *NodeHealthResult_
 23993  
 23994  func (p *NodeHealthResult) GetSuccess() *NodeHealthResult_ {
 23995  	if !p.IsSetSuccess() {
 23996  		return NodeHealthResult_Success_DEFAULT
 23997  	}
 23998  	return p.Success
 23999  }
 24000  
 24001  var NodeHealthResult_Err_DEFAULT *Error
 24002  
 24003  func (p *NodeHealthResult) GetErr() *Error {
 24004  	if !p.IsSetErr() {
 24005  		return NodeHealthResult_Err_DEFAULT
 24006  	}
 24007  	return p.Err
 24008  }
 24009  func (p *NodeHealthResult) IsSetSuccess() bool {
 24010  	return p.Success != nil
 24011  }
 24012  
 24013  func (p *NodeHealthResult) IsSetErr() bool {
 24014  	return p.Err != nil
 24015  }
 24016  
 24017  func (p *NodeHealthResult) Read(iprot thrift.TProtocol) error {
 24018  	if _, err := iprot.ReadStructBegin(); err != nil {
 24019  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 24020  	}
 24021  
 24022  	for {
 24023  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 24024  		if err != nil {
 24025  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 24026  		}
 24027  		if fieldTypeId == thrift.STOP {
 24028  			break
 24029  		}
 24030  		switch fieldId {
 24031  		case 0:
 24032  			if err := p.ReadField0(iprot); err != nil {
 24033  				return err
 24034  			}
 24035  		case 1:
 24036  			if err := p.ReadField1(iprot); err != nil {
 24037  				return err
 24038  			}
 24039  		default:
 24040  			if err := iprot.Skip(fieldTypeId); err != nil {
 24041  				return err
 24042  			}
 24043  		}
 24044  		if err := iprot.ReadFieldEnd(); err != nil {
 24045  			return err
 24046  		}
 24047  	}
 24048  	if err := iprot.ReadStructEnd(); err != nil {
 24049  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 24050  	}
 24051  	return nil
 24052  }
 24053  
 24054  func (p *NodeHealthResult) ReadField0(iprot thrift.TProtocol) error {
 24055  	p.Success = &NodeHealthResult_{}
 24056  	if err := p.Success.Read(iprot); err != nil {
 24057  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 24058  	}
 24059  	return nil
 24060  }
 24061  
 24062  func (p *NodeHealthResult) ReadField1(iprot thrift.TProtocol) error {
 24063  	p.Err = &Error{
 24064  		Type: 0,
 24065  	}
 24066  	if err := p.Err.Read(iprot); err != nil {
 24067  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 24068  	}
 24069  	return nil
 24070  }
 24071  
 24072  func (p *NodeHealthResult) Write(oprot thrift.TProtocol) error {
 24073  	if err := oprot.WriteStructBegin("health_result"); err != nil {
 24074  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 24075  	}
 24076  	if p != nil {
 24077  		if err := p.writeField0(oprot); err != nil {
 24078  			return err
 24079  		}
 24080  		if err := p.writeField1(oprot); err != nil {
 24081  			return err
 24082  		}
 24083  	}
 24084  	if err := oprot.WriteFieldStop(); err != nil {
 24085  		return thrift.PrependError("write field stop error: ", err)
 24086  	}
 24087  	if err := oprot.WriteStructEnd(); err != nil {
 24088  		return thrift.PrependError("write struct stop error: ", err)
 24089  	}
 24090  	return nil
 24091  }
 24092  
 24093  func (p *NodeHealthResult) writeField0(oprot thrift.TProtocol) (err error) {
 24094  	if p.IsSetSuccess() {
 24095  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 24096  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 24097  		}
 24098  		if err := p.Success.Write(oprot); err != nil {
 24099  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 24100  		}
 24101  		if err := oprot.WriteFieldEnd(); err != nil {
 24102  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 24103  		}
 24104  	}
 24105  	return err
 24106  }
 24107  
 24108  func (p *NodeHealthResult) writeField1(oprot thrift.TProtocol) (err error) {
 24109  	if p.IsSetErr() {
 24110  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 24111  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 24112  		}
 24113  		if err := p.Err.Write(oprot); err != nil {
 24114  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 24115  		}
 24116  		if err := oprot.WriteFieldEnd(); err != nil {
 24117  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 24118  		}
 24119  	}
 24120  	return err
 24121  }
 24122  
 24123  func (p *NodeHealthResult) String() string {
 24124  	if p == nil {
 24125  		return "<nil>"
 24126  	}
 24127  	return fmt.Sprintf("NodeHealthResult(%+v)", *p)
 24128  }
 24129  
 24130  type NodeBootstrappedArgs struct {
 24131  }
 24132  
 24133  func NewNodeBootstrappedArgs() *NodeBootstrappedArgs {
 24134  	return &NodeBootstrappedArgs{}
 24135  }
 24136  
 24137  func (p *NodeBootstrappedArgs) Read(iprot thrift.TProtocol) error {
 24138  	if _, err := iprot.ReadStructBegin(); err != nil {
 24139  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 24140  	}
 24141  
 24142  	for {
 24143  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 24144  		if err != nil {
 24145  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 24146  		}
 24147  		if fieldTypeId == thrift.STOP {
 24148  			break
 24149  		}
 24150  		if err := iprot.Skip(fieldTypeId); err != nil {
 24151  			return err
 24152  		}
 24153  		if err := iprot.ReadFieldEnd(); err != nil {
 24154  			return err
 24155  		}
 24156  	}
 24157  	if err := iprot.ReadStructEnd(); err != nil {
 24158  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 24159  	}
 24160  	return nil
 24161  }
 24162  
 24163  func (p *NodeBootstrappedArgs) Write(oprot thrift.TProtocol) error {
 24164  	if err := oprot.WriteStructBegin("bootstrapped_args"); err != nil {
 24165  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 24166  	}
 24167  	if p != nil {
 24168  	}
 24169  	if err := oprot.WriteFieldStop(); err != nil {
 24170  		return thrift.PrependError("write field stop error: ", err)
 24171  	}
 24172  	if err := oprot.WriteStructEnd(); err != nil {
 24173  		return thrift.PrependError("write struct stop error: ", err)
 24174  	}
 24175  	return nil
 24176  }
 24177  
 24178  func (p *NodeBootstrappedArgs) String() string {
 24179  	if p == nil {
 24180  		return "<nil>"
 24181  	}
 24182  	return fmt.Sprintf("NodeBootstrappedArgs(%+v)", *p)
 24183  }
 24184  
 24185  // Attributes:
 24186  //  - Success
 24187  //  - Err
 24188  type NodeBootstrappedResult struct {
 24189  	Success *NodeBootstrappedResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 24190  	Err     *Error                   `thrift:"err,1" db:"err" json:"err,omitempty"`
 24191  }
 24192  
 24193  func NewNodeBootstrappedResult() *NodeBootstrappedResult {
 24194  	return &NodeBootstrappedResult{}
 24195  }
 24196  
 24197  var NodeBootstrappedResult_Success_DEFAULT *NodeBootstrappedResult_
 24198  
 24199  func (p *NodeBootstrappedResult) GetSuccess() *NodeBootstrappedResult_ {
 24200  	if !p.IsSetSuccess() {
 24201  		return NodeBootstrappedResult_Success_DEFAULT
 24202  	}
 24203  	return p.Success
 24204  }
 24205  
 24206  var NodeBootstrappedResult_Err_DEFAULT *Error
 24207  
 24208  func (p *NodeBootstrappedResult) GetErr() *Error {
 24209  	if !p.IsSetErr() {
 24210  		return NodeBootstrappedResult_Err_DEFAULT
 24211  	}
 24212  	return p.Err
 24213  }
 24214  func (p *NodeBootstrappedResult) IsSetSuccess() bool {
 24215  	return p.Success != nil
 24216  }
 24217  
 24218  func (p *NodeBootstrappedResult) IsSetErr() bool {
 24219  	return p.Err != nil
 24220  }
 24221  
 24222  func (p *NodeBootstrappedResult) Read(iprot thrift.TProtocol) error {
 24223  	if _, err := iprot.ReadStructBegin(); err != nil {
 24224  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 24225  	}
 24226  
 24227  	for {
 24228  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 24229  		if err != nil {
 24230  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 24231  		}
 24232  		if fieldTypeId == thrift.STOP {
 24233  			break
 24234  		}
 24235  		switch fieldId {
 24236  		case 0:
 24237  			if err := p.ReadField0(iprot); err != nil {
 24238  				return err
 24239  			}
 24240  		case 1:
 24241  			if err := p.ReadField1(iprot); err != nil {
 24242  				return err
 24243  			}
 24244  		default:
 24245  			if err := iprot.Skip(fieldTypeId); err != nil {
 24246  				return err
 24247  			}
 24248  		}
 24249  		if err := iprot.ReadFieldEnd(); err != nil {
 24250  			return err
 24251  		}
 24252  	}
 24253  	if err := iprot.ReadStructEnd(); err != nil {
 24254  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 24255  	}
 24256  	return nil
 24257  }
 24258  
 24259  func (p *NodeBootstrappedResult) ReadField0(iprot thrift.TProtocol) error {
 24260  	p.Success = &NodeBootstrappedResult_{}
 24261  	if err := p.Success.Read(iprot); err != nil {
 24262  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 24263  	}
 24264  	return nil
 24265  }
 24266  
 24267  func (p *NodeBootstrappedResult) ReadField1(iprot thrift.TProtocol) error {
 24268  	p.Err = &Error{
 24269  		Type: 0,
 24270  	}
 24271  	if err := p.Err.Read(iprot); err != nil {
 24272  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 24273  	}
 24274  	return nil
 24275  }
 24276  
 24277  func (p *NodeBootstrappedResult) Write(oprot thrift.TProtocol) error {
 24278  	if err := oprot.WriteStructBegin("bootstrapped_result"); err != nil {
 24279  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 24280  	}
 24281  	if p != nil {
 24282  		if err := p.writeField0(oprot); err != nil {
 24283  			return err
 24284  		}
 24285  		if err := p.writeField1(oprot); err != nil {
 24286  			return err
 24287  		}
 24288  	}
 24289  	if err := oprot.WriteFieldStop(); err != nil {
 24290  		return thrift.PrependError("write field stop error: ", err)
 24291  	}
 24292  	if err := oprot.WriteStructEnd(); err != nil {
 24293  		return thrift.PrependError("write struct stop error: ", err)
 24294  	}
 24295  	return nil
 24296  }
 24297  
 24298  func (p *NodeBootstrappedResult) writeField0(oprot thrift.TProtocol) (err error) {
 24299  	if p.IsSetSuccess() {
 24300  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 24301  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 24302  		}
 24303  		if err := p.Success.Write(oprot); err != nil {
 24304  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 24305  		}
 24306  		if err := oprot.WriteFieldEnd(); err != nil {
 24307  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 24308  		}
 24309  	}
 24310  	return err
 24311  }
 24312  
 24313  func (p *NodeBootstrappedResult) writeField1(oprot thrift.TProtocol) (err error) {
 24314  	if p.IsSetErr() {
 24315  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 24316  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 24317  		}
 24318  		if err := p.Err.Write(oprot); err != nil {
 24319  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 24320  		}
 24321  		if err := oprot.WriteFieldEnd(); err != nil {
 24322  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 24323  		}
 24324  	}
 24325  	return err
 24326  }
 24327  
 24328  func (p *NodeBootstrappedResult) String() string {
 24329  	if p == nil {
 24330  		return "<nil>"
 24331  	}
 24332  	return fmt.Sprintf("NodeBootstrappedResult(%+v)", *p)
 24333  }
 24334  
 24335  type NodeBootstrappedInPlacementOrNoPlacementArgs struct {
 24336  }
 24337  
 24338  func NewNodeBootstrappedInPlacementOrNoPlacementArgs() *NodeBootstrappedInPlacementOrNoPlacementArgs {
 24339  	return &NodeBootstrappedInPlacementOrNoPlacementArgs{}
 24340  }
 24341  
 24342  func (p *NodeBootstrappedInPlacementOrNoPlacementArgs) Read(iprot thrift.TProtocol) error {
 24343  	if _, err := iprot.ReadStructBegin(); err != nil {
 24344  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 24345  	}
 24346  
 24347  	for {
 24348  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 24349  		if err != nil {
 24350  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 24351  		}
 24352  		if fieldTypeId == thrift.STOP {
 24353  			break
 24354  		}
 24355  		if err := iprot.Skip(fieldTypeId); err != nil {
 24356  			return err
 24357  		}
 24358  		if err := iprot.ReadFieldEnd(); err != nil {
 24359  			return err
 24360  		}
 24361  	}
 24362  	if err := iprot.ReadStructEnd(); err != nil {
 24363  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 24364  	}
 24365  	return nil
 24366  }
 24367  
 24368  func (p *NodeBootstrappedInPlacementOrNoPlacementArgs) Write(oprot thrift.TProtocol) error {
 24369  	if err := oprot.WriteStructBegin("bootstrappedInPlacementOrNoPlacement_args"); err != nil {
 24370  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 24371  	}
 24372  	if p != nil {
 24373  	}
 24374  	if err := oprot.WriteFieldStop(); err != nil {
 24375  		return thrift.PrependError("write field stop error: ", err)
 24376  	}
 24377  	if err := oprot.WriteStructEnd(); err != nil {
 24378  		return thrift.PrependError("write struct stop error: ", err)
 24379  	}
 24380  	return nil
 24381  }
 24382  
 24383  func (p *NodeBootstrappedInPlacementOrNoPlacementArgs) String() string {
 24384  	if p == nil {
 24385  		return "<nil>"
 24386  	}
 24387  	return fmt.Sprintf("NodeBootstrappedInPlacementOrNoPlacementArgs(%+v)", *p)
 24388  }
 24389  
 24390  // Attributes:
 24391  //  - Success
 24392  //  - Err
 24393  type NodeBootstrappedInPlacementOrNoPlacementResult struct {
 24394  	Success *NodeBootstrappedInPlacementOrNoPlacementResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 24395  	Err     *Error                                           `thrift:"err,1" db:"err" json:"err,omitempty"`
 24396  }
 24397  
 24398  func NewNodeBootstrappedInPlacementOrNoPlacementResult() *NodeBootstrappedInPlacementOrNoPlacementResult {
 24399  	return &NodeBootstrappedInPlacementOrNoPlacementResult{}
 24400  }
 24401  
 24402  var NodeBootstrappedInPlacementOrNoPlacementResult_Success_DEFAULT *NodeBootstrappedInPlacementOrNoPlacementResult_
 24403  
 24404  func (p *NodeBootstrappedInPlacementOrNoPlacementResult) GetSuccess() *NodeBootstrappedInPlacementOrNoPlacementResult_ {
 24405  	if !p.IsSetSuccess() {
 24406  		return NodeBootstrappedInPlacementOrNoPlacementResult_Success_DEFAULT
 24407  	}
 24408  	return p.Success
 24409  }
 24410  
 24411  var NodeBootstrappedInPlacementOrNoPlacementResult_Err_DEFAULT *Error
 24412  
 24413  func (p *NodeBootstrappedInPlacementOrNoPlacementResult) GetErr() *Error {
 24414  	if !p.IsSetErr() {
 24415  		return NodeBootstrappedInPlacementOrNoPlacementResult_Err_DEFAULT
 24416  	}
 24417  	return p.Err
 24418  }
 24419  func (p *NodeBootstrappedInPlacementOrNoPlacementResult) IsSetSuccess() bool {
 24420  	return p.Success != nil
 24421  }
 24422  
 24423  func (p *NodeBootstrappedInPlacementOrNoPlacementResult) IsSetErr() bool {
 24424  	return p.Err != nil
 24425  }
 24426  
 24427  func (p *NodeBootstrappedInPlacementOrNoPlacementResult) Read(iprot thrift.TProtocol) error {
 24428  	if _, err := iprot.ReadStructBegin(); err != nil {
 24429  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 24430  	}
 24431  
 24432  	for {
 24433  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 24434  		if err != nil {
 24435  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 24436  		}
 24437  		if fieldTypeId == thrift.STOP {
 24438  			break
 24439  		}
 24440  		switch fieldId {
 24441  		case 0:
 24442  			if err := p.ReadField0(iprot); err != nil {
 24443  				return err
 24444  			}
 24445  		case 1:
 24446  			if err := p.ReadField1(iprot); err != nil {
 24447  				return err
 24448  			}
 24449  		default:
 24450  			if err := iprot.Skip(fieldTypeId); err != nil {
 24451  				return err
 24452  			}
 24453  		}
 24454  		if err := iprot.ReadFieldEnd(); err != nil {
 24455  			return err
 24456  		}
 24457  	}
 24458  	if err := iprot.ReadStructEnd(); err != nil {
 24459  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 24460  	}
 24461  	return nil
 24462  }
 24463  
 24464  func (p *NodeBootstrappedInPlacementOrNoPlacementResult) ReadField0(iprot thrift.TProtocol) error {
 24465  	p.Success = &NodeBootstrappedInPlacementOrNoPlacementResult_{}
 24466  	if err := p.Success.Read(iprot); err != nil {
 24467  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 24468  	}
 24469  	return nil
 24470  }
 24471  
 24472  func (p *NodeBootstrappedInPlacementOrNoPlacementResult) ReadField1(iprot thrift.TProtocol) error {
 24473  	p.Err = &Error{
 24474  		Type: 0,
 24475  	}
 24476  	if err := p.Err.Read(iprot); err != nil {
 24477  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 24478  	}
 24479  	return nil
 24480  }
 24481  
 24482  func (p *NodeBootstrappedInPlacementOrNoPlacementResult) Write(oprot thrift.TProtocol) error {
 24483  	if err := oprot.WriteStructBegin("bootstrappedInPlacementOrNoPlacement_result"); err != nil {
 24484  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 24485  	}
 24486  	if p != nil {
 24487  		if err := p.writeField0(oprot); err != nil {
 24488  			return err
 24489  		}
 24490  		if err := p.writeField1(oprot); err != nil {
 24491  			return err
 24492  		}
 24493  	}
 24494  	if err := oprot.WriteFieldStop(); err != nil {
 24495  		return thrift.PrependError("write field stop error: ", err)
 24496  	}
 24497  	if err := oprot.WriteStructEnd(); err != nil {
 24498  		return thrift.PrependError("write struct stop error: ", err)
 24499  	}
 24500  	return nil
 24501  }
 24502  
 24503  func (p *NodeBootstrappedInPlacementOrNoPlacementResult) writeField0(oprot thrift.TProtocol) (err error) {
 24504  	if p.IsSetSuccess() {
 24505  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 24506  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 24507  		}
 24508  		if err := p.Success.Write(oprot); err != nil {
 24509  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 24510  		}
 24511  		if err := oprot.WriteFieldEnd(); err != nil {
 24512  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 24513  		}
 24514  	}
 24515  	return err
 24516  }
 24517  
 24518  func (p *NodeBootstrappedInPlacementOrNoPlacementResult) writeField1(oprot thrift.TProtocol) (err error) {
 24519  	if p.IsSetErr() {
 24520  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 24521  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 24522  		}
 24523  		if err := p.Err.Write(oprot); err != nil {
 24524  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 24525  		}
 24526  		if err := oprot.WriteFieldEnd(); err != nil {
 24527  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 24528  		}
 24529  	}
 24530  	return err
 24531  }
 24532  
 24533  func (p *NodeBootstrappedInPlacementOrNoPlacementResult) String() string {
 24534  	if p == nil {
 24535  		return "<nil>"
 24536  	}
 24537  	return fmt.Sprintf("NodeBootstrappedInPlacementOrNoPlacementResult(%+v)", *p)
 24538  }
 24539  
 24540  type NodeGetPersistRateLimitArgs struct {
 24541  }
 24542  
 24543  func NewNodeGetPersistRateLimitArgs() *NodeGetPersistRateLimitArgs {
 24544  	return &NodeGetPersistRateLimitArgs{}
 24545  }
 24546  
 24547  func (p *NodeGetPersistRateLimitArgs) Read(iprot thrift.TProtocol) error {
 24548  	if _, err := iprot.ReadStructBegin(); err != nil {
 24549  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 24550  	}
 24551  
 24552  	for {
 24553  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 24554  		if err != nil {
 24555  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 24556  		}
 24557  		if fieldTypeId == thrift.STOP {
 24558  			break
 24559  		}
 24560  		if err := iprot.Skip(fieldTypeId); err != nil {
 24561  			return err
 24562  		}
 24563  		if err := iprot.ReadFieldEnd(); err != nil {
 24564  			return err
 24565  		}
 24566  	}
 24567  	if err := iprot.ReadStructEnd(); err != nil {
 24568  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 24569  	}
 24570  	return nil
 24571  }
 24572  
 24573  func (p *NodeGetPersistRateLimitArgs) Write(oprot thrift.TProtocol) error {
 24574  	if err := oprot.WriteStructBegin("getPersistRateLimit_args"); err != nil {
 24575  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 24576  	}
 24577  	if p != nil {
 24578  	}
 24579  	if err := oprot.WriteFieldStop(); err != nil {
 24580  		return thrift.PrependError("write field stop error: ", err)
 24581  	}
 24582  	if err := oprot.WriteStructEnd(); err != nil {
 24583  		return thrift.PrependError("write struct stop error: ", err)
 24584  	}
 24585  	return nil
 24586  }
 24587  
 24588  func (p *NodeGetPersistRateLimitArgs) String() string {
 24589  	if p == nil {
 24590  		return "<nil>"
 24591  	}
 24592  	return fmt.Sprintf("NodeGetPersistRateLimitArgs(%+v)", *p)
 24593  }
 24594  
 24595  // Attributes:
 24596  //  - Success
 24597  //  - Err
 24598  type NodeGetPersistRateLimitResult struct {
 24599  	Success *NodePersistRateLimitResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 24600  	Err     *Error                       `thrift:"err,1" db:"err" json:"err,omitempty"`
 24601  }
 24602  
 24603  func NewNodeGetPersistRateLimitResult() *NodeGetPersistRateLimitResult {
 24604  	return &NodeGetPersistRateLimitResult{}
 24605  }
 24606  
 24607  var NodeGetPersistRateLimitResult_Success_DEFAULT *NodePersistRateLimitResult_
 24608  
 24609  func (p *NodeGetPersistRateLimitResult) GetSuccess() *NodePersistRateLimitResult_ {
 24610  	if !p.IsSetSuccess() {
 24611  		return NodeGetPersistRateLimitResult_Success_DEFAULT
 24612  	}
 24613  	return p.Success
 24614  }
 24615  
 24616  var NodeGetPersistRateLimitResult_Err_DEFAULT *Error
 24617  
 24618  func (p *NodeGetPersistRateLimitResult) GetErr() *Error {
 24619  	if !p.IsSetErr() {
 24620  		return NodeGetPersistRateLimitResult_Err_DEFAULT
 24621  	}
 24622  	return p.Err
 24623  }
 24624  func (p *NodeGetPersistRateLimitResult) IsSetSuccess() bool {
 24625  	return p.Success != nil
 24626  }
 24627  
 24628  func (p *NodeGetPersistRateLimitResult) IsSetErr() bool {
 24629  	return p.Err != nil
 24630  }
 24631  
 24632  func (p *NodeGetPersistRateLimitResult) Read(iprot thrift.TProtocol) error {
 24633  	if _, err := iprot.ReadStructBegin(); err != nil {
 24634  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 24635  	}
 24636  
 24637  	for {
 24638  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 24639  		if err != nil {
 24640  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 24641  		}
 24642  		if fieldTypeId == thrift.STOP {
 24643  			break
 24644  		}
 24645  		switch fieldId {
 24646  		case 0:
 24647  			if err := p.ReadField0(iprot); err != nil {
 24648  				return err
 24649  			}
 24650  		case 1:
 24651  			if err := p.ReadField1(iprot); err != nil {
 24652  				return err
 24653  			}
 24654  		default:
 24655  			if err := iprot.Skip(fieldTypeId); err != nil {
 24656  				return err
 24657  			}
 24658  		}
 24659  		if err := iprot.ReadFieldEnd(); err != nil {
 24660  			return err
 24661  		}
 24662  	}
 24663  	if err := iprot.ReadStructEnd(); err != nil {
 24664  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 24665  	}
 24666  	return nil
 24667  }
 24668  
 24669  func (p *NodeGetPersistRateLimitResult) ReadField0(iprot thrift.TProtocol) error {
 24670  	p.Success = &NodePersistRateLimitResult_{}
 24671  	if err := p.Success.Read(iprot); err != nil {
 24672  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 24673  	}
 24674  	return nil
 24675  }
 24676  
 24677  func (p *NodeGetPersistRateLimitResult) ReadField1(iprot thrift.TProtocol) error {
 24678  	p.Err = &Error{
 24679  		Type: 0,
 24680  	}
 24681  	if err := p.Err.Read(iprot); err != nil {
 24682  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 24683  	}
 24684  	return nil
 24685  }
 24686  
 24687  func (p *NodeGetPersistRateLimitResult) Write(oprot thrift.TProtocol) error {
 24688  	if err := oprot.WriteStructBegin("getPersistRateLimit_result"); err != nil {
 24689  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 24690  	}
 24691  	if p != nil {
 24692  		if err := p.writeField0(oprot); err != nil {
 24693  			return err
 24694  		}
 24695  		if err := p.writeField1(oprot); err != nil {
 24696  			return err
 24697  		}
 24698  	}
 24699  	if err := oprot.WriteFieldStop(); err != nil {
 24700  		return thrift.PrependError("write field stop error: ", err)
 24701  	}
 24702  	if err := oprot.WriteStructEnd(); err != nil {
 24703  		return thrift.PrependError("write struct stop error: ", err)
 24704  	}
 24705  	return nil
 24706  }
 24707  
 24708  func (p *NodeGetPersistRateLimitResult) writeField0(oprot thrift.TProtocol) (err error) {
 24709  	if p.IsSetSuccess() {
 24710  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 24711  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 24712  		}
 24713  		if err := p.Success.Write(oprot); err != nil {
 24714  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 24715  		}
 24716  		if err := oprot.WriteFieldEnd(); err != nil {
 24717  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 24718  		}
 24719  	}
 24720  	return err
 24721  }
 24722  
 24723  func (p *NodeGetPersistRateLimitResult) writeField1(oprot thrift.TProtocol) (err error) {
 24724  	if p.IsSetErr() {
 24725  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 24726  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 24727  		}
 24728  		if err := p.Err.Write(oprot); err != nil {
 24729  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 24730  		}
 24731  		if err := oprot.WriteFieldEnd(); err != nil {
 24732  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 24733  		}
 24734  	}
 24735  	return err
 24736  }
 24737  
 24738  func (p *NodeGetPersistRateLimitResult) String() string {
 24739  	if p == nil {
 24740  		return "<nil>"
 24741  	}
 24742  	return fmt.Sprintf("NodeGetPersistRateLimitResult(%+v)", *p)
 24743  }
 24744  
 24745  // Attributes:
 24746  //  - Req
 24747  type NodeSetPersistRateLimitArgs struct {
 24748  	Req *NodeSetPersistRateLimitRequest `thrift:"req,1" db:"req" json:"req"`
 24749  }
 24750  
 24751  func NewNodeSetPersistRateLimitArgs() *NodeSetPersistRateLimitArgs {
 24752  	return &NodeSetPersistRateLimitArgs{}
 24753  }
 24754  
 24755  var NodeSetPersistRateLimitArgs_Req_DEFAULT *NodeSetPersistRateLimitRequest
 24756  
 24757  func (p *NodeSetPersistRateLimitArgs) GetReq() *NodeSetPersistRateLimitRequest {
 24758  	if !p.IsSetReq() {
 24759  		return NodeSetPersistRateLimitArgs_Req_DEFAULT
 24760  	}
 24761  	return p.Req
 24762  }
 24763  func (p *NodeSetPersistRateLimitArgs) IsSetReq() bool {
 24764  	return p.Req != nil
 24765  }
 24766  
 24767  func (p *NodeSetPersistRateLimitArgs) Read(iprot thrift.TProtocol) error {
 24768  	if _, err := iprot.ReadStructBegin(); err != nil {
 24769  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 24770  	}
 24771  
 24772  	for {
 24773  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 24774  		if err != nil {
 24775  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 24776  		}
 24777  		if fieldTypeId == thrift.STOP {
 24778  			break
 24779  		}
 24780  		switch fieldId {
 24781  		case 1:
 24782  			if err := p.ReadField1(iprot); err != nil {
 24783  				return err
 24784  			}
 24785  		default:
 24786  			if err := iprot.Skip(fieldTypeId); err != nil {
 24787  				return err
 24788  			}
 24789  		}
 24790  		if err := iprot.ReadFieldEnd(); err != nil {
 24791  			return err
 24792  		}
 24793  	}
 24794  	if err := iprot.ReadStructEnd(); err != nil {
 24795  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 24796  	}
 24797  	return nil
 24798  }
 24799  
 24800  func (p *NodeSetPersistRateLimitArgs) ReadField1(iprot thrift.TProtocol) error {
 24801  	p.Req = &NodeSetPersistRateLimitRequest{}
 24802  	if err := p.Req.Read(iprot); err != nil {
 24803  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 24804  	}
 24805  	return nil
 24806  }
 24807  
 24808  func (p *NodeSetPersistRateLimitArgs) Write(oprot thrift.TProtocol) error {
 24809  	if err := oprot.WriteStructBegin("setPersistRateLimit_args"); err != nil {
 24810  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 24811  	}
 24812  	if p != nil {
 24813  		if err := p.writeField1(oprot); err != nil {
 24814  			return err
 24815  		}
 24816  	}
 24817  	if err := oprot.WriteFieldStop(); err != nil {
 24818  		return thrift.PrependError("write field stop error: ", err)
 24819  	}
 24820  	if err := oprot.WriteStructEnd(); err != nil {
 24821  		return thrift.PrependError("write struct stop error: ", err)
 24822  	}
 24823  	return nil
 24824  }
 24825  
 24826  func (p *NodeSetPersistRateLimitArgs) writeField1(oprot thrift.TProtocol) (err error) {
 24827  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 24828  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 24829  	}
 24830  	if err := p.Req.Write(oprot); err != nil {
 24831  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 24832  	}
 24833  	if err := oprot.WriteFieldEnd(); err != nil {
 24834  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 24835  	}
 24836  	return err
 24837  }
 24838  
 24839  func (p *NodeSetPersistRateLimitArgs) String() string {
 24840  	if p == nil {
 24841  		return "<nil>"
 24842  	}
 24843  	return fmt.Sprintf("NodeSetPersistRateLimitArgs(%+v)", *p)
 24844  }
 24845  
 24846  // Attributes:
 24847  //  - Success
 24848  //  - Err
 24849  type NodeSetPersistRateLimitResult struct {
 24850  	Success *NodePersistRateLimitResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 24851  	Err     *Error                       `thrift:"err,1" db:"err" json:"err,omitempty"`
 24852  }
 24853  
 24854  func NewNodeSetPersistRateLimitResult() *NodeSetPersistRateLimitResult {
 24855  	return &NodeSetPersistRateLimitResult{}
 24856  }
 24857  
 24858  var NodeSetPersistRateLimitResult_Success_DEFAULT *NodePersistRateLimitResult_
 24859  
 24860  func (p *NodeSetPersistRateLimitResult) GetSuccess() *NodePersistRateLimitResult_ {
 24861  	if !p.IsSetSuccess() {
 24862  		return NodeSetPersistRateLimitResult_Success_DEFAULT
 24863  	}
 24864  	return p.Success
 24865  }
 24866  
 24867  var NodeSetPersistRateLimitResult_Err_DEFAULT *Error
 24868  
 24869  func (p *NodeSetPersistRateLimitResult) GetErr() *Error {
 24870  	if !p.IsSetErr() {
 24871  		return NodeSetPersistRateLimitResult_Err_DEFAULT
 24872  	}
 24873  	return p.Err
 24874  }
 24875  func (p *NodeSetPersistRateLimitResult) IsSetSuccess() bool {
 24876  	return p.Success != nil
 24877  }
 24878  
 24879  func (p *NodeSetPersistRateLimitResult) IsSetErr() bool {
 24880  	return p.Err != nil
 24881  }
 24882  
 24883  func (p *NodeSetPersistRateLimitResult) Read(iprot thrift.TProtocol) error {
 24884  	if _, err := iprot.ReadStructBegin(); err != nil {
 24885  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 24886  	}
 24887  
 24888  	for {
 24889  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 24890  		if err != nil {
 24891  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 24892  		}
 24893  		if fieldTypeId == thrift.STOP {
 24894  			break
 24895  		}
 24896  		switch fieldId {
 24897  		case 0:
 24898  			if err := p.ReadField0(iprot); err != nil {
 24899  				return err
 24900  			}
 24901  		case 1:
 24902  			if err := p.ReadField1(iprot); err != nil {
 24903  				return err
 24904  			}
 24905  		default:
 24906  			if err := iprot.Skip(fieldTypeId); err != nil {
 24907  				return err
 24908  			}
 24909  		}
 24910  		if err := iprot.ReadFieldEnd(); err != nil {
 24911  			return err
 24912  		}
 24913  	}
 24914  	if err := iprot.ReadStructEnd(); err != nil {
 24915  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 24916  	}
 24917  	return nil
 24918  }
 24919  
 24920  func (p *NodeSetPersistRateLimitResult) ReadField0(iprot thrift.TProtocol) error {
 24921  	p.Success = &NodePersistRateLimitResult_{}
 24922  	if err := p.Success.Read(iprot); err != nil {
 24923  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 24924  	}
 24925  	return nil
 24926  }
 24927  
 24928  func (p *NodeSetPersistRateLimitResult) ReadField1(iprot thrift.TProtocol) error {
 24929  	p.Err = &Error{
 24930  		Type: 0,
 24931  	}
 24932  	if err := p.Err.Read(iprot); err != nil {
 24933  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 24934  	}
 24935  	return nil
 24936  }
 24937  
 24938  func (p *NodeSetPersistRateLimitResult) Write(oprot thrift.TProtocol) error {
 24939  	if err := oprot.WriteStructBegin("setPersistRateLimit_result"); err != nil {
 24940  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 24941  	}
 24942  	if p != nil {
 24943  		if err := p.writeField0(oprot); err != nil {
 24944  			return err
 24945  		}
 24946  		if err := p.writeField1(oprot); err != nil {
 24947  			return err
 24948  		}
 24949  	}
 24950  	if err := oprot.WriteFieldStop(); err != nil {
 24951  		return thrift.PrependError("write field stop error: ", err)
 24952  	}
 24953  	if err := oprot.WriteStructEnd(); err != nil {
 24954  		return thrift.PrependError("write struct stop error: ", err)
 24955  	}
 24956  	return nil
 24957  }
 24958  
 24959  func (p *NodeSetPersistRateLimitResult) writeField0(oprot thrift.TProtocol) (err error) {
 24960  	if p.IsSetSuccess() {
 24961  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 24962  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 24963  		}
 24964  		if err := p.Success.Write(oprot); err != nil {
 24965  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 24966  		}
 24967  		if err := oprot.WriteFieldEnd(); err != nil {
 24968  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 24969  		}
 24970  	}
 24971  	return err
 24972  }
 24973  
 24974  func (p *NodeSetPersistRateLimitResult) writeField1(oprot thrift.TProtocol) (err error) {
 24975  	if p.IsSetErr() {
 24976  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 24977  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 24978  		}
 24979  		if err := p.Err.Write(oprot); err != nil {
 24980  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 24981  		}
 24982  		if err := oprot.WriteFieldEnd(); err != nil {
 24983  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 24984  		}
 24985  	}
 24986  	return err
 24987  }
 24988  
 24989  func (p *NodeSetPersistRateLimitResult) String() string {
 24990  	if p == nil {
 24991  		return "<nil>"
 24992  	}
 24993  	return fmt.Sprintf("NodeSetPersistRateLimitResult(%+v)", *p)
 24994  }
 24995  
 24996  type NodeGetWriteNewSeriesAsyncArgs struct {
 24997  }
 24998  
 24999  func NewNodeGetWriteNewSeriesAsyncArgs() *NodeGetWriteNewSeriesAsyncArgs {
 25000  	return &NodeGetWriteNewSeriesAsyncArgs{}
 25001  }
 25002  
 25003  func (p *NodeGetWriteNewSeriesAsyncArgs) Read(iprot thrift.TProtocol) error {
 25004  	if _, err := iprot.ReadStructBegin(); err != nil {
 25005  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 25006  	}
 25007  
 25008  	for {
 25009  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 25010  		if err != nil {
 25011  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 25012  		}
 25013  		if fieldTypeId == thrift.STOP {
 25014  			break
 25015  		}
 25016  		if err := iprot.Skip(fieldTypeId); err != nil {
 25017  			return err
 25018  		}
 25019  		if err := iprot.ReadFieldEnd(); err != nil {
 25020  			return err
 25021  		}
 25022  	}
 25023  	if err := iprot.ReadStructEnd(); err != nil {
 25024  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 25025  	}
 25026  	return nil
 25027  }
 25028  
 25029  func (p *NodeGetWriteNewSeriesAsyncArgs) Write(oprot thrift.TProtocol) error {
 25030  	if err := oprot.WriteStructBegin("getWriteNewSeriesAsync_args"); err != nil {
 25031  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 25032  	}
 25033  	if p != nil {
 25034  	}
 25035  	if err := oprot.WriteFieldStop(); err != nil {
 25036  		return thrift.PrependError("write field stop error: ", err)
 25037  	}
 25038  	if err := oprot.WriteStructEnd(); err != nil {
 25039  		return thrift.PrependError("write struct stop error: ", err)
 25040  	}
 25041  	return nil
 25042  }
 25043  
 25044  func (p *NodeGetWriteNewSeriesAsyncArgs) String() string {
 25045  	if p == nil {
 25046  		return "<nil>"
 25047  	}
 25048  	return fmt.Sprintf("NodeGetWriteNewSeriesAsyncArgs(%+v)", *p)
 25049  }
 25050  
 25051  // Attributes:
 25052  //  - Success
 25053  //  - Err
 25054  type NodeGetWriteNewSeriesAsyncResult struct {
 25055  	Success *NodeWriteNewSeriesAsyncResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 25056  	Err     *Error                          `thrift:"err,1" db:"err" json:"err,omitempty"`
 25057  }
 25058  
 25059  func NewNodeGetWriteNewSeriesAsyncResult() *NodeGetWriteNewSeriesAsyncResult {
 25060  	return &NodeGetWriteNewSeriesAsyncResult{}
 25061  }
 25062  
 25063  var NodeGetWriteNewSeriesAsyncResult_Success_DEFAULT *NodeWriteNewSeriesAsyncResult_
 25064  
 25065  func (p *NodeGetWriteNewSeriesAsyncResult) GetSuccess() *NodeWriteNewSeriesAsyncResult_ {
 25066  	if !p.IsSetSuccess() {
 25067  		return NodeGetWriteNewSeriesAsyncResult_Success_DEFAULT
 25068  	}
 25069  	return p.Success
 25070  }
 25071  
 25072  var NodeGetWriteNewSeriesAsyncResult_Err_DEFAULT *Error
 25073  
 25074  func (p *NodeGetWriteNewSeriesAsyncResult) GetErr() *Error {
 25075  	if !p.IsSetErr() {
 25076  		return NodeGetWriteNewSeriesAsyncResult_Err_DEFAULT
 25077  	}
 25078  	return p.Err
 25079  }
 25080  func (p *NodeGetWriteNewSeriesAsyncResult) IsSetSuccess() bool {
 25081  	return p.Success != nil
 25082  }
 25083  
 25084  func (p *NodeGetWriteNewSeriesAsyncResult) IsSetErr() bool {
 25085  	return p.Err != nil
 25086  }
 25087  
 25088  func (p *NodeGetWriteNewSeriesAsyncResult) Read(iprot thrift.TProtocol) error {
 25089  	if _, err := iprot.ReadStructBegin(); err != nil {
 25090  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 25091  	}
 25092  
 25093  	for {
 25094  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 25095  		if err != nil {
 25096  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 25097  		}
 25098  		if fieldTypeId == thrift.STOP {
 25099  			break
 25100  		}
 25101  		switch fieldId {
 25102  		case 0:
 25103  			if err := p.ReadField0(iprot); err != nil {
 25104  				return err
 25105  			}
 25106  		case 1:
 25107  			if err := p.ReadField1(iprot); err != nil {
 25108  				return err
 25109  			}
 25110  		default:
 25111  			if err := iprot.Skip(fieldTypeId); err != nil {
 25112  				return err
 25113  			}
 25114  		}
 25115  		if err := iprot.ReadFieldEnd(); err != nil {
 25116  			return err
 25117  		}
 25118  	}
 25119  	if err := iprot.ReadStructEnd(); err != nil {
 25120  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 25121  	}
 25122  	return nil
 25123  }
 25124  
 25125  func (p *NodeGetWriteNewSeriesAsyncResult) ReadField0(iprot thrift.TProtocol) error {
 25126  	p.Success = &NodeWriteNewSeriesAsyncResult_{}
 25127  	if err := p.Success.Read(iprot); err != nil {
 25128  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 25129  	}
 25130  	return nil
 25131  }
 25132  
 25133  func (p *NodeGetWriteNewSeriesAsyncResult) ReadField1(iprot thrift.TProtocol) error {
 25134  	p.Err = &Error{
 25135  		Type: 0,
 25136  	}
 25137  	if err := p.Err.Read(iprot); err != nil {
 25138  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 25139  	}
 25140  	return nil
 25141  }
 25142  
 25143  func (p *NodeGetWriteNewSeriesAsyncResult) Write(oprot thrift.TProtocol) error {
 25144  	if err := oprot.WriteStructBegin("getWriteNewSeriesAsync_result"); err != nil {
 25145  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 25146  	}
 25147  	if p != nil {
 25148  		if err := p.writeField0(oprot); err != nil {
 25149  			return err
 25150  		}
 25151  		if err := p.writeField1(oprot); err != nil {
 25152  			return err
 25153  		}
 25154  	}
 25155  	if err := oprot.WriteFieldStop(); err != nil {
 25156  		return thrift.PrependError("write field stop error: ", err)
 25157  	}
 25158  	if err := oprot.WriteStructEnd(); err != nil {
 25159  		return thrift.PrependError("write struct stop error: ", err)
 25160  	}
 25161  	return nil
 25162  }
 25163  
 25164  func (p *NodeGetWriteNewSeriesAsyncResult) writeField0(oprot thrift.TProtocol) (err error) {
 25165  	if p.IsSetSuccess() {
 25166  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 25167  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 25168  		}
 25169  		if err := p.Success.Write(oprot); err != nil {
 25170  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 25171  		}
 25172  		if err := oprot.WriteFieldEnd(); err != nil {
 25173  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 25174  		}
 25175  	}
 25176  	return err
 25177  }
 25178  
 25179  func (p *NodeGetWriteNewSeriesAsyncResult) writeField1(oprot thrift.TProtocol) (err error) {
 25180  	if p.IsSetErr() {
 25181  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 25182  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 25183  		}
 25184  		if err := p.Err.Write(oprot); err != nil {
 25185  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 25186  		}
 25187  		if err := oprot.WriteFieldEnd(); err != nil {
 25188  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 25189  		}
 25190  	}
 25191  	return err
 25192  }
 25193  
 25194  func (p *NodeGetWriteNewSeriesAsyncResult) String() string {
 25195  	if p == nil {
 25196  		return "<nil>"
 25197  	}
 25198  	return fmt.Sprintf("NodeGetWriteNewSeriesAsyncResult(%+v)", *p)
 25199  }
 25200  
 25201  // Attributes:
 25202  //  - Req
 25203  type NodeSetWriteNewSeriesAsyncArgs struct {
 25204  	Req *NodeSetWriteNewSeriesAsyncRequest `thrift:"req,1" db:"req" json:"req"`
 25205  }
 25206  
 25207  func NewNodeSetWriteNewSeriesAsyncArgs() *NodeSetWriteNewSeriesAsyncArgs {
 25208  	return &NodeSetWriteNewSeriesAsyncArgs{}
 25209  }
 25210  
 25211  var NodeSetWriteNewSeriesAsyncArgs_Req_DEFAULT *NodeSetWriteNewSeriesAsyncRequest
 25212  
 25213  func (p *NodeSetWriteNewSeriesAsyncArgs) GetReq() *NodeSetWriteNewSeriesAsyncRequest {
 25214  	if !p.IsSetReq() {
 25215  		return NodeSetWriteNewSeriesAsyncArgs_Req_DEFAULT
 25216  	}
 25217  	return p.Req
 25218  }
 25219  func (p *NodeSetWriteNewSeriesAsyncArgs) IsSetReq() bool {
 25220  	return p.Req != nil
 25221  }
 25222  
 25223  func (p *NodeSetWriteNewSeriesAsyncArgs) Read(iprot thrift.TProtocol) error {
 25224  	if _, err := iprot.ReadStructBegin(); err != nil {
 25225  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 25226  	}
 25227  
 25228  	for {
 25229  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 25230  		if err != nil {
 25231  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 25232  		}
 25233  		if fieldTypeId == thrift.STOP {
 25234  			break
 25235  		}
 25236  		switch fieldId {
 25237  		case 1:
 25238  			if err := p.ReadField1(iprot); err != nil {
 25239  				return err
 25240  			}
 25241  		default:
 25242  			if err := iprot.Skip(fieldTypeId); err != nil {
 25243  				return err
 25244  			}
 25245  		}
 25246  		if err := iprot.ReadFieldEnd(); err != nil {
 25247  			return err
 25248  		}
 25249  	}
 25250  	if err := iprot.ReadStructEnd(); err != nil {
 25251  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 25252  	}
 25253  	return nil
 25254  }
 25255  
 25256  func (p *NodeSetWriteNewSeriesAsyncArgs) ReadField1(iprot thrift.TProtocol) error {
 25257  	p.Req = &NodeSetWriteNewSeriesAsyncRequest{}
 25258  	if err := p.Req.Read(iprot); err != nil {
 25259  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 25260  	}
 25261  	return nil
 25262  }
 25263  
 25264  func (p *NodeSetWriteNewSeriesAsyncArgs) Write(oprot thrift.TProtocol) error {
 25265  	if err := oprot.WriteStructBegin("setWriteNewSeriesAsync_args"); err != nil {
 25266  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 25267  	}
 25268  	if p != nil {
 25269  		if err := p.writeField1(oprot); err != nil {
 25270  			return err
 25271  		}
 25272  	}
 25273  	if err := oprot.WriteFieldStop(); err != nil {
 25274  		return thrift.PrependError("write field stop error: ", err)
 25275  	}
 25276  	if err := oprot.WriteStructEnd(); err != nil {
 25277  		return thrift.PrependError("write struct stop error: ", err)
 25278  	}
 25279  	return nil
 25280  }
 25281  
 25282  func (p *NodeSetWriteNewSeriesAsyncArgs) writeField1(oprot thrift.TProtocol) (err error) {
 25283  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 25284  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 25285  	}
 25286  	if err := p.Req.Write(oprot); err != nil {
 25287  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 25288  	}
 25289  	if err := oprot.WriteFieldEnd(); err != nil {
 25290  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 25291  	}
 25292  	return err
 25293  }
 25294  
 25295  func (p *NodeSetWriteNewSeriesAsyncArgs) String() string {
 25296  	if p == nil {
 25297  		return "<nil>"
 25298  	}
 25299  	return fmt.Sprintf("NodeSetWriteNewSeriesAsyncArgs(%+v)", *p)
 25300  }
 25301  
 25302  // Attributes:
 25303  //  - Success
 25304  //  - Err
 25305  type NodeSetWriteNewSeriesAsyncResult struct {
 25306  	Success *NodeWriteNewSeriesAsyncResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 25307  	Err     *Error                          `thrift:"err,1" db:"err" json:"err,omitempty"`
 25308  }
 25309  
 25310  func NewNodeSetWriteNewSeriesAsyncResult() *NodeSetWriteNewSeriesAsyncResult {
 25311  	return &NodeSetWriteNewSeriesAsyncResult{}
 25312  }
 25313  
 25314  var NodeSetWriteNewSeriesAsyncResult_Success_DEFAULT *NodeWriteNewSeriesAsyncResult_
 25315  
 25316  func (p *NodeSetWriteNewSeriesAsyncResult) GetSuccess() *NodeWriteNewSeriesAsyncResult_ {
 25317  	if !p.IsSetSuccess() {
 25318  		return NodeSetWriteNewSeriesAsyncResult_Success_DEFAULT
 25319  	}
 25320  	return p.Success
 25321  }
 25322  
 25323  var NodeSetWriteNewSeriesAsyncResult_Err_DEFAULT *Error
 25324  
 25325  func (p *NodeSetWriteNewSeriesAsyncResult) GetErr() *Error {
 25326  	if !p.IsSetErr() {
 25327  		return NodeSetWriteNewSeriesAsyncResult_Err_DEFAULT
 25328  	}
 25329  	return p.Err
 25330  }
 25331  func (p *NodeSetWriteNewSeriesAsyncResult) IsSetSuccess() bool {
 25332  	return p.Success != nil
 25333  }
 25334  
 25335  func (p *NodeSetWriteNewSeriesAsyncResult) IsSetErr() bool {
 25336  	return p.Err != nil
 25337  }
 25338  
 25339  func (p *NodeSetWriteNewSeriesAsyncResult) Read(iprot thrift.TProtocol) error {
 25340  	if _, err := iprot.ReadStructBegin(); err != nil {
 25341  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 25342  	}
 25343  
 25344  	for {
 25345  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 25346  		if err != nil {
 25347  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 25348  		}
 25349  		if fieldTypeId == thrift.STOP {
 25350  			break
 25351  		}
 25352  		switch fieldId {
 25353  		case 0:
 25354  			if err := p.ReadField0(iprot); err != nil {
 25355  				return err
 25356  			}
 25357  		case 1:
 25358  			if err := p.ReadField1(iprot); err != nil {
 25359  				return err
 25360  			}
 25361  		default:
 25362  			if err := iprot.Skip(fieldTypeId); err != nil {
 25363  				return err
 25364  			}
 25365  		}
 25366  		if err := iprot.ReadFieldEnd(); err != nil {
 25367  			return err
 25368  		}
 25369  	}
 25370  	if err := iprot.ReadStructEnd(); err != nil {
 25371  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 25372  	}
 25373  	return nil
 25374  }
 25375  
 25376  func (p *NodeSetWriteNewSeriesAsyncResult) ReadField0(iprot thrift.TProtocol) error {
 25377  	p.Success = &NodeWriteNewSeriesAsyncResult_{}
 25378  	if err := p.Success.Read(iprot); err != nil {
 25379  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 25380  	}
 25381  	return nil
 25382  }
 25383  
 25384  func (p *NodeSetWriteNewSeriesAsyncResult) ReadField1(iprot thrift.TProtocol) error {
 25385  	p.Err = &Error{
 25386  		Type: 0,
 25387  	}
 25388  	if err := p.Err.Read(iprot); err != nil {
 25389  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 25390  	}
 25391  	return nil
 25392  }
 25393  
 25394  func (p *NodeSetWriteNewSeriesAsyncResult) Write(oprot thrift.TProtocol) error {
 25395  	if err := oprot.WriteStructBegin("setWriteNewSeriesAsync_result"); err != nil {
 25396  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 25397  	}
 25398  	if p != nil {
 25399  		if err := p.writeField0(oprot); err != nil {
 25400  			return err
 25401  		}
 25402  		if err := p.writeField1(oprot); err != nil {
 25403  			return err
 25404  		}
 25405  	}
 25406  	if err := oprot.WriteFieldStop(); err != nil {
 25407  		return thrift.PrependError("write field stop error: ", err)
 25408  	}
 25409  	if err := oprot.WriteStructEnd(); err != nil {
 25410  		return thrift.PrependError("write struct stop error: ", err)
 25411  	}
 25412  	return nil
 25413  }
 25414  
 25415  func (p *NodeSetWriteNewSeriesAsyncResult) writeField0(oprot thrift.TProtocol) (err error) {
 25416  	if p.IsSetSuccess() {
 25417  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 25418  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 25419  		}
 25420  		if err := p.Success.Write(oprot); err != nil {
 25421  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 25422  		}
 25423  		if err := oprot.WriteFieldEnd(); err != nil {
 25424  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 25425  		}
 25426  	}
 25427  	return err
 25428  }
 25429  
 25430  func (p *NodeSetWriteNewSeriesAsyncResult) writeField1(oprot thrift.TProtocol) (err error) {
 25431  	if p.IsSetErr() {
 25432  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 25433  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 25434  		}
 25435  		if err := p.Err.Write(oprot); err != nil {
 25436  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 25437  		}
 25438  		if err := oprot.WriteFieldEnd(); err != nil {
 25439  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 25440  		}
 25441  	}
 25442  	return err
 25443  }
 25444  
 25445  func (p *NodeSetWriteNewSeriesAsyncResult) String() string {
 25446  	if p == nil {
 25447  		return "<nil>"
 25448  	}
 25449  	return fmt.Sprintf("NodeSetWriteNewSeriesAsyncResult(%+v)", *p)
 25450  }
 25451  
 25452  type NodeGetWriteNewSeriesBackoffDurationArgs struct {
 25453  }
 25454  
 25455  func NewNodeGetWriteNewSeriesBackoffDurationArgs() *NodeGetWriteNewSeriesBackoffDurationArgs {
 25456  	return &NodeGetWriteNewSeriesBackoffDurationArgs{}
 25457  }
 25458  
 25459  func (p *NodeGetWriteNewSeriesBackoffDurationArgs) Read(iprot thrift.TProtocol) error {
 25460  	if _, err := iprot.ReadStructBegin(); err != nil {
 25461  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 25462  	}
 25463  
 25464  	for {
 25465  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 25466  		if err != nil {
 25467  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 25468  		}
 25469  		if fieldTypeId == thrift.STOP {
 25470  			break
 25471  		}
 25472  		if err := iprot.Skip(fieldTypeId); err != nil {
 25473  			return err
 25474  		}
 25475  		if err := iprot.ReadFieldEnd(); err != nil {
 25476  			return err
 25477  		}
 25478  	}
 25479  	if err := iprot.ReadStructEnd(); err != nil {
 25480  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 25481  	}
 25482  	return nil
 25483  }
 25484  
 25485  func (p *NodeGetWriteNewSeriesBackoffDurationArgs) Write(oprot thrift.TProtocol) error {
 25486  	if err := oprot.WriteStructBegin("getWriteNewSeriesBackoffDuration_args"); err != nil {
 25487  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 25488  	}
 25489  	if p != nil {
 25490  	}
 25491  	if err := oprot.WriteFieldStop(); err != nil {
 25492  		return thrift.PrependError("write field stop error: ", err)
 25493  	}
 25494  	if err := oprot.WriteStructEnd(); err != nil {
 25495  		return thrift.PrependError("write struct stop error: ", err)
 25496  	}
 25497  	return nil
 25498  }
 25499  
 25500  func (p *NodeGetWriteNewSeriesBackoffDurationArgs) String() string {
 25501  	if p == nil {
 25502  		return "<nil>"
 25503  	}
 25504  	return fmt.Sprintf("NodeGetWriteNewSeriesBackoffDurationArgs(%+v)", *p)
 25505  }
 25506  
 25507  // Attributes:
 25508  //  - Success
 25509  //  - Err
 25510  type NodeGetWriteNewSeriesBackoffDurationResult struct {
 25511  	Success *NodeWriteNewSeriesBackoffDurationResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 25512  	Err     *Error                                    `thrift:"err,1" db:"err" json:"err,omitempty"`
 25513  }
 25514  
 25515  func NewNodeGetWriteNewSeriesBackoffDurationResult() *NodeGetWriteNewSeriesBackoffDurationResult {
 25516  	return &NodeGetWriteNewSeriesBackoffDurationResult{}
 25517  }
 25518  
 25519  var NodeGetWriteNewSeriesBackoffDurationResult_Success_DEFAULT *NodeWriteNewSeriesBackoffDurationResult_
 25520  
 25521  func (p *NodeGetWriteNewSeriesBackoffDurationResult) GetSuccess() *NodeWriteNewSeriesBackoffDurationResult_ {
 25522  	if !p.IsSetSuccess() {
 25523  		return NodeGetWriteNewSeriesBackoffDurationResult_Success_DEFAULT
 25524  	}
 25525  	return p.Success
 25526  }
 25527  
 25528  var NodeGetWriteNewSeriesBackoffDurationResult_Err_DEFAULT *Error
 25529  
 25530  func (p *NodeGetWriteNewSeriesBackoffDurationResult) GetErr() *Error {
 25531  	if !p.IsSetErr() {
 25532  		return NodeGetWriteNewSeriesBackoffDurationResult_Err_DEFAULT
 25533  	}
 25534  	return p.Err
 25535  }
 25536  func (p *NodeGetWriteNewSeriesBackoffDurationResult) IsSetSuccess() bool {
 25537  	return p.Success != nil
 25538  }
 25539  
 25540  func (p *NodeGetWriteNewSeriesBackoffDurationResult) IsSetErr() bool {
 25541  	return p.Err != nil
 25542  }
 25543  
 25544  func (p *NodeGetWriteNewSeriesBackoffDurationResult) Read(iprot thrift.TProtocol) error {
 25545  	if _, err := iprot.ReadStructBegin(); err != nil {
 25546  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 25547  	}
 25548  
 25549  	for {
 25550  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 25551  		if err != nil {
 25552  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 25553  		}
 25554  		if fieldTypeId == thrift.STOP {
 25555  			break
 25556  		}
 25557  		switch fieldId {
 25558  		case 0:
 25559  			if err := p.ReadField0(iprot); err != nil {
 25560  				return err
 25561  			}
 25562  		case 1:
 25563  			if err := p.ReadField1(iprot); err != nil {
 25564  				return err
 25565  			}
 25566  		default:
 25567  			if err := iprot.Skip(fieldTypeId); err != nil {
 25568  				return err
 25569  			}
 25570  		}
 25571  		if err := iprot.ReadFieldEnd(); err != nil {
 25572  			return err
 25573  		}
 25574  	}
 25575  	if err := iprot.ReadStructEnd(); err != nil {
 25576  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 25577  	}
 25578  	return nil
 25579  }
 25580  
 25581  func (p *NodeGetWriteNewSeriesBackoffDurationResult) ReadField0(iprot thrift.TProtocol) error {
 25582  	p.Success = &NodeWriteNewSeriesBackoffDurationResult_{}
 25583  	if err := p.Success.Read(iprot); err != nil {
 25584  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 25585  	}
 25586  	return nil
 25587  }
 25588  
 25589  func (p *NodeGetWriteNewSeriesBackoffDurationResult) ReadField1(iprot thrift.TProtocol) error {
 25590  	p.Err = &Error{
 25591  		Type: 0,
 25592  	}
 25593  	if err := p.Err.Read(iprot); err != nil {
 25594  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 25595  	}
 25596  	return nil
 25597  }
 25598  
 25599  func (p *NodeGetWriteNewSeriesBackoffDurationResult) Write(oprot thrift.TProtocol) error {
 25600  	if err := oprot.WriteStructBegin("getWriteNewSeriesBackoffDuration_result"); err != nil {
 25601  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 25602  	}
 25603  	if p != nil {
 25604  		if err := p.writeField0(oprot); err != nil {
 25605  			return err
 25606  		}
 25607  		if err := p.writeField1(oprot); err != nil {
 25608  			return err
 25609  		}
 25610  	}
 25611  	if err := oprot.WriteFieldStop(); err != nil {
 25612  		return thrift.PrependError("write field stop error: ", err)
 25613  	}
 25614  	if err := oprot.WriteStructEnd(); err != nil {
 25615  		return thrift.PrependError("write struct stop error: ", err)
 25616  	}
 25617  	return nil
 25618  }
 25619  
 25620  func (p *NodeGetWriteNewSeriesBackoffDurationResult) writeField0(oprot thrift.TProtocol) (err error) {
 25621  	if p.IsSetSuccess() {
 25622  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 25623  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 25624  		}
 25625  		if err := p.Success.Write(oprot); err != nil {
 25626  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 25627  		}
 25628  		if err := oprot.WriteFieldEnd(); err != nil {
 25629  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 25630  		}
 25631  	}
 25632  	return err
 25633  }
 25634  
 25635  func (p *NodeGetWriteNewSeriesBackoffDurationResult) writeField1(oprot thrift.TProtocol) (err error) {
 25636  	if p.IsSetErr() {
 25637  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 25638  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 25639  		}
 25640  		if err := p.Err.Write(oprot); err != nil {
 25641  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 25642  		}
 25643  		if err := oprot.WriteFieldEnd(); err != nil {
 25644  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 25645  		}
 25646  	}
 25647  	return err
 25648  }
 25649  
 25650  func (p *NodeGetWriteNewSeriesBackoffDurationResult) String() string {
 25651  	if p == nil {
 25652  		return "<nil>"
 25653  	}
 25654  	return fmt.Sprintf("NodeGetWriteNewSeriesBackoffDurationResult(%+v)", *p)
 25655  }
 25656  
 25657  // Attributes:
 25658  //  - Req
 25659  type NodeSetWriteNewSeriesBackoffDurationArgs struct {
 25660  	Req *NodeSetWriteNewSeriesBackoffDurationRequest `thrift:"req,1" db:"req" json:"req"`
 25661  }
 25662  
 25663  func NewNodeSetWriteNewSeriesBackoffDurationArgs() *NodeSetWriteNewSeriesBackoffDurationArgs {
 25664  	return &NodeSetWriteNewSeriesBackoffDurationArgs{}
 25665  }
 25666  
 25667  var NodeSetWriteNewSeriesBackoffDurationArgs_Req_DEFAULT *NodeSetWriteNewSeriesBackoffDurationRequest
 25668  
 25669  func (p *NodeSetWriteNewSeriesBackoffDurationArgs) GetReq() *NodeSetWriteNewSeriesBackoffDurationRequest {
 25670  	if !p.IsSetReq() {
 25671  		return NodeSetWriteNewSeriesBackoffDurationArgs_Req_DEFAULT
 25672  	}
 25673  	return p.Req
 25674  }
 25675  func (p *NodeSetWriteNewSeriesBackoffDurationArgs) IsSetReq() bool {
 25676  	return p.Req != nil
 25677  }
 25678  
 25679  func (p *NodeSetWriteNewSeriesBackoffDurationArgs) Read(iprot thrift.TProtocol) error {
 25680  	if _, err := iprot.ReadStructBegin(); err != nil {
 25681  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 25682  	}
 25683  
 25684  	for {
 25685  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 25686  		if err != nil {
 25687  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 25688  		}
 25689  		if fieldTypeId == thrift.STOP {
 25690  			break
 25691  		}
 25692  		switch fieldId {
 25693  		case 1:
 25694  			if err := p.ReadField1(iprot); err != nil {
 25695  				return err
 25696  			}
 25697  		default:
 25698  			if err := iprot.Skip(fieldTypeId); err != nil {
 25699  				return err
 25700  			}
 25701  		}
 25702  		if err := iprot.ReadFieldEnd(); err != nil {
 25703  			return err
 25704  		}
 25705  	}
 25706  	if err := iprot.ReadStructEnd(); err != nil {
 25707  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 25708  	}
 25709  	return nil
 25710  }
 25711  
 25712  func (p *NodeSetWriteNewSeriesBackoffDurationArgs) ReadField1(iprot thrift.TProtocol) error {
 25713  	p.Req = &NodeSetWriteNewSeriesBackoffDurationRequest{
 25714  		DurationType: 2,
 25715  	}
 25716  	if err := p.Req.Read(iprot); err != nil {
 25717  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 25718  	}
 25719  	return nil
 25720  }
 25721  
 25722  func (p *NodeSetWriteNewSeriesBackoffDurationArgs) Write(oprot thrift.TProtocol) error {
 25723  	if err := oprot.WriteStructBegin("setWriteNewSeriesBackoffDuration_args"); err != nil {
 25724  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 25725  	}
 25726  	if p != nil {
 25727  		if err := p.writeField1(oprot); err != nil {
 25728  			return err
 25729  		}
 25730  	}
 25731  	if err := oprot.WriteFieldStop(); err != nil {
 25732  		return thrift.PrependError("write field stop error: ", err)
 25733  	}
 25734  	if err := oprot.WriteStructEnd(); err != nil {
 25735  		return thrift.PrependError("write struct stop error: ", err)
 25736  	}
 25737  	return nil
 25738  }
 25739  
 25740  func (p *NodeSetWriteNewSeriesBackoffDurationArgs) writeField1(oprot thrift.TProtocol) (err error) {
 25741  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 25742  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 25743  	}
 25744  	if err := p.Req.Write(oprot); err != nil {
 25745  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 25746  	}
 25747  	if err := oprot.WriteFieldEnd(); err != nil {
 25748  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 25749  	}
 25750  	return err
 25751  }
 25752  
 25753  func (p *NodeSetWriteNewSeriesBackoffDurationArgs) String() string {
 25754  	if p == nil {
 25755  		return "<nil>"
 25756  	}
 25757  	return fmt.Sprintf("NodeSetWriteNewSeriesBackoffDurationArgs(%+v)", *p)
 25758  }
 25759  
 25760  // Attributes:
 25761  //  - Success
 25762  //  - Err
 25763  type NodeSetWriteNewSeriesBackoffDurationResult struct {
 25764  	Success *NodeWriteNewSeriesBackoffDurationResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 25765  	Err     *Error                                    `thrift:"err,1" db:"err" json:"err,omitempty"`
 25766  }
 25767  
 25768  func NewNodeSetWriteNewSeriesBackoffDurationResult() *NodeSetWriteNewSeriesBackoffDurationResult {
 25769  	return &NodeSetWriteNewSeriesBackoffDurationResult{}
 25770  }
 25771  
 25772  var NodeSetWriteNewSeriesBackoffDurationResult_Success_DEFAULT *NodeWriteNewSeriesBackoffDurationResult_
 25773  
 25774  func (p *NodeSetWriteNewSeriesBackoffDurationResult) GetSuccess() *NodeWriteNewSeriesBackoffDurationResult_ {
 25775  	if !p.IsSetSuccess() {
 25776  		return NodeSetWriteNewSeriesBackoffDurationResult_Success_DEFAULT
 25777  	}
 25778  	return p.Success
 25779  }
 25780  
 25781  var NodeSetWriteNewSeriesBackoffDurationResult_Err_DEFAULT *Error
 25782  
 25783  func (p *NodeSetWriteNewSeriesBackoffDurationResult) GetErr() *Error {
 25784  	if !p.IsSetErr() {
 25785  		return NodeSetWriteNewSeriesBackoffDurationResult_Err_DEFAULT
 25786  	}
 25787  	return p.Err
 25788  }
 25789  func (p *NodeSetWriteNewSeriesBackoffDurationResult) IsSetSuccess() bool {
 25790  	return p.Success != nil
 25791  }
 25792  
 25793  func (p *NodeSetWriteNewSeriesBackoffDurationResult) IsSetErr() bool {
 25794  	return p.Err != nil
 25795  }
 25796  
 25797  func (p *NodeSetWriteNewSeriesBackoffDurationResult) Read(iprot thrift.TProtocol) error {
 25798  	if _, err := iprot.ReadStructBegin(); err != nil {
 25799  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 25800  	}
 25801  
 25802  	for {
 25803  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 25804  		if err != nil {
 25805  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 25806  		}
 25807  		if fieldTypeId == thrift.STOP {
 25808  			break
 25809  		}
 25810  		switch fieldId {
 25811  		case 0:
 25812  			if err := p.ReadField0(iprot); err != nil {
 25813  				return err
 25814  			}
 25815  		case 1:
 25816  			if err := p.ReadField1(iprot); err != nil {
 25817  				return err
 25818  			}
 25819  		default:
 25820  			if err := iprot.Skip(fieldTypeId); err != nil {
 25821  				return err
 25822  			}
 25823  		}
 25824  		if err := iprot.ReadFieldEnd(); err != nil {
 25825  			return err
 25826  		}
 25827  	}
 25828  	if err := iprot.ReadStructEnd(); err != nil {
 25829  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 25830  	}
 25831  	return nil
 25832  }
 25833  
 25834  func (p *NodeSetWriteNewSeriesBackoffDurationResult) ReadField0(iprot thrift.TProtocol) error {
 25835  	p.Success = &NodeWriteNewSeriesBackoffDurationResult_{}
 25836  	if err := p.Success.Read(iprot); err != nil {
 25837  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 25838  	}
 25839  	return nil
 25840  }
 25841  
 25842  func (p *NodeSetWriteNewSeriesBackoffDurationResult) ReadField1(iprot thrift.TProtocol) error {
 25843  	p.Err = &Error{
 25844  		Type: 0,
 25845  	}
 25846  	if err := p.Err.Read(iprot); err != nil {
 25847  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 25848  	}
 25849  	return nil
 25850  }
 25851  
 25852  func (p *NodeSetWriteNewSeriesBackoffDurationResult) Write(oprot thrift.TProtocol) error {
 25853  	if err := oprot.WriteStructBegin("setWriteNewSeriesBackoffDuration_result"); err != nil {
 25854  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 25855  	}
 25856  	if p != nil {
 25857  		if err := p.writeField0(oprot); err != nil {
 25858  			return err
 25859  		}
 25860  		if err := p.writeField1(oprot); err != nil {
 25861  			return err
 25862  		}
 25863  	}
 25864  	if err := oprot.WriteFieldStop(); err != nil {
 25865  		return thrift.PrependError("write field stop error: ", err)
 25866  	}
 25867  	if err := oprot.WriteStructEnd(); err != nil {
 25868  		return thrift.PrependError("write struct stop error: ", err)
 25869  	}
 25870  	return nil
 25871  }
 25872  
 25873  func (p *NodeSetWriteNewSeriesBackoffDurationResult) writeField0(oprot thrift.TProtocol) (err error) {
 25874  	if p.IsSetSuccess() {
 25875  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 25876  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 25877  		}
 25878  		if err := p.Success.Write(oprot); err != nil {
 25879  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 25880  		}
 25881  		if err := oprot.WriteFieldEnd(); err != nil {
 25882  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 25883  		}
 25884  	}
 25885  	return err
 25886  }
 25887  
 25888  func (p *NodeSetWriteNewSeriesBackoffDurationResult) writeField1(oprot thrift.TProtocol) (err error) {
 25889  	if p.IsSetErr() {
 25890  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 25891  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 25892  		}
 25893  		if err := p.Err.Write(oprot); err != nil {
 25894  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 25895  		}
 25896  		if err := oprot.WriteFieldEnd(); err != nil {
 25897  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 25898  		}
 25899  	}
 25900  	return err
 25901  }
 25902  
 25903  func (p *NodeSetWriteNewSeriesBackoffDurationResult) String() string {
 25904  	if p == nil {
 25905  		return "<nil>"
 25906  	}
 25907  	return fmt.Sprintf("NodeSetWriteNewSeriesBackoffDurationResult(%+v)", *p)
 25908  }
 25909  
 25910  type NodeGetWriteNewSeriesLimitPerShardPerSecondArgs struct {
 25911  }
 25912  
 25913  func NewNodeGetWriteNewSeriesLimitPerShardPerSecondArgs() *NodeGetWriteNewSeriesLimitPerShardPerSecondArgs {
 25914  	return &NodeGetWriteNewSeriesLimitPerShardPerSecondArgs{}
 25915  }
 25916  
 25917  func (p *NodeGetWriteNewSeriesLimitPerShardPerSecondArgs) Read(iprot thrift.TProtocol) error {
 25918  	if _, err := iprot.ReadStructBegin(); err != nil {
 25919  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 25920  	}
 25921  
 25922  	for {
 25923  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 25924  		if err != nil {
 25925  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 25926  		}
 25927  		if fieldTypeId == thrift.STOP {
 25928  			break
 25929  		}
 25930  		if err := iprot.Skip(fieldTypeId); err != nil {
 25931  			return err
 25932  		}
 25933  		if err := iprot.ReadFieldEnd(); err != nil {
 25934  			return err
 25935  		}
 25936  	}
 25937  	if err := iprot.ReadStructEnd(); err != nil {
 25938  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 25939  	}
 25940  	return nil
 25941  }
 25942  
 25943  func (p *NodeGetWriteNewSeriesLimitPerShardPerSecondArgs) Write(oprot thrift.TProtocol) error {
 25944  	if err := oprot.WriteStructBegin("getWriteNewSeriesLimitPerShardPerSecond_args"); err != nil {
 25945  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 25946  	}
 25947  	if p != nil {
 25948  	}
 25949  	if err := oprot.WriteFieldStop(); err != nil {
 25950  		return thrift.PrependError("write field stop error: ", err)
 25951  	}
 25952  	if err := oprot.WriteStructEnd(); err != nil {
 25953  		return thrift.PrependError("write struct stop error: ", err)
 25954  	}
 25955  	return nil
 25956  }
 25957  
 25958  func (p *NodeGetWriteNewSeriesLimitPerShardPerSecondArgs) String() string {
 25959  	if p == nil {
 25960  		return "<nil>"
 25961  	}
 25962  	return fmt.Sprintf("NodeGetWriteNewSeriesLimitPerShardPerSecondArgs(%+v)", *p)
 25963  }
 25964  
 25965  // Attributes:
 25966  //  - Success
 25967  //  - Err
 25968  type NodeGetWriteNewSeriesLimitPerShardPerSecondResult struct {
 25969  	Success *NodeWriteNewSeriesLimitPerShardPerSecondResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 25970  	Err     *Error                                           `thrift:"err,1" db:"err" json:"err,omitempty"`
 25971  }
 25972  
 25973  func NewNodeGetWriteNewSeriesLimitPerShardPerSecondResult() *NodeGetWriteNewSeriesLimitPerShardPerSecondResult {
 25974  	return &NodeGetWriteNewSeriesLimitPerShardPerSecondResult{}
 25975  }
 25976  
 25977  var NodeGetWriteNewSeriesLimitPerShardPerSecondResult_Success_DEFAULT *NodeWriteNewSeriesLimitPerShardPerSecondResult_
 25978  
 25979  func (p *NodeGetWriteNewSeriesLimitPerShardPerSecondResult) GetSuccess() *NodeWriteNewSeriesLimitPerShardPerSecondResult_ {
 25980  	if !p.IsSetSuccess() {
 25981  		return NodeGetWriteNewSeriesLimitPerShardPerSecondResult_Success_DEFAULT
 25982  	}
 25983  	return p.Success
 25984  }
 25985  
 25986  var NodeGetWriteNewSeriesLimitPerShardPerSecondResult_Err_DEFAULT *Error
 25987  
 25988  func (p *NodeGetWriteNewSeriesLimitPerShardPerSecondResult) GetErr() *Error {
 25989  	if !p.IsSetErr() {
 25990  		return NodeGetWriteNewSeriesLimitPerShardPerSecondResult_Err_DEFAULT
 25991  	}
 25992  	return p.Err
 25993  }
 25994  func (p *NodeGetWriteNewSeriesLimitPerShardPerSecondResult) IsSetSuccess() bool {
 25995  	return p.Success != nil
 25996  }
 25997  
 25998  func (p *NodeGetWriteNewSeriesLimitPerShardPerSecondResult) IsSetErr() bool {
 25999  	return p.Err != nil
 26000  }
 26001  
 26002  func (p *NodeGetWriteNewSeriesLimitPerShardPerSecondResult) Read(iprot thrift.TProtocol) error {
 26003  	if _, err := iprot.ReadStructBegin(); err != nil {
 26004  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 26005  	}
 26006  
 26007  	for {
 26008  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 26009  		if err != nil {
 26010  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 26011  		}
 26012  		if fieldTypeId == thrift.STOP {
 26013  			break
 26014  		}
 26015  		switch fieldId {
 26016  		case 0:
 26017  			if err := p.ReadField0(iprot); err != nil {
 26018  				return err
 26019  			}
 26020  		case 1:
 26021  			if err := p.ReadField1(iprot); err != nil {
 26022  				return err
 26023  			}
 26024  		default:
 26025  			if err := iprot.Skip(fieldTypeId); err != nil {
 26026  				return err
 26027  			}
 26028  		}
 26029  		if err := iprot.ReadFieldEnd(); err != nil {
 26030  			return err
 26031  		}
 26032  	}
 26033  	if err := iprot.ReadStructEnd(); err != nil {
 26034  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 26035  	}
 26036  	return nil
 26037  }
 26038  
 26039  func (p *NodeGetWriteNewSeriesLimitPerShardPerSecondResult) ReadField0(iprot thrift.TProtocol) error {
 26040  	p.Success = &NodeWriteNewSeriesLimitPerShardPerSecondResult_{}
 26041  	if err := p.Success.Read(iprot); err != nil {
 26042  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 26043  	}
 26044  	return nil
 26045  }
 26046  
 26047  func (p *NodeGetWriteNewSeriesLimitPerShardPerSecondResult) ReadField1(iprot thrift.TProtocol) error {
 26048  	p.Err = &Error{
 26049  		Type: 0,
 26050  	}
 26051  	if err := p.Err.Read(iprot); err != nil {
 26052  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 26053  	}
 26054  	return nil
 26055  }
 26056  
 26057  func (p *NodeGetWriteNewSeriesLimitPerShardPerSecondResult) Write(oprot thrift.TProtocol) error {
 26058  	if err := oprot.WriteStructBegin("getWriteNewSeriesLimitPerShardPerSecond_result"); err != nil {
 26059  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 26060  	}
 26061  	if p != nil {
 26062  		if err := p.writeField0(oprot); err != nil {
 26063  			return err
 26064  		}
 26065  		if err := p.writeField1(oprot); err != nil {
 26066  			return err
 26067  		}
 26068  	}
 26069  	if err := oprot.WriteFieldStop(); err != nil {
 26070  		return thrift.PrependError("write field stop error: ", err)
 26071  	}
 26072  	if err := oprot.WriteStructEnd(); err != nil {
 26073  		return thrift.PrependError("write struct stop error: ", err)
 26074  	}
 26075  	return nil
 26076  }
 26077  
 26078  func (p *NodeGetWriteNewSeriesLimitPerShardPerSecondResult) writeField0(oprot thrift.TProtocol) (err error) {
 26079  	if p.IsSetSuccess() {
 26080  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 26081  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 26082  		}
 26083  		if err := p.Success.Write(oprot); err != nil {
 26084  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 26085  		}
 26086  		if err := oprot.WriteFieldEnd(); err != nil {
 26087  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 26088  		}
 26089  	}
 26090  	return err
 26091  }
 26092  
 26093  func (p *NodeGetWriteNewSeriesLimitPerShardPerSecondResult) writeField1(oprot thrift.TProtocol) (err error) {
 26094  	if p.IsSetErr() {
 26095  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 26096  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 26097  		}
 26098  		if err := p.Err.Write(oprot); err != nil {
 26099  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 26100  		}
 26101  		if err := oprot.WriteFieldEnd(); err != nil {
 26102  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 26103  		}
 26104  	}
 26105  	return err
 26106  }
 26107  
 26108  func (p *NodeGetWriteNewSeriesLimitPerShardPerSecondResult) String() string {
 26109  	if p == nil {
 26110  		return "<nil>"
 26111  	}
 26112  	return fmt.Sprintf("NodeGetWriteNewSeriesLimitPerShardPerSecondResult(%+v)", *p)
 26113  }
 26114  
 26115  // Attributes:
 26116  //  - Req
 26117  type NodeSetWriteNewSeriesLimitPerShardPerSecondArgs struct {
 26118  	Req *NodeSetWriteNewSeriesLimitPerShardPerSecondRequest `thrift:"req,1" db:"req" json:"req"`
 26119  }
 26120  
 26121  func NewNodeSetWriteNewSeriesLimitPerShardPerSecondArgs() *NodeSetWriteNewSeriesLimitPerShardPerSecondArgs {
 26122  	return &NodeSetWriteNewSeriesLimitPerShardPerSecondArgs{}
 26123  }
 26124  
 26125  var NodeSetWriteNewSeriesLimitPerShardPerSecondArgs_Req_DEFAULT *NodeSetWriteNewSeriesLimitPerShardPerSecondRequest
 26126  
 26127  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondArgs) GetReq() *NodeSetWriteNewSeriesLimitPerShardPerSecondRequest {
 26128  	if !p.IsSetReq() {
 26129  		return NodeSetWriteNewSeriesLimitPerShardPerSecondArgs_Req_DEFAULT
 26130  	}
 26131  	return p.Req
 26132  }
 26133  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondArgs) IsSetReq() bool {
 26134  	return p.Req != nil
 26135  }
 26136  
 26137  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondArgs) Read(iprot thrift.TProtocol) error {
 26138  	if _, err := iprot.ReadStructBegin(); err != nil {
 26139  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 26140  	}
 26141  
 26142  	for {
 26143  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 26144  		if err != nil {
 26145  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 26146  		}
 26147  		if fieldTypeId == thrift.STOP {
 26148  			break
 26149  		}
 26150  		switch fieldId {
 26151  		case 1:
 26152  			if err := p.ReadField1(iprot); err != nil {
 26153  				return err
 26154  			}
 26155  		default:
 26156  			if err := iprot.Skip(fieldTypeId); err != nil {
 26157  				return err
 26158  			}
 26159  		}
 26160  		if err := iprot.ReadFieldEnd(); err != nil {
 26161  			return err
 26162  		}
 26163  	}
 26164  	if err := iprot.ReadStructEnd(); err != nil {
 26165  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 26166  	}
 26167  	return nil
 26168  }
 26169  
 26170  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondArgs) ReadField1(iprot thrift.TProtocol) error {
 26171  	p.Req = &NodeSetWriteNewSeriesLimitPerShardPerSecondRequest{}
 26172  	if err := p.Req.Read(iprot); err != nil {
 26173  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 26174  	}
 26175  	return nil
 26176  }
 26177  
 26178  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondArgs) Write(oprot thrift.TProtocol) error {
 26179  	if err := oprot.WriteStructBegin("setWriteNewSeriesLimitPerShardPerSecond_args"); err != nil {
 26180  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 26181  	}
 26182  	if p != nil {
 26183  		if err := p.writeField1(oprot); err != nil {
 26184  			return err
 26185  		}
 26186  	}
 26187  	if err := oprot.WriteFieldStop(); err != nil {
 26188  		return thrift.PrependError("write field stop error: ", err)
 26189  	}
 26190  	if err := oprot.WriteStructEnd(); err != nil {
 26191  		return thrift.PrependError("write struct stop error: ", err)
 26192  	}
 26193  	return nil
 26194  }
 26195  
 26196  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondArgs) writeField1(oprot thrift.TProtocol) (err error) {
 26197  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 26198  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 26199  	}
 26200  	if err := p.Req.Write(oprot); err != nil {
 26201  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 26202  	}
 26203  	if err := oprot.WriteFieldEnd(); err != nil {
 26204  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 26205  	}
 26206  	return err
 26207  }
 26208  
 26209  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondArgs) String() string {
 26210  	if p == nil {
 26211  		return "<nil>"
 26212  	}
 26213  	return fmt.Sprintf("NodeSetWriteNewSeriesLimitPerShardPerSecondArgs(%+v)", *p)
 26214  }
 26215  
 26216  // Attributes:
 26217  //  - Success
 26218  //  - Err
 26219  type NodeSetWriteNewSeriesLimitPerShardPerSecondResult struct {
 26220  	Success *NodeWriteNewSeriesLimitPerShardPerSecondResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 26221  	Err     *Error                                           `thrift:"err,1" db:"err" json:"err,omitempty"`
 26222  }
 26223  
 26224  func NewNodeSetWriteNewSeriesLimitPerShardPerSecondResult() *NodeSetWriteNewSeriesLimitPerShardPerSecondResult {
 26225  	return &NodeSetWriteNewSeriesLimitPerShardPerSecondResult{}
 26226  }
 26227  
 26228  var NodeSetWriteNewSeriesLimitPerShardPerSecondResult_Success_DEFAULT *NodeWriteNewSeriesLimitPerShardPerSecondResult_
 26229  
 26230  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondResult) GetSuccess() *NodeWriteNewSeriesLimitPerShardPerSecondResult_ {
 26231  	if !p.IsSetSuccess() {
 26232  		return NodeSetWriteNewSeriesLimitPerShardPerSecondResult_Success_DEFAULT
 26233  	}
 26234  	return p.Success
 26235  }
 26236  
 26237  var NodeSetWriteNewSeriesLimitPerShardPerSecondResult_Err_DEFAULT *Error
 26238  
 26239  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondResult) GetErr() *Error {
 26240  	if !p.IsSetErr() {
 26241  		return NodeSetWriteNewSeriesLimitPerShardPerSecondResult_Err_DEFAULT
 26242  	}
 26243  	return p.Err
 26244  }
 26245  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondResult) IsSetSuccess() bool {
 26246  	return p.Success != nil
 26247  }
 26248  
 26249  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondResult) IsSetErr() bool {
 26250  	return p.Err != nil
 26251  }
 26252  
 26253  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondResult) Read(iprot thrift.TProtocol) error {
 26254  	if _, err := iprot.ReadStructBegin(); err != nil {
 26255  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 26256  	}
 26257  
 26258  	for {
 26259  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 26260  		if err != nil {
 26261  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 26262  		}
 26263  		if fieldTypeId == thrift.STOP {
 26264  			break
 26265  		}
 26266  		switch fieldId {
 26267  		case 0:
 26268  			if err := p.ReadField0(iprot); err != nil {
 26269  				return err
 26270  			}
 26271  		case 1:
 26272  			if err := p.ReadField1(iprot); err != nil {
 26273  				return err
 26274  			}
 26275  		default:
 26276  			if err := iprot.Skip(fieldTypeId); err != nil {
 26277  				return err
 26278  			}
 26279  		}
 26280  		if err := iprot.ReadFieldEnd(); err != nil {
 26281  			return err
 26282  		}
 26283  	}
 26284  	if err := iprot.ReadStructEnd(); err != nil {
 26285  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 26286  	}
 26287  	return nil
 26288  }
 26289  
 26290  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondResult) ReadField0(iprot thrift.TProtocol) error {
 26291  	p.Success = &NodeWriteNewSeriesLimitPerShardPerSecondResult_{}
 26292  	if err := p.Success.Read(iprot); err != nil {
 26293  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 26294  	}
 26295  	return nil
 26296  }
 26297  
 26298  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondResult) ReadField1(iprot thrift.TProtocol) error {
 26299  	p.Err = &Error{
 26300  		Type: 0,
 26301  	}
 26302  	if err := p.Err.Read(iprot); err != nil {
 26303  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 26304  	}
 26305  	return nil
 26306  }
 26307  
 26308  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondResult) Write(oprot thrift.TProtocol) error {
 26309  	if err := oprot.WriteStructBegin("setWriteNewSeriesLimitPerShardPerSecond_result"); err != nil {
 26310  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 26311  	}
 26312  	if p != nil {
 26313  		if err := p.writeField0(oprot); err != nil {
 26314  			return err
 26315  		}
 26316  		if err := p.writeField1(oprot); err != nil {
 26317  			return err
 26318  		}
 26319  	}
 26320  	if err := oprot.WriteFieldStop(); err != nil {
 26321  		return thrift.PrependError("write field stop error: ", err)
 26322  	}
 26323  	if err := oprot.WriteStructEnd(); err != nil {
 26324  		return thrift.PrependError("write struct stop error: ", err)
 26325  	}
 26326  	return nil
 26327  }
 26328  
 26329  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondResult) writeField0(oprot thrift.TProtocol) (err error) {
 26330  	if p.IsSetSuccess() {
 26331  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 26332  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 26333  		}
 26334  		if err := p.Success.Write(oprot); err != nil {
 26335  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 26336  		}
 26337  		if err := oprot.WriteFieldEnd(); err != nil {
 26338  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 26339  		}
 26340  	}
 26341  	return err
 26342  }
 26343  
 26344  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondResult) writeField1(oprot thrift.TProtocol) (err error) {
 26345  	if p.IsSetErr() {
 26346  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 26347  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 26348  		}
 26349  		if err := p.Err.Write(oprot); err != nil {
 26350  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 26351  		}
 26352  		if err := oprot.WriteFieldEnd(); err != nil {
 26353  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 26354  		}
 26355  	}
 26356  	return err
 26357  }
 26358  
 26359  func (p *NodeSetWriteNewSeriesLimitPerShardPerSecondResult) String() string {
 26360  	if p == nil {
 26361  		return "<nil>"
 26362  	}
 26363  	return fmt.Sprintf("NodeSetWriteNewSeriesLimitPerShardPerSecondResult(%+v)", *p)
 26364  }
 26365  
 26366  // Attributes:
 26367  //  - Req
 26368  type NodeDebugProfileStartArgs struct {
 26369  	Req *DebugProfileStartRequest `thrift:"req,1" db:"req" json:"req"`
 26370  }
 26371  
 26372  func NewNodeDebugProfileStartArgs() *NodeDebugProfileStartArgs {
 26373  	return &NodeDebugProfileStartArgs{}
 26374  }
 26375  
 26376  var NodeDebugProfileStartArgs_Req_DEFAULT *DebugProfileStartRequest
 26377  
 26378  func (p *NodeDebugProfileStartArgs) GetReq() *DebugProfileStartRequest {
 26379  	if !p.IsSetReq() {
 26380  		return NodeDebugProfileStartArgs_Req_DEFAULT
 26381  	}
 26382  	return p.Req
 26383  }
 26384  func (p *NodeDebugProfileStartArgs) IsSetReq() bool {
 26385  	return p.Req != nil
 26386  }
 26387  
 26388  func (p *NodeDebugProfileStartArgs) Read(iprot thrift.TProtocol) error {
 26389  	if _, err := iprot.ReadStructBegin(); err != nil {
 26390  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 26391  	}
 26392  
 26393  	for {
 26394  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 26395  		if err != nil {
 26396  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 26397  		}
 26398  		if fieldTypeId == thrift.STOP {
 26399  			break
 26400  		}
 26401  		switch fieldId {
 26402  		case 1:
 26403  			if err := p.ReadField1(iprot); err != nil {
 26404  				return err
 26405  			}
 26406  		default:
 26407  			if err := iprot.Skip(fieldTypeId); err != nil {
 26408  				return err
 26409  			}
 26410  		}
 26411  		if err := iprot.ReadFieldEnd(); err != nil {
 26412  			return err
 26413  		}
 26414  	}
 26415  	if err := iprot.ReadStructEnd(); err != nil {
 26416  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 26417  	}
 26418  	return nil
 26419  }
 26420  
 26421  func (p *NodeDebugProfileStartArgs) ReadField1(iprot thrift.TProtocol) error {
 26422  	p.Req = &DebugProfileStartRequest{}
 26423  	if err := p.Req.Read(iprot); err != nil {
 26424  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 26425  	}
 26426  	return nil
 26427  }
 26428  
 26429  func (p *NodeDebugProfileStartArgs) Write(oprot thrift.TProtocol) error {
 26430  	if err := oprot.WriteStructBegin("debugProfileStart_args"); err != nil {
 26431  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 26432  	}
 26433  	if p != nil {
 26434  		if err := p.writeField1(oprot); err != nil {
 26435  			return err
 26436  		}
 26437  	}
 26438  	if err := oprot.WriteFieldStop(); err != nil {
 26439  		return thrift.PrependError("write field stop error: ", err)
 26440  	}
 26441  	if err := oprot.WriteStructEnd(); err != nil {
 26442  		return thrift.PrependError("write struct stop error: ", err)
 26443  	}
 26444  	return nil
 26445  }
 26446  
 26447  func (p *NodeDebugProfileStartArgs) writeField1(oprot thrift.TProtocol) (err error) {
 26448  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 26449  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 26450  	}
 26451  	if err := p.Req.Write(oprot); err != nil {
 26452  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 26453  	}
 26454  	if err := oprot.WriteFieldEnd(); err != nil {
 26455  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 26456  	}
 26457  	return err
 26458  }
 26459  
 26460  func (p *NodeDebugProfileStartArgs) String() string {
 26461  	if p == nil {
 26462  		return "<nil>"
 26463  	}
 26464  	return fmt.Sprintf("NodeDebugProfileStartArgs(%+v)", *p)
 26465  }
 26466  
 26467  // Attributes:
 26468  //  - Success
 26469  //  - Err
 26470  type NodeDebugProfileStartResult struct {
 26471  	Success *DebugProfileStartResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 26472  	Err     *Error                    `thrift:"err,1" db:"err" json:"err,omitempty"`
 26473  }
 26474  
 26475  func NewNodeDebugProfileStartResult() *NodeDebugProfileStartResult {
 26476  	return &NodeDebugProfileStartResult{}
 26477  }
 26478  
 26479  var NodeDebugProfileStartResult_Success_DEFAULT *DebugProfileStartResult_
 26480  
 26481  func (p *NodeDebugProfileStartResult) GetSuccess() *DebugProfileStartResult_ {
 26482  	if !p.IsSetSuccess() {
 26483  		return NodeDebugProfileStartResult_Success_DEFAULT
 26484  	}
 26485  	return p.Success
 26486  }
 26487  
 26488  var NodeDebugProfileStartResult_Err_DEFAULT *Error
 26489  
 26490  func (p *NodeDebugProfileStartResult) GetErr() *Error {
 26491  	if !p.IsSetErr() {
 26492  		return NodeDebugProfileStartResult_Err_DEFAULT
 26493  	}
 26494  	return p.Err
 26495  }
 26496  func (p *NodeDebugProfileStartResult) IsSetSuccess() bool {
 26497  	return p.Success != nil
 26498  }
 26499  
 26500  func (p *NodeDebugProfileStartResult) IsSetErr() bool {
 26501  	return p.Err != nil
 26502  }
 26503  
 26504  func (p *NodeDebugProfileStartResult) Read(iprot thrift.TProtocol) error {
 26505  	if _, err := iprot.ReadStructBegin(); err != nil {
 26506  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 26507  	}
 26508  
 26509  	for {
 26510  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 26511  		if err != nil {
 26512  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 26513  		}
 26514  		if fieldTypeId == thrift.STOP {
 26515  			break
 26516  		}
 26517  		switch fieldId {
 26518  		case 0:
 26519  			if err := p.ReadField0(iprot); err != nil {
 26520  				return err
 26521  			}
 26522  		case 1:
 26523  			if err := p.ReadField1(iprot); err != nil {
 26524  				return err
 26525  			}
 26526  		default:
 26527  			if err := iprot.Skip(fieldTypeId); err != nil {
 26528  				return err
 26529  			}
 26530  		}
 26531  		if err := iprot.ReadFieldEnd(); err != nil {
 26532  			return err
 26533  		}
 26534  	}
 26535  	if err := iprot.ReadStructEnd(); err != nil {
 26536  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 26537  	}
 26538  	return nil
 26539  }
 26540  
 26541  func (p *NodeDebugProfileStartResult) ReadField0(iprot thrift.TProtocol) error {
 26542  	p.Success = &DebugProfileStartResult_{}
 26543  	if err := p.Success.Read(iprot); err != nil {
 26544  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 26545  	}
 26546  	return nil
 26547  }
 26548  
 26549  func (p *NodeDebugProfileStartResult) ReadField1(iprot thrift.TProtocol) error {
 26550  	p.Err = &Error{
 26551  		Type: 0,
 26552  	}
 26553  	if err := p.Err.Read(iprot); err != nil {
 26554  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 26555  	}
 26556  	return nil
 26557  }
 26558  
 26559  func (p *NodeDebugProfileStartResult) Write(oprot thrift.TProtocol) error {
 26560  	if err := oprot.WriteStructBegin("debugProfileStart_result"); err != nil {
 26561  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 26562  	}
 26563  	if p != nil {
 26564  		if err := p.writeField0(oprot); err != nil {
 26565  			return err
 26566  		}
 26567  		if err := p.writeField1(oprot); err != nil {
 26568  			return err
 26569  		}
 26570  	}
 26571  	if err := oprot.WriteFieldStop(); err != nil {
 26572  		return thrift.PrependError("write field stop error: ", err)
 26573  	}
 26574  	if err := oprot.WriteStructEnd(); err != nil {
 26575  		return thrift.PrependError("write struct stop error: ", err)
 26576  	}
 26577  	return nil
 26578  }
 26579  
 26580  func (p *NodeDebugProfileStartResult) writeField0(oprot thrift.TProtocol) (err error) {
 26581  	if p.IsSetSuccess() {
 26582  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 26583  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 26584  		}
 26585  		if err := p.Success.Write(oprot); err != nil {
 26586  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 26587  		}
 26588  		if err := oprot.WriteFieldEnd(); err != nil {
 26589  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 26590  		}
 26591  	}
 26592  	return err
 26593  }
 26594  
 26595  func (p *NodeDebugProfileStartResult) writeField1(oprot thrift.TProtocol) (err error) {
 26596  	if p.IsSetErr() {
 26597  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 26598  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 26599  		}
 26600  		if err := p.Err.Write(oprot); err != nil {
 26601  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 26602  		}
 26603  		if err := oprot.WriteFieldEnd(); err != nil {
 26604  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 26605  		}
 26606  	}
 26607  	return err
 26608  }
 26609  
 26610  func (p *NodeDebugProfileStartResult) String() string {
 26611  	if p == nil {
 26612  		return "<nil>"
 26613  	}
 26614  	return fmt.Sprintf("NodeDebugProfileStartResult(%+v)", *p)
 26615  }
 26616  
 26617  // Attributes:
 26618  //  - Req
 26619  type NodeDebugProfileStopArgs struct {
 26620  	Req *DebugProfileStopRequest `thrift:"req,1" db:"req" json:"req"`
 26621  }
 26622  
 26623  func NewNodeDebugProfileStopArgs() *NodeDebugProfileStopArgs {
 26624  	return &NodeDebugProfileStopArgs{}
 26625  }
 26626  
 26627  var NodeDebugProfileStopArgs_Req_DEFAULT *DebugProfileStopRequest
 26628  
 26629  func (p *NodeDebugProfileStopArgs) GetReq() *DebugProfileStopRequest {
 26630  	if !p.IsSetReq() {
 26631  		return NodeDebugProfileStopArgs_Req_DEFAULT
 26632  	}
 26633  	return p.Req
 26634  }
 26635  func (p *NodeDebugProfileStopArgs) IsSetReq() bool {
 26636  	return p.Req != nil
 26637  }
 26638  
 26639  func (p *NodeDebugProfileStopArgs) Read(iprot thrift.TProtocol) error {
 26640  	if _, err := iprot.ReadStructBegin(); err != nil {
 26641  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 26642  	}
 26643  
 26644  	for {
 26645  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 26646  		if err != nil {
 26647  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 26648  		}
 26649  		if fieldTypeId == thrift.STOP {
 26650  			break
 26651  		}
 26652  		switch fieldId {
 26653  		case 1:
 26654  			if err := p.ReadField1(iprot); err != nil {
 26655  				return err
 26656  			}
 26657  		default:
 26658  			if err := iprot.Skip(fieldTypeId); err != nil {
 26659  				return err
 26660  			}
 26661  		}
 26662  		if err := iprot.ReadFieldEnd(); err != nil {
 26663  			return err
 26664  		}
 26665  	}
 26666  	if err := iprot.ReadStructEnd(); err != nil {
 26667  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 26668  	}
 26669  	return nil
 26670  }
 26671  
 26672  func (p *NodeDebugProfileStopArgs) ReadField1(iprot thrift.TProtocol) error {
 26673  	p.Req = &DebugProfileStopRequest{}
 26674  	if err := p.Req.Read(iprot); err != nil {
 26675  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 26676  	}
 26677  	return nil
 26678  }
 26679  
 26680  func (p *NodeDebugProfileStopArgs) Write(oprot thrift.TProtocol) error {
 26681  	if err := oprot.WriteStructBegin("debugProfileStop_args"); err != nil {
 26682  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 26683  	}
 26684  	if p != nil {
 26685  		if err := p.writeField1(oprot); err != nil {
 26686  			return err
 26687  		}
 26688  	}
 26689  	if err := oprot.WriteFieldStop(); err != nil {
 26690  		return thrift.PrependError("write field stop error: ", err)
 26691  	}
 26692  	if err := oprot.WriteStructEnd(); err != nil {
 26693  		return thrift.PrependError("write struct stop error: ", err)
 26694  	}
 26695  	return nil
 26696  }
 26697  
 26698  func (p *NodeDebugProfileStopArgs) writeField1(oprot thrift.TProtocol) (err error) {
 26699  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 26700  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 26701  	}
 26702  	if err := p.Req.Write(oprot); err != nil {
 26703  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 26704  	}
 26705  	if err := oprot.WriteFieldEnd(); err != nil {
 26706  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 26707  	}
 26708  	return err
 26709  }
 26710  
 26711  func (p *NodeDebugProfileStopArgs) String() string {
 26712  	if p == nil {
 26713  		return "<nil>"
 26714  	}
 26715  	return fmt.Sprintf("NodeDebugProfileStopArgs(%+v)", *p)
 26716  }
 26717  
 26718  // Attributes:
 26719  //  - Success
 26720  //  - Err
 26721  type NodeDebugProfileStopResult struct {
 26722  	Success *DebugProfileStopResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 26723  	Err     *Error                   `thrift:"err,1" db:"err" json:"err,omitempty"`
 26724  }
 26725  
 26726  func NewNodeDebugProfileStopResult() *NodeDebugProfileStopResult {
 26727  	return &NodeDebugProfileStopResult{}
 26728  }
 26729  
 26730  var NodeDebugProfileStopResult_Success_DEFAULT *DebugProfileStopResult_
 26731  
 26732  func (p *NodeDebugProfileStopResult) GetSuccess() *DebugProfileStopResult_ {
 26733  	if !p.IsSetSuccess() {
 26734  		return NodeDebugProfileStopResult_Success_DEFAULT
 26735  	}
 26736  	return p.Success
 26737  }
 26738  
 26739  var NodeDebugProfileStopResult_Err_DEFAULT *Error
 26740  
 26741  func (p *NodeDebugProfileStopResult) GetErr() *Error {
 26742  	if !p.IsSetErr() {
 26743  		return NodeDebugProfileStopResult_Err_DEFAULT
 26744  	}
 26745  	return p.Err
 26746  }
 26747  func (p *NodeDebugProfileStopResult) IsSetSuccess() bool {
 26748  	return p.Success != nil
 26749  }
 26750  
 26751  func (p *NodeDebugProfileStopResult) IsSetErr() bool {
 26752  	return p.Err != nil
 26753  }
 26754  
 26755  func (p *NodeDebugProfileStopResult) Read(iprot thrift.TProtocol) error {
 26756  	if _, err := iprot.ReadStructBegin(); err != nil {
 26757  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 26758  	}
 26759  
 26760  	for {
 26761  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 26762  		if err != nil {
 26763  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 26764  		}
 26765  		if fieldTypeId == thrift.STOP {
 26766  			break
 26767  		}
 26768  		switch fieldId {
 26769  		case 0:
 26770  			if err := p.ReadField0(iprot); err != nil {
 26771  				return err
 26772  			}
 26773  		case 1:
 26774  			if err := p.ReadField1(iprot); err != nil {
 26775  				return err
 26776  			}
 26777  		default:
 26778  			if err := iprot.Skip(fieldTypeId); err != nil {
 26779  				return err
 26780  			}
 26781  		}
 26782  		if err := iprot.ReadFieldEnd(); err != nil {
 26783  			return err
 26784  		}
 26785  	}
 26786  	if err := iprot.ReadStructEnd(); err != nil {
 26787  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 26788  	}
 26789  	return nil
 26790  }
 26791  
 26792  func (p *NodeDebugProfileStopResult) ReadField0(iprot thrift.TProtocol) error {
 26793  	p.Success = &DebugProfileStopResult_{}
 26794  	if err := p.Success.Read(iprot); err != nil {
 26795  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 26796  	}
 26797  	return nil
 26798  }
 26799  
 26800  func (p *NodeDebugProfileStopResult) ReadField1(iprot thrift.TProtocol) error {
 26801  	p.Err = &Error{
 26802  		Type: 0,
 26803  	}
 26804  	if err := p.Err.Read(iprot); err != nil {
 26805  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 26806  	}
 26807  	return nil
 26808  }
 26809  
 26810  func (p *NodeDebugProfileStopResult) Write(oprot thrift.TProtocol) error {
 26811  	if err := oprot.WriteStructBegin("debugProfileStop_result"); err != nil {
 26812  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 26813  	}
 26814  	if p != nil {
 26815  		if err := p.writeField0(oprot); err != nil {
 26816  			return err
 26817  		}
 26818  		if err := p.writeField1(oprot); err != nil {
 26819  			return err
 26820  		}
 26821  	}
 26822  	if err := oprot.WriteFieldStop(); err != nil {
 26823  		return thrift.PrependError("write field stop error: ", err)
 26824  	}
 26825  	if err := oprot.WriteStructEnd(); err != nil {
 26826  		return thrift.PrependError("write struct stop error: ", err)
 26827  	}
 26828  	return nil
 26829  }
 26830  
 26831  func (p *NodeDebugProfileStopResult) writeField0(oprot thrift.TProtocol) (err error) {
 26832  	if p.IsSetSuccess() {
 26833  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 26834  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 26835  		}
 26836  		if err := p.Success.Write(oprot); err != nil {
 26837  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 26838  		}
 26839  		if err := oprot.WriteFieldEnd(); err != nil {
 26840  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 26841  		}
 26842  	}
 26843  	return err
 26844  }
 26845  
 26846  func (p *NodeDebugProfileStopResult) writeField1(oprot thrift.TProtocol) (err error) {
 26847  	if p.IsSetErr() {
 26848  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 26849  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 26850  		}
 26851  		if err := p.Err.Write(oprot); err != nil {
 26852  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 26853  		}
 26854  		if err := oprot.WriteFieldEnd(); err != nil {
 26855  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 26856  		}
 26857  	}
 26858  	return err
 26859  }
 26860  
 26861  func (p *NodeDebugProfileStopResult) String() string {
 26862  	if p == nil {
 26863  		return "<nil>"
 26864  	}
 26865  	return fmt.Sprintf("NodeDebugProfileStopResult(%+v)", *p)
 26866  }
 26867  
 26868  // Attributes:
 26869  //  - Req
 26870  type NodeDebugIndexMemorySegmentsArgs struct {
 26871  	Req *DebugIndexMemorySegmentsRequest `thrift:"req,1" db:"req" json:"req"`
 26872  }
 26873  
 26874  func NewNodeDebugIndexMemorySegmentsArgs() *NodeDebugIndexMemorySegmentsArgs {
 26875  	return &NodeDebugIndexMemorySegmentsArgs{}
 26876  }
 26877  
 26878  var NodeDebugIndexMemorySegmentsArgs_Req_DEFAULT *DebugIndexMemorySegmentsRequest
 26879  
 26880  func (p *NodeDebugIndexMemorySegmentsArgs) GetReq() *DebugIndexMemorySegmentsRequest {
 26881  	if !p.IsSetReq() {
 26882  		return NodeDebugIndexMemorySegmentsArgs_Req_DEFAULT
 26883  	}
 26884  	return p.Req
 26885  }
 26886  func (p *NodeDebugIndexMemorySegmentsArgs) IsSetReq() bool {
 26887  	return p.Req != nil
 26888  }
 26889  
 26890  func (p *NodeDebugIndexMemorySegmentsArgs) Read(iprot thrift.TProtocol) error {
 26891  	if _, err := iprot.ReadStructBegin(); err != nil {
 26892  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 26893  	}
 26894  
 26895  	for {
 26896  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 26897  		if err != nil {
 26898  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 26899  		}
 26900  		if fieldTypeId == thrift.STOP {
 26901  			break
 26902  		}
 26903  		switch fieldId {
 26904  		case 1:
 26905  			if err := p.ReadField1(iprot); err != nil {
 26906  				return err
 26907  			}
 26908  		default:
 26909  			if err := iprot.Skip(fieldTypeId); err != nil {
 26910  				return err
 26911  			}
 26912  		}
 26913  		if err := iprot.ReadFieldEnd(); err != nil {
 26914  			return err
 26915  		}
 26916  	}
 26917  	if err := iprot.ReadStructEnd(); err != nil {
 26918  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 26919  	}
 26920  	return nil
 26921  }
 26922  
 26923  func (p *NodeDebugIndexMemorySegmentsArgs) ReadField1(iprot thrift.TProtocol) error {
 26924  	p.Req = &DebugIndexMemorySegmentsRequest{}
 26925  	if err := p.Req.Read(iprot); err != nil {
 26926  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 26927  	}
 26928  	return nil
 26929  }
 26930  
 26931  func (p *NodeDebugIndexMemorySegmentsArgs) Write(oprot thrift.TProtocol) error {
 26932  	if err := oprot.WriteStructBegin("debugIndexMemorySegments_args"); err != nil {
 26933  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 26934  	}
 26935  	if p != nil {
 26936  		if err := p.writeField1(oprot); err != nil {
 26937  			return err
 26938  		}
 26939  	}
 26940  	if err := oprot.WriteFieldStop(); err != nil {
 26941  		return thrift.PrependError("write field stop error: ", err)
 26942  	}
 26943  	if err := oprot.WriteStructEnd(); err != nil {
 26944  		return thrift.PrependError("write struct stop error: ", err)
 26945  	}
 26946  	return nil
 26947  }
 26948  
 26949  func (p *NodeDebugIndexMemorySegmentsArgs) writeField1(oprot thrift.TProtocol) (err error) {
 26950  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 26951  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 26952  	}
 26953  	if err := p.Req.Write(oprot); err != nil {
 26954  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 26955  	}
 26956  	if err := oprot.WriteFieldEnd(); err != nil {
 26957  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 26958  	}
 26959  	return err
 26960  }
 26961  
 26962  func (p *NodeDebugIndexMemorySegmentsArgs) String() string {
 26963  	if p == nil {
 26964  		return "<nil>"
 26965  	}
 26966  	return fmt.Sprintf("NodeDebugIndexMemorySegmentsArgs(%+v)", *p)
 26967  }
 26968  
 26969  // Attributes:
 26970  //  - Success
 26971  //  - Err
 26972  type NodeDebugIndexMemorySegmentsResult struct {
 26973  	Success *DebugIndexMemorySegmentsResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 26974  	Err     *Error                           `thrift:"err,1" db:"err" json:"err,omitempty"`
 26975  }
 26976  
 26977  func NewNodeDebugIndexMemorySegmentsResult() *NodeDebugIndexMemorySegmentsResult {
 26978  	return &NodeDebugIndexMemorySegmentsResult{}
 26979  }
 26980  
 26981  var NodeDebugIndexMemorySegmentsResult_Success_DEFAULT *DebugIndexMemorySegmentsResult_
 26982  
 26983  func (p *NodeDebugIndexMemorySegmentsResult) GetSuccess() *DebugIndexMemorySegmentsResult_ {
 26984  	if !p.IsSetSuccess() {
 26985  		return NodeDebugIndexMemorySegmentsResult_Success_DEFAULT
 26986  	}
 26987  	return p.Success
 26988  }
 26989  
 26990  var NodeDebugIndexMemorySegmentsResult_Err_DEFAULT *Error
 26991  
 26992  func (p *NodeDebugIndexMemorySegmentsResult) GetErr() *Error {
 26993  	if !p.IsSetErr() {
 26994  		return NodeDebugIndexMemorySegmentsResult_Err_DEFAULT
 26995  	}
 26996  	return p.Err
 26997  }
 26998  func (p *NodeDebugIndexMemorySegmentsResult) IsSetSuccess() bool {
 26999  	return p.Success != nil
 27000  }
 27001  
 27002  func (p *NodeDebugIndexMemorySegmentsResult) IsSetErr() bool {
 27003  	return p.Err != nil
 27004  }
 27005  
 27006  func (p *NodeDebugIndexMemorySegmentsResult) Read(iprot thrift.TProtocol) error {
 27007  	if _, err := iprot.ReadStructBegin(); err != nil {
 27008  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 27009  	}
 27010  
 27011  	for {
 27012  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 27013  		if err != nil {
 27014  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 27015  		}
 27016  		if fieldTypeId == thrift.STOP {
 27017  			break
 27018  		}
 27019  		switch fieldId {
 27020  		case 0:
 27021  			if err := p.ReadField0(iprot); err != nil {
 27022  				return err
 27023  			}
 27024  		case 1:
 27025  			if err := p.ReadField1(iprot); err != nil {
 27026  				return err
 27027  			}
 27028  		default:
 27029  			if err := iprot.Skip(fieldTypeId); err != nil {
 27030  				return err
 27031  			}
 27032  		}
 27033  		if err := iprot.ReadFieldEnd(); err != nil {
 27034  			return err
 27035  		}
 27036  	}
 27037  	if err := iprot.ReadStructEnd(); err != nil {
 27038  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 27039  	}
 27040  	return nil
 27041  }
 27042  
 27043  func (p *NodeDebugIndexMemorySegmentsResult) ReadField0(iprot thrift.TProtocol) error {
 27044  	p.Success = &DebugIndexMemorySegmentsResult_{}
 27045  	if err := p.Success.Read(iprot); err != nil {
 27046  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 27047  	}
 27048  	return nil
 27049  }
 27050  
 27051  func (p *NodeDebugIndexMemorySegmentsResult) ReadField1(iprot thrift.TProtocol) error {
 27052  	p.Err = &Error{
 27053  		Type: 0,
 27054  	}
 27055  	if err := p.Err.Read(iprot); err != nil {
 27056  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 27057  	}
 27058  	return nil
 27059  }
 27060  
 27061  func (p *NodeDebugIndexMemorySegmentsResult) Write(oprot thrift.TProtocol) error {
 27062  	if err := oprot.WriteStructBegin("debugIndexMemorySegments_result"); err != nil {
 27063  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 27064  	}
 27065  	if p != nil {
 27066  		if err := p.writeField0(oprot); err != nil {
 27067  			return err
 27068  		}
 27069  		if err := p.writeField1(oprot); err != nil {
 27070  			return err
 27071  		}
 27072  	}
 27073  	if err := oprot.WriteFieldStop(); err != nil {
 27074  		return thrift.PrependError("write field stop error: ", err)
 27075  	}
 27076  	if err := oprot.WriteStructEnd(); err != nil {
 27077  		return thrift.PrependError("write struct stop error: ", err)
 27078  	}
 27079  	return nil
 27080  }
 27081  
 27082  func (p *NodeDebugIndexMemorySegmentsResult) writeField0(oprot thrift.TProtocol) (err error) {
 27083  	if p.IsSetSuccess() {
 27084  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 27085  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 27086  		}
 27087  		if err := p.Success.Write(oprot); err != nil {
 27088  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 27089  		}
 27090  		if err := oprot.WriteFieldEnd(); err != nil {
 27091  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 27092  		}
 27093  	}
 27094  	return err
 27095  }
 27096  
 27097  func (p *NodeDebugIndexMemorySegmentsResult) writeField1(oprot thrift.TProtocol) (err error) {
 27098  	if p.IsSetErr() {
 27099  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 27100  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 27101  		}
 27102  		if err := p.Err.Write(oprot); err != nil {
 27103  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 27104  		}
 27105  		if err := oprot.WriteFieldEnd(); err != nil {
 27106  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 27107  		}
 27108  	}
 27109  	return err
 27110  }
 27111  
 27112  func (p *NodeDebugIndexMemorySegmentsResult) String() string {
 27113  	if p == nil {
 27114  		return "<nil>"
 27115  	}
 27116  	return fmt.Sprintf("NodeDebugIndexMemorySegmentsResult(%+v)", *p)
 27117  }
 27118  
 27119  type Cluster interface {
 27120  	Health() (r *HealthResult_, err error)
 27121  	// Parameters:
 27122  	//  - Req
 27123  	Write(req *WriteRequest) (err error)
 27124  	// Parameters:
 27125  	//  - Req
 27126  	WriteTagged(req *WriteTaggedRequest) (err error)
 27127  	// Parameters:
 27128  	//  - Req
 27129  	Query(req *QueryRequest) (r *QueryResult_, err error)
 27130  	// Parameters:
 27131  	//  - Req
 27132  	Aggregate(req *AggregateQueryRequest) (r *AggregateQueryResult_, err error)
 27133  	// Parameters:
 27134  	//  - Req
 27135  	Fetch(req *FetchRequest) (r *FetchResult_, err error)
 27136  	// Parameters:
 27137  	//  - Req
 27138  	Truncate(req *TruncateRequest) (r *TruncateResult_, err error)
 27139  }
 27140  
 27141  type ClusterClient struct {
 27142  	Transport       thrift.TTransport
 27143  	ProtocolFactory thrift.TProtocolFactory
 27144  	InputProtocol   thrift.TProtocol
 27145  	OutputProtocol  thrift.TProtocol
 27146  	SeqId           int32
 27147  }
 27148  
 27149  func NewClusterClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *ClusterClient {
 27150  	return &ClusterClient{Transport: t,
 27151  		ProtocolFactory: f,
 27152  		InputProtocol:   f.GetProtocol(t),
 27153  		OutputProtocol:  f.GetProtocol(t),
 27154  		SeqId:           0,
 27155  	}
 27156  }
 27157  
 27158  func NewClusterClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ClusterClient {
 27159  	return &ClusterClient{Transport: t,
 27160  		ProtocolFactory: nil,
 27161  		InputProtocol:   iprot,
 27162  		OutputProtocol:  oprot,
 27163  		SeqId:           0,
 27164  	}
 27165  }
 27166  
 27167  func (p *ClusterClient) Health() (r *HealthResult_, err error) {
 27168  	if err = p.sendHealth(); err != nil {
 27169  		return
 27170  	}
 27171  	return p.recvHealth()
 27172  }
 27173  
 27174  func (p *ClusterClient) sendHealth() (err error) {
 27175  	oprot := p.OutputProtocol
 27176  	if oprot == nil {
 27177  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 27178  		p.OutputProtocol = oprot
 27179  	}
 27180  	p.SeqId++
 27181  	if err = oprot.WriteMessageBegin("health", thrift.CALL, p.SeqId); err != nil {
 27182  		return
 27183  	}
 27184  	args := ClusterHealthArgs{}
 27185  	if err = args.Write(oprot); err != nil {
 27186  		return
 27187  	}
 27188  	if err = oprot.WriteMessageEnd(); err != nil {
 27189  		return
 27190  	}
 27191  	return oprot.Flush()
 27192  }
 27193  
 27194  func (p *ClusterClient) recvHealth() (value *HealthResult_, err error) {
 27195  	iprot := p.InputProtocol
 27196  	if iprot == nil {
 27197  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 27198  		p.InputProtocol = iprot
 27199  	}
 27200  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 27201  	if err != nil {
 27202  		return
 27203  	}
 27204  	if method != "health" {
 27205  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "health failed: wrong method name")
 27206  		return
 27207  	}
 27208  	if p.SeqId != seqId {
 27209  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "health failed: out of sequence response")
 27210  		return
 27211  	}
 27212  	if mTypeId == thrift.EXCEPTION {
 27213  		error245 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 27214  		var error246 error
 27215  		error246, err = error245.Read(iprot)
 27216  		if err != nil {
 27217  			return
 27218  		}
 27219  		if err = iprot.ReadMessageEnd(); err != nil {
 27220  			return
 27221  		}
 27222  		err = error246
 27223  		return
 27224  	}
 27225  	if mTypeId != thrift.REPLY {
 27226  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "health failed: invalid message type")
 27227  		return
 27228  	}
 27229  	result := ClusterHealthResult{}
 27230  	if err = result.Read(iprot); err != nil {
 27231  		return
 27232  	}
 27233  	if err = iprot.ReadMessageEnd(); err != nil {
 27234  		return
 27235  	}
 27236  	if result.Err != nil {
 27237  		err = result.Err
 27238  		return
 27239  	}
 27240  	value = result.GetSuccess()
 27241  	return
 27242  }
 27243  
 27244  // Parameters:
 27245  //  - Req
 27246  func (p *ClusterClient) Write(req *WriteRequest) (err error) {
 27247  	if err = p.sendWrite(req); err != nil {
 27248  		return
 27249  	}
 27250  	return p.recvWrite()
 27251  }
 27252  
 27253  func (p *ClusterClient) sendWrite(req *WriteRequest) (err error) {
 27254  	oprot := p.OutputProtocol
 27255  	if oprot == nil {
 27256  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 27257  		p.OutputProtocol = oprot
 27258  	}
 27259  	p.SeqId++
 27260  	if err = oprot.WriteMessageBegin("write", thrift.CALL, p.SeqId); err != nil {
 27261  		return
 27262  	}
 27263  	args := ClusterWriteArgs{
 27264  		Req: req,
 27265  	}
 27266  	if err = args.Write(oprot); err != nil {
 27267  		return
 27268  	}
 27269  	if err = oprot.WriteMessageEnd(); err != nil {
 27270  		return
 27271  	}
 27272  	return oprot.Flush()
 27273  }
 27274  
 27275  func (p *ClusterClient) recvWrite() (err error) {
 27276  	iprot := p.InputProtocol
 27277  	if iprot == nil {
 27278  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 27279  		p.InputProtocol = iprot
 27280  	}
 27281  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 27282  	if err != nil {
 27283  		return
 27284  	}
 27285  	if method != "write" {
 27286  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "write failed: wrong method name")
 27287  		return
 27288  	}
 27289  	if p.SeqId != seqId {
 27290  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "write failed: out of sequence response")
 27291  		return
 27292  	}
 27293  	if mTypeId == thrift.EXCEPTION {
 27294  		error247 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 27295  		var error248 error
 27296  		error248, err = error247.Read(iprot)
 27297  		if err != nil {
 27298  			return
 27299  		}
 27300  		if err = iprot.ReadMessageEnd(); err != nil {
 27301  			return
 27302  		}
 27303  		err = error248
 27304  		return
 27305  	}
 27306  	if mTypeId != thrift.REPLY {
 27307  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "write failed: invalid message type")
 27308  		return
 27309  	}
 27310  	result := ClusterWriteResult{}
 27311  	if err = result.Read(iprot); err != nil {
 27312  		return
 27313  	}
 27314  	if err = iprot.ReadMessageEnd(); err != nil {
 27315  		return
 27316  	}
 27317  	if result.Err != nil {
 27318  		err = result.Err
 27319  		return
 27320  	}
 27321  	return
 27322  }
 27323  
 27324  // Parameters:
 27325  //  - Req
 27326  func (p *ClusterClient) WriteTagged(req *WriteTaggedRequest) (err error) {
 27327  	if err = p.sendWriteTagged(req); err != nil {
 27328  		return
 27329  	}
 27330  	return p.recvWriteTagged()
 27331  }
 27332  
 27333  func (p *ClusterClient) sendWriteTagged(req *WriteTaggedRequest) (err error) {
 27334  	oprot := p.OutputProtocol
 27335  	if oprot == nil {
 27336  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 27337  		p.OutputProtocol = oprot
 27338  	}
 27339  	p.SeqId++
 27340  	if err = oprot.WriteMessageBegin("writeTagged", thrift.CALL, p.SeqId); err != nil {
 27341  		return
 27342  	}
 27343  	args := ClusterWriteTaggedArgs{
 27344  		Req: req,
 27345  	}
 27346  	if err = args.Write(oprot); err != nil {
 27347  		return
 27348  	}
 27349  	if err = oprot.WriteMessageEnd(); err != nil {
 27350  		return
 27351  	}
 27352  	return oprot.Flush()
 27353  }
 27354  
 27355  func (p *ClusterClient) recvWriteTagged() (err error) {
 27356  	iprot := p.InputProtocol
 27357  	if iprot == nil {
 27358  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 27359  		p.InputProtocol = iprot
 27360  	}
 27361  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 27362  	if err != nil {
 27363  		return
 27364  	}
 27365  	if method != "writeTagged" {
 27366  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "writeTagged failed: wrong method name")
 27367  		return
 27368  	}
 27369  	if p.SeqId != seqId {
 27370  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "writeTagged failed: out of sequence response")
 27371  		return
 27372  	}
 27373  	if mTypeId == thrift.EXCEPTION {
 27374  		error249 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 27375  		var error250 error
 27376  		error250, err = error249.Read(iprot)
 27377  		if err != nil {
 27378  			return
 27379  		}
 27380  		if err = iprot.ReadMessageEnd(); err != nil {
 27381  			return
 27382  		}
 27383  		err = error250
 27384  		return
 27385  	}
 27386  	if mTypeId != thrift.REPLY {
 27387  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "writeTagged failed: invalid message type")
 27388  		return
 27389  	}
 27390  	result := ClusterWriteTaggedResult{}
 27391  	if err = result.Read(iprot); err != nil {
 27392  		return
 27393  	}
 27394  	if err = iprot.ReadMessageEnd(); err != nil {
 27395  		return
 27396  	}
 27397  	if result.Err != nil {
 27398  		err = result.Err
 27399  		return
 27400  	}
 27401  	return
 27402  }
 27403  
 27404  // Parameters:
 27405  //  - Req
 27406  func (p *ClusterClient) Query(req *QueryRequest) (r *QueryResult_, err error) {
 27407  	if err = p.sendQuery(req); err != nil {
 27408  		return
 27409  	}
 27410  	return p.recvQuery()
 27411  }
 27412  
 27413  func (p *ClusterClient) sendQuery(req *QueryRequest) (err error) {
 27414  	oprot := p.OutputProtocol
 27415  	if oprot == nil {
 27416  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 27417  		p.OutputProtocol = oprot
 27418  	}
 27419  	p.SeqId++
 27420  	if err = oprot.WriteMessageBegin("query", thrift.CALL, p.SeqId); err != nil {
 27421  		return
 27422  	}
 27423  	args := ClusterQueryArgs{
 27424  		Req: req,
 27425  	}
 27426  	if err = args.Write(oprot); err != nil {
 27427  		return
 27428  	}
 27429  	if err = oprot.WriteMessageEnd(); err != nil {
 27430  		return
 27431  	}
 27432  	return oprot.Flush()
 27433  }
 27434  
 27435  func (p *ClusterClient) recvQuery() (value *QueryResult_, err error) {
 27436  	iprot := p.InputProtocol
 27437  	if iprot == nil {
 27438  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 27439  		p.InputProtocol = iprot
 27440  	}
 27441  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 27442  	if err != nil {
 27443  		return
 27444  	}
 27445  	if method != "query" {
 27446  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "query failed: wrong method name")
 27447  		return
 27448  	}
 27449  	if p.SeqId != seqId {
 27450  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "query failed: out of sequence response")
 27451  		return
 27452  	}
 27453  	if mTypeId == thrift.EXCEPTION {
 27454  		error251 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 27455  		var error252 error
 27456  		error252, err = error251.Read(iprot)
 27457  		if err != nil {
 27458  			return
 27459  		}
 27460  		if err = iprot.ReadMessageEnd(); err != nil {
 27461  			return
 27462  		}
 27463  		err = error252
 27464  		return
 27465  	}
 27466  	if mTypeId != thrift.REPLY {
 27467  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "query failed: invalid message type")
 27468  		return
 27469  	}
 27470  	result := ClusterQueryResult{}
 27471  	if err = result.Read(iprot); err != nil {
 27472  		return
 27473  	}
 27474  	if err = iprot.ReadMessageEnd(); err != nil {
 27475  		return
 27476  	}
 27477  	if result.Err != nil {
 27478  		err = result.Err
 27479  		return
 27480  	}
 27481  	value = result.GetSuccess()
 27482  	return
 27483  }
 27484  
 27485  // Parameters:
 27486  //  - Req
 27487  func (p *ClusterClient) Aggregate(req *AggregateQueryRequest) (r *AggregateQueryResult_, err error) {
 27488  	if err = p.sendAggregate(req); err != nil {
 27489  		return
 27490  	}
 27491  	return p.recvAggregate()
 27492  }
 27493  
 27494  func (p *ClusterClient) sendAggregate(req *AggregateQueryRequest) (err error) {
 27495  	oprot := p.OutputProtocol
 27496  	if oprot == nil {
 27497  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 27498  		p.OutputProtocol = oprot
 27499  	}
 27500  	p.SeqId++
 27501  	if err = oprot.WriteMessageBegin("aggregate", thrift.CALL, p.SeqId); err != nil {
 27502  		return
 27503  	}
 27504  	args := ClusterAggregateArgs{
 27505  		Req: req,
 27506  	}
 27507  	if err = args.Write(oprot); err != nil {
 27508  		return
 27509  	}
 27510  	if err = oprot.WriteMessageEnd(); err != nil {
 27511  		return
 27512  	}
 27513  	return oprot.Flush()
 27514  }
 27515  
 27516  func (p *ClusterClient) recvAggregate() (value *AggregateQueryResult_, err error) {
 27517  	iprot := p.InputProtocol
 27518  	if iprot == nil {
 27519  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 27520  		p.InputProtocol = iprot
 27521  	}
 27522  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 27523  	if err != nil {
 27524  		return
 27525  	}
 27526  	if method != "aggregate" {
 27527  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "aggregate failed: wrong method name")
 27528  		return
 27529  	}
 27530  	if p.SeqId != seqId {
 27531  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "aggregate failed: out of sequence response")
 27532  		return
 27533  	}
 27534  	if mTypeId == thrift.EXCEPTION {
 27535  		error253 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 27536  		var error254 error
 27537  		error254, err = error253.Read(iprot)
 27538  		if err != nil {
 27539  			return
 27540  		}
 27541  		if err = iprot.ReadMessageEnd(); err != nil {
 27542  			return
 27543  		}
 27544  		err = error254
 27545  		return
 27546  	}
 27547  	if mTypeId != thrift.REPLY {
 27548  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "aggregate failed: invalid message type")
 27549  		return
 27550  	}
 27551  	result := ClusterAggregateResult{}
 27552  	if err = result.Read(iprot); err != nil {
 27553  		return
 27554  	}
 27555  	if err = iprot.ReadMessageEnd(); err != nil {
 27556  		return
 27557  	}
 27558  	if result.Err != nil {
 27559  		err = result.Err
 27560  		return
 27561  	}
 27562  	value = result.GetSuccess()
 27563  	return
 27564  }
 27565  
 27566  // Parameters:
 27567  //  - Req
 27568  func (p *ClusterClient) Fetch(req *FetchRequest) (r *FetchResult_, err error) {
 27569  	if err = p.sendFetch(req); err != nil {
 27570  		return
 27571  	}
 27572  	return p.recvFetch()
 27573  }
 27574  
 27575  func (p *ClusterClient) sendFetch(req *FetchRequest) (err error) {
 27576  	oprot := p.OutputProtocol
 27577  	if oprot == nil {
 27578  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 27579  		p.OutputProtocol = oprot
 27580  	}
 27581  	p.SeqId++
 27582  	if err = oprot.WriteMessageBegin("fetch", thrift.CALL, p.SeqId); err != nil {
 27583  		return
 27584  	}
 27585  	args := ClusterFetchArgs{
 27586  		Req: req,
 27587  	}
 27588  	if err = args.Write(oprot); err != nil {
 27589  		return
 27590  	}
 27591  	if err = oprot.WriteMessageEnd(); err != nil {
 27592  		return
 27593  	}
 27594  	return oprot.Flush()
 27595  }
 27596  
 27597  func (p *ClusterClient) recvFetch() (value *FetchResult_, err error) {
 27598  	iprot := p.InputProtocol
 27599  	if iprot == nil {
 27600  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 27601  		p.InputProtocol = iprot
 27602  	}
 27603  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 27604  	if err != nil {
 27605  		return
 27606  	}
 27607  	if method != "fetch" {
 27608  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "fetch failed: wrong method name")
 27609  		return
 27610  	}
 27611  	if p.SeqId != seqId {
 27612  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "fetch failed: out of sequence response")
 27613  		return
 27614  	}
 27615  	if mTypeId == thrift.EXCEPTION {
 27616  		error255 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 27617  		var error256 error
 27618  		error256, err = error255.Read(iprot)
 27619  		if err != nil {
 27620  			return
 27621  		}
 27622  		if err = iprot.ReadMessageEnd(); err != nil {
 27623  			return
 27624  		}
 27625  		err = error256
 27626  		return
 27627  	}
 27628  	if mTypeId != thrift.REPLY {
 27629  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "fetch failed: invalid message type")
 27630  		return
 27631  	}
 27632  	result := ClusterFetchResult{}
 27633  	if err = result.Read(iprot); err != nil {
 27634  		return
 27635  	}
 27636  	if err = iprot.ReadMessageEnd(); err != nil {
 27637  		return
 27638  	}
 27639  	if result.Err != nil {
 27640  		err = result.Err
 27641  		return
 27642  	}
 27643  	value = result.GetSuccess()
 27644  	return
 27645  }
 27646  
 27647  // Parameters:
 27648  //  - Req
 27649  func (p *ClusterClient) Truncate(req *TruncateRequest) (r *TruncateResult_, err error) {
 27650  	if err = p.sendTruncate(req); err != nil {
 27651  		return
 27652  	}
 27653  	return p.recvTruncate()
 27654  }
 27655  
 27656  func (p *ClusterClient) sendTruncate(req *TruncateRequest) (err error) {
 27657  	oprot := p.OutputProtocol
 27658  	if oprot == nil {
 27659  		oprot = p.ProtocolFactory.GetProtocol(p.Transport)
 27660  		p.OutputProtocol = oprot
 27661  	}
 27662  	p.SeqId++
 27663  	if err = oprot.WriteMessageBegin("truncate", thrift.CALL, p.SeqId); err != nil {
 27664  		return
 27665  	}
 27666  	args := ClusterTruncateArgs{
 27667  		Req: req,
 27668  	}
 27669  	if err = args.Write(oprot); err != nil {
 27670  		return
 27671  	}
 27672  	if err = oprot.WriteMessageEnd(); err != nil {
 27673  		return
 27674  	}
 27675  	return oprot.Flush()
 27676  }
 27677  
 27678  func (p *ClusterClient) recvTruncate() (value *TruncateResult_, err error) {
 27679  	iprot := p.InputProtocol
 27680  	if iprot == nil {
 27681  		iprot = p.ProtocolFactory.GetProtocol(p.Transport)
 27682  		p.InputProtocol = iprot
 27683  	}
 27684  	method, mTypeId, seqId, err := iprot.ReadMessageBegin()
 27685  	if err != nil {
 27686  		return
 27687  	}
 27688  	if method != "truncate" {
 27689  		err = thrift.NewTApplicationException(thrift.WRONG_METHOD_NAME, "truncate failed: wrong method name")
 27690  		return
 27691  	}
 27692  	if p.SeqId != seqId {
 27693  		err = thrift.NewTApplicationException(thrift.BAD_SEQUENCE_ID, "truncate failed: out of sequence response")
 27694  		return
 27695  	}
 27696  	if mTypeId == thrift.EXCEPTION {
 27697  		error257 := thrift.NewTApplicationException(thrift.UNKNOWN_APPLICATION_EXCEPTION, "Unknown Exception")
 27698  		var error258 error
 27699  		error258, err = error257.Read(iprot)
 27700  		if err != nil {
 27701  			return
 27702  		}
 27703  		if err = iprot.ReadMessageEnd(); err != nil {
 27704  			return
 27705  		}
 27706  		err = error258
 27707  		return
 27708  	}
 27709  	if mTypeId != thrift.REPLY {
 27710  		err = thrift.NewTApplicationException(thrift.INVALID_MESSAGE_TYPE_EXCEPTION, "truncate failed: invalid message type")
 27711  		return
 27712  	}
 27713  	result := ClusterTruncateResult{}
 27714  	if err = result.Read(iprot); err != nil {
 27715  		return
 27716  	}
 27717  	if err = iprot.ReadMessageEnd(); err != nil {
 27718  		return
 27719  	}
 27720  	if result.Err != nil {
 27721  		err = result.Err
 27722  		return
 27723  	}
 27724  	value = result.GetSuccess()
 27725  	return
 27726  }
 27727  
 27728  type ClusterProcessor struct {
 27729  	processorMap map[string]thrift.TProcessorFunction
 27730  	handler      Cluster
 27731  }
 27732  
 27733  func (p *ClusterProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction) {
 27734  	p.processorMap[key] = processor
 27735  }
 27736  
 27737  func (p *ClusterProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool) {
 27738  	processor, ok = p.processorMap[key]
 27739  	return processor, ok
 27740  }
 27741  
 27742  func (p *ClusterProcessor) ProcessorMap() map[string]thrift.TProcessorFunction {
 27743  	return p.processorMap
 27744  }
 27745  
 27746  func NewClusterProcessor(handler Cluster) *ClusterProcessor {
 27747  
 27748  	self259 := &ClusterProcessor{handler: handler, processorMap: make(map[string]thrift.TProcessorFunction)}
 27749  	self259.processorMap["health"] = &clusterProcessorHealth{handler: handler}
 27750  	self259.processorMap["write"] = &clusterProcessorWrite{handler: handler}
 27751  	self259.processorMap["writeTagged"] = &clusterProcessorWriteTagged{handler: handler}
 27752  	self259.processorMap["query"] = &clusterProcessorQuery{handler: handler}
 27753  	self259.processorMap["aggregate"] = &clusterProcessorAggregate{handler: handler}
 27754  	self259.processorMap["fetch"] = &clusterProcessorFetch{handler: handler}
 27755  	self259.processorMap["truncate"] = &clusterProcessorTruncate{handler: handler}
 27756  	return self259
 27757  }
 27758  
 27759  func (p *ClusterProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 27760  	name, _, seqId, err := iprot.ReadMessageBegin()
 27761  	if err != nil {
 27762  		return false, err
 27763  	}
 27764  	if processor, ok := p.GetProcessorFunction(name); ok {
 27765  		return processor.Process(seqId, iprot, oprot)
 27766  	}
 27767  	iprot.Skip(thrift.STRUCT)
 27768  	iprot.ReadMessageEnd()
 27769  	x260 := thrift.NewTApplicationException(thrift.UNKNOWN_METHOD, "Unknown function "+name)
 27770  	oprot.WriteMessageBegin(name, thrift.EXCEPTION, seqId)
 27771  	x260.Write(oprot)
 27772  	oprot.WriteMessageEnd()
 27773  	oprot.Flush()
 27774  	return false, x260
 27775  
 27776  }
 27777  
 27778  type clusterProcessorHealth struct {
 27779  	handler Cluster
 27780  }
 27781  
 27782  func (p *clusterProcessorHealth) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 27783  	args := ClusterHealthArgs{}
 27784  	if err = args.Read(iprot); err != nil {
 27785  		iprot.ReadMessageEnd()
 27786  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 27787  		oprot.WriteMessageBegin("health", thrift.EXCEPTION, seqId)
 27788  		x.Write(oprot)
 27789  		oprot.WriteMessageEnd()
 27790  		oprot.Flush()
 27791  		return false, err
 27792  	}
 27793  
 27794  	iprot.ReadMessageEnd()
 27795  	result := ClusterHealthResult{}
 27796  	var retval *HealthResult_
 27797  	var err2 error
 27798  	if retval, err2 = p.handler.Health(); err2 != nil {
 27799  		switch v := err2.(type) {
 27800  		case *Error:
 27801  			result.Err = v
 27802  		default:
 27803  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing health: "+err2.Error())
 27804  			oprot.WriteMessageBegin("health", thrift.EXCEPTION, seqId)
 27805  			x.Write(oprot)
 27806  			oprot.WriteMessageEnd()
 27807  			oprot.Flush()
 27808  			return true, err2
 27809  		}
 27810  	} else {
 27811  		result.Success = retval
 27812  	}
 27813  	if err2 = oprot.WriteMessageBegin("health", thrift.REPLY, seqId); err2 != nil {
 27814  		err = err2
 27815  	}
 27816  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 27817  		err = err2
 27818  	}
 27819  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 27820  		err = err2
 27821  	}
 27822  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 27823  		err = err2
 27824  	}
 27825  	if err != nil {
 27826  		return
 27827  	}
 27828  	return true, err
 27829  }
 27830  
 27831  type clusterProcessorWrite struct {
 27832  	handler Cluster
 27833  }
 27834  
 27835  func (p *clusterProcessorWrite) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 27836  	args := ClusterWriteArgs{}
 27837  	if err = args.Read(iprot); err != nil {
 27838  		iprot.ReadMessageEnd()
 27839  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 27840  		oprot.WriteMessageBegin("write", thrift.EXCEPTION, seqId)
 27841  		x.Write(oprot)
 27842  		oprot.WriteMessageEnd()
 27843  		oprot.Flush()
 27844  		return false, err
 27845  	}
 27846  
 27847  	iprot.ReadMessageEnd()
 27848  	result := ClusterWriteResult{}
 27849  	var err2 error
 27850  	if err2 = p.handler.Write(args.Req); err2 != nil {
 27851  		switch v := err2.(type) {
 27852  		case *Error:
 27853  			result.Err = v
 27854  		default:
 27855  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing write: "+err2.Error())
 27856  			oprot.WriteMessageBegin("write", thrift.EXCEPTION, seqId)
 27857  			x.Write(oprot)
 27858  			oprot.WriteMessageEnd()
 27859  			oprot.Flush()
 27860  			return true, err2
 27861  		}
 27862  	}
 27863  	if err2 = oprot.WriteMessageBegin("write", thrift.REPLY, seqId); err2 != nil {
 27864  		err = err2
 27865  	}
 27866  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 27867  		err = err2
 27868  	}
 27869  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 27870  		err = err2
 27871  	}
 27872  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 27873  		err = err2
 27874  	}
 27875  	if err != nil {
 27876  		return
 27877  	}
 27878  	return true, err
 27879  }
 27880  
 27881  type clusterProcessorWriteTagged struct {
 27882  	handler Cluster
 27883  }
 27884  
 27885  func (p *clusterProcessorWriteTagged) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 27886  	args := ClusterWriteTaggedArgs{}
 27887  	if err = args.Read(iprot); err != nil {
 27888  		iprot.ReadMessageEnd()
 27889  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 27890  		oprot.WriteMessageBegin("writeTagged", thrift.EXCEPTION, seqId)
 27891  		x.Write(oprot)
 27892  		oprot.WriteMessageEnd()
 27893  		oprot.Flush()
 27894  		return false, err
 27895  	}
 27896  
 27897  	iprot.ReadMessageEnd()
 27898  	result := ClusterWriteTaggedResult{}
 27899  	var err2 error
 27900  	if err2 = p.handler.WriteTagged(args.Req); err2 != nil {
 27901  		switch v := err2.(type) {
 27902  		case *Error:
 27903  			result.Err = v
 27904  		default:
 27905  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing writeTagged: "+err2.Error())
 27906  			oprot.WriteMessageBegin("writeTagged", thrift.EXCEPTION, seqId)
 27907  			x.Write(oprot)
 27908  			oprot.WriteMessageEnd()
 27909  			oprot.Flush()
 27910  			return true, err2
 27911  		}
 27912  	}
 27913  	if err2 = oprot.WriteMessageBegin("writeTagged", thrift.REPLY, seqId); err2 != nil {
 27914  		err = err2
 27915  	}
 27916  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 27917  		err = err2
 27918  	}
 27919  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 27920  		err = err2
 27921  	}
 27922  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 27923  		err = err2
 27924  	}
 27925  	if err != nil {
 27926  		return
 27927  	}
 27928  	return true, err
 27929  }
 27930  
 27931  type clusterProcessorQuery struct {
 27932  	handler Cluster
 27933  }
 27934  
 27935  func (p *clusterProcessorQuery) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 27936  	args := ClusterQueryArgs{}
 27937  	if err = args.Read(iprot); err != nil {
 27938  		iprot.ReadMessageEnd()
 27939  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 27940  		oprot.WriteMessageBegin("query", thrift.EXCEPTION, seqId)
 27941  		x.Write(oprot)
 27942  		oprot.WriteMessageEnd()
 27943  		oprot.Flush()
 27944  		return false, err
 27945  	}
 27946  
 27947  	iprot.ReadMessageEnd()
 27948  	result := ClusterQueryResult{}
 27949  	var retval *QueryResult_
 27950  	var err2 error
 27951  	if retval, err2 = p.handler.Query(args.Req); err2 != nil {
 27952  		switch v := err2.(type) {
 27953  		case *Error:
 27954  			result.Err = v
 27955  		default:
 27956  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing query: "+err2.Error())
 27957  			oprot.WriteMessageBegin("query", thrift.EXCEPTION, seqId)
 27958  			x.Write(oprot)
 27959  			oprot.WriteMessageEnd()
 27960  			oprot.Flush()
 27961  			return true, err2
 27962  		}
 27963  	} else {
 27964  		result.Success = retval
 27965  	}
 27966  	if err2 = oprot.WriteMessageBegin("query", thrift.REPLY, seqId); err2 != nil {
 27967  		err = err2
 27968  	}
 27969  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 27970  		err = err2
 27971  	}
 27972  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 27973  		err = err2
 27974  	}
 27975  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 27976  		err = err2
 27977  	}
 27978  	if err != nil {
 27979  		return
 27980  	}
 27981  	return true, err
 27982  }
 27983  
 27984  type clusterProcessorAggregate struct {
 27985  	handler Cluster
 27986  }
 27987  
 27988  func (p *clusterProcessorAggregate) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 27989  	args := ClusterAggregateArgs{}
 27990  	if err = args.Read(iprot); err != nil {
 27991  		iprot.ReadMessageEnd()
 27992  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 27993  		oprot.WriteMessageBegin("aggregate", thrift.EXCEPTION, seqId)
 27994  		x.Write(oprot)
 27995  		oprot.WriteMessageEnd()
 27996  		oprot.Flush()
 27997  		return false, err
 27998  	}
 27999  
 28000  	iprot.ReadMessageEnd()
 28001  	result := ClusterAggregateResult{}
 28002  	var retval *AggregateQueryResult_
 28003  	var err2 error
 28004  	if retval, err2 = p.handler.Aggregate(args.Req); err2 != nil {
 28005  		switch v := err2.(type) {
 28006  		case *Error:
 28007  			result.Err = v
 28008  		default:
 28009  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing aggregate: "+err2.Error())
 28010  			oprot.WriteMessageBegin("aggregate", thrift.EXCEPTION, seqId)
 28011  			x.Write(oprot)
 28012  			oprot.WriteMessageEnd()
 28013  			oprot.Flush()
 28014  			return true, err2
 28015  		}
 28016  	} else {
 28017  		result.Success = retval
 28018  	}
 28019  	if err2 = oprot.WriteMessageBegin("aggregate", thrift.REPLY, seqId); err2 != nil {
 28020  		err = err2
 28021  	}
 28022  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 28023  		err = err2
 28024  	}
 28025  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 28026  		err = err2
 28027  	}
 28028  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 28029  		err = err2
 28030  	}
 28031  	if err != nil {
 28032  		return
 28033  	}
 28034  	return true, err
 28035  }
 28036  
 28037  type clusterProcessorFetch struct {
 28038  	handler Cluster
 28039  }
 28040  
 28041  func (p *clusterProcessorFetch) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 28042  	args := ClusterFetchArgs{}
 28043  	if err = args.Read(iprot); err != nil {
 28044  		iprot.ReadMessageEnd()
 28045  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 28046  		oprot.WriteMessageBegin("fetch", thrift.EXCEPTION, seqId)
 28047  		x.Write(oprot)
 28048  		oprot.WriteMessageEnd()
 28049  		oprot.Flush()
 28050  		return false, err
 28051  	}
 28052  
 28053  	iprot.ReadMessageEnd()
 28054  	result := ClusterFetchResult{}
 28055  	var retval *FetchResult_
 28056  	var err2 error
 28057  	if retval, err2 = p.handler.Fetch(args.Req); err2 != nil {
 28058  		switch v := err2.(type) {
 28059  		case *Error:
 28060  			result.Err = v
 28061  		default:
 28062  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing fetch: "+err2.Error())
 28063  			oprot.WriteMessageBegin("fetch", thrift.EXCEPTION, seqId)
 28064  			x.Write(oprot)
 28065  			oprot.WriteMessageEnd()
 28066  			oprot.Flush()
 28067  			return true, err2
 28068  		}
 28069  	} else {
 28070  		result.Success = retval
 28071  	}
 28072  	if err2 = oprot.WriteMessageBegin("fetch", thrift.REPLY, seqId); err2 != nil {
 28073  		err = err2
 28074  	}
 28075  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 28076  		err = err2
 28077  	}
 28078  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 28079  		err = err2
 28080  	}
 28081  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 28082  		err = err2
 28083  	}
 28084  	if err != nil {
 28085  		return
 28086  	}
 28087  	return true, err
 28088  }
 28089  
 28090  type clusterProcessorTruncate struct {
 28091  	handler Cluster
 28092  }
 28093  
 28094  func (p *clusterProcessorTruncate) Process(seqId int32, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException) {
 28095  	args := ClusterTruncateArgs{}
 28096  	if err = args.Read(iprot); err != nil {
 28097  		iprot.ReadMessageEnd()
 28098  		x := thrift.NewTApplicationException(thrift.PROTOCOL_ERROR, err.Error())
 28099  		oprot.WriteMessageBegin("truncate", thrift.EXCEPTION, seqId)
 28100  		x.Write(oprot)
 28101  		oprot.WriteMessageEnd()
 28102  		oprot.Flush()
 28103  		return false, err
 28104  	}
 28105  
 28106  	iprot.ReadMessageEnd()
 28107  	result := ClusterTruncateResult{}
 28108  	var retval *TruncateResult_
 28109  	var err2 error
 28110  	if retval, err2 = p.handler.Truncate(args.Req); err2 != nil {
 28111  		switch v := err2.(type) {
 28112  		case *Error:
 28113  			result.Err = v
 28114  		default:
 28115  			x := thrift.NewTApplicationException(thrift.INTERNAL_ERROR, "Internal error processing truncate: "+err2.Error())
 28116  			oprot.WriteMessageBegin("truncate", thrift.EXCEPTION, seqId)
 28117  			x.Write(oprot)
 28118  			oprot.WriteMessageEnd()
 28119  			oprot.Flush()
 28120  			return true, err2
 28121  		}
 28122  	} else {
 28123  		result.Success = retval
 28124  	}
 28125  	if err2 = oprot.WriteMessageBegin("truncate", thrift.REPLY, seqId); err2 != nil {
 28126  		err = err2
 28127  	}
 28128  	if err2 = result.Write(oprot); err == nil && err2 != nil {
 28129  		err = err2
 28130  	}
 28131  	if err2 = oprot.WriteMessageEnd(); err == nil && err2 != nil {
 28132  		err = err2
 28133  	}
 28134  	if err2 = oprot.Flush(); err == nil && err2 != nil {
 28135  		err = err2
 28136  	}
 28137  	if err != nil {
 28138  		return
 28139  	}
 28140  	return true, err
 28141  }
 28142  
 28143  // HELPER FUNCTIONS AND STRUCTURES
 28144  
 28145  type ClusterHealthArgs struct {
 28146  }
 28147  
 28148  func NewClusterHealthArgs() *ClusterHealthArgs {
 28149  	return &ClusterHealthArgs{}
 28150  }
 28151  
 28152  func (p *ClusterHealthArgs) Read(iprot thrift.TProtocol) error {
 28153  	if _, err := iprot.ReadStructBegin(); err != nil {
 28154  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 28155  	}
 28156  
 28157  	for {
 28158  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 28159  		if err != nil {
 28160  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 28161  		}
 28162  		if fieldTypeId == thrift.STOP {
 28163  			break
 28164  		}
 28165  		if err := iprot.Skip(fieldTypeId); err != nil {
 28166  			return err
 28167  		}
 28168  		if err := iprot.ReadFieldEnd(); err != nil {
 28169  			return err
 28170  		}
 28171  	}
 28172  	if err := iprot.ReadStructEnd(); err != nil {
 28173  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 28174  	}
 28175  	return nil
 28176  }
 28177  
 28178  func (p *ClusterHealthArgs) Write(oprot thrift.TProtocol) error {
 28179  	if err := oprot.WriteStructBegin("health_args"); err != nil {
 28180  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 28181  	}
 28182  	if p != nil {
 28183  	}
 28184  	if err := oprot.WriteFieldStop(); err != nil {
 28185  		return thrift.PrependError("write field stop error: ", err)
 28186  	}
 28187  	if err := oprot.WriteStructEnd(); err != nil {
 28188  		return thrift.PrependError("write struct stop error: ", err)
 28189  	}
 28190  	return nil
 28191  }
 28192  
 28193  func (p *ClusterHealthArgs) String() string {
 28194  	if p == nil {
 28195  		return "<nil>"
 28196  	}
 28197  	return fmt.Sprintf("ClusterHealthArgs(%+v)", *p)
 28198  }
 28199  
 28200  // Attributes:
 28201  //  - Success
 28202  //  - Err
 28203  type ClusterHealthResult struct {
 28204  	Success *HealthResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 28205  	Err     *Error         `thrift:"err,1" db:"err" json:"err,omitempty"`
 28206  }
 28207  
 28208  func NewClusterHealthResult() *ClusterHealthResult {
 28209  	return &ClusterHealthResult{}
 28210  }
 28211  
 28212  var ClusterHealthResult_Success_DEFAULT *HealthResult_
 28213  
 28214  func (p *ClusterHealthResult) GetSuccess() *HealthResult_ {
 28215  	if !p.IsSetSuccess() {
 28216  		return ClusterHealthResult_Success_DEFAULT
 28217  	}
 28218  	return p.Success
 28219  }
 28220  
 28221  var ClusterHealthResult_Err_DEFAULT *Error
 28222  
 28223  func (p *ClusterHealthResult) GetErr() *Error {
 28224  	if !p.IsSetErr() {
 28225  		return ClusterHealthResult_Err_DEFAULT
 28226  	}
 28227  	return p.Err
 28228  }
 28229  func (p *ClusterHealthResult) IsSetSuccess() bool {
 28230  	return p.Success != nil
 28231  }
 28232  
 28233  func (p *ClusterHealthResult) IsSetErr() bool {
 28234  	return p.Err != nil
 28235  }
 28236  
 28237  func (p *ClusterHealthResult) Read(iprot thrift.TProtocol) error {
 28238  	if _, err := iprot.ReadStructBegin(); err != nil {
 28239  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 28240  	}
 28241  
 28242  	for {
 28243  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 28244  		if err != nil {
 28245  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 28246  		}
 28247  		if fieldTypeId == thrift.STOP {
 28248  			break
 28249  		}
 28250  		switch fieldId {
 28251  		case 0:
 28252  			if err := p.ReadField0(iprot); err != nil {
 28253  				return err
 28254  			}
 28255  		case 1:
 28256  			if err := p.ReadField1(iprot); err != nil {
 28257  				return err
 28258  			}
 28259  		default:
 28260  			if err := iprot.Skip(fieldTypeId); err != nil {
 28261  				return err
 28262  			}
 28263  		}
 28264  		if err := iprot.ReadFieldEnd(); err != nil {
 28265  			return err
 28266  		}
 28267  	}
 28268  	if err := iprot.ReadStructEnd(); err != nil {
 28269  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 28270  	}
 28271  	return nil
 28272  }
 28273  
 28274  func (p *ClusterHealthResult) ReadField0(iprot thrift.TProtocol) error {
 28275  	p.Success = &HealthResult_{}
 28276  	if err := p.Success.Read(iprot); err != nil {
 28277  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 28278  	}
 28279  	return nil
 28280  }
 28281  
 28282  func (p *ClusterHealthResult) ReadField1(iprot thrift.TProtocol) error {
 28283  	p.Err = &Error{
 28284  		Type: 0,
 28285  	}
 28286  	if err := p.Err.Read(iprot); err != nil {
 28287  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 28288  	}
 28289  	return nil
 28290  }
 28291  
 28292  func (p *ClusterHealthResult) Write(oprot thrift.TProtocol) error {
 28293  	if err := oprot.WriteStructBegin("health_result"); err != nil {
 28294  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 28295  	}
 28296  	if p != nil {
 28297  		if err := p.writeField0(oprot); err != nil {
 28298  			return err
 28299  		}
 28300  		if err := p.writeField1(oprot); err != nil {
 28301  			return err
 28302  		}
 28303  	}
 28304  	if err := oprot.WriteFieldStop(); err != nil {
 28305  		return thrift.PrependError("write field stop error: ", err)
 28306  	}
 28307  	if err := oprot.WriteStructEnd(); err != nil {
 28308  		return thrift.PrependError("write struct stop error: ", err)
 28309  	}
 28310  	return nil
 28311  }
 28312  
 28313  func (p *ClusterHealthResult) writeField0(oprot thrift.TProtocol) (err error) {
 28314  	if p.IsSetSuccess() {
 28315  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 28316  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 28317  		}
 28318  		if err := p.Success.Write(oprot); err != nil {
 28319  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 28320  		}
 28321  		if err := oprot.WriteFieldEnd(); err != nil {
 28322  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 28323  		}
 28324  	}
 28325  	return err
 28326  }
 28327  
 28328  func (p *ClusterHealthResult) writeField1(oprot thrift.TProtocol) (err error) {
 28329  	if p.IsSetErr() {
 28330  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 28331  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 28332  		}
 28333  		if err := p.Err.Write(oprot); err != nil {
 28334  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 28335  		}
 28336  		if err := oprot.WriteFieldEnd(); err != nil {
 28337  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 28338  		}
 28339  	}
 28340  	return err
 28341  }
 28342  
 28343  func (p *ClusterHealthResult) String() string {
 28344  	if p == nil {
 28345  		return "<nil>"
 28346  	}
 28347  	return fmt.Sprintf("ClusterHealthResult(%+v)", *p)
 28348  }
 28349  
 28350  // Attributes:
 28351  //  - Req
 28352  type ClusterWriteArgs struct {
 28353  	Req *WriteRequest `thrift:"req,1" db:"req" json:"req"`
 28354  }
 28355  
 28356  func NewClusterWriteArgs() *ClusterWriteArgs {
 28357  	return &ClusterWriteArgs{}
 28358  }
 28359  
 28360  var ClusterWriteArgs_Req_DEFAULT *WriteRequest
 28361  
 28362  func (p *ClusterWriteArgs) GetReq() *WriteRequest {
 28363  	if !p.IsSetReq() {
 28364  		return ClusterWriteArgs_Req_DEFAULT
 28365  	}
 28366  	return p.Req
 28367  }
 28368  func (p *ClusterWriteArgs) IsSetReq() bool {
 28369  	return p.Req != nil
 28370  }
 28371  
 28372  func (p *ClusterWriteArgs) Read(iprot thrift.TProtocol) error {
 28373  	if _, err := iprot.ReadStructBegin(); err != nil {
 28374  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 28375  	}
 28376  
 28377  	for {
 28378  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 28379  		if err != nil {
 28380  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 28381  		}
 28382  		if fieldTypeId == thrift.STOP {
 28383  			break
 28384  		}
 28385  		switch fieldId {
 28386  		case 1:
 28387  			if err := p.ReadField1(iprot); err != nil {
 28388  				return err
 28389  			}
 28390  		default:
 28391  			if err := iprot.Skip(fieldTypeId); err != nil {
 28392  				return err
 28393  			}
 28394  		}
 28395  		if err := iprot.ReadFieldEnd(); err != nil {
 28396  			return err
 28397  		}
 28398  	}
 28399  	if err := iprot.ReadStructEnd(); err != nil {
 28400  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 28401  	}
 28402  	return nil
 28403  }
 28404  
 28405  func (p *ClusterWriteArgs) ReadField1(iprot thrift.TProtocol) error {
 28406  	p.Req = &WriteRequest{}
 28407  	if err := p.Req.Read(iprot); err != nil {
 28408  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 28409  	}
 28410  	return nil
 28411  }
 28412  
 28413  func (p *ClusterWriteArgs) Write(oprot thrift.TProtocol) error {
 28414  	if err := oprot.WriteStructBegin("write_args"); err != nil {
 28415  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 28416  	}
 28417  	if p != nil {
 28418  		if err := p.writeField1(oprot); err != nil {
 28419  			return err
 28420  		}
 28421  	}
 28422  	if err := oprot.WriteFieldStop(); err != nil {
 28423  		return thrift.PrependError("write field stop error: ", err)
 28424  	}
 28425  	if err := oprot.WriteStructEnd(); err != nil {
 28426  		return thrift.PrependError("write struct stop error: ", err)
 28427  	}
 28428  	return nil
 28429  }
 28430  
 28431  func (p *ClusterWriteArgs) writeField1(oprot thrift.TProtocol) (err error) {
 28432  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 28433  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 28434  	}
 28435  	if err := p.Req.Write(oprot); err != nil {
 28436  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 28437  	}
 28438  	if err := oprot.WriteFieldEnd(); err != nil {
 28439  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 28440  	}
 28441  	return err
 28442  }
 28443  
 28444  func (p *ClusterWriteArgs) String() string {
 28445  	if p == nil {
 28446  		return "<nil>"
 28447  	}
 28448  	return fmt.Sprintf("ClusterWriteArgs(%+v)", *p)
 28449  }
 28450  
 28451  // Attributes:
 28452  //  - Err
 28453  type ClusterWriteResult struct {
 28454  	Err *Error `thrift:"err,1" db:"err" json:"err,omitempty"`
 28455  }
 28456  
 28457  func NewClusterWriteResult() *ClusterWriteResult {
 28458  	return &ClusterWriteResult{}
 28459  }
 28460  
 28461  var ClusterWriteResult_Err_DEFAULT *Error
 28462  
 28463  func (p *ClusterWriteResult) GetErr() *Error {
 28464  	if !p.IsSetErr() {
 28465  		return ClusterWriteResult_Err_DEFAULT
 28466  	}
 28467  	return p.Err
 28468  }
 28469  func (p *ClusterWriteResult) IsSetErr() bool {
 28470  	return p.Err != nil
 28471  }
 28472  
 28473  func (p *ClusterWriteResult) Read(iprot thrift.TProtocol) error {
 28474  	if _, err := iprot.ReadStructBegin(); err != nil {
 28475  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 28476  	}
 28477  
 28478  	for {
 28479  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 28480  		if err != nil {
 28481  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 28482  		}
 28483  		if fieldTypeId == thrift.STOP {
 28484  			break
 28485  		}
 28486  		switch fieldId {
 28487  		case 1:
 28488  			if err := p.ReadField1(iprot); err != nil {
 28489  				return err
 28490  			}
 28491  		default:
 28492  			if err := iprot.Skip(fieldTypeId); err != nil {
 28493  				return err
 28494  			}
 28495  		}
 28496  		if err := iprot.ReadFieldEnd(); err != nil {
 28497  			return err
 28498  		}
 28499  	}
 28500  	if err := iprot.ReadStructEnd(); err != nil {
 28501  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 28502  	}
 28503  	return nil
 28504  }
 28505  
 28506  func (p *ClusterWriteResult) ReadField1(iprot thrift.TProtocol) error {
 28507  	p.Err = &Error{
 28508  		Type: 0,
 28509  	}
 28510  	if err := p.Err.Read(iprot); err != nil {
 28511  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 28512  	}
 28513  	return nil
 28514  }
 28515  
 28516  func (p *ClusterWriteResult) Write(oprot thrift.TProtocol) error {
 28517  	if err := oprot.WriteStructBegin("write_result"); err != nil {
 28518  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 28519  	}
 28520  	if p != nil {
 28521  		if err := p.writeField1(oprot); err != nil {
 28522  			return err
 28523  		}
 28524  	}
 28525  	if err := oprot.WriteFieldStop(); err != nil {
 28526  		return thrift.PrependError("write field stop error: ", err)
 28527  	}
 28528  	if err := oprot.WriteStructEnd(); err != nil {
 28529  		return thrift.PrependError("write struct stop error: ", err)
 28530  	}
 28531  	return nil
 28532  }
 28533  
 28534  func (p *ClusterWriteResult) writeField1(oprot thrift.TProtocol) (err error) {
 28535  	if p.IsSetErr() {
 28536  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 28537  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 28538  		}
 28539  		if err := p.Err.Write(oprot); err != nil {
 28540  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 28541  		}
 28542  		if err := oprot.WriteFieldEnd(); err != nil {
 28543  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 28544  		}
 28545  	}
 28546  	return err
 28547  }
 28548  
 28549  func (p *ClusterWriteResult) String() string {
 28550  	if p == nil {
 28551  		return "<nil>"
 28552  	}
 28553  	return fmt.Sprintf("ClusterWriteResult(%+v)", *p)
 28554  }
 28555  
 28556  // Attributes:
 28557  //  - Req
 28558  type ClusterWriteTaggedArgs struct {
 28559  	Req *WriteTaggedRequest `thrift:"req,1" db:"req" json:"req"`
 28560  }
 28561  
 28562  func NewClusterWriteTaggedArgs() *ClusterWriteTaggedArgs {
 28563  	return &ClusterWriteTaggedArgs{}
 28564  }
 28565  
 28566  var ClusterWriteTaggedArgs_Req_DEFAULT *WriteTaggedRequest
 28567  
 28568  func (p *ClusterWriteTaggedArgs) GetReq() *WriteTaggedRequest {
 28569  	if !p.IsSetReq() {
 28570  		return ClusterWriteTaggedArgs_Req_DEFAULT
 28571  	}
 28572  	return p.Req
 28573  }
 28574  func (p *ClusterWriteTaggedArgs) IsSetReq() bool {
 28575  	return p.Req != nil
 28576  }
 28577  
 28578  func (p *ClusterWriteTaggedArgs) Read(iprot thrift.TProtocol) error {
 28579  	if _, err := iprot.ReadStructBegin(); err != nil {
 28580  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 28581  	}
 28582  
 28583  	for {
 28584  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 28585  		if err != nil {
 28586  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 28587  		}
 28588  		if fieldTypeId == thrift.STOP {
 28589  			break
 28590  		}
 28591  		switch fieldId {
 28592  		case 1:
 28593  			if err := p.ReadField1(iprot); err != nil {
 28594  				return err
 28595  			}
 28596  		default:
 28597  			if err := iprot.Skip(fieldTypeId); err != nil {
 28598  				return err
 28599  			}
 28600  		}
 28601  		if err := iprot.ReadFieldEnd(); err != nil {
 28602  			return err
 28603  		}
 28604  	}
 28605  	if err := iprot.ReadStructEnd(); err != nil {
 28606  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 28607  	}
 28608  	return nil
 28609  }
 28610  
 28611  func (p *ClusterWriteTaggedArgs) ReadField1(iprot thrift.TProtocol) error {
 28612  	p.Req = &WriteTaggedRequest{}
 28613  	if err := p.Req.Read(iprot); err != nil {
 28614  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 28615  	}
 28616  	return nil
 28617  }
 28618  
 28619  func (p *ClusterWriteTaggedArgs) Write(oprot thrift.TProtocol) error {
 28620  	if err := oprot.WriteStructBegin("writeTagged_args"); err != nil {
 28621  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 28622  	}
 28623  	if p != nil {
 28624  		if err := p.writeField1(oprot); err != nil {
 28625  			return err
 28626  		}
 28627  	}
 28628  	if err := oprot.WriteFieldStop(); err != nil {
 28629  		return thrift.PrependError("write field stop error: ", err)
 28630  	}
 28631  	if err := oprot.WriteStructEnd(); err != nil {
 28632  		return thrift.PrependError("write struct stop error: ", err)
 28633  	}
 28634  	return nil
 28635  }
 28636  
 28637  func (p *ClusterWriteTaggedArgs) writeField1(oprot thrift.TProtocol) (err error) {
 28638  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 28639  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 28640  	}
 28641  	if err := p.Req.Write(oprot); err != nil {
 28642  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 28643  	}
 28644  	if err := oprot.WriteFieldEnd(); err != nil {
 28645  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 28646  	}
 28647  	return err
 28648  }
 28649  
 28650  func (p *ClusterWriteTaggedArgs) String() string {
 28651  	if p == nil {
 28652  		return "<nil>"
 28653  	}
 28654  	return fmt.Sprintf("ClusterWriteTaggedArgs(%+v)", *p)
 28655  }
 28656  
 28657  // Attributes:
 28658  //  - Err
 28659  type ClusterWriteTaggedResult struct {
 28660  	Err *Error `thrift:"err,1" db:"err" json:"err,omitempty"`
 28661  }
 28662  
 28663  func NewClusterWriteTaggedResult() *ClusterWriteTaggedResult {
 28664  	return &ClusterWriteTaggedResult{}
 28665  }
 28666  
 28667  var ClusterWriteTaggedResult_Err_DEFAULT *Error
 28668  
 28669  func (p *ClusterWriteTaggedResult) GetErr() *Error {
 28670  	if !p.IsSetErr() {
 28671  		return ClusterWriteTaggedResult_Err_DEFAULT
 28672  	}
 28673  	return p.Err
 28674  }
 28675  func (p *ClusterWriteTaggedResult) IsSetErr() bool {
 28676  	return p.Err != nil
 28677  }
 28678  
 28679  func (p *ClusterWriteTaggedResult) Read(iprot thrift.TProtocol) error {
 28680  	if _, err := iprot.ReadStructBegin(); err != nil {
 28681  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 28682  	}
 28683  
 28684  	for {
 28685  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 28686  		if err != nil {
 28687  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 28688  		}
 28689  		if fieldTypeId == thrift.STOP {
 28690  			break
 28691  		}
 28692  		switch fieldId {
 28693  		case 1:
 28694  			if err := p.ReadField1(iprot); err != nil {
 28695  				return err
 28696  			}
 28697  		default:
 28698  			if err := iprot.Skip(fieldTypeId); err != nil {
 28699  				return err
 28700  			}
 28701  		}
 28702  		if err := iprot.ReadFieldEnd(); err != nil {
 28703  			return err
 28704  		}
 28705  	}
 28706  	if err := iprot.ReadStructEnd(); err != nil {
 28707  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 28708  	}
 28709  	return nil
 28710  }
 28711  
 28712  func (p *ClusterWriteTaggedResult) ReadField1(iprot thrift.TProtocol) error {
 28713  	p.Err = &Error{
 28714  		Type: 0,
 28715  	}
 28716  	if err := p.Err.Read(iprot); err != nil {
 28717  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 28718  	}
 28719  	return nil
 28720  }
 28721  
 28722  func (p *ClusterWriteTaggedResult) Write(oprot thrift.TProtocol) error {
 28723  	if err := oprot.WriteStructBegin("writeTagged_result"); err != nil {
 28724  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 28725  	}
 28726  	if p != nil {
 28727  		if err := p.writeField1(oprot); err != nil {
 28728  			return err
 28729  		}
 28730  	}
 28731  	if err := oprot.WriteFieldStop(); err != nil {
 28732  		return thrift.PrependError("write field stop error: ", err)
 28733  	}
 28734  	if err := oprot.WriteStructEnd(); err != nil {
 28735  		return thrift.PrependError("write struct stop error: ", err)
 28736  	}
 28737  	return nil
 28738  }
 28739  
 28740  func (p *ClusterWriteTaggedResult) writeField1(oprot thrift.TProtocol) (err error) {
 28741  	if p.IsSetErr() {
 28742  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 28743  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 28744  		}
 28745  		if err := p.Err.Write(oprot); err != nil {
 28746  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 28747  		}
 28748  		if err := oprot.WriteFieldEnd(); err != nil {
 28749  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 28750  		}
 28751  	}
 28752  	return err
 28753  }
 28754  
 28755  func (p *ClusterWriteTaggedResult) String() string {
 28756  	if p == nil {
 28757  		return "<nil>"
 28758  	}
 28759  	return fmt.Sprintf("ClusterWriteTaggedResult(%+v)", *p)
 28760  }
 28761  
 28762  // Attributes:
 28763  //  - Req
 28764  type ClusterQueryArgs struct {
 28765  	Req *QueryRequest `thrift:"req,1" db:"req" json:"req"`
 28766  }
 28767  
 28768  func NewClusterQueryArgs() *ClusterQueryArgs {
 28769  	return &ClusterQueryArgs{}
 28770  }
 28771  
 28772  var ClusterQueryArgs_Req_DEFAULT *QueryRequest
 28773  
 28774  func (p *ClusterQueryArgs) GetReq() *QueryRequest {
 28775  	if !p.IsSetReq() {
 28776  		return ClusterQueryArgs_Req_DEFAULT
 28777  	}
 28778  	return p.Req
 28779  }
 28780  func (p *ClusterQueryArgs) IsSetReq() bool {
 28781  	return p.Req != nil
 28782  }
 28783  
 28784  func (p *ClusterQueryArgs) Read(iprot thrift.TProtocol) error {
 28785  	if _, err := iprot.ReadStructBegin(); err != nil {
 28786  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 28787  	}
 28788  
 28789  	for {
 28790  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 28791  		if err != nil {
 28792  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 28793  		}
 28794  		if fieldTypeId == thrift.STOP {
 28795  			break
 28796  		}
 28797  		switch fieldId {
 28798  		case 1:
 28799  			if err := p.ReadField1(iprot); err != nil {
 28800  				return err
 28801  			}
 28802  		default:
 28803  			if err := iprot.Skip(fieldTypeId); err != nil {
 28804  				return err
 28805  			}
 28806  		}
 28807  		if err := iprot.ReadFieldEnd(); err != nil {
 28808  			return err
 28809  		}
 28810  	}
 28811  	if err := iprot.ReadStructEnd(); err != nil {
 28812  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 28813  	}
 28814  	return nil
 28815  }
 28816  
 28817  func (p *ClusterQueryArgs) ReadField1(iprot thrift.TProtocol) error {
 28818  	p.Req = &QueryRequest{
 28819  		RangeType: 0,
 28820  
 28821  		ResultTimeType: 0,
 28822  	}
 28823  	if err := p.Req.Read(iprot); err != nil {
 28824  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 28825  	}
 28826  	return nil
 28827  }
 28828  
 28829  func (p *ClusterQueryArgs) Write(oprot thrift.TProtocol) error {
 28830  	if err := oprot.WriteStructBegin("query_args"); err != nil {
 28831  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 28832  	}
 28833  	if p != nil {
 28834  		if err := p.writeField1(oprot); err != nil {
 28835  			return err
 28836  		}
 28837  	}
 28838  	if err := oprot.WriteFieldStop(); err != nil {
 28839  		return thrift.PrependError("write field stop error: ", err)
 28840  	}
 28841  	if err := oprot.WriteStructEnd(); err != nil {
 28842  		return thrift.PrependError("write struct stop error: ", err)
 28843  	}
 28844  	return nil
 28845  }
 28846  
 28847  func (p *ClusterQueryArgs) writeField1(oprot thrift.TProtocol) (err error) {
 28848  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 28849  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 28850  	}
 28851  	if err := p.Req.Write(oprot); err != nil {
 28852  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 28853  	}
 28854  	if err := oprot.WriteFieldEnd(); err != nil {
 28855  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 28856  	}
 28857  	return err
 28858  }
 28859  
 28860  func (p *ClusterQueryArgs) String() string {
 28861  	if p == nil {
 28862  		return "<nil>"
 28863  	}
 28864  	return fmt.Sprintf("ClusterQueryArgs(%+v)", *p)
 28865  }
 28866  
 28867  // Attributes:
 28868  //  - Success
 28869  //  - Err
 28870  type ClusterQueryResult struct {
 28871  	Success *QueryResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 28872  	Err     *Error        `thrift:"err,1" db:"err" json:"err,omitempty"`
 28873  }
 28874  
 28875  func NewClusterQueryResult() *ClusterQueryResult {
 28876  	return &ClusterQueryResult{}
 28877  }
 28878  
 28879  var ClusterQueryResult_Success_DEFAULT *QueryResult_
 28880  
 28881  func (p *ClusterQueryResult) GetSuccess() *QueryResult_ {
 28882  	if !p.IsSetSuccess() {
 28883  		return ClusterQueryResult_Success_DEFAULT
 28884  	}
 28885  	return p.Success
 28886  }
 28887  
 28888  var ClusterQueryResult_Err_DEFAULT *Error
 28889  
 28890  func (p *ClusterQueryResult) GetErr() *Error {
 28891  	if !p.IsSetErr() {
 28892  		return ClusterQueryResult_Err_DEFAULT
 28893  	}
 28894  	return p.Err
 28895  }
 28896  func (p *ClusterQueryResult) IsSetSuccess() bool {
 28897  	return p.Success != nil
 28898  }
 28899  
 28900  func (p *ClusterQueryResult) IsSetErr() bool {
 28901  	return p.Err != nil
 28902  }
 28903  
 28904  func (p *ClusterQueryResult) Read(iprot thrift.TProtocol) error {
 28905  	if _, err := iprot.ReadStructBegin(); err != nil {
 28906  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 28907  	}
 28908  
 28909  	for {
 28910  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 28911  		if err != nil {
 28912  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 28913  		}
 28914  		if fieldTypeId == thrift.STOP {
 28915  			break
 28916  		}
 28917  		switch fieldId {
 28918  		case 0:
 28919  			if err := p.ReadField0(iprot); err != nil {
 28920  				return err
 28921  			}
 28922  		case 1:
 28923  			if err := p.ReadField1(iprot); err != nil {
 28924  				return err
 28925  			}
 28926  		default:
 28927  			if err := iprot.Skip(fieldTypeId); err != nil {
 28928  				return err
 28929  			}
 28930  		}
 28931  		if err := iprot.ReadFieldEnd(); err != nil {
 28932  			return err
 28933  		}
 28934  	}
 28935  	if err := iprot.ReadStructEnd(); err != nil {
 28936  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 28937  	}
 28938  	return nil
 28939  }
 28940  
 28941  func (p *ClusterQueryResult) ReadField0(iprot thrift.TProtocol) error {
 28942  	p.Success = &QueryResult_{}
 28943  	if err := p.Success.Read(iprot); err != nil {
 28944  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 28945  	}
 28946  	return nil
 28947  }
 28948  
 28949  func (p *ClusterQueryResult) ReadField1(iprot thrift.TProtocol) error {
 28950  	p.Err = &Error{
 28951  		Type: 0,
 28952  	}
 28953  	if err := p.Err.Read(iprot); err != nil {
 28954  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 28955  	}
 28956  	return nil
 28957  }
 28958  
 28959  func (p *ClusterQueryResult) Write(oprot thrift.TProtocol) error {
 28960  	if err := oprot.WriteStructBegin("query_result"); err != nil {
 28961  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 28962  	}
 28963  	if p != nil {
 28964  		if err := p.writeField0(oprot); err != nil {
 28965  			return err
 28966  		}
 28967  		if err := p.writeField1(oprot); err != nil {
 28968  			return err
 28969  		}
 28970  	}
 28971  	if err := oprot.WriteFieldStop(); err != nil {
 28972  		return thrift.PrependError("write field stop error: ", err)
 28973  	}
 28974  	if err := oprot.WriteStructEnd(); err != nil {
 28975  		return thrift.PrependError("write struct stop error: ", err)
 28976  	}
 28977  	return nil
 28978  }
 28979  
 28980  func (p *ClusterQueryResult) writeField0(oprot thrift.TProtocol) (err error) {
 28981  	if p.IsSetSuccess() {
 28982  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 28983  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 28984  		}
 28985  		if err := p.Success.Write(oprot); err != nil {
 28986  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 28987  		}
 28988  		if err := oprot.WriteFieldEnd(); err != nil {
 28989  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 28990  		}
 28991  	}
 28992  	return err
 28993  }
 28994  
 28995  func (p *ClusterQueryResult) writeField1(oprot thrift.TProtocol) (err error) {
 28996  	if p.IsSetErr() {
 28997  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 28998  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 28999  		}
 29000  		if err := p.Err.Write(oprot); err != nil {
 29001  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 29002  		}
 29003  		if err := oprot.WriteFieldEnd(); err != nil {
 29004  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 29005  		}
 29006  	}
 29007  	return err
 29008  }
 29009  
 29010  func (p *ClusterQueryResult) String() string {
 29011  	if p == nil {
 29012  		return "<nil>"
 29013  	}
 29014  	return fmt.Sprintf("ClusterQueryResult(%+v)", *p)
 29015  }
 29016  
 29017  // Attributes:
 29018  //  - Req
 29019  type ClusterAggregateArgs struct {
 29020  	Req *AggregateQueryRequest `thrift:"req,1" db:"req" json:"req"`
 29021  }
 29022  
 29023  func NewClusterAggregateArgs() *ClusterAggregateArgs {
 29024  	return &ClusterAggregateArgs{}
 29025  }
 29026  
 29027  var ClusterAggregateArgs_Req_DEFAULT *AggregateQueryRequest
 29028  
 29029  func (p *ClusterAggregateArgs) GetReq() *AggregateQueryRequest {
 29030  	if !p.IsSetReq() {
 29031  		return ClusterAggregateArgs_Req_DEFAULT
 29032  	}
 29033  	return p.Req
 29034  }
 29035  func (p *ClusterAggregateArgs) IsSetReq() bool {
 29036  	return p.Req != nil
 29037  }
 29038  
 29039  func (p *ClusterAggregateArgs) Read(iprot thrift.TProtocol) error {
 29040  	if _, err := iprot.ReadStructBegin(); err != nil {
 29041  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 29042  	}
 29043  
 29044  	for {
 29045  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 29046  		if err != nil {
 29047  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 29048  		}
 29049  		if fieldTypeId == thrift.STOP {
 29050  			break
 29051  		}
 29052  		switch fieldId {
 29053  		case 1:
 29054  			if err := p.ReadField1(iprot); err != nil {
 29055  				return err
 29056  			}
 29057  		default:
 29058  			if err := iprot.Skip(fieldTypeId); err != nil {
 29059  				return err
 29060  			}
 29061  		}
 29062  		if err := iprot.ReadFieldEnd(); err != nil {
 29063  			return err
 29064  		}
 29065  	}
 29066  	if err := iprot.ReadStructEnd(); err != nil {
 29067  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 29068  	}
 29069  	return nil
 29070  }
 29071  
 29072  func (p *ClusterAggregateArgs) ReadField1(iprot thrift.TProtocol) error {
 29073  	p.Req = &AggregateQueryRequest{
 29074  		AggregateQueryType: 1,
 29075  
 29076  		RangeType: 0,
 29077  	}
 29078  	if err := p.Req.Read(iprot); err != nil {
 29079  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 29080  	}
 29081  	return nil
 29082  }
 29083  
 29084  func (p *ClusterAggregateArgs) Write(oprot thrift.TProtocol) error {
 29085  	if err := oprot.WriteStructBegin("aggregate_args"); err != nil {
 29086  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 29087  	}
 29088  	if p != nil {
 29089  		if err := p.writeField1(oprot); err != nil {
 29090  			return err
 29091  		}
 29092  	}
 29093  	if err := oprot.WriteFieldStop(); err != nil {
 29094  		return thrift.PrependError("write field stop error: ", err)
 29095  	}
 29096  	if err := oprot.WriteStructEnd(); err != nil {
 29097  		return thrift.PrependError("write struct stop error: ", err)
 29098  	}
 29099  	return nil
 29100  }
 29101  
 29102  func (p *ClusterAggregateArgs) writeField1(oprot thrift.TProtocol) (err error) {
 29103  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 29104  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 29105  	}
 29106  	if err := p.Req.Write(oprot); err != nil {
 29107  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 29108  	}
 29109  	if err := oprot.WriteFieldEnd(); err != nil {
 29110  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 29111  	}
 29112  	return err
 29113  }
 29114  
 29115  func (p *ClusterAggregateArgs) String() string {
 29116  	if p == nil {
 29117  		return "<nil>"
 29118  	}
 29119  	return fmt.Sprintf("ClusterAggregateArgs(%+v)", *p)
 29120  }
 29121  
 29122  // Attributes:
 29123  //  - Success
 29124  //  - Err
 29125  type ClusterAggregateResult struct {
 29126  	Success *AggregateQueryResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 29127  	Err     *Error                 `thrift:"err,1" db:"err" json:"err,omitempty"`
 29128  }
 29129  
 29130  func NewClusterAggregateResult() *ClusterAggregateResult {
 29131  	return &ClusterAggregateResult{}
 29132  }
 29133  
 29134  var ClusterAggregateResult_Success_DEFAULT *AggregateQueryResult_
 29135  
 29136  func (p *ClusterAggregateResult) GetSuccess() *AggregateQueryResult_ {
 29137  	if !p.IsSetSuccess() {
 29138  		return ClusterAggregateResult_Success_DEFAULT
 29139  	}
 29140  	return p.Success
 29141  }
 29142  
 29143  var ClusterAggregateResult_Err_DEFAULT *Error
 29144  
 29145  func (p *ClusterAggregateResult) GetErr() *Error {
 29146  	if !p.IsSetErr() {
 29147  		return ClusterAggregateResult_Err_DEFAULT
 29148  	}
 29149  	return p.Err
 29150  }
 29151  func (p *ClusterAggregateResult) IsSetSuccess() bool {
 29152  	return p.Success != nil
 29153  }
 29154  
 29155  func (p *ClusterAggregateResult) IsSetErr() bool {
 29156  	return p.Err != nil
 29157  }
 29158  
 29159  func (p *ClusterAggregateResult) Read(iprot thrift.TProtocol) error {
 29160  	if _, err := iprot.ReadStructBegin(); err != nil {
 29161  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 29162  	}
 29163  
 29164  	for {
 29165  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 29166  		if err != nil {
 29167  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 29168  		}
 29169  		if fieldTypeId == thrift.STOP {
 29170  			break
 29171  		}
 29172  		switch fieldId {
 29173  		case 0:
 29174  			if err := p.ReadField0(iprot); err != nil {
 29175  				return err
 29176  			}
 29177  		case 1:
 29178  			if err := p.ReadField1(iprot); err != nil {
 29179  				return err
 29180  			}
 29181  		default:
 29182  			if err := iprot.Skip(fieldTypeId); err != nil {
 29183  				return err
 29184  			}
 29185  		}
 29186  		if err := iprot.ReadFieldEnd(); err != nil {
 29187  			return err
 29188  		}
 29189  	}
 29190  	if err := iprot.ReadStructEnd(); err != nil {
 29191  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 29192  	}
 29193  	return nil
 29194  }
 29195  
 29196  func (p *ClusterAggregateResult) ReadField0(iprot thrift.TProtocol) error {
 29197  	p.Success = &AggregateQueryResult_{}
 29198  	if err := p.Success.Read(iprot); err != nil {
 29199  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 29200  	}
 29201  	return nil
 29202  }
 29203  
 29204  func (p *ClusterAggregateResult) ReadField1(iprot thrift.TProtocol) error {
 29205  	p.Err = &Error{
 29206  		Type: 0,
 29207  	}
 29208  	if err := p.Err.Read(iprot); err != nil {
 29209  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 29210  	}
 29211  	return nil
 29212  }
 29213  
 29214  func (p *ClusterAggregateResult) Write(oprot thrift.TProtocol) error {
 29215  	if err := oprot.WriteStructBegin("aggregate_result"); err != nil {
 29216  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 29217  	}
 29218  	if p != nil {
 29219  		if err := p.writeField0(oprot); err != nil {
 29220  			return err
 29221  		}
 29222  		if err := p.writeField1(oprot); err != nil {
 29223  			return err
 29224  		}
 29225  	}
 29226  	if err := oprot.WriteFieldStop(); err != nil {
 29227  		return thrift.PrependError("write field stop error: ", err)
 29228  	}
 29229  	if err := oprot.WriteStructEnd(); err != nil {
 29230  		return thrift.PrependError("write struct stop error: ", err)
 29231  	}
 29232  	return nil
 29233  }
 29234  
 29235  func (p *ClusterAggregateResult) writeField0(oprot thrift.TProtocol) (err error) {
 29236  	if p.IsSetSuccess() {
 29237  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 29238  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 29239  		}
 29240  		if err := p.Success.Write(oprot); err != nil {
 29241  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 29242  		}
 29243  		if err := oprot.WriteFieldEnd(); err != nil {
 29244  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 29245  		}
 29246  	}
 29247  	return err
 29248  }
 29249  
 29250  func (p *ClusterAggregateResult) writeField1(oprot thrift.TProtocol) (err error) {
 29251  	if p.IsSetErr() {
 29252  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 29253  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 29254  		}
 29255  		if err := p.Err.Write(oprot); err != nil {
 29256  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 29257  		}
 29258  		if err := oprot.WriteFieldEnd(); err != nil {
 29259  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 29260  		}
 29261  	}
 29262  	return err
 29263  }
 29264  
 29265  func (p *ClusterAggregateResult) String() string {
 29266  	if p == nil {
 29267  		return "<nil>"
 29268  	}
 29269  	return fmt.Sprintf("ClusterAggregateResult(%+v)", *p)
 29270  }
 29271  
 29272  // Attributes:
 29273  //  - Req
 29274  type ClusterFetchArgs struct {
 29275  	Req *FetchRequest `thrift:"req,1" db:"req" json:"req"`
 29276  }
 29277  
 29278  func NewClusterFetchArgs() *ClusterFetchArgs {
 29279  	return &ClusterFetchArgs{}
 29280  }
 29281  
 29282  var ClusterFetchArgs_Req_DEFAULT *FetchRequest
 29283  
 29284  func (p *ClusterFetchArgs) GetReq() *FetchRequest {
 29285  	if !p.IsSetReq() {
 29286  		return ClusterFetchArgs_Req_DEFAULT
 29287  	}
 29288  	return p.Req
 29289  }
 29290  func (p *ClusterFetchArgs) IsSetReq() bool {
 29291  	return p.Req != nil
 29292  }
 29293  
 29294  func (p *ClusterFetchArgs) Read(iprot thrift.TProtocol) error {
 29295  	if _, err := iprot.ReadStructBegin(); err != nil {
 29296  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 29297  	}
 29298  
 29299  	for {
 29300  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 29301  		if err != nil {
 29302  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 29303  		}
 29304  		if fieldTypeId == thrift.STOP {
 29305  			break
 29306  		}
 29307  		switch fieldId {
 29308  		case 1:
 29309  			if err := p.ReadField1(iprot); err != nil {
 29310  				return err
 29311  			}
 29312  		default:
 29313  			if err := iprot.Skip(fieldTypeId); err != nil {
 29314  				return err
 29315  			}
 29316  		}
 29317  		if err := iprot.ReadFieldEnd(); err != nil {
 29318  			return err
 29319  		}
 29320  	}
 29321  	if err := iprot.ReadStructEnd(); err != nil {
 29322  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 29323  	}
 29324  	return nil
 29325  }
 29326  
 29327  func (p *ClusterFetchArgs) ReadField1(iprot thrift.TProtocol) error {
 29328  	p.Req = &FetchRequest{
 29329  		RangeType: 0,
 29330  
 29331  		ResultTimeType: 0,
 29332  	}
 29333  	if err := p.Req.Read(iprot); err != nil {
 29334  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 29335  	}
 29336  	return nil
 29337  }
 29338  
 29339  func (p *ClusterFetchArgs) Write(oprot thrift.TProtocol) error {
 29340  	if err := oprot.WriteStructBegin("fetch_args"); err != nil {
 29341  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 29342  	}
 29343  	if p != nil {
 29344  		if err := p.writeField1(oprot); err != nil {
 29345  			return err
 29346  		}
 29347  	}
 29348  	if err := oprot.WriteFieldStop(); err != nil {
 29349  		return thrift.PrependError("write field stop error: ", err)
 29350  	}
 29351  	if err := oprot.WriteStructEnd(); err != nil {
 29352  		return thrift.PrependError("write struct stop error: ", err)
 29353  	}
 29354  	return nil
 29355  }
 29356  
 29357  func (p *ClusterFetchArgs) writeField1(oprot thrift.TProtocol) (err error) {
 29358  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 29359  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 29360  	}
 29361  	if err := p.Req.Write(oprot); err != nil {
 29362  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 29363  	}
 29364  	if err := oprot.WriteFieldEnd(); err != nil {
 29365  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 29366  	}
 29367  	return err
 29368  }
 29369  
 29370  func (p *ClusterFetchArgs) String() string {
 29371  	if p == nil {
 29372  		return "<nil>"
 29373  	}
 29374  	return fmt.Sprintf("ClusterFetchArgs(%+v)", *p)
 29375  }
 29376  
 29377  // Attributes:
 29378  //  - Success
 29379  //  - Err
 29380  type ClusterFetchResult struct {
 29381  	Success *FetchResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 29382  	Err     *Error        `thrift:"err,1" db:"err" json:"err,omitempty"`
 29383  }
 29384  
 29385  func NewClusterFetchResult() *ClusterFetchResult {
 29386  	return &ClusterFetchResult{}
 29387  }
 29388  
 29389  var ClusterFetchResult_Success_DEFAULT *FetchResult_
 29390  
 29391  func (p *ClusterFetchResult) GetSuccess() *FetchResult_ {
 29392  	if !p.IsSetSuccess() {
 29393  		return ClusterFetchResult_Success_DEFAULT
 29394  	}
 29395  	return p.Success
 29396  }
 29397  
 29398  var ClusterFetchResult_Err_DEFAULT *Error
 29399  
 29400  func (p *ClusterFetchResult) GetErr() *Error {
 29401  	if !p.IsSetErr() {
 29402  		return ClusterFetchResult_Err_DEFAULT
 29403  	}
 29404  	return p.Err
 29405  }
 29406  func (p *ClusterFetchResult) IsSetSuccess() bool {
 29407  	return p.Success != nil
 29408  }
 29409  
 29410  func (p *ClusterFetchResult) IsSetErr() bool {
 29411  	return p.Err != nil
 29412  }
 29413  
 29414  func (p *ClusterFetchResult) Read(iprot thrift.TProtocol) error {
 29415  	if _, err := iprot.ReadStructBegin(); err != nil {
 29416  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 29417  	}
 29418  
 29419  	for {
 29420  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 29421  		if err != nil {
 29422  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 29423  		}
 29424  		if fieldTypeId == thrift.STOP {
 29425  			break
 29426  		}
 29427  		switch fieldId {
 29428  		case 0:
 29429  			if err := p.ReadField0(iprot); err != nil {
 29430  				return err
 29431  			}
 29432  		case 1:
 29433  			if err := p.ReadField1(iprot); err != nil {
 29434  				return err
 29435  			}
 29436  		default:
 29437  			if err := iprot.Skip(fieldTypeId); err != nil {
 29438  				return err
 29439  			}
 29440  		}
 29441  		if err := iprot.ReadFieldEnd(); err != nil {
 29442  			return err
 29443  		}
 29444  	}
 29445  	if err := iprot.ReadStructEnd(); err != nil {
 29446  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 29447  	}
 29448  	return nil
 29449  }
 29450  
 29451  func (p *ClusterFetchResult) ReadField0(iprot thrift.TProtocol) error {
 29452  	p.Success = &FetchResult_{}
 29453  	if err := p.Success.Read(iprot); err != nil {
 29454  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 29455  	}
 29456  	return nil
 29457  }
 29458  
 29459  func (p *ClusterFetchResult) ReadField1(iprot thrift.TProtocol) error {
 29460  	p.Err = &Error{
 29461  		Type: 0,
 29462  	}
 29463  	if err := p.Err.Read(iprot); err != nil {
 29464  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 29465  	}
 29466  	return nil
 29467  }
 29468  
 29469  func (p *ClusterFetchResult) Write(oprot thrift.TProtocol) error {
 29470  	if err := oprot.WriteStructBegin("fetch_result"); err != nil {
 29471  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 29472  	}
 29473  	if p != nil {
 29474  		if err := p.writeField0(oprot); err != nil {
 29475  			return err
 29476  		}
 29477  		if err := p.writeField1(oprot); err != nil {
 29478  			return err
 29479  		}
 29480  	}
 29481  	if err := oprot.WriteFieldStop(); err != nil {
 29482  		return thrift.PrependError("write field stop error: ", err)
 29483  	}
 29484  	if err := oprot.WriteStructEnd(); err != nil {
 29485  		return thrift.PrependError("write struct stop error: ", err)
 29486  	}
 29487  	return nil
 29488  }
 29489  
 29490  func (p *ClusterFetchResult) writeField0(oprot thrift.TProtocol) (err error) {
 29491  	if p.IsSetSuccess() {
 29492  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 29493  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 29494  		}
 29495  		if err := p.Success.Write(oprot); err != nil {
 29496  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 29497  		}
 29498  		if err := oprot.WriteFieldEnd(); err != nil {
 29499  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 29500  		}
 29501  	}
 29502  	return err
 29503  }
 29504  
 29505  func (p *ClusterFetchResult) writeField1(oprot thrift.TProtocol) (err error) {
 29506  	if p.IsSetErr() {
 29507  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 29508  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 29509  		}
 29510  		if err := p.Err.Write(oprot); err != nil {
 29511  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 29512  		}
 29513  		if err := oprot.WriteFieldEnd(); err != nil {
 29514  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 29515  		}
 29516  	}
 29517  	return err
 29518  }
 29519  
 29520  func (p *ClusterFetchResult) String() string {
 29521  	if p == nil {
 29522  		return "<nil>"
 29523  	}
 29524  	return fmt.Sprintf("ClusterFetchResult(%+v)", *p)
 29525  }
 29526  
 29527  // Attributes:
 29528  //  - Req
 29529  type ClusterTruncateArgs struct {
 29530  	Req *TruncateRequest `thrift:"req,1" db:"req" json:"req"`
 29531  }
 29532  
 29533  func NewClusterTruncateArgs() *ClusterTruncateArgs {
 29534  	return &ClusterTruncateArgs{}
 29535  }
 29536  
 29537  var ClusterTruncateArgs_Req_DEFAULT *TruncateRequest
 29538  
 29539  func (p *ClusterTruncateArgs) GetReq() *TruncateRequest {
 29540  	if !p.IsSetReq() {
 29541  		return ClusterTruncateArgs_Req_DEFAULT
 29542  	}
 29543  	return p.Req
 29544  }
 29545  func (p *ClusterTruncateArgs) IsSetReq() bool {
 29546  	return p.Req != nil
 29547  }
 29548  
 29549  func (p *ClusterTruncateArgs) Read(iprot thrift.TProtocol) error {
 29550  	if _, err := iprot.ReadStructBegin(); err != nil {
 29551  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 29552  	}
 29553  
 29554  	for {
 29555  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 29556  		if err != nil {
 29557  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 29558  		}
 29559  		if fieldTypeId == thrift.STOP {
 29560  			break
 29561  		}
 29562  		switch fieldId {
 29563  		case 1:
 29564  			if err := p.ReadField1(iprot); err != nil {
 29565  				return err
 29566  			}
 29567  		default:
 29568  			if err := iprot.Skip(fieldTypeId); err != nil {
 29569  				return err
 29570  			}
 29571  		}
 29572  		if err := iprot.ReadFieldEnd(); err != nil {
 29573  			return err
 29574  		}
 29575  	}
 29576  	if err := iprot.ReadStructEnd(); err != nil {
 29577  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 29578  	}
 29579  	return nil
 29580  }
 29581  
 29582  func (p *ClusterTruncateArgs) ReadField1(iprot thrift.TProtocol) error {
 29583  	p.Req = &TruncateRequest{}
 29584  	if err := p.Req.Read(iprot); err != nil {
 29585  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Req), err)
 29586  	}
 29587  	return nil
 29588  }
 29589  
 29590  func (p *ClusterTruncateArgs) Write(oprot thrift.TProtocol) error {
 29591  	if err := oprot.WriteStructBegin("truncate_args"); err != nil {
 29592  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 29593  	}
 29594  	if p != nil {
 29595  		if err := p.writeField1(oprot); err != nil {
 29596  			return err
 29597  		}
 29598  	}
 29599  	if err := oprot.WriteFieldStop(); err != nil {
 29600  		return thrift.PrependError("write field stop error: ", err)
 29601  	}
 29602  	if err := oprot.WriteStructEnd(); err != nil {
 29603  		return thrift.PrependError("write struct stop error: ", err)
 29604  	}
 29605  	return nil
 29606  }
 29607  
 29608  func (p *ClusterTruncateArgs) writeField1(oprot thrift.TProtocol) (err error) {
 29609  	if err := oprot.WriteFieldBegin("req", thrift.STRUCT, 1); err != nil {
 29610  		return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:req: ", p), err)
 29611  	}
 29612  	if err := p.Req.Write(oprot); err != nil {
 29613  		return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Req), err)
 29614  	}
 29615  	if err := oprot.WriteFieldEnd(); err != nil {
 29616  		return thrift.PrependError(fmt.Sprintf("%T write field end error 1:req: ", p), err)
 29617  	}
 29618  	return err
 29619  }
 29620  
 29621  func (p *ClusterTruncateArgs) String() string {
 29622  	if p == nil {
 29623  		return "<nil>"
 29624  	}
 29625  	return fmt.Sprintf("ClusterTruncateArgs(%+v)", *p)
 29626  }
 29627  
 29628  // Attributes:
 29629  //  - Success
 29630  //  - Err
 29631  type ClusterTruncateResult struct {
 29632  	Success *TruncateResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
 29633  	Err     *Error           `thrift:"err,1" db:"err" json:"err,omitempty"`
 29634  }
 29635  
 29636  func NewClusterTruncateResult() *ClusterTruncateResult {
 29637  	return &ClusterTruncateResult{}
 29638  }
 29639  
 29640  var ClusterTruncateResult_Success_DEFAULT *TruncateResult_
 29641  
 29642  func (p *ClusterTruncateResult) GetSuccess() *TruncateResult_ {
 29643  	if !p.IsSetSuccess() {
 29644  		return ClusterTruncateResult_Success_DEFAULT
 29645  	}
 29646  	return p.Success
 29647  }
 29648  
 29649  var ClusterTruncateResult_Err_DEFAULT *Error
 29650  
 29651  func (p *ClusterTruncateResult) GetErr() *Error {
 29652  	if !p.IsSetErr() {
 29653  		return ClusterTruncateResult_Err_DEFAULT
 29654  	}
 29655  	return p.Err
 29656  }
 29657  func (p *ClusterTruncateResult) IsSetSuccess() bool {
 29658  	return p.Success != nil
 29659  }
 29660  
 29661  func (p *ClusterTruncateResult) IsSetErr() bool {
 29662  	return p.Err != nil
 29663  }
 29664  
 29665  func (p *ClusterTruncateResult) Read(iprot thrift.TProtocol) error {
 29666  	if _, err := iprot.ReadStructBegin(); err != nil {
 29667  		return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
 29668  	}
 29669  
 29670  	for {
 29671  		_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
 29672  		if err != nil {
 29673  			return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
 29674  		}
 29675  		if fieldTypeId == thrift.STOP {
 29676  			break
 29677  		}
 29678  		switch fieldId {
 29679  		case 0:
 29680  			if err := p.ReadField0(iprot); err != nil {
 29681  				return err
 29682  			}
 29683  		case 1:
 29684  			if err := p.ReadField1(iprot); err != nil {
 29685  				return err
 29686  			}
 29687  		default:
 29688  			if err := iprot.Skip(fieldTypeId); err != nil {
 29689  				return err
 29690  			}
 29691  		}
 29692  		if err := iprot.ReadFieldEnd(); err != nil {
 29693  			return err
 29694  		}
 29695  	}
 29696  	if err := iprot.ReadStructEnd(); err != nil {
 29697  		return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
 29698  	}
 29699  	return nil
 29700  }
 29701  
 29702  func (p *ClusterTruncateResult) ReadField0(iprot thrift.TProtocol) error {
 29703  	p.Success = &TruncateResult_{}
 29704  	if err := p.Success.Read(iprot); err != nil {
 29705  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Success), err)
 29706  	}
 29707  	return nil
 29708  }
 29709  
 29710  func (p *ClusterTruncateResult) ReadField1(iprot thrift.TProtocol) error {
 29711  	p.Err = &Error{
 29712  		Type: 0,
 29713  	}
 29714  	if err := p.Err.Read(iprot); err != nil {
 29715  		return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Err), err)
 29716  	}
 29717  	return nil
 29718  }
 29719  
 29720  func (p *ClusterTruncateResult) Write(oprot thrift.TProtocol) error {
 29721  	if err := oprot.WriteStructBegin("truncate_result"); err != nil {
 29722  		return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
 29723  	}
 29724  	if p != nil {
 29725  		if err := p.writeField0(oprot); err != nil {
 29726  			return err
 29727  		}
 29728  		if err := p.writeField1(oprot); err != nil {
 29729  			return err
 29730  		}
 29731  	}
 29732  	if err := oprot.WriteFieldStop(); err != nil {
 29733  		return thrift.PrependError("write field stop error: ", err)
 29734  	}
 29735  	if err := oprot.WriteStructEnd(); err != nil {
 29736  		return thrift.PrependError("write struct stop error: ", err)
 29737  	}
 29738  	return nil
 29739  }
 29740  
 29741  func (p *ClusterTruncateResult) writeField0(oprot thrift.TProtocol) (err error) {
 29742  	if p.IsSetSuccess() {
 29743  		if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil {
 29744  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err)
 29745  		}
 29746  		if err := p.Success.Write(oprot); err != nil {
 29747  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
 29748  		}
 29749  		if err := oprot.WriteFieldEnd(); err != nil {
 29750  			return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err)
 29751  		}
 29752  	}
 29753  	return err
 29754  }
 29755  
 29756  func (p *ClusterTruncateResult) writeField1(oprot thrift.TProtocol) (err error) {
 29757  	if p.IsSetErr() {
 29758  		if err := oprot.WriteFieldBegin("err", thrift.STRUCT, 1); err != nil {
 29759  			return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:err: ", p), err)
 29760  		}
 29761  		if err := p.Err.Write(oprot); err != nil {
 29762  			return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Err), err)
 29763  		}
 29764  		if err := oprot.WriteFieldEnd(); err != nil {
 29765  			return thrift.PrependError(fmt.Sprintf("%T write field end error 1:err: ", p), err)
 29766  		}
 29767  	}
 29768  	return err
 29769  }
 29770  
 29771  func (p *ClusterTruncateResult) String() string {
 29772  	if p == nil {
 29773  		return "<nil>"
 29774  	}
 29775  	return fmt.Sprintf("ClusterTruncateResult(%+v)", *p)
 29776  }