github.com/uuosio/chaintester@v0.0.0-20230731100329-1f6fad7372e5/interfaces/apply-remote/apply-remote.go (about)

     1  // Code generated by Thrift Compiler (0.15.0). DO NOT EDIT.
     2  
     3  package main
     4  
     5  import (
     6  	"context"
     7  	"flag"
     8  	"fmt"
     9  	"math"
    10  	"net"
    11  	"net/url"
    12  	"os"
    13  	"strconv"
    14  	"strings"
    15  	thrift "github.com/apache/thrift/lib/go/thrift"
    16  	"interfaces"
    17  )
    18  
    19  var _ = interfaces.GoUnusedProtection__
    20  
    21  func Usage() {
    22    fmt.Fprintln(os.Stderr, "Usage of ", os.Args[0], " [-h host:port] [-u url] [-f[ramed]] function [arg1 [arg2...]]:")
    23    flag.PrintDefaults()
    24    fmt.Fprintln(os.Stderr, "\nFunctions:")
    25    fmt.Fprintln(os.Stderr, "  i32 end_apply()")
    26    fmt.Fprintln(os.Stderr, "  string get_active_producers()")
    27    fmt.Fprintln(os.Stderr, "  GetResourceLimitsReturn get_resource_limits(Uint64 account)")
    28    fmt.Fprintln(os.Stderr, "  void set_resource_limits(Uint64 account, i64 ram_bytes, i64 net_weight, i64 cpu_weight)")
    29    fmt.Fprintln(os.Stderr, "  i64 set_proposed_producers(string producer_data)")
    30    fmt.Fprintln(os.Stderr, "  i64 set_proposed_producers_ex(Uint64 producer_data_format, string producer_data)")
    31    fmt.Fprintln(os.Stderr, "  bool is_privileged(Uint64 account)")
    32    fmt.Fprintln(os.Stderr, "  void set_privileged(Uint64 account, bool is_priv)")
    33    fmt.Fprintln(os.Stderr, "  void set_blockchain_parameters_packed(string data)")
    34    fmt.Fprintln(os.Stderr, "  string get_blockchain_parameters_packed()")
    35    fmt.Fprintln(os.Stderr, "  void preactivate_feature(string feature_digest)")
    36    fmt.Fprintln(os.Stderr, "  i32 check_transaction_authorization(string trx_data, string pubkeys_data, string perms_data)")
    37    fmt.Fprintln(os.Stderr, "  i32 check_permission_authorization(Uint64 account, Uint64 permission, string pubkeys_data, string perms_data, Uint64 delay_us)")
    38    fmt.Fprintln(os.Stderr, "  i64 get_permission_last_used(Uint64 account, Uint64 permission)")
    39    fmt.Fprintln(os.Stderr, "  i64 get_account_creation_time(Uint64 account)")
    40    fmt.Fprintln(os.Stderr, "  void prints(string cstr)")
    41    fmt.Fprintln(os.Stderr, "  void prints_l(string cstr)")
    42    fmt.Fprintln(os.Stderr, "  void printi(i64 n)")
    43    fmt.Fprintln(os.Stderr, "  void printui(Uint64 n)")
    44    fmt.Fprintln(os.Stderr, "  void printi128(string value)")
    45    fmt.Fprintln(os.Stderr, "  void printui128(string value)")
    46    fmt.Fprintln(os.Stderr, "  void printsf(string value)")
    47    fmt.Fprintln(os.Stderr, "  void printdf(string value)")
    48    fmt.Fprintln(os.Stderr, "  void printqf(string value)")
    49    fmt.Fprintln(os.Stderr, "  void printn(Uint64 name)")
    50    fmt.Fprintln(os.Stderr, "  void printhex(string data)")
    51    fmt.Fprintln(os.Stderr, "  i32 action_data_size()")
    52    fmt.Fprintln(os.Stderr, "  string read_action_data()")
    53    fmt.Fprintln(os.Stderr, "  void require_recipient(Uint64 name)")
    54    fmt.Fprintln(os.Stderr, "  void require_auth(Uint64 name)")
    55    fmt.Fprintln(os.Stderr, "  bool has_auth(Uint64 name)")
    56    fmt.Fprintln(os.Stderr, "  void require_auth2(Uint64 name, Uint64 permission)")
    57    fmt.Fprintln(os.Stderr, "  bool is_account(Uint64 name)")
    58    fmt.Fprintln(os.Stderr, "  void send_inline(string serialized_action)")
    59    fmt.Fprintln(os.Stderr, "  void send_context_free_inline(string serialized_data)")
    60    fmt.Fprintln(os.Stderr, "  Uint64 publication_time()")
    61    fmt.Fprintln(os.Stderr, "  Uint64 current_receiver()")
    62    fmt.Fprintln(os.Stderr, "  void eosio_assert(bool test, string msg)")
    63    fmt.Fprintln(os.Stderr, "  void eosio_assert_message(bool test, string msg)")
    64    fmt.Fprintln(os.Stderr, "  void eosio_assert_code(bool test, Uint64 code)")
    65    fmt.Fprintln(os.Stderr, "  void eosio_exit(i32 code)")
    66    fmt.Fprintln(os.Stderr, "  Uint64 current_time()")
    67    fmt.Fprintln(os.Stderr, "  bool is_feature_activated(string feature_digest)")
    68    fmt.Fprintln(os.Stderr, "  Uint64 get_sender()")
    69    fmt.Fprintln(os.Stderr, "  void assert_sha256(string data, string hash)")
    70    fmt.Fprintln(os.Stderr, "  void assert_sha1(string data, string hash)")
    71    fmt.Fprintln(os.Stderr, "  void assert_sha512(string data, string hash)")
    72    fmt.Fprintln(os.Stderr, "  void assert_ripemd160(string data, string hash)")
    73    fmt.Fprintln(os.Stderr, "  string sha256(string data)")
    74    fmt.Fprintln(os.Stderr, "  string sha1(string data)")
    75    fmt.Fprintln(os.Stderr, "  string sha512(string data)")
    76    fmt.Fprintln(os.Stderr, "  string ripemd160(string data)")
    77    fmt.Fprintln(os.Stderr, "  string recover_key(string digest, string sig)")
    78    fmt.Fprintln(os.Stderr, "  void assert_recover_key(string digest, string sig, string pub)")
    79    fmt.Fprintln(os.Stderr, "  void send_deferred(string sender_id, Uint64 payer, string serialized_transaction, i32 replace_existing)")
    80    fmt.Fprintln(os.Stderr, "  i32 cancel_deferred(string sender_id)")
    81    fmt.Fprintln(os.Stderr, "  string read_transaction()")
    82    fmt.Fprintln(os.Stderr, "  i32 transaction_size()")
    83    fmt.Fprintln(os.Stderr, "  i32 tapos_block_num()")
    84    fmt.Fprintln(os.Stderr, "  i32 tapos_block_prefix()")
    85    fmt.Fprintln(os.Stderr, "  i64 expiration()")
    86    fmt.Fprintln(os.Stderr, "  string get_action(i32 _type, i32 index)")
    87    fmt.Fprintln(os.Stderr, "  string get_context_free_data(i32 index)")
    88    fmt.Fprintln(os.Stderr, "  i32 db_store_i64(Uint64 scope, Uint64 table, Uint64 payer, Uint64 id, string data)")
    89    fmt.Fprintln(os.Stderr, "  void db_update_i64(i32 iterator, Uint64 payer, string data)")
    90    fmt.Fprintln(os.Stderr, "  void db_remove_i64(i32 iterator)")
    91    fmt.Fprintln(os.Stderr, "  string db_get_i64(i32 iterator)")
    92    fmt.Fprintln(os.Stderr, "  NextPreviousReturn db_next_i64(i32 iterator)")
    93    fmt.Fprintln(os.Stderr, "  NextPreviousReturn db_previous_i64(i32 iterator)")
    94    fmt.Fprintln(os.Stderr, "  i32 db_find_i64(Uint64 code, Uint64 scope, Uint64 table, Uint64 id)")
    95    fmt.Fprintln(os.Stderr, "  i32 db_lowerbound_i64(Uint64 code, Uint64 scope, Uint64 table, Uint64 id)")
    96    fmt.Fprintln(os.Stderr, "  i32 db_upperbound_i64(Uint64 code, Uint64 scope, Uint64 table, Uint64 id)")
    97    fmt.Fprintln(os.Stderr, "  i32 db_end_i64(Uint64 code, Uint64 scope, Uint64 table)")
    98    fmt.Fprintln(os.Stderr, "  i32 db_idx64_store(Uint64 scope, Uint64 table, Uint64 payer, Uint64 id, Uint64 secondary)")
    99    fmt.Fprintln(os.Stderr, "  void db_idx64_update(i32 iterator, Uint64 payer, Uint64 secondary)")
   100    fmt.Fprintln(os.Stderr, "  void db_idx64_remove(i32 iterator)")
   101    fmt.Fprintln(os.Stderr, "  NextPreviousReturn db_idx64_next(i32 iterator)")
   102    fmt.Fprintln(os.Stderr, "  NextPreviousReturn db_idx64_previous(i32 iteratory)")
   103    fmt.Fprintln(os.Stderr, "  FindPrimaryReturn db_idx64_find_primary(Uint64 code, Uint64 scope, Uint64 table, Uint64 primary)")
   104    fmt.Fprintln(os.Stderr, "  FindSecondaryReturn db_idx64_find_secondary(Uint64 code, Uint64 scope, Uint64 table, Uint64 secondary)")
   105    fmt.Fprintln(os.Stderr, "  LowerBoundUpperBoundReturn db_idx64_lowerbound(Uint64 code, Uint64 scope, Uint64 table, Uint64 secondary, Uint64 primary)")
   106    fmt.Fprintln(os.Stderr, "  LowerBoundUpperBoundReturn db_idx64_upperbound(Uint64 code, Uint64 scope, Uint64 table, Uint64 secondary, Uint64 primary)")
   107    fmt.Fprintln(os.Stderr, "  i32 db_idx64_end(Uint64 code, Uint64 scope, Uint64 table)")
   108    fmt.Fprintln(os.Stderr, "  i32 db_idx128_store(Uint64 scope, Uint64 table, Uint64 payer, Uint64 id, string secondary)")
   109    fmt.Fprintln(os.Stderr, "  void db_idx128_update(i32 iterator, Uint64 payer, string secondary)")
   110    fmt.Fprintln(os.Stderr, "  void db_idx128_remove(i32 iterator)")
   111    fmt.Fprintln(os.Stderr, "  NextPreviousReturn db_idx128_next(i32 iterator)")
   112    fmt.Fprintln(os.Stderr, "  NextPreviousReturn db_idx128_previous(i32 iterator)")
   113    fmt.Fprintln(os.Stderr, "  FindPrimaryReturn db_idx128_find_primary(Uint64 code, Uint64 scope, Uint64 table, Uint64 primary)")
   114    fmt.Fprintln(os.Stderr, "  FindSecondaryReturn db_idx128_find_secondary(Uint64 code, Uint64 scope, Uint64 table, string secondary)")
   115    fmt.Fprintln(os.Stderr, "  LowerBoundUpperBoundReturn db_idx128_lowerbound(Uint64 code, Uint64 scope, Uint64 table, string secondary, Uint64 primary)")
   116    fmt.Fprintln(os.Stderr, "  LowerBoundUpperBoundReturn db_idx128_upperbound(Uint64 code, Uint64 scope, Uint64 table, string secondary, Uint64 primary)")
   117    fmt.Fprintln(os.Stderr, "  i32 db_idx128_end(Uint64 code, Uint64 scope, Uint64 table)")
   118    fmt.Fprintln(os.Stderr, "  i32 db_idx256_store(Uint64 scope, Uint64 table, Uint64 payer, Uint64 id, string data)")
   119    fmt.Fprintln(os.Stderr, "  void db_idx256_update(i32 iterator, Uint64 payer, string data)")
   120    fmt.Fprintln(os.Stderr, "  void db_idx256_remove(i32 iterator)")
   121    fmt.Fprintln(os.Stderr, "  NextPreviousReturn db_idx256_next(i32 iterator)")
   122    fmt.Fprintln(os.Stderr, "  NextPreviousReturn db_idx256_previous(i32 iterator)")
   123    fmt.Fprintln(os.Stderr, "  FindPrimaryReturn db_idx256_find_primary(Uint64 code, Uint64 scope, Uint64 table, Uint64 primary)")
   124    fmt.Fprintln(os.Stderr, "  FindSecondaryReturn db_idx256_find_secondary(Uint64 code, Uint64 scope, Uint64 table, string data)")
   125    fmt.Fprintln(os.Stderr, "  LowerBoundUpperBoundReturn db_idx256_lowerbound(Uint64 code, Uint64 scope, Uint64 table, string data, Uint64 primary)")
   126    fmt.Fprintln(os.Stderr, "  LowerBoundUpperBoundReturn db_idx256_upperbound(Uint64 code, Uint64 scope, Uint64 table, string data, Uint64 primary)")
   127    fmt.Fprintln(os.Stderr, "  i32 db_idx256_end(Uint64 code, Uint64 scope, Uint64 table)")
   128    fmt.Fprintln(os.Stderr, "  i32 db_idx_double_store(Uint64 scope, Uint64 table, Uint64 payer, Uint64 id, string secondary)")
   129    fmt.Fprintln(os.Stderr, "  void db_idx_double_update(i32 iterator, Uint64 payer, string secondary)")
   130    fmt.Fprintln(os.Stderr, "  void db_idx_double_remove(i32 iterator)")
   131    fmt.Fprintln(os.Stderr, "  NextPreviousReturn db_idx_double_next(i32 iterator)")
   132    fmt.Fprintln(os.Stderr, "  NextPreviousReturn db_idx_double_previous(i32 iterator)")
   133    fmt.Fprintln(os.Stderr, "  FindPrimaryReturn db_idx_double_find_primary(Uint64 code, Uint64 scope, Uint64 table, Uint64 primary)")
   134    fmt.Fprintln(os.Stderr, "  FindSecondaryReturn db_idx_double_find_secondary(Uint64 code, Uint64 scope, Uint64 table, string secondary)")
   135    fmt.Fprintln(os.Stderr, "  LowerBoundUpperBoundReturn db_idx_double_lowerbound(Uint64 code, Uint64 scope, Uint64 table, string secondary, Uint64 primary)")
   136    fmt.Fprintln(os.Stderr, "  LowerBoundUpperBoundReturn db_idx_double_upperbound(Uint64 code, Uint64 scope, Uint64 table, string secondary, Uint64 primary)")
   137    fmt.Fprintln(os.Stderr, "  i32 db_idx_double_end(Uint64 code, Uint64 scope, Uint64 table)")
   138    fmt.Fprintln(os.Stderr, "  i32 db_idx_long_double_store(Uint64 scope, Uint64 table, Uint64 payer, Uint64 id, string secondary)")
   139    fmt.Fprintln(os.Stderr, "  void db_idx_long_double_update(i32 iterator, Uint64 payer, string secondary)")
   140    fmt.Fprintln(os.Stderr, "  void db_idx_long_double_remove(i32 iterator)")
   141    fmt.Fprintln(os.Stderr, "  NextPreviousReturn db_idx_long_double_next(i32 iterator)")
   142    fmt.Fprintln(os.Stderr, "  NextPreviousReturn db_idx_long_double_previous(i32 iterator)")
   143    fmt.Fprintln(os.Stderr, "  FindPrimaryReturn db_idx_long_double_find_primary(Uint64 code, Uint64 scope, Uint64 table, Uint64 primary)")
   144    fmt.Fprintln(os.Stderr, "  FindSecondaryReturn db_idx_long_double_find_secondary(Uint64 code, Uint64 scope, Uint64 table, string secondary)")
   145    fmt.Fprintln(os.Stderr, "  LowerBoundUpperBoundReturn db_idx_long_double_lowerbound(Uint64 code, Uint64 scope, Uint64 table, string secondary, Uint64 primary)")
   146    fmt.Fprintln(os.Stderr, "  LowerBoundUpperBoundReturn db_idx_long_double_upperbound(Uint64 code, Uint64 scope, Uint64 table, string secondary, Uint64 primary)")
   147    fmt.Fprintln(os.Stderr, "  i32 db_idx_long_double_end(Uint64 code, Uint64 scope, Uint64 table)")
   148    fmt.Fprintln(os.Stderr, "  void set_action_return_value(string data)")
   149    fmt.Fprintln(os.Stderr, "  string get_code_hash(Uint64 account, i64 struct_version)")
   150    fmt.Fprintln(os.Stderr, "  i64 get_block_num()")
   151    fmt.Fprintln(os.Stderr, "  string sha3(string data, i32 keccak)")
   152    fmt.Fprintln(os.Stderr, "  string blake2_f(i64 rounds, string state, string msg, string t0_offset, string t1_offset, i32 final)")
   153    fmt.Fprintln(os.Stderr, "  string k1_recover(string sig, string dig)")
   154    fmt.Fprintln(os.Stderr, "  string alt_bn128_add(string op1, string op2)")
   155    fmt.Fprintln(os.Stderr, "  string alt_bn128_mul(string g1, string scalar)")
   156    fmt.Fprintln(os.Stderr, "  i32 alt_bn128_pair(string pairs)")
   157    fmt.Fprintln(os.Stderr, "  string mod_exp(string base, string exp, string mod)")
   158    fmt.Fprintln(os.Stderr)
   159    os.Exit(0)
   160  }
   161  
   162  type httpHeaders map[string]string
   163  
   164  func (h httpHeaders) String() string {
   165    var m map[string]string = h
   166    return fmt.Sprintf("%s", m)
   167  }
   168  
   169  func (h httpHeaders) Set(value string) error {
   170    parts := strings.Split(value, ": ")
   171    if len(parts) != 2 {
   172      return fmt.Errorf("header should be of format 'Key: Value'")
   173    }
   174    h[parts[0]] = parts[1]
   175    return nil
   176  }
   177  
   178  func main() {
   179    flag.Usage = Usage
   180    var host string
   181    var port int
   182    var protocol string
   183    var urlString string
   184    var framed bool
   185    var useHttp bool
   186    headers := make(httpHeaders)
   187    var parsedUrl *url.URL
   188    var trans thrift.TTransport
   189    _ = strconv.Atoi
   190    _ = math.Abs
   191    flag.Usage = Usage
   192    flag.StringVar(&host, "h", "localhost", "Specify host and port")
   193    flag.IntVar(&port, "p", 9090, "Specify port")
   194    flag.StringVar(&protocol, "P", "binary", "Specify the protocol (binary, compact, simplejson, json)")
   195    flag.StringVar(&urlString, "u", "", "Specify the url")
   196    flag.BoolVar(&framed, "framed", false, "Use framed transport")
   197    flag.BoolVar(&useHttp, "http", false, "Use http")
   198    flag.Var(headers, "H", "Headers to set on the http(s) request (e.g. -H \"Key: Value\")")
   199    flag.Parse()
   200    
   201    if len(urlString) > 0 {
   202      var err error
   203      parsedUrl, err = url.Parse(urlString)
   204      if err != nil {
   205        fmt.Fprintln(os.Stderr, "Error parsing URL: ", err)
   206        flag.Usage()
   207      }
   208      host = parsedUrl.Host
   209      useHttp = len(parsedUrl.Scheme) <= 0 || parsedUrl.Scheme == "http" || parsedUrl.Scheme == "https"
   210    } else if useHttp {
   211      _, err := url.Parse(fmt.Sprint("http://", host, ":", port))
   212      if err != nil {
   213        fmt.Fprintln(os.Stderr, "Error parsing URL: ", err)
   214        flag.Usage()
   215      }
   216    }
   217    
   218    cmd := flag.Arg(0)
   219    var err error
   220    var cfg *thrift.TConfiguration = nil
   221    if useHttp {
   222      trans, err = thrift.NewTHttpClient(parsedUrl.String())
   223      if len(headers) > 0 {
   224        httptrans := trans.(*thrift.THttpClient)
   225        for key, value := range headers {
   226          httptrans.SetHeader(key, value)
   227        }
   228      }
   229    } else {
   230      portStr := fmt.Sprint(port)
   231      if strings.Contains(host, ":") {
   232             host, portStr, err = net.SplitHostPort(host)
   233             if err != nil {
   234                     fmt.Fprintln(os.Stderr, "error with host:", err)
   235                     os.Exit(1)
   236             }
   237      }
   238      trans = thrift.NewTSocketConf(net.JoinHostPort(host, portStr), cfg)
   239      if err != nil {
   240        fmt.Fprintln(os.Stderr, "error resolving address:", err)
   241        os.Exit(1)
   242      }
   243      if framed {
   244        trans = thrift.NewTFramedTransportConf(trans, cfg)
   245      }
   246    }
   247    if err != nil {
   248      fmt.Fprintln(os.Stderr, "Error creating transport", err)
   249      os.Exit(1)
   250    }
   251    defer trans.Close()
   252    var protocolFactory thrift.TProtocolFactory
   253    switch protocol {
   254    case "compact":
   255      protocolFactory = thrift.NewTCompactProtocolFactoryConf(cfg)
   256      break
   257    case "simplejson":
   258      protocolFactory = thrift.NewTSimpleJSONProtocolFactoryConf(cfg)
   259      break
   260    case "json":
   261      protocolFactory = thrift.NewTJSONProtocolFactory()
   262      break
   263    case "binary", "":
   264      protocolFactory = thrift.NewTBinaryProtocolFactoryConf(cfg)
   265      break
   266    default:
   267      fmt.Fprintln(os.Stderr, "Invalid protocol specified: ", protocol)
   268      Usage()
   269      os.Exit(1)
   270    }
   271    iprot := protocolFactory.GetProtocol(trans)
   272    oprot := protocolFactory.GetProtocol(trans)
   273    client := interfaces.NewApplyClient(thrift.NewTStandardClient(iprot, oprot))
   274    if err := trans.Open(); err != nil {
   275      fmt.Fprintln(os.Stderr, "Error opening socket to ", host, ":", port, " ", err)
   276      os.Exit(1)
   277    }
   278    
   279    switch cmd {
   280    case "end_apply":
   281      if flag.NArg() - 1 != 0 {
   282        fmt.Fprintln(os.Stderr, "EndApply requires 0 args")
   283        flag.Usage()
   284      }
   285      fmt.Print(client.EndApply(context.Background()))
   286      fmt.Print("\n")
   287      break
   288    case "get_active_producers":
   289      if flag.NArg() - 1 != 0 {
   290        fmt.Fprintln(os.Stderr, "GetActiveProducers requires 0 args")
   291        flag.Usage()
   292      }
   293      fmt.Print(client.GetActiveProducers(context.Background()))
   294      fmt.Print("\n")
   295      break
   296    case "get_resource_limits":
   297      if flag.NArg() - 1 != 1 {
   298        fmt.Fprintln(os.Stderr, "GetResourceLimits requires 1 args")
   299        flag.Usage()
   300      }
   301      arg623 := flag.Arg(1)
   302      mbTrans624 := thrift.NewTMemoryBufferLen(len(arg623))
   303      defer mbTrans624.Close()
   304      _, err625 := mbTrans624.WriteString(arg623)
   305      if err625 != nil {
   306        Usage()
   307        return
   308      }
   309      factory626 := thrift.NewTJSONProtocolFactory()
   310      jsProt627 := factory626.GetProtocol(mbTrans624)
   311      argvalue0 := interfaces.NewUint64()
   312      err628 := argvalue0.Read(context.Background(), jsProt627)
   313      if err628 != nil {
   314        Usage()
   315        return
   316      }
   317      value0 := argvalue0
   318      fmt.Print(client.GetResourceLimits(context.Background(), value0))
   319      fmt.Print("\n")
   320      break
   321    case "set_resource_limits":
   322      if flag.NArg() - 1 != 4 {
   323        fmt.Fprintln(os.Stderr, "SetResourceLimits requires 4 args")
   324        flag.Usage()
   325      }
   326      arg629 := flag.Arg(1)
   327      mbTrans630 := thrift.NewTMemoryBufferLen(len(arg629))
   328      defer mbTrans630.Close()
   329      _, err631 := mbTrans630.WriteString(arg629)
   330      if err631 != nil {
   331        Usage()
   332        return
   333      }
   334      factory632 := thrift.NewTJSONProtocolFactory()
   335      jsProt633 := factory632.GetProtocol(mbTrans630)
   336      argvalue0 := interfaces.NewUint64()
   337      err634 := argvalue0.Read(context.Background(), jsProt633)
   338      if err634 != nil {
   339        Usage()
   340        return
   341      }
   342      value0 := argvalue0
   343      argvalue1, err635 := (strconv.ParseInt(flag.Arg(2), 10, 64))
   344      if err635 != nil {
   345        Usage()
   346        return
   347      }
   348      value1 := argvalue1
   349      argvalue2, err636 := (strconv.ParseInt(flag.Arg(3), 10, 64))
   350      if err636 != nil {
   351        Usage()
   352        return
   353      }
   354      value2 := argvalue2
   355      argvalue3, err637 := (strconv.ParseInt(flag.Arg(4), 10, 64))
   356      if err637 != nil {
   357        Usage()
   358        return
   359      }
   360      value3 := argvalue3
   361      fmt.Print(client.SetResourceLimits(context.Background(), value0, value1, value2, value3))
   362      fmt.Print("\n")
   363      break
   364    case "set_proposed_producers":
   365      if flag.NArg() - 1 != 1 {
   366        fmt.Fprintln(os.Stderr, "SetProposedProducers requires 1 args")
   367        flag.Usage()
   368      }
   369      argvalue0 := []byte(flag.Arg(1))
   370      value0 := argvalue0
   371      fmt.Print(client.SetProposedProducers(context.Background(), value0))
   372      fmt.Print("\n")
   373      break
   374    case "set_proposed_producers_ex":
   375      if flag.NArg() - 1 != 2 {
   376        fmt.Fprintln(os.Stderr, "SetProposedProducersEx requires 2 args")
   377        flag.Usage()
   378      }
   379      arg639 := flag.Arg(1)
   380      mbTrans640 := thrift.NewTMemoryBufferLen(len(arg639))
   381      defer mbTrans640.Close()
   382      _, err641 := mbTrans640.WriteString(arg639)
   383      if err641 != nil {
   384        Usage()
   385        return
   386      }
   387      factory642 := thrift.NewTJSONProtocolFactory()
   388      jsProt643 := factory642.GetProtocol(mbTrans640)
   389      argvalue0 := interfaces.NewUint64()
   390      err644 := argvalue0.Read(context.Background(), jsProt643)
   391      if err644 != nil {
   392        Usage()
   393        return
   394      }
   395      value0 := argvalue0
   396      argvalue1 := []byte(flag.Arg(2))
   397      value1 := argvalue1
   398      fmt.Print(client.SetProposedProducersEx(context.Background(), value0, value1))
   399      fmt.Print("\n")
   400      break
   401    case "is_privileged":
   402      if flag.NArg() - 1 != 1 {
   403        fmt.Fprintln(os.Stderr, "IsPrivileged requires 1 args")
   404        flag.Usage()
   405      }
   406      arg646 := flag.Arg(1)
   407      mbTrans647 := thrift.NewTMemoryBufferLen(len(arg646))
   408      defer mbTrans647.Close()
   409      _, err648 := mbTrans647.WriteString(arg646)
   410      if err648 != nil {
   411        Usage()
   412        return
   413      }
   414      factory649 := thrift.NewTJSONProtocolFactory()
   415      jsProt650 := factory649.GetProtocol(mbTrans647)
   416      argvalue0 := interfaces.NewUint64()
   417      err651 := argvalue0.Read(context.Background(), jsProt650)
   418      if err651 != nil {
   419        Usage()
   420        return
   421      }
   422      value0 := argvalue0
   423      fmt.Print(client.IsPrivileged(context.Background(), value0))
   424      fmt.Print("\n")
   425      break
   426    case "set_privileged":
   427      if flag.NArg() - 1 != 2 {
   428        fmt.Fprintln(os.Stderr, "SetPrivileged requires 2 args")
   429        flag.Usage()
   430      }
   431      arg652 := flag.Arg(1)
   432      mbTrans653 := thrift.NewTMemoryBufferLen(len(arg652))
   433      defer mbTrans653.Close()
   434      _, err654 := mbTrans653.WriteString(arg652)
   435      if err654 != nil {
   436        Usage()
   437        return
   438      }
   439      factory655 := thrift.NewTJSONProtocolFactory()
   440      jsProt656 := factory655.GetProtocol(mbTrans653)
   441      argvalue0 := interfaces.NewUint64()
   442      err657 := argvalue0.Read(context.Background(), jsProt656)
   443      if err657 != nil {
   444        Usage()
   445        return
   446      }
   447      value0 := argvalue0
   448      argvalue1 := flag.Arg(2) == "true"
   449      value1 := argvalue1
   450      fmt.Print(client.SetPrivileged(context.Background(), value0, value1))
   451      fmt.Print("\n")
   452      break
   453    case "set_blockchain_parameters_packed":
   454      if flag.NArg() - 1 != 1 {
   455        fmt.Fprintln(os.Stderr, "SetBlockchainParametersPacked requires 1 args")
   456        flag.Usage()
   457      }
   458      argvalue0 := []byte(flag.Arg(1))
   459      value0 := argvalue0
   460      fmt.Print(client.SetBlockchainParametersPacked(context.Background(), value0))
   461      fmt.Print("\n")
   462      break
   463    case "get_blockchain_parameters_packed":
   464      if flag.NArg() - 1 != 0 {
   465        fmt.Fprintln(os.Stderr, "GetBlockchainParametersPacked requires 0 args")
   466        flag.Usage()
   467      }
   468      fmt.Print(client.GetBlockchainParametersPacked(context.Background()))
   469      fmt.Print("\n")
   470      break
   471    case "preactivate_feature":
   472      if flag.NArg() - 1 != 1 {
   473        fmt.Fprintln(os.Stderr, "PreactivateFeature requires 1 args")
   474        flag.Usage()
   475      }
   476      argvalue0 := []byte(flag.Arg(1))
   477      value0 := argvalue0
   478      fmt.Print(client.PreactivateFeature(context.Background(), value0))
   479      fmt.Print("\n")
   480      break
   481    case "check_transaction_authorization":
   482      if flag.NArg() - 1 != 3 {
   483        fmt.Fprintln(os.Stderr, "CheckTransactionAuthorization requires 3 args")
   484        flag.Usage()
   485      }
   486      argvalue0 := []byte(flag.Arg(1))
   487      value0 := argvalue0
   488      argvalue1 := []byte(flag.Arg(2))
   489      value1 := argvalue1
   490      argvalue2 := []byte(flag.Arg(3))
   491      value2 := argvalue2
   492      fmt.Print(client.CheckTransactionAuthorization(context.Background(), value0, value1, value2))
   493      fmt.Print("\n")
   494      break
   495    case "check_permission_authorization":
   496      if flag.NArg() - 1 != 5 {
   497        fmt.Fprintln(os.Stderr, "CheckPermissionAuthorization requires 5 args")
   498        flag.Usage()
   499      }
   500      arg664 := flag.Arg(1)
   501      mbTrans665 := thrift.NewTMemoryBufferLen(len(arg664))
   502      defer mbTrans665.Close()
   503      _, err666 := mbTrans665.WriteString(arg664)
   504      if err666 != nil {
   505        Usage()
   506        return
   507      }
   508      factory667 := thrift.NewTJSONProtocolFactory()
   509      jsProt668 := factory667.GetProtocol(mbTrans665)
   510      argvalue0 := interfaces.NewUint64()
   511      err669 := argvalue0.Read(context.Background(), jsProt668)
   512      if err669 != nil {
   513        Usage()
   514        return
   515      }
   516      value0 := argvalue0
   517      arg670 := flag.Arg(2)
   518      mbTrans671 := thrift.NewTMemoryBufferLen(len(arg670))
   519      defer mbTrans671.Close()
   520      _, err672 := mbTrans671.WriteString(arg670)
   521      if err672 != nil {
   522        Usage()
   523        return
   524      }
   525      factory673 := thrift.NewTJSONProtocolFactory()
   526      jsProt674 := factory673.GetProtocol(mbTrans671)
   527      argvalue1 := interfaces.NewUint64()
   528      err675 := argvalue1.Read(context.Background(), jsProt674)
   529      if err675 != nil {
   530        Usage()
   531        return
   532      }
   533      value1 := argvalue1
   534      argvalue2 := []byte(flag.Arg(3))
   535      value2 := argvalue2
   536      argvalue3 := []byte(flag.Arg(4))
   537      value3 := argvalue3
   538      arg678 := flag.Arg(5)
   539      mbTrans679 := thrift.NewTMemoryBufferLen(len(arg678))
   540      defer mbTrans679.Close()
   541      _, err680 := mbTrans679.WriteString(arg678)
   542      if err680 != nil {
   543        Usage()
   544        return
   545      }
   546      factory681 := thrift.NewTJSONProtocolFactory()
   547      jsProt682 := factory681.GetProtocol(mbTrans679)
   548      argvalue4 := interfaces.NewUint64()
   549      err683 := argvalue4.Read(context.Background(), jsProt682)
   550      if err683 != nil {
   551        Usage()
   552        return
   553      }
   554      value4 := argvalue4
   555      fmt.Print(client.CheckPermissionAuthorization(context.Background(), value0, value1, value2, value3, value4))
   556      fmt.Print("\n")
   557      break
   558    case "get_permission_last_used":
   559      if flag.NArg() - 1 != 2 {
   560        fmt.Fprintln(os.Stderr, "GetPermissionLastUsed requires 2 args")
   561        flag.Usage()
   562      }
   563      arg684 := flag.Arg(1)
   564      mbTrans685 := thrift.NewTMemoryBufferLen(len(arg684))
   565      defer mbTrans685.Close()
   566      _, err686 := mbTrans685.WriteString(arg684)
   567      if err686 != nil {
   568        Usage()
   569        return
   570      }
   571      factory687 := thrift.NewTJSONProtocolFactory()
   572      jsProt688 := factory687.GetProtocol(mbTrans685)
   573      argvalue0 := interfaces.NewUint64()
   574      err689 := argvalue0.Read(context.Background(), jsProt688)
   575      if err689 != nil {
   576        Usage()
   577        return
   578      }
   579      value0 := argvalue0
   580      arg690 := flag.Arg(2)
   581      mbTrans691 := thrift.NewTMemoryBufferLen(len(arg690))
   582      defer mbTrans691.Close()
   583      _, err692 := mbTrans691.WriteString(arg690)
   584      if err692 != nil {
   585        Usage()
   586        return
   587      }
   588      factory693 := thrift.NewTJSONProtocolFactory()
   589      jsProt694 := factory693.GetProtocol(mbTrans691)
   590      argvalue1 := interfaces.NewUint64()
   591      err695 := argvalue1.Read(context.Background(), jsProt694)
   592      if err695 != nil {
   593        Usage()
   594        return
   595      }
   596      value1 := argvalue1
   597      fmt.Print(client.GetPermissionLastUsed(context.Background(), value0, value1))
   598      fmt.Print("\n")
   599      break
   600    case "get_account_creation_time":
   601      if flag.NArg() - 1 != 1 {
   602        fmt.Fprintln(os.Stderr, "GetAccountCreationTime requires 1 args")
   603        flag.Usage()
   604      }
   605      arg696 := flag.Arg(1)
   606      mbTrans697 := thrift.NewTMemoryBufferLen(len(arg696))
   607      defer mbTrans697.Close()
   608      _, err698 := mbTrans697.WriteString(arg696)
   609      if err698 != nil {
   610        Usage()
   611        return
   612      }
   613      factory699 := thrift.NewTJSONProtocolFactory()
   614      jsProt700 := factory699.GetProtocol(mbTrans697)
   615      argvalue0 := interfaces.NewUint64()
   616      err701 := argvalue0.Read(context.Background(), jsProt700)
   617      if err701 != nil {
   618        Usage()
   619        return
   620      }
   621      value0 := argvalue0
   622      fmt.Print(client.GetAccountCreationTime(context.Background(), value0))
   623      fmt.Print("\n")
   624      break
   625    case "prints":
   626      if flag.NArg() - 1 != 1 {
   627        fmt.Fprintln(os.Stderr, "Prints requires 1 args")
   628        flag.Usage()
   629      }
   630      argvalue0 := flag.Arg(1)
   631      value0 := argvalue0
   632      fmt.Print(client.Prints(context.Background(), value0))
   633      fmt.Print("\n")
   634      break
   635    case "prints_l":
   636      if flag.NArg() - 1 != 1 {
   637        fmt.Fprintln(os.Stderr, "PrintsL requires 1 args")
   638        flag.Usage()
   639      }
   640      argvalue0 := []byte(flag.Arg(1))
   641      value0 := argvalue0
   642      fmt.Print(client.PrintsL(context.Background(), value0))
   643      fmt.Print("\n")
   644      break
   645    case "printi":
   646      if flag.NArg() - 1 != 1 {
   647        fmt.Fprintln(os.Stderr, "Printi requires 1 args")
   648        flag.Usage()
   649      }
   650      argvalue0, err704 := (strconv.ParseInt(flag.Arg(1), 10, 64))
   651      if err704 != nil {
   652        Usage()
   653        return
   654      }
   655      value0 := argvalue0
   656      fmt.Print(client.Printi(context.Background(), value0))
   657      fmt.Print("\n")
   658      break
   659    case "printui":
   660      if flag.NArg() - 1 != 1 {
   661        fmt.Fprintln(os.Stderr, "Printui requires 1 args")
   662        flag.Usage()
   663      }
   664      arg705 := flag.Arg(1)
   665      mbTrans706 := thrift.NewTMemoryBufferLen(len(arg705))
   666      defer mbTrans706.Close()
   667      _, err707 := mbTrans706.WriteString(arg705)
   668      if err707 != nil {
   669        Usage()
   670        return
   671      }
   672      factory708 := thrift.NewTJSONProtocolFactory()
   673      jsProt709 := factory708.GetProtocol(mbTrans706)
   674      argvalue0 := interfaces.NewUint64()
   675      err710 := argvalue0.Read(context.Background(), jsProt709)
   676      if err710 != nil {
   677        Usage()
   678        return
   679      }
   680      value0 := argvalue0
   681      fmt.Print(client.Printui(context.Background(), value0))
   682      fmt.Print("\n")
   683      break
   684    case "printi128":
   685      if flag.NArg() - 1 != 1 {
   686        fmt.Fprintln(os.Stderr, "Printi128 requires 1 args")
   687        flag.Usage()
   688      }
   689      argvalue0 := []byte(flag.Arg(1))
   690      value0 := argvalue0
   691      fmt.Print(client.Printi128(context.Background(), value0))
   692      fmt.Print("\n")
   693      break
   694    case "printui128":
   695      if flag.NArg() - 1 != 1 {
   696        fmt.Fprintln(os.Stderr, "Printui128 requires 1 args")
   697        flag.Usage()
   698      }
   699      argvalue0 := []byte(flag.Arg(1))
   700      value0 := argvalue0
   701      fmt.Print(client.Printui128(context.Background(), value0))
   702      fmt.Print("\n")
   703      break
   704    case "printsf":
   705      if flag.NArg() - 1 != 1 {
   706        fmt.Fprintln(os.Stderr, "Printsf requires 1 args")
   707        flag.Usage()
   708      }
   709      argvalue0 := []byte(flag.Arg(1))
   710      value0 := argvalue0
   711      fmt.Print(client.Printsf(context.Background(), value0))
   712      fmt.Print("\n")
   713      break
   714    case "printdf":
   715      if flag.NArg() - 1 != 1 {
   716        fmt.Fprintln(os.Stderr, "Printdf requires 1 args")
   717        flag.Usage()
   718      }
   719      argvalue0 := []byte(flag.Arg(1))
   720      value0 := argvalue0
   721      fmt.Print(client.Printdf(context.Background(), value0))
   722      fmt.Print("\n")
   723      break
   724    case "printqf":
   725      if flag.NArg() - 1 != 1 {
   726        fmt.Fprintln(os.Stderr, "Printqf requires 1 args")
   727        flag.Usage()
   728      }
   729      argvalue0 := []byte(flag.Arg(1))
   730      value0 := argvalue0
   731      fmt.Print(client.Printqf(context.Background(), value0))
   732      fmt.Print("\n")
   733      break
   734    case "printn":
   735      if flag.NArg() - 1 != 1 {
   736        fmt.Fprintln(os.Stderr, "Printn requires 1 args")
   737        flag.Usage()
   738      }
   739      arg716 := flag.Arg(1)
   740      mbTrans717 := thrift.NewTMemoryBufferLen(len(arg716))
   741      defer mbTrans717.Close()
   742      _, err718 := mbTrans717.WriteString(arg716)
   743      if err718 != nil {
   744        Usage()
   745        return
   746      }
   747      factory719 := thrift.NewTJSONProtocolFactory()
   748      jsProt720 := factory719.GetProtocol(mbTrans717)
   749      argvalue0 := interfaces.NewUint64()
   750      err721 := argvalue0.Read(context.Background(), jsProt720)
   751      if err721 != nil {
   752        Usage()
   753        return
   754      }
   755      value0 := argvalue0
   756      fmt.Print(client.Printn(context.Background(), value0))
   757      fmt.Print("\n")
   758      break
   759    case "printhex":
   760      if flag.NArg() - 1 != 1 {
   761        fmt.Fprintln(os.Stderr, "Printhex requires 1 args")
   762        flag.Usage()
   763      }
   764      argvalue0 := []byte(flag.Arg(1))
   765      value0 := argvalue0
   766      fmt.Print(client.Printhex(context.Background(), value0))
   767      fmt.Print("\n")
   768      break
   769    case "action_data_size":
   770      if flag.NArg() - 1 != 0 {
   771        fmt.Fprintln(os.Stderr, "ActionDataSize requires 0 args")
   772        flag.Usage()
   773      }
   774      fmt.Print(client.ActionDataSize(context.Background()))
   775      fmt.Print("\n")
   776      break
   777    case "read_action_data":
   778      if flag.NArg() - 1 != 0 {
   779        fmt.Fprintln(os.Stderr, "ReadActionData requires 0 args")
   780        flag.Usage()
   781      }
   782      fmt.Print(client.ReadActionData(context.Background()))
   783      fmt.Print("\n")
   784      break
   785    case "require_recipient":
   786      if flag.NArg() - 1 != 1 {
   787        fmt.Fprintln(os.Stderr, "RequireRecipient requires 1 args")
   788        flag.Usage()
   789      }
   790      arg723 := flag.Arg(1)
   791      mbTrans724 := thrift.NewTMemoryBufferLen(len(arg723))
   792      defer mbTrans724.Close()
   793      _, err725 := mbTrans724.WriteString(arg723)
   794      if err725 != nil {
   795        Usage()
   796        return
   797      }
   798      factory726 := thrift.NewTJSONProtocolFactory()
   799      jsProt727 := factory726.GetProtocol(mbTrans724)
   800      argvalue0 := interfaces.NewUint64()
   801      err728 := argvalue0.Read(context.Background(), jsProt727)
   802      if err728 != nil {
   803        Usage()
   804        return
   805      }
   806      value0 := argvalue0
   807      fmt.Print(client.RequireRecipient(context.Background(), value0))
   808      fmt.Print("\n")
   809      break
   810    case "require_auth":
   811      if flag.NArg() - 1 != 1 {
   812        fmt.Fprintln(os.Stderr, "RequireAuth requires 1 args")
   813        flag.Usage()
   814      }
   815      arg729 := flag.Arg(1)
   816      mbTrans730 := thrift.NewTMemoryBufferLen(len(arg729))
   817      defer mbTrans730.Close()
   818      _, err731 := mbTrans730.WriteString(arg729)
   819      if err731 != nil {
   820        Usage()
   821        return
   822      }
   823      factory732 := thrift.NewTJSONProtocolFactory()
   824      jsProt733 := factory732.GetProtocol(mbTrans730)
   825      argvalue0 := interfaces.NewUint64()
   826      err734 := argvalue0.Read(context.Background(), jsProt733)
   827      if err734 != nil {
   828        Usage()
   829        return
   830      }
   831      value0 := argvalue0
   832      fmt.Print(client.RequireAuth(context.Background(), value0))
   833      fmt.Print("\n")
   834      break
   835    case "has_auth":
   836      if flag.NArg() - 1 != 1 {
   837        fmt.Fprintln(os.Stderr, "HasAuth requires 1 args")
   838        flag.Usage()
   839      }
   840      arg735 := flag.Arg(1)
   841      mbTrans736 := thrift.NewTMemoryBufferLen(len(arg735))
   842      defer mbTrans736.Close()
   843      _, err737 := mbTrans736.WriteString(arg735)
   844      if err737 != nil {
   845        Usage()
   846        return
   847      }
   848      factory738 := thrift.NewTJSONProtocolFactory()
   849      jsProt739 := factory738.GetProtocol(mbTrans736)
   850      argvalue0 := interfaces.NewUint64()
   851      err740 := argvalue0.Read(context.Background(), jsProt739)
   852      if err740 != nil {
   853        Usage()
   854        return
   855      }
   856      value0 := argvalue0
   857      fmt.Print(client.HasAuth(context.Background(), value0))
   858      fmt.Print("\n")
   859      break
   860    case "require_auth2":
   861      if flag.NArg() - 1 != 2 {
   862        fmt.Fprintln(os.Stderr, "RequireAuth2 requires 2 args")
   863        flag.Usage()
   864      }
   865      arg741 := flag.Arg(1)
   866      mbTrans742 := thrift.NewTMemoryBufferLen(len(arg741))
   867      defer mbTrans742.Close()
   868      _, err743 := mbTrans742.WriteString(arg741)
   869      if err743 != nil {
   870        Usage()
   871        return
   872      }
   873      factory744 := thrift.NewTJSONProtocolFactory()
   874      jsProt745 := factory744.GetProtocol(mbTrans742)
   875      argvalue0 := interfaces.NewUint64()
   876      err746 := argvalue0.Read(context.Background(), jsProt745)
   877      if err746 != nil {
   878        Usage()
   879        return
   880      }
   881      value0 := argvalue0
   882      arg747 := flag.Arg(2)
   883      mbTrans748 := thrift.NewTMemoryBufferLen(len(arg747))
   884      defer mbTrans748.Close()
   885      _, err749 := mbTrans748.WriteString(arg747)
   886      if err749 != nil {
   887        Usage()
   888        return
   889      }
   890      factory750 := thrift.NewTJSONProtocolFactory()
   891      jsProt751 := factory750.GetProtocol(mbTrans748)
   892      argvalue1 := interfaces.NewUint64()
   893      err752 := argvalue1.Read(context.Background(), jsProt751)
   894      if err752 != nil {
   895        Usage()
   896        return
   897      }
   898      value1 := argvalue1
   899      fmt.Print(client.RequireAuth2(context.Background(), value0, value1))
   900      fmt.Print("\n")
   901      break
   902    case "is_account":
   903      if flag.NArg() - 1 != 1 {
   904        fmt.Fprintln(os.Stderr, "IsAccount requires 1 args")
   905        flag.Usage()
   906      }
   907      arg753 := flag.Arg(1)
   908      mbTrans754 := thrift.NewTMemoryBufferLen(len(arg753))
   909      defer mbTrans754.Close()
   910      _, err755 := mbTrans754.WriteString(arg753)
   911      if err755 != nil {
   912        Usage()
   913        return
   914      }
   915      factory756 := thrift.NewTJSONProtocolFactory()
   916      jsProt757 := factory756.GetProtocol(mbTrans754)
   917      argvalue0 := interfaces.NewUint64()
   918      err758 := argvalue0.Read(context.Background(), jsProt757)
   919      if err758 != nil {
   920        Usage()
   921        return
   922      }
   923      value0 := argvalue0
   924      fmt.Print(client.IsAccount(context.Background(), value0))
   925      fmt.Print("\n")
   926      break
   927    case "send_inline":
   928      if flag.NArg() - 1 != 1 {
   929        fmt.Fprintln(os.Stderr, "SendInline requires 1 args")
   930        flag.Usage()
   931      }
   932      argvalue0 := []byte(flag.Arg(1))
   933      value0 := argvalue0
   934      fmt.Print(client.SendInline(context.Background(), value0))
   935      fmt.Print("\n")
   936      break
   937    case "send_context_free_inline":
   938      if flag.NArg() - 1 != 1 {
   939        fmt.Fprintln(os.Stderr, "SendContextFreeInline requires 1 args")
   940        flag.Usage()
   941      }
   942      argvalue0 := []byte(flag.Arg(1))
   943      value0 := argvalue0
   944      fmt.Print(client.SendContextFreeInline(context.Background(), value0))
   945      fmt.Print("\n")
   946      break
   947    case "publication_time":
   948      if flag.NArg() - 1 != 0 {
   949        fmt.Fprintln(os.Stderr, "PublicationTime requires 0 args")
   950        flag.Usage()
   951      }
   952      fmt.Print(client.PublicationTime(context.Background()))
   953      fmt.Print("\n")
   954      break
   955    case "current_receiver":
   956      if flag.NArg() - 1 != 0 {
   957        fmt.Fprintln(os.Stderr, "CurrentReceiver requires 0 args")
   958        flag.Usage()
   959      }
   960      fmt.Print(client.CurrentReceiver(context.Background()))
   961      fmt.Print("\n")
   962      break
   963    case "eosio_assert":
   964      if flag.NArg() - 1 != 2 {
   965        fmt.Fprintln(os.Stderr, "EosioAssert requires 2 args")
   966        flag.Usage()
   967      }
   968      argvalue0 := flag.Arg(1) == "true"
   969      value0 := argvalue0
   970      argvalue1 := []byte(flag.Arg(2))
   971      value1 := argvalue1
   972      fmt.Print(client.EosioAssert(context.Background(), value0, value1))
   973      fmt.Print("\n")
   974      break
   975    case "eosio_assert_message":
   976      if flag.NArg() - 1 != 2 {
   977        fmt.Fprintln(os.Stderr, "EosioAssertMessage requires 2 args")
   978        flag.Usage()
   979      }
   980      argvalue0 := flag.Arg(1) == "true"
   981      value0 := argvalue0
   982      argvalue1 := []byte(flag.Arg(2))
   983      value1 := argvalue1
   984      fmt.Print(client.EosioAssertMessage(context.Background(), value0, value1))
   985      fmt.Print("\n")
   986      break
   987    case "eosio_assert_code":
   988      if flag.NArg() - 1 != 2 {
   989        fmt.Fprintln(os.Stderr, "EosioAssertCode requires 2 args")
   990        flag.Usage()
   991      }
   992      argvalue0 := flag.Arg(1) == "true"
   993      value0 := argvalue0
   994      arg766 := flag.Arg(2)
   995      mbTrans767 := thrift.NewTMemoryBufferLen(len(arg766))
   996      defer mbTrans767.Close()
   997      _, err768 := mbTrans767.WriteString(arg766)
   998      if err768 != nil {
   999        Usage()
  1000        return
  1001      }
  1002      factory769 := thrift.NewTJSONProtocolFactory()
  1003      jsProt770 := factory769.GetProtocol(mbTrans767)
  1004      argvalue1 := interfaces.NewUint64()
  1005      err771 := argvalue1.Read(context.Background(), jsProt770)
  1006      if err771 != nil {
  1007        Usage()
  1008        return
  1009      }
  1010      value1 := argvalue1
  1011      fmt.Print(client.EosioAssertCode(context.Background(), value0, value1))
  1012      fmt.Print("\n")
  1013      break
  1014    case "eosio_exit":
  1015      if flag.NArg() - 1 != 1 {
  1016        fmt.Fprintln(os.Stderr, "EosioExit requires 1 args")
  1017        flag.Usage()
  1018      }
  1019      tmp0, err772 := (strconv.Atoi(flag.Arg(1)))
  1020      if err772 != nil {
  1021        Usage()
  1022        return
  1023      }
  1024      argvalue0 := int32(tmp0)
  1025      value0 := argvalue0
  1026      fmt.Print(client.EosioExit(context.Background(), value0))
  1027      fmt.Print("\n")
  1028      break
  1029    case "current_time":
  1030      if flag.NArg() - 1 != 0 {
  1031        fmt.Fprintln(os.Stderr, "CurrentTime requires 0 args")
  1032        flag.Usage()
  1033      }
  1034      fmt.Print(client.CurrentTime(context.Background()))
  1035      fmt.Print("\n")
  1036      break
  1037    case "is_feature_activated":
  1038      if flag.NArg() - 1 != 1 {
  1039        fmt.Fprintln(os.Stderr, "IsFeatureActivated requires 1 args")
  1040        flag.Usage()
  1041      }
  1042      argvalue0 := []byte(flag.Arg(1))
  1043      value0 := argvalue0
  1044      fmt.Print(client.IsFeatureActivated(context.Background(), value0))
  1045      fmt.Print("\n")
  1046      break
  1047    case "get_sender":
  1048      if flag.NArg() - 1 != 0 {
  1049        fmt.Fprintln(os.Stderr, "GetSender requires 0 args")
  1050        flag.Usage()
  1051      }
  1052      fmt.Print(client.GetSender(context.Background()))
  1053      fmt.Print("\n")
  1054      break
  1055    case "assert_sha256":
  1056      if flag.NArg() - 1 != 2 {
  1057        fmt.Fprintln(os.Stderr, "AssertSha256 requires 2 args")
  1058        flag.Usage()
  1059      }
  1060      argvalue0 := []byte(flag.Arg(1))
  1061      value0 := argvalue0
  1062      argvalue1 := []byte(flag.Arg(2))
  1063      value1 := argvalue1
  1064      fmt.Print(client.AssertSha256(context.Background(), value0, value1))
  1065      fmt.Print("\n")
  1066      break
  1067    case "assert_sha1":
  1068      if flag.NArg() - 1 != 2 {
  1069        fmt.Fprintln(os.Stderr, "AssertSha1 requires 2 args")
  1070        flag.Usage()
  1071      }
  1072      argvalue0 := []byte(flag.Arg(1))
  1073      value0 := argvalue0
  1074      argvalue1 := []byte(flag.Arg(2))
  1075      value1 := argvalue1
  1076      fmt.Print(client.AssertSha1(context.Background(), value0, value1))
  1077      fmt.Print("\n")
  1078      break
  1079    case "assert_sha512":
  1080      if flag.NArg() - 1 != 2 {
  1081        fmt.Fprintln(os.Stderr, "AssertSha512 requires 2 args")
  1082        flag.Usage()
  1083      }
  1084      argvalue0 := []byte(flag.Arg(1))
  1085      value0 := argvalue0
  1086      argvalue1 := []byte(flag.Arg(2))
  1087      value1 := argvalue1
  1088      fmt.Print(client.AssertSha512(context.Background(), value0, value1))
  1089      fmt.Print("\n")
  1090      break
  1091    case "assert_ripemd160":
  1092      if flag.NArg() - 1 != 2 {
  1093        fmt.Fprintln(os.Stderr, "AssertRipemd160 requires 2 args")
  1094        flag.Usage()
  1095      }
  1096      argvalue0 := []byte(flag.Arg(1))
  1097      value0 := argvalue0
  1098      argvalue1 := []byte(flag.Arg(2))
  1099      value1 := argvalue1
  1100      fmt.Print(client.AssertRipemd160(context.Background(), value0, value1))
  1101      fmt.Print("\n")
  1102      break
  1103    case "sha256":
  1104      if flag.NArg() - 1 != 1 {
  1105        fmt.Fprintln(os.Stderr, "Sha256 requires 1 args")
  1106        flag.Usage()
  1107      }
  1108      argvalue0 := []byte(flag.Arg(1))
  1109      value0 := argvalue0
  1110      fmt.Print(client.Sha256(context.Background(), value0))
  1111      fmt.Print("\n")
  1112      break
  1113    case "sha1":
  1114      if flag.NArg() - 1 != 1 {
  1115        fmt.Fprintln(os.Stderr, "Sha1 requires 1 args")
  1116        flag.Usage()
  1117      }
  1118      argvalue0 := []byte(flag.Arg(1))
  1119      value0 := argvalue0
  1120      fmt.Print(client.Sha1(context.Background(), value0))
  1121      fmt.Print("\n")
  1122      break
  1123    case "sha512":
  1124      if flag.NArg() - 1 != 1 {
  1125        fmt.Fprintln(os.Stderr, "Sha512 requires 1 args")
  1126        flag.Usage()
  1127      }
  1128      argvalue0 := []byte(flag.Arg(1))
  1129      value0 := argvalue0
  1130      fmt.Print(client.Sha512(context.Background(), value0))
  1131      fmt.Print("\n")
  1132      break
  1133    case "ripemd160":
  1134      if flag.NArg() - 1 != 1 {
  1135        fmt.Fprintln(os.Stderr, "Ripemd160 requires 1 args")
  1136        flag.Usage()
  1137      }
  1138      argvalue0 := []byte(flag.Arg(1))
  1139      value0 := argvalue0
  1140      fmt.Print(client.Ripemd160(context.Background(), value0))
  1141      fmt.Print("\n")
  1142      break
  1143    case "recover_key":
  1144      if flag.NArg() - 1 != 2 {
  1145        fmt.Fprintln(os.Stderr, "RecoverKey requires 2 args")
  1146        flag.Usage()
  1147      }
  1148      argvalue0 := []byte(flag.Arg(1))
  1149      value0 := argvalue0
  1150      argvalue1 := []byte(flag.Arg(2))
  1151      value1 := argvalue1
  1152      fmt.Print(client.RecoverKey(context.Background(), value0, value1))
  1153      fmt.Print("\n")
  1154      break
  1155    case "assert_recover_key":
  1156      if flag.NArg() - 1 != 3 {
  1157        fmt.Fprintln(os.Stderr, "AssertRecoverKey requires 3 args")
  1158        flag.Usage()
  1159      }
  1160      argvalue0 := []byte(flag.Arg(1))
  1161      value0 := argvalue0
  1162      argvalue1 := []byte(flag.Arg(2))
  1163      value1 := argvalue1
  1164      argvalue2 := []byte(flag.Arg(3))
  1165      value2 := argvalue2
  1166      fmt.Print(client.AssertRecoverKey(context.Background(), value0, value1, value2))
  1167      fmt.Print("\n")
  1168      break
  1169    case "send_deferred":
  1170      if flag.NArg() - 1 != 4 {
  1171        fmt.Fprintln(os.Stderr, "SendDeferred requires 4 args")
  1172        flag.Usage()
  1173      }
  1174      argvalue0 := []byte(flag.Arg(1))
  1175      value0 := argvalue0
  1176      arg792 := flag.Arg(2)
  1177      mbTrans793 := thrift.NewTMemoryBufferLen(len(arg792))
  1178      defer mbTrans793.Close()
  1179      _, err794 := mbTrans793.WriteString(arg792)
  1180      if err794 != nil {
  1181        Usage()
  1182        return
  1183      }
  1184      factory795 := thrift.NewTJSONProtocolFactory()
  1185      jsProt796 := factory795.GetProtocol(mbTrans793)
  1186      argvalue1 := interfaces.NewUint64()
  1187      err797 := argvalue1.Read(context.Background(), jsProt796)
  1188      if err797 != nil {
  1189        Usage()
  1190        return
  1191      }
  1192      value1 := argvalue1
  1193      argvalue2 := []byte(flag.Arg(3))
  1194      value2 := argvalue2
  1195      tmp3, err799 := (strconv.Atoi(flag.Arg(4)))
  1196      if err799 != nil {
  1197        Usage()
  1198        return
  1199      }
  1200      argvalue3 := int32(tmp3)
  1201      value3 := argvalue3
  1202      fmt.Print(client.SendDeferred(context.Background(), value0, value1, value2, value3))
  1203      fmt.Print("\n")
  1204      break
  1205    case "cancel_deferred":
  1206      if flag.NArg() - 1 != 1 {
  1207        fmt.Fprintln(os.Stderr, "CancelDeferred requires 1 args")
  1208        flag.Usage()
  1209      }
  1210      argvalue0 := []byte(flag.Arg(1))
  1211      value0 := argvalue0
  1212      fmt.Print(client.CancelDeferred(context.Background(), value0))
  1213      fmt.Print("\n")
  1214      break
  1215    case "read_transaction":
  1216      if flag.NArg() - 1 != 0 {
  1217        fmt.Fprintln(os.Stderr, "ReadTransaction requires 0 args")
  1218        flag.Usage()
  1219      }
  1220      fmt.Print(client.ReadTransaction(context.Background()))
  1221      fmt.Print("\n")
  1222      break
  1223    case "transaction_size":
  1224      if flag.NArg() - 1 != 0 {
  1225        fmt.Fprintln(os.Stderr, "TransactionSize requires 0 args")
  1226        flag.Usage()
  1227      }
  1228      fmt.Print(client.TransactionSize(context.Background()))
  1229      fmt.Print("\n")
  1230      break
  1231    case "tapos_block_num":
  1232      if flag.NArg() - 1 != 0 {
  1233        fmt.Fprintln(os.Stderr, "TaposBlockNum requires 0 args")
  1234        flag.Usage()
  1235      }
  1236      fmt.Print(client.TaposBlockNum(context.Background()))
  1237      fmt.Print("\n")
  1238      break
  1239    case "tapos_block_prefix":
  1240      if flag.NArg() - 1 != 0 {
  1241        fmt.Fprintln(os.Stderr, "TaposBlockPrefix requires 0 args")
  1242        flag.Usage()
  1243      }
  1244      fmt.Print(client.TaposBlockPrefix(context.Background()))
  1245      fmt.Print("\n")
  1246      break
  1247    case "expiration":
  1248      if flag.NArg() - 1 != 0 {
  1249        fmt.Fprintln(os.Stderr, "Expiration requires 0 args")
  1250        flag.Usage()
  1251      }
  1252      fmt.Print(client.Expiration(context.Background()))
  1253      fmt.Print("\n")
  1254      break
  1255    case "get_action":
  1256      if flag.NArg() - 1 != 2 {
  1257        fmt.Fprintln(os.Stderr, "GetAction requires 2 args")
  1258        flag.Usage()
  1259      }
  1260      tmp0, err801 := (strconv.Atoi(flag.Arg(1)))
  1261      if err801 != nil {
  1262        Usage()
  1263        return
  1264      }
  1265      argvalue0 := int32(tmp0)
  1266      value0 := argvalue0
  1267      tmp1, err802 := (strconv.Atoi(flag.Arg(2)))
  1268      if err802 != nil {
  1269        Usage()
  1270        return
  1271      }
  1272      argvalue1 := int32(tmp1)
  1273      value1 := argvalue1
  1274      fmt.Print(client.GetAction(context.Background(), value0, value1))
  1275      fmt.Print("\n")
  1276      break
  1277    case "get_context_free_data":
  1278      if flag.NArg() - 1 != 1 {
  1279        fmt.Fprintln(os.Stderr, "GetContextFreeData requires 1 args")
  1280        flag.Usage()
  1281      }
  1282      tmp0, err803 := (strconv.Atoi(flag.Arg(1)))
  1283      if err803 != nil {
  1284        Usage()
  1285        return
  1286      }
  1287      argvalue0 := int32(tmp0)
  1288      value0 := argvalue0
  1289      fmt.Print(client.GetContextFreeData(context.Background(), value0))
  1290      fmt.Print("\n")
  1291      break
  1292    case "db_store_i64":
  1293      if flag.NArg() - 1 != 5 {
  1294        fmt.Fprintln(os.Stderr, "DbStoreI64 requires 5 args")
  1295        flag.Usage()
  1296      }
  1297      arg804 := flag.Arg(1)
  1298      mbTrans805 := thrift.NewTMemoryBufferLen(len(arg804))
  1299      defer mbTrans805.Close()
  1300      _, err806 := mbTrans805.WriteString(arg804)
  1301      if err806 != nil {
  1302        Usage()
  1303        return
  1304      }
  1305      factory807 := thrift.NewTJSONProtocolFactory()
  1306      jsProt808 := factory807.GetProtocol(mbTrans805)
  1307      argvalue0 := interfaces.NewUint64()
  1308      err809 := argvalue0.Read(context.Background(), jsProt808)
  1309      if err809 != nil {
  1310        Usage()
  1311        return
  1312      }
  1313      value0 := argvalue0
  1314      arg810 := flag.Arg(2)
  1315      mbTrans811 := thrift.NewTMemoryBufferLen(len(arg810))
  1316      defer mbTrans811.Close()
  1317      _, err812 := mbTrans811.WriteString(arg810)
  1318      if err812 != nil {
  1319        Usage()
  1320        return
  1321      }
  1322      factory813 := thrift.NewTJSONProtocolFactory()
  1323      jsProt814 := factory813.GetProtocol(mbTrans811)
  1324      argvalue1 := interfaces.NewUint64()
  1325      err815 := argvalue1.Read(context.Background(), jsProt814)
  1326      if err815 != nil {
  1327        Usage()
  1328        return
  1329      }
  1330      value1 := argvalue1
  1331      arg816 := flag.Arg(3)
  1332      mbTrans817 := thrift.NewTMemoryBufferLen(len(arg816))
  1333      defer mbTrans817.Close()
  1334      _, err818 := mbTrans817.WriteString(arg816)
  1335      if err818 != nil {
  1336        Usage()
  1337        return
  1338      }
  1339      factory819 := thrift.NewTJSONProtocolFactory()
  1340      jsProt820 := factory819.GetProtocol(mbTrans817)
  1341      argvalue2 := interfaces.NewUint64()
  1342      err821 := argvalue2.Read(context.Background(), jsProt820)
  1343      if err821 != nil {
  1344        Usage()
  1345        return
  1346      }
  1347      value2 := argvalue2
  1348      arg822 := flag.Arg(4)
  1349      mbTrans823 := thrift.NewTMemoryBufferLen(len(arg822))
  1350      defer mbTrans823.Close()
  1351      _, err824 := mbTrans823.WriteString(arg822)
  1352      if err824 != nil {
  1353        Usage()
  1354        return
  1355      }
  1356      factory825 := thrift.NewTJSONProtocolFactory()
  1357      jsProt826 := factory825.GetProtocol(mbTrans823)
  1358      argvalue3 := interfaces.NewUint64()
  1359      err827 := argvalue3.Read(context.Background(), jsProt826)
  1360      if err827 != nil {
  1361        Usage()
  1362        return
  1363      }
  1364      value3 := argvalue3
  1365      argvalue4 := []byte(flag.Arg(5))
  1366      value4 := argvalue4
  1367      fmt.Print(client.DbStoreI64(context.Background(), value0, value1, value2, value3, value4))
  1368      fmt.Print("\n")
  1369      break
  1370    case "db_update_i64":
  1371      if flag.NArg() - 1 != 3 {
  1372        fmt.Fprintln(os.Stderr, "DbUpdateI64 requires 3 args")
  1373        flag.Usage()
  1374      }
  1375      tmp0, err829 := (strconv.Atoi(flag.Arg(1)))
  1376      if err829 != nil {
  1377        Usage()
  1378        return
  1379      }
  1380      argvalue0 := int32(tmp0)
  1381      value0 := argvalue0
  1382      arg830 := flag.Arg(2)
  1383      mbTrans831 := thrift.NewTMemoryBufferLen(len(arg830))
  1384      defer mbTrans831.Close()
  1385      _, err832 := mbTrans831.WriteString(arg830)
  1386      if err832 != nil {
  1387        Usage()
  1388        return
  1389      }
  1390      factory833 := thrift.NewTJSONProtocolFactory()
  1391      jsProt834 := factory833.GetProtocol(mbTrans831)
  1392      argvalue1 := interfaces.NewUint64()
  1393      err835 := argvalue1.Read(context.Background(), jsProt834)
  1394      if err835 != nil {
  1395        Usage()
  1396        return
  1397      }
  1398      value1 := argvalue1
  1399      argvalue2 := []byte(flag.Arg(3))
  1400      value2 := argvalue2
  1401      fmt.Print(client.DbUpdateI64(context.Background(), value0, value1, value2))
  1402      fmt.Print("\n")
  1403      break
  1404    case "db_remove_i64":
  1405      if flag.NArg() - 1 != 1 {
  1406        fmt.Fprintln(os.Stderr, "DbRemoveI64 requires 1 args")
  1407        flag.Usage()
  1408      }
  1409      tmp0, err837 := (strconv.Atoi(flag.Arg(1)))
  1410      if err837 != nil {
  1411        Usage()
  1412        return
  1413      }
  1414      argvalue0 := int32(tmp0)
  1415      value0 := argvalue0
  1416      fmt.Print(client.DbRemoveI64(context.Background(), value0))
  1417      fmt.Print("\n")
  1418      break
  1419    case "db_get_i64":
  1420      if flag.NArg() - 1 != 1 {
  1421        fmt.Fprintln(os.Stderr, "DbGetI64 requires 1 args")
  1422        flag.Usage()
  1423      }
  1424      tmp0, err838 := (strconv.Atoi(flag.Arg(1)))
  1425      if err838 != nil {
  1426        Usage()
  1427        return
  1428      }
  1429      argvalue0 := int32(tmp0)
  1430      value0 := argvalue0
  1431      fmt.Print(client.DbGetI64(context.Background(), value0))
  1432      fmt.Print("\n")
  1433      break
  1434    case "db_next_i64":
  1435      if flag.NArg() - 1 != 1 {
  1436        fmt.Fprintln(os.Stderr, "DbNextI64 requires 1 args")
  1437        flag.Usage()
  1438      }
  1439      tmp0, err839 := (strconv.Atoi(flag.Arg(1)))
  1440      if err839 != nil {
  1441        Usage()
  1442        return
  1443      }
  1444      argvalue0 := int32(tmp0)
  1445      value0 := argvalue0
  1446      fmt.Print(client.DbNextI64(context.Background(), value0))
  1447      fmt.Print("\n")
  1448      break
  1449    case "db_previous_i64":
  1450      if flag.NArg() - 1 != 1 {
  1451        fmt.Fprintln(os.Stderr, "DbPreviousI64 requires 1 args")
  1452        flag.Usage()
  1453      }
  1454      tmp0, err840 := (strconv.Atoi(flag.Arg(1)))
  1455      if err840 != nil {
  1456        Usage()
  1457        return
  1458      }
  1459      argvalue0 := int32(tmp0)
  1460      value0 := argvalue0
  1461      fmt.Print(client.DbPreviousI64(context.Background(), value0))
  1462      fmt.Print("\n")
  1463      break
  1464    case "db_find_i64":
  1465      if flag.NArg() - 1 != 4 {
  1466        fmt.Fprintln(os.Stderr, "DbFindI64 requires 4 args")
  1467        flag.Usage()
  1468      }
  1469      arg841 := flag.Arg(1)
  1470      mbTrans842 := thrift.NewTMemoryBufferLen(len(arg841))
  1471      defer mbTrans842.Close()
  1472      _, err843 := mbTrans842.WriteString(arg841)
  1473      if err843 != nil {
  1474        Usage()
  1475        return
  1476      }
  1477      factory844 := thrift.NewTJSONProtocolFactory()
  1478      jsProt845 := factory844.GetProtocol(mbTrans842)
  1479      argvalue0 := interfaces.NewUint64()
  1480      err846 := argvalue0.Read(context.Background(), jsProt845)
  1481      if err846 != nil {
  1482        Usage()
  1483        return
  1484      }
  1485      value0 := argvalue0
  1486      arg847 := flag.Arg(2)
  1487      mbTrans848 := thrift.NewTMemoryBufferLen(len(arg847))
  1488      defer mbTrans848.Close()
  1489      _, err849 := mbTrans848.WriteString(arg847)
  1490      if err849 != nil {
  1491        Usage()
  1492        return
  1493      }
  1494      factory850 := thrift.NewTJSONProtocolFactory()
  1495      jsProt851 := factory850.GetProtocol(mbTrans848)
  1496      argvalue1 := interfaces.NewUint64()
  1497      err852 := argvalue1.Read(context.Background(), jsProt851)
  1498      if err852 != nil {
  1499        Usage()
  1500        return
  1501      }
  1502      value1 := argvalue1
  1503      arg853 := flag.Arg(3)
  1504      mbTrans854 := thrift.NewTMemoryBufferLen(len(arg853))
  1505      defer mbTrans854.Close()
  1506      _, err855 := mbTrans854.WriteString(arg853)
  1507      if err855 != nil {
  1508        Usage()
  1509        return
  1510      }
  1511      factory856 := thrift.NewTJSONProtocolFactory()
  1512      jsProt857 := factory856.GetProtocol(mbTrans854)
  1513      argvalue2 := interfaces.NewUint64()
  1514      err858 := argvalue2.Read(context.Background(), jsProt857)
  1515      if err858 != nil {
  1516        Usage()
  1517        return
  1518      }
  1519      value2 := argvalue2
  1520      arg859 := flag.Arg(4)
  1521      mbTrans860 := thrift.NewTMemoryBufferLen(len(arg859))
  1522      defer mbTrans860.Close()
  1523      _, err861 := mbTrans860.WriteString(arg859)
  1524      if err861 != nil {
  1525        Usage()
  1526        return
  1527      }
  1528      factory862 := thrift.NewTJSONProtocolFactory()
  1529      jsProt863 := factory862.GetProtocol(mbTrans860)
  1530      argvalue3 := interfaces.NewUint64()
  1531      err864 := argvalue3.Read(context.Background(), jsProt863)
  1532      if err864 != nil {
  1533        Usage()
  1534        return
  1535      }
  1536      value3 := argvalue3
  1537      fmt.Print(client.DbFindI64(context.Background(), value0, value1, value2, value3))
  1538      fmt.Print("\n")
  1539      break
  1540    case "db_lowerbound_i64":
  1541      if flag.NArg() - 1 != 4 {
  1542        fmt.Fprintln(os.Stderr, "DbLowerboundI64 requires 4 args")
  1543        flag.Usage()
  1544      }
  1545      arg865 := flag.Arg(1)
  1546      mbTrans866 := thrift.NewTMemoryBufferLen(len(arg865))
  1547      defer mbTrans866.Close()
  1548      _, err867 := mbTrans866.WriteString(arg865)
  1549      if err867 != nil {
  1550        Usage()
  1551        return
  1552      }
  1553      factory868 := thrift.NewTJSONProtocolFactory()
  1554      jsProt869 := factory868.GetProtocol(mbTrans866)
  1555      argvalue0 := interfaces.NewUint64()
  1556      err870 := argvalue0.Read(context.Background(), jsProt869)
  1557      if err870 != nil {
  1558        Usage()
  1559        return
  1560      }
  1561      value0 := argvalue0
  1562      arg871 := flag.Arg(2)
  1563      mbTrans872 := thrift.NewTMemoryBufferLen(len(arg871))
  1564      defer mbTrans872.Close()
  1565      _, err873 := mbTrans872.WriteString(arg871)
  1566      if err873 != nil {
  1567        Usage()
  1568        return
  1569      }
  1570      factory874 := thrift.NewTJSONProtocolFactory()
  1571      jsProt875 := factory874.GetProtocol(mbTrans872)
  1572      argvalue1 := interfaces.NewUint64()
  1573      err876 := argvalue1.Read(context.Background(), jsProt875)
  1574      if err876 != nil {
  1575        Usage()
  1576        return
  1577      }
  1578      value1 := argvalue1
  1579      arg877 := flag.Arg(3)
  1580      mbTrans878 := thrift.NewTMemoryBufferLen(len(arg877))
  1581      defer mbTrans878.Close()
  1582      _, err879 := mbTrans878.WriteString(arg877)
  1583      if err879 != nil {
  1584        Usage()
  1585        return
  1586      }
  1587      factory880 := thrift.NewTJSONProtocolFactory()
  1588      jsProt881 := factory880.GetProtocol(mbTrans878)
  1589      argvalue2 := interfaces.NewUint64()
  1590      err882 := argvalue2.Read(context.Background(), jsProt881)
  1591      if err882 != nil {
  1592        Usage()
  1593        return
  1594      }
  1595      value2 := argvalue2
  1596      arg883 := flag.Arg(4)
  1597      mbTrans884 := thrift.NewTMemoryBufferLen(len(arg883))
  1598      defer mbTrans884.Close()
  1599      _, err885 := mbTrans884.WriteString(arg883)
  1600      if err885 != nil {
  1601        Usage()
  1602        return
  1603      }
  1604      factory886 := thrift.NewTJSONProtocolFactory()
  1605      jsProt887 := factory886.GetProtocol(mbTrans884)
  1606      argvalue3 := interfaces.NewUint64()
  1607      err888 := argvalue3.Read(context.Background(), jsProt887)
  1608      if err888 != nil {
  1609        Usage()
  1610        return
  1611      }
  1612      value3 := argvalue3
  1613      fmt.Print(client.DbLowerboundI64(context.Background(), value0, value1, value2, value3))
  1614      fmt.Print("\n")
  1615      break
  1616    case "db_upperbound_i64":
  1617      if flag.NArg() - 1 != 4 {
  1618        fmt.Fprintln(os.Stderr, "DbUpperboundI64 requires 4 args")
  1619        flag.Usage()
  1620      }
  1621      arg889 := flag.Arg(1)
  1622      mbTrans890 := thrift.NewTMemoryBufferLen(len(arg889))
  1623      defer mbTrans890.Close()
  1624      _, err891 := mbTrans890.WriteString(arg889)
  1625      if err891 != nil {
  1626        Usage()
  1627        return
  1628      }
  1629      factory892 := thrift.NewTJSONProtocolFactory()
  1630      jsProt893 := factory892.GetProtocol(mbTrans890)
  1631      argvalue0 := interfaces.NewUint64()
  1632      err894 := argvalue0.Read(context.Background(), jsProt893)
  1633      if err894 != nil {
  1634        Usage()
  1635        return
  1636      }
  1637      value0 := argvalue0
  1638      arg895 := flag.Arg(2)
  1639      mbTrans896 := thrift.NewTMemoryBufferLen(len(arg895))
  1640      defer mbTrans896.Close()
  1641      _, err897 := mbTrans896.WriteString(arg895)
  1642      if err897 != nil {
  1643        Usage()
  1644        return
  1645      }
  1646      factory898 := thrift.NewTJSONProtocolFactory()
  1647      jsProt899 := factory898.GetProtocol(mbTrans896)
  1648      argvalue1 := interfaces.NewUint64()
  1649      err900 := argvalue1.Read(context.Background(), jsProt899)
  1650      if err900 != nil {
  1651        Usage()
  1652        return
  1653      }
  1654      value1 := argvalue1
  1655      arg901 := flag.Arg(3)
  1656      mbTrans902 := thrift.NewTMemoryBufferLen(len(arg901))
  1657      defer mbTrans902.Close()
  1658      _, err903 := mbTrans902.WriteString(arg901)
  1659      if err903 != nil {
  1660        Usage()
  1661        return
  1662      }
  1663      factory904 := thrift.NewTJSONProtocolFactory()
  1664      jsProt905 := factory904.GetProtocol(mbTrans902)
  1665      argvalue2 := interfaces.NewUint64()
  1666      err906 := argvalue2.Read(context.Background(), jsProt905)
  1667      if err906 != nil {
  1668        Usage()
  1669        return
  1670      }
  1671      value2 := argvalue2
  1672      arg907 := flag.Arg(4)
  1673      mbTrans908 := thrift.NewTMemoryBufferLen(len(arg907))
  1674      defer mbTrans908.Close()
  1675      _, err909 := mbTrans908.WriteString(arg907)
  1676      if err909 != nil {
  1677        Usage()
  1678        return
  1679      }
  1680      factory910 := thrift.NewTJSONProtocolFactory()
  1681      jsProt911 := factory910.GetProtocol(mbTrans908)
  1682      argvalue3 := interfaces.NewUint64()
  1683      err912 := argvalue3.Read(context.Background(), jsProt911)
  1684      if err912 != nil {
  1685        Usage()
  1686        return
  1687      }
  1688      value3 := argvalue3
  1689      fmt.Print(client.DbUpperboundI64(context.Background(), value0, value1, value2, value3))
  1690      fmt.Print("\n")
  1691      break
  1692    case "db_end_i64":
  1693      if flag.NArg() - 1 != 3 {
  1694        fmt.Fprintln(os.Stderr, "DbEndI64 requires 3 args")
  1695        flag.Usage()
  1696      }
  1697      arg913 := flag.Arg(1)
  1698      mbTrans914 := thrift.NewTMemoryBufferLen(len(arg913))
  1699      defer mbTrans914.Close()
  1700      _, err915 := mbTrans914.WriteString(arg913)
  1701      if err915 != nil {
  1702        Usage()
  1703        return
  1704      }
  1705      factory916 := thrift.NewTJSONProtocolFactory()
  1706      jsProt917 := factory916.GetProtocol(mbTrans914)
  1707      argvalue0 := interfaces.NewUint64()
  1708      err918 := argvalue0.Read(context.Background(), jsProt917)
  1709      if err918 != nil {
  1710        Usage()
  1711        return
  1712      }
  1713      value0 := argvalue0
  1714      arg919 := flag.Arg(2)
  1715      mbTrans920 := thrift.NewTMemoryBufferLen(len(arg919))
  1716      defer mbTrans920.Close()
  1717      _, err921 := mbTrans920.WriteString(arg919)
  1718      if err921 != nil {
  1719        Usage()
  1720        return
  1721      }
  1722      factory922 := thrift.NewTJSONProtocolFactory()
  1723      jsProt923 := factory922.GetProtocol(mbTrans920)
  1724      argvalue1 := interfaces.NewUint64()
  1725      err924 := argvalue1.Read(context.Background(), jsProt923)
  1726      if err924 != nil {
  1727        Usage()
  1728        return
  1729      }
  1730      value1 := argvalue1
  1731      arg925 := flag.Arg(3)
  1732      mbTrans926 := thrift.NewTMemoryBufferLen(len(arg925))
  1733      defer mbTrans926.Close()
  1734      _, err927 := mbTrans926.WriteString(arg925)
  1735      if err927 != nil {
  1736        Usage()
  1737        return
  1738      }
  1739      factory928 := thrift.NewTJSONProtocolFactory()
  1740      jsProt929 := factory928.GetProtocol(mbTrans926)
  1741      argvalue2 := interfaces.NewUint64()
  1742      err930 := argvalue2.Read(context.Background(), jsProt929)
  1743      if err930 != nil {
  1744        Usage()
  1745        return
  1746      }
  1747      value2 := argvalue2
  1748      fmt.Print(client.DbEndI64(context.Background(), value0, value1, value2))
  1749      fmt.Print("\n")
  1750      break
  1751    case "db_idx64_store":
  1752      if flag.NArg() - 1 != 5 {
  1753        fmt.Fprintln(os.Stderr, "DbIdx64Store requires 5 args")
  1754        flag.Usage()
  1755      }
  1756      arg931 := flag.Arg(1)
  1757      mbTrans932 := thrift.NewTMemoryBufferLen(len(arg931))
  1758      defer mbTrans932.Close()
  1759      _, err933 := mbTrans932.WriteString(arg931)
  1760      if err933 != nil {
  1761        Usage()
  1762        return
  1763      }
  1764      factory934 := thrift.NewTJSONProtocolFactory()
  1765      jsProt935 := factory934.GetProtocol(mbTrans932)
  1766      argvalue0 := interfaces.NewUint64()
  1767      err936 := argvalue0.Read(context.Background(), jsProt935)
  1768      if err936 != nil {
  1769        Usage()
  1770        return
  1771      }
  1772      value0 := argvalue0
  1773      arg937 := flag.Arg(2)
  1774      mbTrans938 := thrift.NewTMemoryBufferLen(len(arg937))
  1775      defer mbTrans938.Close()
  1776      _, err939 := mbTrans938.WriteString(arg937)
  1777      if err939 != nil {
  1778        Usage()
  1779        return
  1780      }
  1781      factory940 := thrift.NewTJSONProtocolFactory()
  1782      jsProt941 := factory940.GetProtocol(mbTrans938)
  1783      argvalue1 := interfaces.NewUint64()
  1784      err942 := argvalue1.Read(context.Background(), jsProt941)
  1785      if err942 != nil {
  1786        Usage()
  1787        return
  1788      }
  1789      value1 := argvalue1
  1790      arg943 := flag.Arg(3)
  1791      mbTrans944 := thrift.NewTMemoryBufferLen(len(arg943))
  1792      defer mbTrans944.Close()
  1793      _, err945 := mbTrans944.WriteString(arg943)
  1794      if err945 != nil {
  1795        Usage()
  1796        return
  1797      }
  1798      factory946 := thrift.NewTJSONProtocolFactory()
  1799      jsProt947 := factory946.GetProtocol(mbTrans944)
  1800      argvalue2 := interfaces.NewUint64()
  1801      err948 := argvalue2.Read(context.Background(), jsProt947)
  1802      if err948 != nil {
  1803        Usage()
  1804        return
  1805      }
  1806      value2 := argvalue2
  1807      arg949 := flag.Arg(4)
  1808      mbTrans950 := thrift.NewTMemoryBufferLen(len(arg949))
  1809      defer mbTrans950.Close()
  1810      _, err951 := mbTrans950.WriteString(arg949)
  1811      if err951 != nil {
  1812        Usage()
  1813        return
  1814      }
  1815      factory952 := thrift.NewTJSONProtocolFactory()
  1816      jsProt953 := factory952.GetProtocol(mbTrans950)
  1817      argvalue3 := interfaces.NewUint64()
  1818      err954 := argvalue3.Read(context.Background(), jsProt953)
  1819      if err954 != nil {
  1820        Usage()
  1821        return
  1822      }
  1823      value3 := argvalue3
  1824      arg955 := flag.Arg(5)
  1825      mbTrans956 := thrift.NewTMemoryBufferLen(len(arg955))
  1826      defer mbTrans956.Close()
  1827      _, err957 := mbTrans956.WriteString(arg955)
  1828      if err957 != nil {
  1829        Usage()
  1830        return
  1831      }
  1832      factory958 := thrift.NewTJSONProtocolFactory()
  1833      jsProt959 := factory958.GetProtocol(mbTrans956)
  1834      argvalue4 := interfaces.NewUint64()
  1835      err960 := argvalue4.Read(context.Background(), jsProt959)
  1836      if err960 != nil {
  1837        Usage()
  1838        return
  1839      }
  1840      value4 := argvalue4
  1841      fmt.Print(client.DbIdx64Store(context.Background(), value0, value1, value2, value3, value4))
  1842      fmt.Print("\n")
  1843      break
  1844    case "db_idx64_update":
  1845      if flag.NArg() - 1 != 3 {
  1846        fmt.Fprintln(os.Stderr, "DbIdx64Update requires 3 args")
  1847        flag.Usage()
  1848      }
  1849      tmp0, err961 := (strconv.Atoi(flag.Arg(1)))
  1850      if err961 != nil {
  1851        Usage()
  1852        return
  1853      }
  1854      argvalue0 := int32(tmp0)
  1855      value0 := argvalue0
  1856      arg962 := flag.Arg(2)
  1857      mbTrans963 := thrift.NewTMemoryBufferLen(len(arg962))
  1858      defer mbTrans963.Close()
  1859      _, err964 := mbTrans963.WriteString(arg962)
  1860      if err964 != nil {
  1861        Usage()
  1862        return
  1863      }
  1864      factory965 := thrift.NewTJSONProtocolFactory()
  1865      jsProt966 := factory965.GetProtocol(mbTrans963)
  1866      argvalue1 := interfaces.NewUint64()
  1867      err967 := argvalue1.Read(context.Background(), jsProt966)
  1868      if err967 != nil {
  1869        Usage()
  1870        return
  1871      }
  1872      value1 := argvalue1
  1873      arg968 := flag.Arg(3)
  1874      mbTrans969 := thrift.NewTMemoryBufferLen(len(arg968))
  1875      defer mbTrans969.Close()
  1876      _, err970 := mbTrans969.WriteString(arg968)
  1877      if err970 != nil {
  1878        Usage()
  1879        return
  1880      }
  1881      factory971 := thrift.NewTJSONProtocolFactory()
  1882      jsProt972 := factory971.GetProtocol(mbTrans969)
  1883      argvalue2 := interfaces.NewUint64()
  1884      err973 := argvalue2.Read(context.Background(), jsProt972)
  1885      if err973 != nil {
  1886        Usage()
  1887        return
  1888      }
  1889      value2 := argvalue2
  1890      fmt.Print(client.DbIdx64Update(context.Background(), value0, value1, value2))
  1891      fmt.Print("\n")
  1892      break
  1893    case "db_idx64_remove":
  1894      if flag.NArg() - 1 != 1 {
  1895        fmt.Fprintln(os.Stderr, "DbIdx64Remove requires 1 args")
  1896        flag.Usage()
  1897      }
  1898      tmp0, err974 := (strconv.Atoi(flag.Arg(1)))
  1899      if err974 != nil {
  1900        Usage()
  1901        return
  1902      }
  1903      argvalue0 := int32(tmp0)
  1904      value0 := argvalue0
  1905      fmt.Print(client.DbIdx64Remove(context.Background(), value0))
  1906      fmt.Print("\n")
  1907      break
  1908    case "db_idx64_next":
  1909      if flag.NArg() - 1 != 1 {
  1910        fmt.Fprintln(os.Stderr, "DbIdx64Next requires 1 args")
  1911        flag.Usage()
  1912      }
  1913      tmp0, err975 := (strconv.Atoi(flag.Arg(1)))
  1914      if err975 != nil {
  1915        Usage()
  1916        return
  1917      }
  1918      argvalue0 := int32(tmp0)
  1919      value0 := argvalue0
  1920      fmt.Print(client.DbIdx64Next(context.Background(), value0))
  1921      fmt.Print("\n")
  1922      break
  1923    case "db_idx64_previous":
  1924      if flag.NArg() - 1 != 1 {
  1925        fmt.Fprintln(os.Stderr, "DbIdx64Previous requires 1 args")
  1926        flag.Usage()
  1927      }
  1928      tmp0, err976 := (strconv.Atoi(flag.Arg(1)))
  1929      if err976 != nil {
  1930        Usage()
  1931        return
  1932      }
  1933      argvalue0 := int32(tmp0)
  1934      value0 := argvalue0
  1935      fmt.Print(client.DbIdx64Previous(context.Background(), value0))
  1936      fmt.Print("\n")
  1937      break
  1938    case "db_idx64_find_primary":
  1939      if flag.NArg() - 1 != 4 {
  1940        fmt.Fprintln(os.Stderr, "DbIdx64FindPrimary requires 4 args")
  1941        flag.Usage()
  1942      }
  1943      arg977 := flag.Arg(1)
  1944      mbTrans978 := thrift.NewTMemoryBufferLen(len(arg977))
  1945      defer mbTrans978.Close()
  1946      _, err979 := mbTrans978.WriteString(arg977)
  1947      if err979 != nil {
  1948        Usage()
  1949        return
  1950      }
  1951      factory980 := thrift.NewTJSONProtocolFactory()
  1952      jsProt981 := factory980.GetProtocol(mbTrans978)
  1953      argvalue0 := interfaces.NewUint64()
  1954      err982 := argvalue0.Read(context.Background(), jsProt981)
  1955      if err982 != nil {
  1956        Usage()
  1957        return
  1958      }
  1959      value0 := argvalue0
  1960      arg983 := flag.Arg(2)
  1961      mbTrans984 := thrift.NewTMemoryBufferLen(len(arg983))
  1962      defer mbTrans984.Close()
  1963      _, err985 := mbTrans984.WriteString(arg983)
  1964      if err985 != nil {
  1965        Usage()
  1966        return
  1967      }
  1968      factory986 := thrift.NewTJSONProtocolFactory()
  1969      jsProt987 := factory986.GetProtocol(mbTrans984)
  1970      argvalue1 := interfaces.NewUint64()
  1971      err988 := argvalue1.Read(context.Background(), jsProt987)
  1972      if err988 != nil {
  1973        Usage()
  1974        return
  1975      }
  1976      value1 := argvalue1
  1977      arg989 := flag.Arg(3)
  1978      mbTrans990 := thrift.NewTMemoryBufferLen(len(arg989))
  1979      defer mbTrans990.Close()
  1980      _, err991 := mbTrans990.WriteString(arg989)
  1981      if err991 != nil {
  1982        Usage()
  1983        return
  1984      }
  1985      factory992 := thrift.NewTJSONProtocolFactory()
  1986      jsProt993 := factory992.GetProtocol(mbTrans990)
  1987      argvalue2 := interfaces.NewUint64()
  1988      err994 := argvalue2.Read(context.Background(), jsProt993)
  1989      if err994 != nil {
  1990        Usage()
  1991        return
  1992      }
  1993      value2 := argvalue2
  1994      arg995 := flag.Arg(4)
  1995      mbTrans996 := thrift.NewTMemoryBufferLen(len(arg995))
  1996      defer mbTrans996.Close()
  1997      _, err997 := mbTrans996.WriteString(arg995)
  1998      if err997 != nil {
  1999        Usage()
  2000        return
  2001      }
  2002      factory998 := thrift.NewTJSONProtocolFactory()
  2003      jsProt999 := factory998.GetProtocol(mbTrans996)
  2004      argvalue3 := interfaces.NewUint64()
  2005      err1000 := argvalue3.Read(context.Background(), jsProt999)
  2006      if err1000 != nil {
  2007        Usage()
  2008        return
  2009      }
  2010      value3 := argvalue3
  2011      fmt.Print(client.DbIdx64FindPrimary(context.Background(), value0, value1, value2, value3))
  2012      fmt.Print("\n")
  2013      break
  2014    case "db_idx64_find_secondary":
  2015      if flag.NArg() - 1 != 4 {
  2016        fmt.Fprintln(os.Stderr, "DbIdx64FindSecondary requires 4 args")
  2017        flag.Usage()
  2018      }
  2019      arg1001 := flag.Arg(1)
  2020      mbTrans1002 := thrift.NewTMemoryBufferLen(len(arg1001))
  2021      defer mbTrans1002.Close()
  2022      _, err1003 := mbTrans1002.WriteString(arg1001)
  2023      if err1003 != nil {
  2024        Usage()
  2025        return
  2026      }
  2027      factory1004 := thrift.NewTJSONProtocolFactory()
  2028      jsProt1005 := factory1004.GetProtocol(mbTrans1002)
  2029      argvalue0 := interfaces.NewUint64()
  2030      err1006 := argvalue0.Read(context.Background(), jsProt1005)
  2031      if err1006 != nil {
  2032        Usage()
  2033        return
  2034      }
  2035      value0 := argvalue0
  2036      arg1007 := flag.Arg(2)
  2037      mbTrans1008 := thrift.NewTMemoryBufferLen(len(arg1007))
  2038      defer mbTrans1008.Close()
  2039      _, err1009 := mbTrans1008.WriteString(arg1007)
  2040      if err1009 != nil {
  2041        Usage()
  2042        return
  2043      }
  2044      factory1010 := thrift.NewTJSONProtocolFactory()
  2045      jsProt1011 := factory1010.GetProtocol(mbTrans1008)
  2046      argvalue1 := interfaces.NewUint64()
  2047      err1012 := argvalue1.Read(context.Background(), jsProt1011)
  2048      if err1012 != nil {
  2049        Usage()
  2050        return
  2051      }
  2052      value1 := argvalue1
  2053      arg1013 := flag.Arg(3)
  2054      mbTrans1014 := thrift.NewTMemoryBufferLen(len(arg1013))
  2055      defer mbTrans1014.Close()
  2056      _, err1015 := mbTrans1014.WriteString(arg1013)
  2057      if err1015 != nil {
  2058        Usage()
  2059        return
  2060      }
  2061      factory1016 := thrift.NewTJSONProtocolFactory()
  2062      jsProt1017 := factory1016.GetProtocol(mbTrans1014)
  2063      argvalue2 := interfaces.NewUint64()
  2064      err1018 := argvalue2.Read(context.Background(), jsProt1017)
  2065      if err1018 != nil {
  2066        Usage()
  2067        return
  2068      }
  2069      value2 := argvalue2
  2070      arg1019 := flag.Arg(4)
  2071      mbTrans1020 := thrift.NewTMemoryBufferLen(len(arg1019))
  2072      defer mbTrans1020.Close()
  2073      _, err1021 := mbTrans1020.WriteString(arg1019)
  2074      if err1021 != nil {
  2075        Usage()
  2076        return
  2077      }
  2078      factory1022 := thrift.NewTJSONProtocolFactory()
  2079      jsProt1023 := factory1022.GetProtocol(mbTrans1020)
  2080      argvalue3 := interfaces.NewUint64()
  2081      err1024 := argvalue3.Read(context.Background(), jsProt1023)
  2082      if err1024 != nil {
  2083        Usage()
  2084        return
  2085      }
  2086      value3 := argvalue3
  2087      fmt.Print(client.DbIdx64FindSecondary(context.Background(), value0, value1, value2, value3))
  2088      fmt.Print("\n")
  2089      break
  2090    case "db_idx64_lowerbound":
  2091      if flag.NArg() - 1 != 5 {
  2092        fmt.Fprintln(os.Stderr, "DbIdx64Lowerbound requires 5 args")
  2093        flag.Usage()
  2094      }
  2095      arg1025 := flag.Arg(1)
  2096      mbTrans1026 := thrift.NewTMemoryBufferLen(len(arg1025))
  2097      defer mbTrans1026.Close()
  2098      _, err1027 := mbTrans1026.WriteString(arg1025)
  2099      if err1027 != nil {
  2100        Usage()
  2101        return
  2102      }
  2103      factory1028 := thrift.NewTJSONProtocolFactory()
  2104      jsProt1029 := factory1028.GetProtocol(mbTrans1026)
  2105      argvalue0 := interfaces.NewUint64()
  2106      err1030 := argvalue0.Read(context.Background(), jsProt1029)
  2107      if err1030 != nil {
  2108        Usage()
  2109        return
  2110      }
  2111      value0 := argvalue0
  2112      arg1031 := flag.Arg(2)
  2113      mbTrans1032 := thrift.NewTMemoryBufferLen(len(arg1031))
  2114      defer mbTrans1032.Close()
  2115      _, err1033 := mbTrans1032.WriteString(arg1031)
  2116      if err1033 != nil {
  2117        Usage()
  2118        return
  2119      }
  2120      factory1034 := thrift.NewTJSONProtocolFactory()
  2121      jsProt1035 := factory1034.GetProtocol(mbTrans1032)
  2122      argvalue1 := interfaces.NewUint64()
  2123      err1036 := argvalue1.Read(context.Background(), jsProt1035)
  2124      if err1036 != nil {
  2125        Usage()
  2126        return
  2127      }
  2128      value1 := argvalue1
  2129      arg1037 := flag.Arg(3)
  2130      mbTrans1038 := thrift.NewTMemoryBufferLen(len(arg1037))
  2131      defer mbTrans1038.Close()
  2132      _, err1039 := mbTrans1038.WriteString(arg1037)
  2133      if err1039 != nil {
  2134        Usage()
  2135        return
  2136      }
  2137      factory1040 := thrift.NewTJSONProtocolFactory()
  2138      jsProt1041 := factory1040.GetProtocol(mbTrans1038)
  2139      argvalue2 := interfaces.NewUint64()
  2140      err1042 := argvalue2.Read(context.Background(), jsProt1041)
  2141      if err1042 != nil {
  2142        Usage()
  2143        return
  2144      }
  2145      value2 := argvalue2
  2146      arg1043 := flag.Arg(4)
  2147      mbTrans1044 := thrift.NewTMemoryBufferLen(len(arg1043))
  2148      defer mbTrans1044.Close()
  2149      _, err1045 := mbTrans1044.WriteString(arg1043)
  2150      if err1045 != nil {
  2151        Usage()
  2152        return
  2153      }
  2154      factory1046 := thrift.NewTJSONProtocolFactory()
  2155      jsProt1047 := factory1046.GetProtocol(mbTrans1044)
  2156      argvalue3 := interfaces.NewUint64()
  2157      err1048 := argvalue3.Read(context.Background(), jsProt1047)
  2158      if err1048 != nil {
  2159        Usage()
  2160        return
  2161      }
  2162      value3 := argvalue3
  2163      arg1049 := flag.Arg(5)
  2164      mbTrans1050 := thrift.NewTMemoryBufferLen(len(arg1049))
  2165      defer mbTrans1050.Close()
  2166      _, err1051 := mbTrans1050.WriteString(arg1049)
  2167      if err1051 != nil {
  2168        Usage()
  2169        return
  2170      }
  2171      factory1052 := thrift.NewTJSONProtocolFactory()
  2172      jsProt1053 := factory1052.GetProtocol(mbTrans1050)
  2173      argvalue4 := interfaces.NewUint64()
  2174      err1054 := argvalue4.Read(context.Background(), jsProt1053)
  2175      if err1054 != nil {
  2176        Usage()
  2177        return
  2178      }
  2179      value4 := argvalue4
  2180      fmt.Print(client.DbIdx64Lowerbound(context.Background(), value0, value1, value2, value3, value4))
  2181      fmt.Print("\n")
  2182      break
  2183    case "db_idx64_upperbound":
  2184      if flag.NArg() - 1 != 5 {
  2185        fmt.Fprintln(os.Stderr, "DbIdx64Upperbound requires 5 args")
  2186        flag.Usage()
  2187      }
  2188      arg1055 := flag.Arg(1)
  2189      mbTrans1056 := thrift.NewTMemoryBufferLen(len(arg1055))
  2190      defer mbTrans1056.Close()
  2191      _, err1057 := mbTrans1056.WriteString(arg1055)
  2192      if err1057 != nil {
  2193        Usage()
  2194        return
  2195      }
  2196      factory1058 := thrift.NewTJSONProtocolFactory()
  2197      jsProt1059 := factory1058.GetProtocol(mbTrans1056)
  2198      argvalue0 := interfaces.NewUint64()
  2199      err1060 := argvalue0.Read(context.Background(), jsProt1059)
  2200      if err1060 != nil {
  2201        Usage()
  2202        return
  2203      }
  2204      value0 := argvalue0
  2205      arg1061 := flag.Arg(2)
  2206      mbTrans1062 := thrift.NewTMemoryBufferLen(len(arg1061))
  2207      defer mbTrans1062.Close()
  2208      _, err1063 := mbTrans1062.WriteString(arg1061)
  2209      if err1063 != nil {
  2210        Usage()
  2211        return
  2212      }
  2213      factory1064 := thrift.NewTJSONProtocolFactory()
  2214      jsProt1065 := factory1064.GetProtocol(mbTrans1062)
  2215      argvalue1 := interfaces.NewUint64()
  2216      err1066 := argvalue1.Read(context.Background(), jsProt1065)
  2217      if err1066 != nil {
  2218        Usage()
  2219        return
  2220      }
  2221      value1 := argvalue1
  2222      arg1067 := flag.Arg(3)
  2223      mbTrans1068 := thrift.NewTMemoryBufferLen(len(arg1067))
  2224      defer mbTrans1068.Close()
  2225      _, err1069 := mbTrans1068.WriteString(arg1067)
  2226      if err1069 != nil {
  2227        Usage()
  2228        return
  2229      }
  2230      factory1070 := thrift.NewTJSONProtocolFactory()
  2231      jsProt1071 := factory1070.GetProtocol(mbTrans1068)
  2232      argvalue2 := interfaces.NewUint64()
  2233      err1072 := argvalue2.Read(context.Background(), jsProt1071)
  2234      if err1072 != nil {
  2235        Usage()
  2236        return
  2237      }
  2238      value2 := argvalue2
  2239      arg1073 := flag.Arg(4)
  2240      mbTrans1074 := thrift.NewTMemoryBufferLen(len(arg1073))
  2241      defer mbTrans1074.Close()
  2242      _, err1075 := mbTrans1074.WriteString(arg1073)
  2243      if err1075 != nil {
  2244        Usage()
  2245        return
  2246      }
  2247      factory1076 := thrift.NewTJSONProtocolFactory()
  2248      jsProt1077 := factory1076.GetProtocol(mbTrans1074)
  2249      argvalue3 := interfaces.NewUint64()
  2250      err1078 := argvalue3.Read(context.Background(), jsProt1077)
  2251      if err1078 != nil {
  2252        Usage()
  2253        return
  2254      }
  2255      value3 := argvalue3
  2256      arg1079 := flag.Arg(5)
  2257      mbTrans1080 := thrift.NewTMemoryBufferLen(len(arg1079))
  2258      defer mbTrans1080.Close()
  2259      _, err1081 := mbTrans1080.WriteString(arg1079)
  2260      if err1081 != nil {
  2261        Usage()
  2262        return
  2263      }
  2264      factory1082 := thrift.NewTJSONProtocolFactory()
  2265      jsProt1083 := factory1082.GetProtocol(mbTrans1080)
  2266      argvalue4 := interfaces.NewUint64()
  2267      err1084 := argvalue4.Read(context.Background(), jsProt1083)
  2268      if err1084 != nil {
  2269        Usage()
  2270        return
  2271      }
  2272      value4 := argvalue4
  2273      fmt.Print(client.DbIdx64Upperbound(context.Background(), value0, value1, value2, value3, value4))
  2274      fmt.Print("\n")
  2275      break
  2276    case "db_idx64_end":
  2277      if flag.NArg() - 1 != 3 {
  2278        fmt.Fprintln(os.Stderr, "DbIdx64End requires 3 args")
  2279        flag.Usage()
  2280      }
  2281      arg1085 := flag.Arg(1)
  2282      mbTrans1086 := thrift.NewTMemoryBufferLen(len(arg1085))
  2283      defer mbTrans1086.Close()
  2284      _, err1087 := mbTrans1086.WriteString(arg1085)
  2285      if err1087 != nil {
  2286        Usage()
  2287        return
  2288      }
  2289      factory1088 := thrift.NewTJSONProtocolFactory()
  2290      jsProt1089 := factory1088.GetProtocol(mbTrans1086)
  2291      argvalue0 := interfaces.NewUint64()
  2292      err1090 := argvalue0.Read(context.Background(), jsProt1089)
  2293      if err1090 != nil {
  2294        Usage()
  2295        return
  2296      }
  2297      value0 := argvalue0
  2298      arg1091 := flag.Arg(2)
  2299      mbTrans1092 := thrift.NewTMemoryBufferLen(len(arg1091))
  2300      defer mbTrans1092.Close()
  2301      _, err1093 := mbTrans1092.WriteString(arg1091)
  2302      if err1093 != nil {
  2303        Usage()
  2304        return
  2305      }
  2306      factory1094 := thrift.NewTJSONProtocolFactory()
  2307      jsProt1095 := factory1094.GetProtocol(mbTrans1092)
  2308      argvalue1 := interfaces.NewUint64()
  2309      err1096 := argvalue1.Read(context.Background(), jsProt1095)
  2310      if err1096 != nil {
  2311        Usage()
  2312        return
  2313      }
  2314      value1 := argvalue1
  2315      arg1097 := flag.Arg(3)
  2316      mbTrans1098 := thrift.NewTMemoryBufferLen(len(arg1097))
  2317      defer mbTrans1098.Close()
  2318      _, err1099 := mbTrans1098.WriteString(arg1097)
  2319      if err1099 != nil {
  2320        Usage()
  2321        return
  2322      }
  2323      factory1100 := thrift.NewTJSONProtocolFactory()
  2324      jsProt1101 := factory1100.GetProtocol(mbTrans1098)
  2325      argvalue2 := interfaces.NewUint64()
  2326      err1102 := argvalue2.Read(context.Background(), jsProt1101)
  2327      if err1102 != nil {
  2328        Usage()
  2329        return
  2330      }
  2331      value2 := argvalue2
  2332      fmt.Print(client.DbIdx64End(context.Background(), value0, value1, value2))
  2333      fmt.Print("\n")
  2334      break
  2335    case "db_idx128_store":
  2336      if flag.NArg() - 1 != 5 {
  2337        fmt.Fprintln(os.Stderr, "DbIdx128Store requires 5 args")
  2338        flag.Usage()
  2339      }
  2340      arg1103 := flag.Arg(1)
  2341      mbTrans1104 := thrift.NewTMemoryBufferLen(len(arg1103))
  2342      defer mbTrans1104.Close()
  2343      _, err1105 := mbTrans1104.WriteString(arg1103)
  2344      if err1105 != nil {
  2345        Usage()
  2346        return
  2347      }
  2348      factory1106 := thrift.NewTJSONProtocolFactory()
  2349      jsProt1107 := factory1106.GetProtocol(mbTrans1104)
  2350      argvalue0 := interfaces.NewUint64()
  2351      err1108 := argvalue0.Read(context.Background(), jsProt1107)
  2352      if err1108 != nil {
  2353        Usage()
  2354        return
  2355      }
  2356      value0 := argvalue0
  2357      arg1109 := flag.Arg(2)
  2358      mbTrans1110 := thrift.NewTMemoryBufferLen(len(arg1109))
  2359      defer mbTrans1110.Close()
  2360      _, err1111 := mbTrans1110.WriteString(arg1109)
  2361      if err1111 != nil {
  2362        Usage()
  2363        return
  2364      }
  2365      factory1112 := thrift.NewTJSONProtocolFactory()
  2366      jsProt1113 := factory1112.GetProtocol(mbTrans1110)
  2367      argvalue1 := interfaces.NewUint64()
  2368      err1114 := argvalue1.Read(context.Background(), jsProt1113)
  2369      if err1114 != nil {
  2370        Usage()
  2371        return
  2372      }
  2373      value1 := argvalue1
  2374      arg1115 := flag.Arg(3)
  2375      mbTrans1116 := thrift.NewTMemoryBufferLen(len(arg1115))
  2376      defer mbTrans1116.Close()
  2377      _, err1117 := mbTrans1116.WriteString(arg1115)
  2378      if err1117 != nil {
  2379        Usage()
  2380        return
  2381      }
  2382      factory1118 := thrift.NewTJSONProtocolFactory()
  2383      jsProt1119 := factory1118.GetProtocol(mbTrans1116)
  2384      argvalue2 := interfaces.NewUint64()
  2385      err1120 := argvalue2.Read(context.Background(), jsProt1119)
  2386      if err1120 != nil {
  2387        Usage()
  2388        return
  2389      }
  2390      value2 := argvalue2
  2391      arg1121 := flag.Arg(4)
  2392      mbTrans1122 := thrift.NewTMemoryBufferLen(len(arg1121))
  2393      defer mbTrans1122.Close()
  2394      _, err1123 := mbTrans1122.WriteString(arg1121)
  2395      if err1123 != nil {
  2396        Usage()
  2397        return
  2398      }
  2399      factory1124 := thrift.NewTJSONProtocolFactory()
  2400      jsProt1125 := factory1124.GetProtocol(mbTrans1122)
  2401      argvalue3 := interfaces.NewUint64()
  2402      err1126 := argvalue3.Read(context.Background(), jsProt1125)
  2403      if err1126 != nil {
  2404        Usage()
  2405        return
  2406      }
  2407      value3 := argvalue3
  2408      argvalue4 := []byte(flag.Arg(5))
  2409      value4 := argvalue4
  2410      fmt.Print(client.DbIdx128Store(context.Background(), value0, value1, value2, value3, value4))
  2411      fmt.Print("\n")
  2412      break
  2413    case "db_idx128_update":
  2414      if flag.NArg() - 1 != 3 {
  2415        fmt.Fprintln(os.Stderr, "DbIdx128Update requires 3 args")
  2416        flag.Usage()
  2417      }
  2418      tmp0, err1128 := (strconv.Atoi(flag.Arg(1)))
  2419      if err1128 != nil {
  2420        Usage()
  2421        return
  2422      }
  2423      argvalue0 := int32(tmp0)
  2424      value0 := argvalue0
  2425      arg1129 := flag.Arg(2)
  2426      mbTrans1130 := thrift.NewTMemoryBufferLen(len(arg1129))
  2427      defer mbTrans1130.Close()
  2428      _, err1131 := mbTrans1130.WriteString(arg1129)
  2429      if err1131 != nil {
  2430        Usage()
  2431        return
  2432      }
  2433      factory1132 := thrift.NewTJSONProtocolFactory()
  2434      jsProt1133 := factory1132.GetProtocol(mbTrans1130)
  2435      argvalue1 := interfaces.NewUint64()
  2436      err1134 := argvalue1.Read(context.Background(), jsProt1133)
  2437      if err1134 != nil {
  2438        Usage()
  2439        return
  2440      }
  2441      value1 := argvalue1
  2442      argvalue2 := []byte(flag.Arg(3))
  2443      value2 := argvalue2
  2444      fmt.Print(client.DbIdx128Update(context.Background(), value0, value1, value2))
  2445      fmt.Print("\n")
  2446      break
  2447    case "db_idx128_remove":
  2448      if flag.NArg() - 1 != 1 {
  2449        fmt.Fprintln(os.Stderr, "DbIdx128Remove requires 1 args")
  2450        flag.Usage()
  2451      }
  2452      tmp0, err1136 := (strconv.Atoi(flag.Arg(1)))
  2453      if err1136 != nil {
  2454        Usage()
  2455        return
  2456      }
  2457      argvalue0 := int32(tmp0)
  2458      value0 := argvalue0
  2459      fmt.Print(client.DbIdx128Remove(context.Background(), value0))
  2460      fmt.Print("\n")
  2461      break
  2462    case "db_idx128_next":
  2463      if flag.NArg() - 1 != 1 {
  2464        fmt.Fprintln(os.Stderr, "DbIdx128Next requires 1 args")
  2465        flag.Usage()
  2466      }
  2467      tmp0, err1137 := (strconv.Atoi(flag.Arg(1)))
  2468      if err1137 != nil {
  2469        Usage()
  2470        return
  2471      }
  2472      argvalue0 := int32(tmp0)
  2473      value0 := argvalue0
  2474      fmt.Print(client.DbIdx128Next(context.Background(), value0))
  2475      fmt.Print("\n")
  2476      break
  2477    case "db_idx128_previous":
  2478      if flag.NArg() - 1 != 1 {
  2479        fmt.Fprintln(os.Stderr, "DbIdx128Previous requires 1 args")
  2480        flag.Usage()
  2481      }
  2482      tmp0, err1138 := (strconv.Atoi(flag.Arg(1)))
  2483      if err1138 != nil {
  2484        Usage()
  2485        return
  2486      }
  2487      argvalue0 := int32(tmp0)
  2488      value0 := argvalue0
  2489      fmt.Print(client.DbIdx128Previous(context.Background(), value0))
  2490      fmt.Print("\n")
  2491      break
  2492    case "db_idx128_find_primary":
  2493      if flag.NArg() - 1 != 4 {
  2494        fmt.Fprintln(os.Stderr, "DbIdx128FindPrimary requires 4 args")
  2495        flag.Usage()
  2496      }
  2497      arg1139 := flag.Arg(1)
  2498      mbTrans1140 := thrift.NewTMemoryBufferLen(len(arg1139))
  2499      defer mbTrans1140.Close()
  2500      _, err1141 := mbTrans1140.WriteString(arg1139)
  2501      if err1141 != nil {
  2502        Usage()
  2503        return
  2504      }
  2505      factory1142 := thrift.NewTJSONProtocolFactory()
  2506      jsProt1143 := factory1142.GetProtocol(mbTrans1140)
  2507      argvalue0 := interfaces.NewUint64()
  2508      err1144 := argvalue0.Read(context.Background(), jsProt1143)
  2509      if err1144 != nil {
  2510        Usage()
  2511        return
  2512      }
  2513      value0 := argvalue0
  2514      arg1145 := flag.Arg(2)
  2515      mbTrans1146 := thrift.NewTMemoryBufferLen(len(arg1145))
  2516      defer mbTrans1146.Close()
  2517      _, err1147 := mbTrans1146.WriteString(arg1145)
  2518      if err1147 != nil {
  2519        Usage()
  2520        return
  2521      }
  2522      factory1148 := thrift.NewTJSONProtocolFactory()
  2523      jsProt1149 := factory1148.GetProtocol(mbTrans1146)
  2524      argvalue1 := interfaces.NewUint64()
  2525      err1150 := argvalue1.Read(context.Background(), jsProt1149)
  2526      if err1150 != nil {
  2527        Usage()
  2528        return
  2529      }
  2530      value1 := argvalue1
  2531      arg1151 := flag.Arg(3)
  2532      mbTrans1152 := thrift.NewTMemoryBufferLen(len(arg1151))
  2533      defer mbTrans1152.Close()
  2534      _, err1153 := mbTrans1152.WriteString(arg1151)
  2535      if err1153 != nil {
  2536        Usage()
  2537        return
  2538      }
  2539      factory1154 := thrift.NewTJSONProtocolFactory()
  2540      jsProt1155 := factory1154.GetProtocol(mbTrans1152)
  2541      argvalue2 := interfaces.NewUint64()
  2542      err1156 := argvalue2.Read(context.Background(), jsProt1155)
  2543      if err1156 != nil {
  2544        Usage()
  2545        return
  2546      }
  2547      value2 := argvalue2
  2548      arg1157 := flag.Arg(4)
  2549      mbTrans1158 := thrift.NewTMemoryBufferLen(len(arg1157))
  2550      defer mbTrans1158.Close()
  2551      _, err1159 := mbTrans1158.WriteString(arg1157)
  2552      if err1159 != nil {
  2553        Usage()
  2554        return
  2555      }
  2556      factory1160 := thrift.NewTJSONProtocolFactory()
  2557      jsProt1161 := factory1160.GetProtocol(mbTrans1158)
  2558      argvalue3 := interfaces.NewUint64()
  2559      err1162 := argvalue3.Read(context.Background(), jsProt1161)
  2560      if err1162 != nil {
  2561        Usage()
  2562        return
  2563      }
  2564      value3 := argvalue3
  2565      fmt.Print(client.DbIdx128FindPrimary(context.Background(), value0, value1, value2, value3))
  2566      fmt.Print("\n")
  2567      break
  2568    case "db_idx128_find_secondary":
  2569      if flag.NArg() - 1 != 4 {
  2570        fmt.Fprintln(os.Stderr, "DbIdx128FindSecondary requires 4 args")
  2571        flag.Usage()
  2572      }
  2573      arg1163 := flag.Arg(1)
  2574      mbTrans1164 := thrift.NewTMemoryBufferLen(len(arg1163))
  2575      defer mbTrans1164.Close()
  2576      _, err1165 := mbTrans1164.WriteString(arg1163)
  2577      if err1165 != nil {
  2578        Usage()
  2579        return
  2580      }
  2581      factory1166 := thrift.NewTJSONProtocolFactory()
  2582      jsProt1167 := factory1166.GetProtocol(mbTrans1164)
  2583      argvalue0 := interfaces.NewUint64()
  2584      err1168 := argvalue0.Read(context.Background(), jsProt1167)
  2585      if err1168 != nil {
  2586        Usage()
  2587        return
  2588      }
  2589      value0 := argvalue0
  2590      arg1169 := flag.Arg(2)
  2591      mbTrans1170 := thrift.NewTMemoryBufferLen(len(arg1169))
  2592      defer mbTrans1170.Close()
  2593      _, err1171 := mbTrans1170.WriteString(arg1169)
  2594      if err1171 != nil {
  2595        Usage()
  2596        return
  2597      }
  2598      factory1172 := thrift.NewTJSONProtocolFactory()
  2599      jsProt1173 := factory1172.GetProtocol(mbTrans1170)
  2600      argvalue1 := interfaces.NewUint64()
  2601      err1174 := argvalue1.Read(context.Background(), jsProt1173)
  2602      if err1174 != nil {
  2603        Usage()
  2604        return
  2605      }
  2606      value1 := argvalue1
  2607      arg1175 := flag.Arg(3)
  2608      mbTrans1176 := thrift.NewTMemoryBufferLen(len(arg1175))
  2609      defer mbTrans1176.Close()
  2610      _, err1177 := mbTrans1176.WriteString(arg1175)
  2611      if err1177 != nil {
  2612        Usage()
  2613        return
  2614      }
  2615      factory1178 := thrift.NewTJSONProtocolFactory()
  2616      jsProt1179 := factory1178.GetProtocol(mbTrans1176)
  2617      argvalue2 := interfaces.NewUint64()
  2618      err1180 := argvalue2.Read(context.Background(), jsProt1179)
  2619      if err1180 != nil {
  2620        Usage()
  2621        return
  2622      }
  2623      value2 := argvalue2
  2624      argvalue3 := []byte(flag.Arg(4))
  2625      value3 := argvalue3
  2626      fmt.Print(client.DbIdx128FindSecondary(context.Background(), value0, value1, value2, value3))
  2627      fmt.Print("\n")
  2628      break
  2629    case "db_idx128_lowerbound":
  2630      if flag.NArg() - 1 != 5 {
  2631        fmt.Fprintln(os.Stderr, "DbIdx128Lowerbound requires 5 args")
  2632        flag.Usage()
  2633      }
  2634      arg1182 := flag.Arg(1)
  2635      mbTrans1183 := thrift.NewTMemoryBufferLen(len(arg1182))
  2636      defer mbTrans1183.Close()
  2637      _, err1184 := mbTrans1183.WriteString(arg1182)
  2638      if err1184 != nil {
  2639        Usage()
  2640        return
  2641      }
  2642      factory1185 := thrift.NewTJSONProtocolFactory()
  2643      jsProt1186 := factory1185.GetProtocol(mbTrans1183)
  2644      argvalue0 := interfaces.NewUint64()
  2645      err1187 := argvalue0.Read(context.Background(), jsProt1186)
  2646      if err1187 != nil {
  2647        Usage()
  2648        return
  2649      }
  2650      value0 := argvalue0
  2651      arg1188 := flag.Arg(2)
  2652      mbTrans1189 := thrift.NewTMemoryBufferLen(len(arg1188))
  2653      defer mbTrans1189.Close()
  2654      _, err1190 := mbTrans1189.WriteString(arg1188)
  2655      if err1190 != nil {
  2656        Usage()
  2657        return
  2658      }
  2659      factory1191 := thrift.NewTJSONProtocolFactory()
  2660      jsProt1192 := factory1191.GetProtocol(mbTrans1189)
  2661      argvalue1 := interfaces.NewUint64()
  2662      err1193 := argvalue1.Read(context.Background(), jsProt1192)
  2663      if err1193 != nil {
  2664        Usage()
  2665        return
  2666      }
  2667      value1 := argvalue1
  2668      arg1194 := flag.Arg(3)
  2669      mbTrans1195 := thrift.NewTMemoryBufferLen(len(arg1194))
  2670      defer mbTrans1195.Close()
  2671      _, err1196 := mbTrans1195.WriteString(arg1194)
  2672      if err1196 != nil {
  2673        Usage()
  2674        return
  2675      }
  2676      factory1197 := thrift.NewTJSONProtocolFactory()
  2677      jsProt1198 := factory1197.GetProtocol(mbTrans1195)
  2678      argvalue2 := interfaces.NewUint64()
  2679      err1199 := argvalue2.Read(context.Background(), jsProt1198)
  2680      if err1199 != nil {
  2681        Usage()
  2682        return
  2683      }
  2684      value2 := argvalue2
  2685      argvalue3 := []byte(flag.Arg(4))
  2686      value3 := argvalue3
  2687      arg1201 := flag.Arg(5)
  2688      mbTrans1202 := thrift.NewTMemoryBufferLen(len(arg1201))
  2689      defer mbTrans1202.Close()
  2690      _, err1203 := mbTrans1202.WriteString(arg1201)
  2691      if err1203 != nil {
  2692        Usage()
  2693        return
  2694      }
  2695      factory1204 := thrift.NewTJSONProtocolFactory()
  2696      jsProt1205 := factory1204.GetProtocol(mbTrans1202)
  2697      argvalue4 := interfaces.NewUint64()
  2698      err1206 := argvalue4.Read(context.Background(), jsProt1205)
  2699      if err1206 != nil {
  2700        Usage()
  2701        return
  2702      }
  2703      value4 := argvalue4
  2704      fmt.Print(client.DbIdx128Lowerbound(context.Background(), value0, value1, value2, value3, value4))
  2705      fmt.Print("\n")
  2706      break
  2707    case "db_idx128_upperbound":
  2708      if flag.NArg() - 1 != 5 {
  2709        fmt.Fprintln(os.Stderr, "DbIdx128Upperbound requires 5 args")
  2710        flag.Usage()
  2711      }
  2712      arg1207 := flag.Arg(1)
  2713      mbTrans1208 := thrift.NewTMemoryBufferLen(len(arg1207))
  2714      defer mbTrans1208.Close()
  2715      _, err1209 := mbTrans1208.WriteString(arg1207)
  2716      if err1209 != nil {
  2717        Usage()
  2718        return
  2719      }
  2720      factory1210 := thrift.NewTJSONProtocolFactory()
  2721      jsProt1211 := factory1210.GetProtocol(mbTrans1208)
  2722      argvalue0 := interfaces.NewUint64()
  2723      err1212 := argvalue0.Read(context.Background(), jsProt1211)
  2724      if err1212 != nil {
  2725        Usage()
  2726        return
  2727      }
  2728      value0 := argvalue0
  2729      arg1213 := flag.Arg(2)
  2730      mbTrans1214 := thrift.NewTMemoryBufferLen(len(arg1213))
  2731      defer mbTrans1214.Close()
  2732      _, err1215 := mbTrans1214.WriteString(arg1213)
  2733      if err1215 != nil {
  2734        Usage()
  2735        return
  2736      }
  2737      factory1216 := thrift.NewTJSONProtocolFactory()
  2738      jsProt1217 := factory1216.GetProtocol(mbTrans1214)
  2739      argvalue1 := interfaces.NewUint64()
  2740      err1218 := argvalue1.Read(context.Background(), jsProt1217)
  2741      if err1218 != nil {
  2742        Usage()
  2743        return
  2744      }
  2745      value1 := argvalue1
  2746      arg1219 := flag.Arg(3)
  2747      mbTrans1220 := thrift.NewTMemoryBufferLen(len(arg1219))
  2748      defer mbTrans1220.Close()
  2749      _, err1221 := mbTrans1220.WriteString(arg1219)
  2750      if err1221 != nil {
  2751        Usage()
  2752        return
  2753      }
  2754      factory1222 := thrift.NewTJSONProtocolFactory()
  2755      jsProt1223 := factory1222.GetProtocol(mbTrans1220)
  2756      argvalue2 := interfaces.NewUint64()
  2757      err1224 := argvalue2.Read(context.Background(), jsProt1223)
  2758      if err1224 != nil {
  2759        Usage()
  2760        return
  2761      }
  2762      value2 := argvalue2
  2763      argvalue3 := []byte(flag.Arg(4))
  2764      value3 := argvalue3
  2765      arg1226 := flag.Arg(5)
  2766      mbTrans1227 := thrift.NewTMemoryBufferLen(len(arg1226))
  2767      defer mbTrans1227.Close()
  2768      _, err1228 := mbTrans1227.WriteString(arg1226)
  2769      if err1228 != nil {
  2770        Usage()
  2771        return
  2772      }
  2773      factory1229 := thrift.NewTJSONProtocolFactory()
  2774      jsProt1230 := factory1229.GetProtocol(mbTrans1227)
  2775      argvalue4 := interfaces.NewUint64()
  2776      err1231 := argvalue4.Read(context.Background(), jsProt1230)
  2777      if err1231 != nil {
  2778        Usage()
  2779        return
  2780      }
  2781      value4 := argvalue4
  2782      fmt.Print(client.DbIdx128Upperbound(context.Background(), value0, value1, value2, value3, value4))
  2783      fmt.Print("\n")
  2784      break
  2785    case "db_idx128_end":
  2786      if flag.NArg() - 1 != 3 {
  2787        fmt.Fprintln(os.Stderr, "DbIdx128End requires 3 args")
  2788        flag.Usage()
  2789      }
  2790      arg1232 := flag.Arg(1)
  2791      mbTrans1233 := thrift.NewTMemoryBufferLen(len(arg1232))
  2792      defer mbTrans1233.Close()
  2793      _, err1234 := mbTrans1233.WriteString(arg1232)
  2794      if err1234 != nil {
  2795        Usage()
  2796        return
  2797      }
  2798      factory1235 := thrift.NewTJSONProtocolFactory()
  2799      jsProt1236 := factory1235.GetProtocol(mbTrans1233)
  2800      argvalue0 := interfaces.NewUint64()
  2801      err1237 := argvalue0.Read(context.Background(), jsProt1236)
  2802      if err1237 != nil {
  2803        Usage()
  2804        return
  2805      }
  2806      value0 := argvalue0
  2807      arg1238 := flag.Arg(2)
  2808      mbTrans1239 := thrift.NewTMemoryBufferLen(len(arg1238))
  2809      defer mbTrans1239.Close()
  2810      _, err1240 := mbTrans1239.WriteString(arg1238)
  2811      if err1240 != nil {
  2812        Usage()
  2813        return
  2814      }
  2815      factory1241 := thrift.NewTJSONProtocolFactory()
  2816      jsProt1242 := factory1241.GetProtocol(mbTrans1239)
  2817      argvalue1 := interfaces.NewUint64()
  2818      err1243 := argvalue1.Read(context.Background(), jsProt1242)
  2819      if err1243 != nil {
  2820        Usage()
  2821        return
  2822      }
  2823      value1 := argvalue1
  2824      arg1244 := flag.Arg(3)
  2825      mbTrans1245 := thrift.NewTMemoryBufferLen(len(arg1244))
  2826      defer mbTrans1245.Close()
  2827      _, err1246 := mbTrans1245.WriteString(arg1244)
  2828      if err1246 != nil {
  2829        Usage()
  2830        return
  2831      }
  2832      factory1247 := thrift.NewTJSONProtocolFactory()
  2833      jsProt1248 := factory1247.GetProtocol(mbTrans1245)
  2834      argvalue2 := interfaces.NewUint64()
  2835      err1249 := argvalue2.Read(context.Background(), jsProt1248)
  2836      if err1249 != nil {
  2837        Usage()
  2838        return
  2839      }
  2840      value2 := argvalue2
  2841      fmt.Print(client.DbIdx128End(context.Background(), value0, value1, value2))
  2842      fmt.Print("\n")
  2843      break
  2844    case "db_idx256_store":
  2845      if flag.NArg() - 1 != 5 {
  2846        fmt.Fprintln(os.Stderr, "DbIdx256Store requires 5 args")
  2847        flag.Usage()
  2848      }
  2849      arg1250 := flag.Arg(1)
  2850      mbTrans1251 := thrift.NewTMemoryBufferLen(len(arg1250))
  2851      defer mbTrans1251.Close()
  2852      _, err1252 := mbTrans1251.WriteString(arg1250)
  2853      if err1252 != nil {
  2854        Usage()
  2855        return
  2856      }
  2857      factory1253 := thrift.NewTJSONProtocolFactory()
  2858      jsProt1254 := factory1253.GetProtocol(mbTrans1251)
  2859      argvalue0 := interfaces.NewUint64()
  2860      err1255 := argvalue0.Read(context.Background(), jsProt1254)
  2861      if err1255 != nil {
  2862        Usage()
  2863        return
  2864      }
  2865      value0 := argvalue0
  2866      arg1256 := flag.Arg(2)
  2867      mbTrans1257 := thrift.NewTMemoryBufferLen(len(arg1256))
  2868      defer mbTrans1257.Close()
  2869      _, err1258 := mbTrans1257.WriteString(arg1256)
  2870      if err1258 != nil {
  2871        Usage()
  2872        return
  2873      }
  2874      factory1259 := thrift.NewTJSONProtocolFactory()
  2875      jsProt1260 := factory1259.GetProtocol(mbTrans1257)
  2876      argvalue1 := interfaces.NewUint64()
  2877      err1261 := argvalue1.Read(context.Background(), jsProt1260)
  2878      if err1261 != nil {
  2879        Usage()
  2880        return
  2881      }
  2882      value1 := argvalue1
  2883      arg1262 := flag.Arg(3)
  2884      mbTrans1263 := thrift.NewTMemoryBufferLen(len(arg1262))
  2885      defer mbTrans1263.Close()
  2886      _, err1264 := mbTrans1263.WriteString(arg1262)
  2887      if err1264 != nil {
  2888        Usage()
  2889        return
  2890      }
  2891      factory1265 := thrift.NewTJSONProtocolFactory()
  2892      jsProt1266 := factory1265.GetProtocol(mbTrans1263)
  2893      argvalue2 := interfaces.NewUint64()
  2894      err1267 := argvalue2.Read(context.Background(), jsProt1266)
  2895      if err1267 != nil {
  2896        Usage()
  2897        return
  2898      }
  2899      value2 := argvalue2
  2900      arg1268 := flag.Arg(4)
  2901      mbTrans1269 := thrift.NewTMemoryBufferLen(len(arg1268))
  2902      defer mbTrans1269.Close()
  2903      _, err1270 := mbTrans1269.WriteString(arg1268)
  2904      if err1270 != nil {
  2905        Usage()
  2906        return
  2907      }
  2908      factory1271 := thrift.NewTJSONProtocolFactory()
  2909      jsProt1272 := factory1271.GetProtocol(mbTrans1269)
  2910      argvalue3 := interfaces.NewUint64()
  2911      err1273 := argvalue3.Read(context.Background(), jsProt1272)
  2912      if err1273 != nil {
  2913        Usage()
  2914        return
  2915      }
  2916      value3 := argvalue3
  2917      argvalue4 := []byte(flag.Arg(5))
  2918      value4 := argvalue4
  2919      fmt.Print(client.DbIdx256Store(context.Background(), value0, value1, value2, value3, value4))
  2920      fmt.Print("\n")
  2921      break
  2922    case "db_idx256_update":
  2923      if flag.NArg() - 1 != 3 {
  2924        fmt.Fprintln(os.Stderr, "DbIdx256Update requires 3 args")
  2925        flag.Usage()
  2926      }
  2927      tmp0, err1275 := (strconv.Atoi(flag.Arg(1)))
  2928      if err1275 != nil {
  2929        Usage()
  2930        return
  2931      }
  2932      argvalue0 := int32(tmp0)
  2933      value0 := argvalue0
  2934      arg1276 := flag.Arg(2)
  2935      mbTrans1277 := thrift.NewTMemoryBufferLen(len(arg1276))
  2936      defer mbTrans1277.Close()
  2937      _, err1278 := mbTrans1277.WriteString(arg1276)
  2938      if err1278 != nil {
  2939        Usage()
  2940        return
  2941      }
  2942      factory1279 := thrift.NewTJSONProtocolFactory()
  2943      jsProt1280 := factory1279.GetProtocol(mbTrans1277)
  2944      argvalue1 := interfaces.NewUint64()
  2945      err1281 := argvalue1.Read(context.Background(), jsProt1280)
  2946      if err1281 != nil {
  2947        Usage()
  2948        return
  2949      }
  2950      value1 := argvalue1
  2951      argvalue2 := []byte(flag.Arg(3))
  2952      value2 := argvalue2
  2953      fmt.Print(client.DbIdx256Update(context.Background(), value0, value1, value2))
  2954      fmt.Print("\n")
  2955      break
  2956    case "db_idx256_remove":
  2957      if flag.NArg() - 1 != 1 {
  2958        fmt.Fprintln(os.Stderr, "DbIdx256Remove requires 1 args")
  2959        flag.Usage()
  2960      }
  2961      tmp0, err1283 := (strconv.Atoi(flag.Arg(1)))
  2962      if err1283 != nil {
  2963        Usage()
  2964        return
  2965      }
  2966      argvalue0 := int32(tmp0)
  2967      value0 := argvalue0
  2968      fmt.Print(client.DbIdx256Remove(context.Background(), value0))
  2969      fmt.Print("\n")
  2970      break
  2971    case "db_idx256_next":
  2972      if flag.NArg() - 1 != 1 {
  2973        fmt.Fprintln(os.Stderr, "DbIdx256Next requires 1 args")
  2974        flag.Usage()
  2975      }
  2976      tmp0, err1284 := (strconv.Atoi(flag.Arg(1)))
  2977      if err1284 != nil {
  2978        Usage()
  2979        return
  2980      }
  2981      argvalue0 := int32(tmp0)
  2982      value0 := argvalue0
  2983      fmt.Print(client.DbIdx256Next(context.Background(), value0))
  2984      fmt.Print("\n")
  2985      break
  2986    case "db_idx256_previous":
  2987      if flag.NArg() - 1 != 1 {
  2988        fmt.Fprintln(os.Stderr, "DbIdx256Previous requires 1 args")
  2989        flag.Usage()
  2990      }
  2991      tmp0, err1285 := (strconv.Atoi(flag.Arg(1)))
  2992      if err1285 != nil {
  2993        Usage()
  2994        return
  2995      }
  2996      argvalue0 := int32(tmp0)
  2997      value0 := argvalue0
  2998      fmt.Print(client.DbIdx256Previous(context.Background(), value0))
  2999      fmt.Print("\n")
  3000      break
  3001    case "db_idx256_find_primary":
  3002      if flag.NArg() - 1 != 4 {
  3003        fmt.Fprintln(os.Stderr, "DbIdx256FindPrimary requires 4 args")
  3004        flag.Usage()
  3005      }
  3006      arg1286 := flag.Arg(1)
  3007      mbTrans1287 := thrift.NewTMemoryBufferLen(len(arg1286))
  3008      defer mbTrans1287.Close()
  3009      _, err1288 := mbTrans1287.WriteString(arg1286)
  3010      if err1288 != nil {
  3011        Usage()
  3012        return
  3013      }
  3014      factory1289 := thrift.NewTJSONProtocolFactory()
  3015      jsProt1290 := factory1289.GetProtocol(mbTrans1287)
  3016      argvalue0 := interfaces.NewUint64()
  3017      err1291 := argvalue0.Read(context.Background(), jsProt1290)
  3018      if err1291 != nil {
  3019        Usage()
  3020        return
  3021      }
  3022      value0 := argvalue0
  3023      arg1292 := flag.Arg(2)
  3024      mbTrans1293 := thrift.NewTMemoryBufferLen(len(arg1292))
  3025      defer mbTrans1293.Close()
  3026      _, err1294 := mbTrans1293.WriteString(arg1292)
  3027      if err1294 != nil {
  3028        Usage()
  3029        return
  3030      }
  3031      factory1295 := thrift.NewTJSONProtocolFactory()
  3032      jsProt1296 := factory1295.GetProtocol(mbTrans1293)
  3033      argvalue1 := interfaces.NewUint64()
  3034      err1297 := argvalue1.Read(context.Background(), jsProt1296)
  3035      if err1297 != nil {
  3036        Usage()
  3037        return
  3038      }
  3039      value1 := argvalue1
  3040      arg1298 := flag.Arg(3)
  3041      mbTrans1299 := thrift.NewTMemoryBufferLen(len(arg1298))
  3042      defer mbTrans1299.Close()
  3043      _, err1300 := mbTrans1299.WriteString(arg1298)
  3044      if err1300 != nil {
  3045        Usage()
  3046        return
  3047      }
  3048      factory1301 := thrift.NewTJSONProtocolFactory()
  3049      jsProt1302 := factory1301.GetProtocol(mbTrans1299)
  3050      argvalue2 := interfaces.NewUint64()
  3051      err1303 := argvalue2.Read(context.Background(), jsProt1302)
  3052      if err1303 != nil {
  3053        Usage()
  3054        return
  3055      }
  3056      value2 := argvalue2
  3057      arg1304 := flag.Arg(4)
  3058      mbTrans1305 := thrift.NewTMemoryBufferLen(len(arg1304))
  3059      defer mbTrans1305.Close()
  3060      _, err1306 := mbTrans1305.WriteString(arg1304)
  3061      if err1306 != nil {
  3062        Usage()
  3063        return
  3064      }
  3065      factory1307 := thrift.NewTJSONProtocolFactory()
  3066      jsProt1308 := factory1307.GetProtocol(mbTrans1305)
  3067      argvalue3 := interfaces.NewUint64()
  3068      err1309 := argvalue3.Read(context.Background(), jsProt1308)
  3069      if err1309 != nil {
  3070        Usage()
  3071        return
  3072      }
  3073      value3 := argvalue3
  3074      fmt.Print(client.DbIdx256FindPrimary(context.Background(), value0, value1, value2, value3))
  3075      fmt.Print("\n")
  3076      break
  3077    case "db_idx256_find_secondary":
  3078      if flag.NArg() - 1 != 4 {
  3079        fmt.Fprintln(os.Stderr, "DbIdx256FindSecondary requires 4 args")
  3080        flag.Usage()
  3081      }
  3082      arg1310 := flag.Arg(1)
  3083      mbTrans1311 := thrift.NewTMemoryBufferLen(len(arg1310))
  3084      defer mbTrans1311.Close()
  3085      _, err1312 := mbTrans1311.WriteString(arg1310)
  3086      if err1312 != nil {
  3087        Usage()
  3088        return
  3089      }
  3090      factory1313 := thrift.NewTJSONProtocolFactory()
  3091      jsProt1314 := factory1313.GetProtocol(mbTrans1311)
  3092      argvalue0 := interfaces.NewUint64()
  3093      err1315 := argvalue0.Read(context.Background(), jsProt1314)
  3094      if err1315 != nil {
  3095        Usage()
  3096        return
  3097      }
  3098      value0 := argvalue0
  3099      arg1316 := flag.Arg(2)
  3100      mbTrans1317 := thrift.NewTMemoryBufferLen(len(arg1316))
  3101      defer mbTrans1317.Close()
  3102      _, err1318 := mbTrans1317.WriteString(arg1316)
  3103      if err1318 != nil {
  3104        Usage()
  3105        return
  3106      }
  3107      factory1319 := thrift.NewTJSONProtocolFactory()
  3108      jsProt1320 := factory1319.GetProtocol(mbTrans1317)
  3109      argvalue1 := interfaces.NewUint64()
  3110      err1321 := argvalue1.Read(context.Background(), jsProt1320)
  3111      if err1321 != nil {
  3112        Usage()
  3113        return
  3114      }
  3115      value1 := argvalue1
  3116      arg1322 := flag.Arg(3)
  3117      mbTrans1323 := thrift.NewTMemoryBufferLen(len(arg1322))
  3118      defer mbTrans1323.Close()
  3119      _, err1324 := mbTrans1323.WriteString(arg1322)
  3120      if err1324 != nil {
  3121        Usage()
  3122        return
  3123      }
  3124      factory1325 := thrift.NewTJSONProtocolFactory()
  3125      jsProt1326 := factory1325.GetProtocol(mbTrans1323)
  3126      argvalue2 := interfaces.NewUint64()
  3127      err1327 := argvalue2.Read(context.Background(), jsProt1326)
  3128      if err1327 != nil {
  3129        Usage()
  3130        return
  3131      }
  3132      value2 := argvalue2
  3133      argvalue3 := []byte(flag.Arg(4))
  3134      value3 := argvalue3
  3135      fmt.Print(client.DbIdx256FindSecondary(context.Background(), value0, value1, value2, value3))
  3136      fmt.Print("\n")
  3137      break
  3138    case "db_idx256_lowerbound":
  3139      if flag.NArg() - 1 != 5 {
  3140        fmt.Fprintln(os.Stderr, "DbIdx256Lowerbound requires 5 args")
  3141        flag.Usage()
  3142      }
  3143      arg1329 := flag.Arg(1)
  3144      mbTrans1330 := thrift.NewTMemoryBufferLen(len(arg1329))
  3145      defer mbTrans1330.Close()
  3146      _, err1331 := mbTrans1330.WriteString(arg1329)
  3147      if err1331 != nil {
  3148        Usage()
  3149        return
  3150      }
  3151      factory1332 := thrift.NewTJSONProtocolFactory()
  3152      jsProt1333 := factory1332.GetProtocol(mbTrans1330)
  3153      argvalue0 := interfaces.NewUint64()
  3154      err1334 := argvalue0.Read(context.Background(), jsProt1333)
  3155      if err1334 != nil {
  3156        Usage()
  3157        return
  3158      }
  3159      value0 := argvalue0
  3160      arg1335 := flag.Arg(2)
  3161      mbTrans1336 := thrift.NewTMemoryBufferLen(len(arg1335))
  3162      defer mbTrans1336.Close()
  3163      _, err1337 := mbTrans1336.WriteString(arg1335)
  3164      if err1337 != nil {
  3165        Usage()
  3166        return
  3167      }
  3168      factory1338 := thrift.NewTJSONProtocolFactory()
  3169      jsProt1339 := factory1338.GetProtocol(mbTrans1336)
  3170      argvalue1 := interfaces.NewUint64()
  3171      err1340 := argvalue1.Read(context.Background(), jsProt1339)
  3172      if err1340 != nil {
  3173        Usage()
  3174        return
  3175      }
  3176      value1 := argvalue1
  3177      arg1341 := flag.Arg(3)
  3178      mbTrans1342 := thrift.NewTMemoryBufferLen(len(arg1341))
  3179      defer mbTrans1342.Close()
  3180      _, err1343 := mbTrans1342.WriteString(arg1341)
  3181      if err1343 != nil {
  3182        Usage()
  3183        return
  3184      }
  3185      factory1344 := thrift.NewTJSONProtocolFactory()
  3186      jsProt1345 := factory1344.GetProtocol(mbTrans1342)
  3187      argvalue2 := interfaces.NewUint64()
  3188      err1346 := argvalue2.Read(context.Background(), jsProt1345)
  3189      if err1346 != nil {
  3190        Usage()
  3191        return
  3192      }
  3193      value2 := argvalue2
  3194      argvalue3 := []byte(flag.Arg(4))
  3195      value3 := argvalue3
  3196      arg1348 := flag.Arg(5)
  3197      mbTrans1349 := thrift.NewTMemoryBufferLen(len(arg1348))
  3198      defer mbTrans1349.Close()
  3199      _, err1350 := mbTrans1349.WriteString(arg1348)
  3200      if err1350 != nil {
  3201        Usage()
  3202        return
  3203      }
  3204      factory1351 := thrift.NewTJSONProtocolFactory()
  3205      jsProt1352 := factory1351.GetProtocol(mbTrans1349)
  3206      argvalue4 := interfaces.NewUint64()
  3207      err1353 := argvalue4.Read(context.Background(), jsProt1352)
  3208      if err1353 != nil {
  3209        Usage()
  3210        return
  3211      }
  3212      value4 := argvalue4
  3213      fmt.Print(client.DbIdx256Lowerbound(context.Background(), value0, value1, value2, value3, value4))
  3214      fmt.Print("\n")
  3215      break
  3216    case "db_idx256_upperbound":
  3217      if flag.NArg() - 1 != 5 {
  3218        fmt.Fprintln(os.Stderr, "DbIdx256Upperbound requires 5 args")
  3219        flag.Usage()
  3220      }
  3221      arg1354 := flag.Arg(1)
  3222      mbTrans1355 := thrift.NewTMemoryBufferLen(len(arg1354))
  3223      defer mbTrans1355.Close()
  3224      _, err1356 := mbTrans1355.WriteString(arg1354)
  3225      if err1356 != nil {
  3226        Usage()
  3227        return
  3228      }
  3229      factory1357 := thrift.NewTJSONProtocolFactory()
  3230      jsProt1358 := factory1357.GetProtocol(mbTrans1355)
  3231      argvalue0 := interfaces.NewUint64()
  3232      err1359 := argvalue0.Read(context.Background(), jsProt1358)
  3233      if err1359 != nil {
  3234        Usage()
  3235        return
  3236      }
  3237      value0 := argvalue0
  3238      arg1360 := flag.Arg(2)
  3239      mbTrans1361 := thrift.NewTMemoryBufferLen(len(arg1360))
  3240      defer mbTrans1361.Close()
  3241      _, err1362 := mbTrans1361.WriteString(arg1360)
  3242      if err1362 != nil {
  3243        Usage()
  3244        return
  3245      }
  3246      factory1363 := thrift.NewTJSONProtocolFactory()
  3247      jsProt1364 := factory1363.GetProtocol(mbTrans1361)
  3248      argvalue1 := interfaces.NewUint64()
  3249      err1365 := argvalue1.Read(context.Background(), jsProt1364)
  3250      if err1365 != nil {
  3251        Usage()
  3252        return
  3253      }
  3254      value1 := argvalue1
  3255      arg1366 := flag.Arg(3)
  3256      mbTrans1367 := thrift.NewTMemoryBufferLen(len(arg1366))
  3257      defer mbTrans1367.Close()
  3258      _, err1368 := mbTrans1367.WriteString(arg1366)
  3259      if err1368 != nil {
  3260        Usage()
  3261        return
  3262      }
  3263      factory1369 := thrift.NewTJSONProtocolFactory()
  3264      jsProt1370 := factory1369.GetProtocol(mbTrans1367)
  3265      argvalue2 := interfaces.NewUint64()
  3266      err1371 := argvalue2.Read(context.Background(), jsProt1370)
  3267      if err1371 != nil {
  3268        Usage()
  3269        return
  3270      }
  3271      value2 := argvalue2
  3272      argvalue3 := []byte(flag.Arg(4))
  3273      value3 := argvalue3
  3274      arg1373 := flag.Arg(5)
  3275      mbTrans1374 := thrift.NewTMemoryBufferLen(len(arg1373))
  3276      defer mbTrans1374.Close()
  3277      _, err1375 := mbTrans1374.WriteString(arg1373)
  3278      if err1375 != nil {
  3279        Usage()
  3280        return
  3281      }
  3282      factory1376 := thrift.NewTJSONProtocolFactory()
  3283      jsProt1377 := factory1376.GetProtocol(mbTrans1374)
  3284      argvalue4 := interfaces.NewUint64()
  3285      err1378 := argvalue4.Read(context.Background(), jsProt1377)
  3286      if err1378 != nil {
  3287        Usage()
  3288        return
  3289      }
  3290      value4 := argvalue4
  3291      fmt.Print(client.DbIdx256Upperbound(context.Background(), value0, value1, value2, value3, value4))
  3292      fmt.Print("\n")
  3293      break
  3294    case "db_idx256_end":
  3295      if flag.NArg() - 1 != 3 {
  3296        fmt.Fprintln(os.Stderr, "DbIdx256End requires 3 args")
  3297        flag.Usage()
  3298      }
  3299      arg1379 := flag.Arg(1)
  3300      mbTrans1380 := thrift.NewTMemoryBufferLen(len(arg1379))
  3301      defer mbTrans1380.Close()
  3302      _, err1381 := mbTrans1380.WriteString(arg1379)
  3303      if err1381 != nil {
  3304        Usage()
  3305        return
  3306      }
  3307      factory1382 := thrift.NewTJSONProtocolFactory()
  3308      jsProt1383 := factory1382.GetProtocol(mbTrans1380)
  3309      argvalue0 := interfaces.NewUint64()
  3310      err1384 := argvalue0.Read(context.Background(), jsProt1383)
  3311      if err1384 != nil {
  3312        Usage()
  3313        return
  3314      }
  3315      value0 := argvalue0
  3316      arg1385 := flag.Arg(2)
  3317      mbTrans1386 := thrift.NewTMemoryBufferLen(len(arg1385))
  3318      defer mbTrans1386.Close()
  3319      _, err1387 := mbTrans1386.WriteString(arg1385)
  3320      if err1387 != nil {
  3321        Usage()
  3322        return
  3323      }
  3324      factory1388 := thrift.NewTJSONProtocolFactory()
  3325      jsProt1389 := factory1388.GetProtocol(mbTrans1386)
  3326      argvalue1 := interfaces.NewUint64()
  3327      err1390 := argvalue1.Read(context.Background(), jsProt1389)
  3328      if err1390 != nil {
  3329        Usage()
  3330        return
  3331      }
  3332      value1 := argvalue1
  3333      arg1391 := flag.Arg(3)
  3334      mbTrans1392 := thrift.NewTMemoryBufferLen(len(arg1391))
  3335      defer mbTrans1392.Close()
  3336      _, err1393 := mbTrans1392.WriteString(arg1391)
  3337      if err1393 != nil {
  3338        Usage()
  3339        return
  3340      }
  3341      factory1394 := thrift.NewTJSONProtocolFactory()
  3342      jsProt1395 := factory1394.GetProtocol(mbTrans1392)
  3343      argvalue2 := interfaces.NewUint64()
  3344      err1396 := argvalue2.Read(context.Background(), jsProt1395)
  3345      if err1396 != nil {
  3346        Usage()
  3347        return
  3348      }
  3349      value2 := argvalue2
  3350      fmt.Print(client.DbIdx256End(context.Background(), value0, value1, value2))
  3351      fmt.Print("\n")
  3352      break
  3353    case "db_idx_double_store":
  3354      if flag.NArg() - 1 != 5 {
  3355        fmt.Fprintln(os.Stderr, "DbIdxDoubleStore requires 5 args")
  3356        flag.Usage()
  3357      }
  3358      arg1397 := flag.Arg(1)
  3359      mbTrans1398 := thrift.NewTMemoryBufferLen(len(arg1397))
  3360      defer mbTrans1398.Close()
  3361      _, err1399 := mbTrans1398.WriteString(arg1397)
  3362      if err1399 != nil {
  3363        Usage()
  3364        return
  3365      }
  3366      factory1400 := thrift.NewTJSONProtocolFactory()
  3367      jsProt1401 := factory1400.GetProtocol(mbTrans1398)
  3368      argvalue0 := interfaces.NewUint64()
  3369      err1402 := argvalue0.Read(context.Background(), jsProt1401)
  3370      if err1402 != nil {
  3371        Usage()
  3372        return
  3373      }
  3374      value0 := argvalue0
  3375      arg1403 := flag.Arg(2)
  3376      mbTrans1404 := thrift.NewTMemoryBufferLen(len(arg1403))
  3377      defer mbTrans1404.Close()
  3378      _, err1405 := mbTrans1404.WriteString(arg1403)
  3379      if err1405 != nil {
  3380        Usage()
  3381        return
  3382      }
  3383      factory1406 := thrift.NewTJSONProtocolFactory()
  3384      jsProt1407 := factory1406.GetProtocol(mbTrans1404)
  3385      argvalue1 := interfaces.NewUint64()
  3386      err1408 := argvalue1.Read(context.Background(), jsProt1407)
  3387      if err1408 != nil {
  3388        Usage()
  3389        return
  3390      }
  3391      value1 := argvalue1
  3392      arg1409 := flag.Arg(3)
  3393      mbTrans1410 := thrift.NewTMemoryBufferLen(len(arg1409))
  3394      defer mbTrans1410.Close()
  3395      _, err1411 := mbTrans1410.WriteString(arg1409)
  3396      if err1411 != nil {
  3397        Usage()
  3398        return
  3399      }
  3400      factory1412 := thrift.NewTJSONProtocolFactory()
  3401      jsProt1413 := factory1412.GetProtocol(mbTrans1410)
  3402      argvalue2 := interfaces.NewUint64()
  3403      err1414 := argvalue2.Read(context.Background(), jsProt1413)
  3404      if err1414 != nil {
  3405        Usage()
  3406        return
  3407      }
  3408      value2 := argvalue2
  3409      arg1415 := flag.Arg(4)
  3410      mbTrans1416 := thrift.NewTMemoryBufferLen(len(arg1415))
  3411      defer mbTrans1416.Close()
  3412      _, err1417 := mbTrans1416.WriteString(arg1415)
  3413      if err1417 != nil {
  3414        Usage()
  3415        return
  3416      }
  3417      factory1418 := thrift.NewTJSONProtocolFactory()
  3418      jsProt1419 := factory1418.GetProtocol(mbTrans1416)
  3419      argvalue3 := interfaces.NewUint64()
  3420      err1420 := argvalue3.Read(context.Background(), jsProt1419)
  3421      if err1420 != nil {
  3422        Usage()
  3423        return
  3424      }
  3425      value3 := argvalue3
  3426      argvalue4 := []byte(flag.Arg(5))
  3427      value4 := argvalue4
  3428      fmt.Print(client.DbIdxDoubleStore(context.Background(), value0, value1, value2, value3, value4))
  3429      fmt.Print("\n")
  3430      break
  3431    case "db_idx_double_update":
  3432      if flag.NArg() - 1 != 3 {
  3433        fmt.Fprintln(os.Stderr, "DbIdxDoubleUpdate requires 3 args")
  3434        flag.Usage()
  3435      }
  3436      tmp0, err1422 := (strconv.Atoi(flag.Arg(1)))
  3437      if err1422 != nil {
  3438        Usage()
  3439        return
  3440      }
  3441      argvalue0 := int32(tmp0)
  3442      value0 := argvalue0
  3443      arg1423 := flag.Arg(2)
  3444      mbTrans1424 := thrift.NewTMemoryBufferLen(len(arg1423))
  3445      defer mbTrans1424.Close()
  3446      _, err1425 := mbTrans1424.WriteString(arg1423)
  3447      if err1425 != nil {
  3448        Usage()
  3449        return
  3450      }
  3451      factory1426 := thrift.NewTJSONProtocolFactory()
  3452      jsProt1427 := factory1426.GetProtocol(mbTrans1424)
  3453      argvalue1 := interfaces.NewUint64()
  3454      err1428 := argvalue1.Read(context.Background(), jsProt1427)
  3455      if err1428 != nil {
  3456        Usage()
  3457        return
  3458      }
  3459      value1 := argvalue1
  3460      argvalue2 := []byte(flag.Arg(3))
  3461      value2 := argvalue2
  3462      fmt.Print(client.DbIdxDoubleUpdate(context.Background(), value0, value1, value2))
  3463      fmt.Print("\n")
  3464      break
  3465    case "db_idx_double_remove":
  3466      if flag.NArg() - 1 != 1 {
  3467        fmt.Fprintln(os.Stderr, "DbIdxDoubleRemove requires 1 args")
  3468        flag.Usage()
  3469      }
  3470      tmp0, err1430 := (strconv.Atoi(flag.Arg(1)))
  3471      if err1430 != nil {
  3472        Usage()
  3473        return
  3474      }
  3475      argvalue0 := int32(tmp0)
  3476      value0 := argvalue0
  3477      fmt.Print(client.DbIdxDoubleRemove(context.Background(), value0))
  3478      fmt.Print("\n")
  3479      break
  3480    case "db_idx_double_next":
  3481      if flag.NArg() - 1 != 1 {
  3482        fmt.Fprintln(os.Stderr, "DbIdxDoubleNext requires 1 args")
  3483        flag.Usage()
  3484      }
  3485      tmp0, err1431 := (strconv.Atoi(flag.Arg(1)))
  3486      if err1431 != nil {
  3487        Usage()
  3488        return
  3489      }
  3490      argvalue0 := int32(tmp0)
  3491      value0 := argvalue0
  3492      fmt.Print(client.DbIdxDoubleNext(context.Background(), value0))
  3493      fmt.Print("\n")
  3494      break
  3495    case "db_idx_double_previous":
  3496      if flag.NArg() - 1 != 1 {
  3497        fmt.Fprintln(os.Stderr, "DbIdxDoublePrevious requires 1 args")
  3498        flag.Usage()
  3499      }
  3500      tmp0, err1432 := (strconv.Atoi(flag.Arg(1)))
  3501      if err1432 != nil {
  3502        Usage()
  3503        return
  3504      }
  3505      argvalue0 := int32(tmp0)
  3506      value0 := argvalue0
  3507      fmt.Print(client.DbIdxDoublePrevious(context.Background(), value0))
  3508      fmt.Print("\n")
  3509      break
  3510    case "db_idx_double_find_primary":
  3511      if flag.NArg() - 1 != 4 {
  3512        fmt.Fprintln(os.Stderr, "DbIdxDoubleFindPrimary requires 4 args")
  3513        flag.Usage()
  3514      }
  3515      arg1433 := flag.Arg(1)
  3516      mbTrans1434 := thrift.NewTMemoryBufferLen(len(arg1433))
  3517      defer mbTrans1434.Close()
  3518      _, err1435 := mbTrans1434.WriteString(arg1433)
  3519      if err1435 != nil {
  3520        Usage()
  3521        return
  3522      }
  3523      factory1436 := thrift.NewTJSONProtocolFactory()
  3524      jsProt1437 := factory1436.GetProtocol(mbTrans1434)
  3525      argvalue0 := interfaces.NewUint64()
  3526      err1438 := argvalue0.Read(context.Background(), jsProt1437)
  3527      if err1438 != nil {
  3528        Usage()
  3529        return
  3530      }
  3531      value0 := argvalue0
  3532      arg1439 := flag.Arg(2)
  3533      mbTrans1440 := thrift.NewTMemoryBufferLen(len(arg1439))
  3534      defer mbTrans1440.Close()
  3535      _, err1441 := mbTrans1440.WriteString(arg1439)
  3536      if err1441 != nil {
  3537        Usage()
  3538        return
  3539      }
  3540      factory1442 := thrift.NewTJSONProtocolFactory()
  3541      jsProt1443 := factory1442.GetProtocol(mbTrans1440)
  3542      argvalue1 := interfaces.NewUint64()
  3543      err1444 := argvalue1.Read(context.Background(), jsProt1443)
  3544      if err1444 != nil {
  3545        Usage()
  3546        return
  3547      }
  3548      value1 := argvalue1
  3549      arg1445 := flag.Arg(3)
  3550      mbTrans1446 := thrift.NewTMemoryBufferLen(len(arg1445))
  3551      defer mbTrans1446.Close()
  3552      _, err1447 := mbTrans1446.WriteString(arg1445)
  3553      if err1447 != nil {
  3554        Usage()
  3555        return
  3556      }
  3557      factory1448 := thrift.NewTJSONProtocolFactory()
  3558      jsProt1449 := factory1448.GetProtocol(mbTrans1446)
  3559      argvalue2 := interfaces.NewUint64()
  3560      err1450 := argvalue2.Read(context.Background(), jsProt1449)
  3561      if err1450 != nil {
  3562        Usage()
  3563        return
  3564      }
  3565      value2 := argvalue2
  3566      arg1451 := flag.Arg(4)
  3567      mbTrans1452 := thrift.NewTMemoryBufferLen(len(arg1451))
  3568      defer mbTrans1452.Close()
  3569      _, err1453 := mbTrans1452.WriteString(arg1451)
  3570      if err1453 != nil {
  3571        Usage()
  3572        return
  3573      }
  3574      factory1454 := thrift.NewTJSONProtocolFactory()
  3575      jsProt1455 := factory1454.GetProtocol(mbTrans1452)
  3576      argvalue3 := interfaces.NewUint64()
  3577      err1456 := argvalue3.Read(context.Background(), jsProt1455)
  3578      if err1456 != nil {
  3579        Usage()
  3580        return
  3581      }
  3582      value3 := argvalue3
  3583      fmt.Print(client.DbIdxDoubleFindPrimary(context.Background(), value0, value1, value2, value3))
  3584      fmt.Print("\n")
  3585      break
  3586    case "db_idx_double_find_secondary":
  3587      if flag.NArg() - 1 != 4 {
  3588        fmt.Fprintln(os.Stderr, "DbIdxDoubleFindSecondary requires 4 args")
  3589        flag.Usage()
  3590      }
  3591      arg1457 := flag.Arg(1)
  3592      mbTrans1458 := thrift.NewTMemoryBufferLen(len(arg1457))
  3593      defer mbTrans1458.Close()
  3594      _, err1459 := mbTrans1458.WriteString(arg1457)
  3595      if err1459 != nil {
  3596        Usage()
  3597        return
  3598      }
  3599      factory1460 := thrift.NewTJSONProtocolFactory()
  3600      jsProt1461 := factory1460.GetProtocol(mbTrans1458)
  3601      argvalue0 := interfaces.NewUint64()
  3602      err1462 := argvalue0.Read(context.Background(), jsProt1461)
  3603      if err1462 != nil {
  3604        Usage()
  3605        return
  3606      }
  3607      value0 := argvalue0
  3608      arg1463 := flag.Arg(2)
  3609      mbTrans1464 := thrift.NewTMemoryBufferLen(len(arg1463))
  3610      defer mbTrans1464.Close()
  3611      _, err1465 := mbTrans1464.WriteString(arg1463)
  3612      if err1465 != nil {
  3613        Usage()
  3614        return
  3615      }
  3616      factory1466 := thrift.NewTJSONProtocolFactory()
  3617      jsProt1467 := factory1466.GetProtocol(mbTrans1464)
  3618      argvalue1 := interfaces.NewUint64()
  3619      err1468 := argvalue1.Read(context.Background(), jsProt1467)
  3620      if err1468 != nil {
  3621        Usage()
  3622        return
  3623      }
  3624      value1 := argvalue1
  3625      arg1469 := flag.Arg(3)
  3626      mbTrans1470 := thrift.NewTMemoryBufferLen(len(arg1469))
  3627      defer mbTrans1470.Close()
  3628      _, err1471 := mbTrans1470.WriteString(arg1469)
  3629      if err1471 != nil {
  3630        Usage()
  3631        return
  3632      }
  3633      factory1472 := thrift.NewTJSONProtocolFactory()
  3634      jsProt1473 := factory1472.GetProtocol(mbTrans1470)
  3635      argvalue2 := interfaces.NewUint64()
  3636      err1474 := argvalue2.Read(context.Background(), jsProt1473)
  3637      if err1474 != nil {
  3638        Usage()
  3639        return
  3640      }
  3641      value2 := argvalue2
  3642      argvalue3 := []byte(flag.Arg(4))
  3643      value3 := argvalue3
  3644      fmt.Print(client.DbIdxDoubleFindSecondary(context.Background(), value0, value1, value2, value3))
  3645      fmt.Print("\n")
  3646      break
  3647    case "db_idx_double_lowerbound":
  3648      if flag.NArg() - 1 != 5 {
  3649        fmt.Fprintln(os.Stderr, "DbIdxDoubleLowerbound requires 5 args")
  3650        flag.Usage()
  3651      }
  3652      arg1476 := flag.Arg(1)
  3653      mbTrans1477 := thrift.NewTMemoryBufferLen(len(arg1476))
  3654      defer mbTrans1477.Close()
  3655      _, err1478 := mbTrans1477.WriteString(arg1476)
  3656      if err1478 != nil {
  3657        Usage()
  3658        return
  3659      }
  3660      factory1479 := thrift.NewTJSONProtocolFactory()
  3661      jsProt1480 := factory1479.GetProtocol(mbTrans1477)
  3662      argvalue0 := interfaces.NewUint64()
  3663      err1481 := argvalue0.Read(context.Background(), jsProt1480)
  3664      if err1481 != nil {
  3665        Usage()
  3666        return
  3667      }
  3668      value0 := argvalue0
  3669      arg1482 := flag.Arg(2)
  3670      mbTrans1483 := thrift.NewTMemoryBufferLen(len(arg1482))
  3671      defer mbTrans1483.Close()
  3672      _, err1484 := mbTrans1483.WriteString(arg1482)
  3673      if err1484 != nil {
  3674        Usage()
  3675        return
  3676      }
  3677      factory1485 := thrift.NewTJSONProtocolFactory()
  3678      jsProt1486 := factory1485.GetProtocol(mbTrans1483)
  3679      argvalue1 := interfaces.NewUint64()
  3680      err1487 := argvalue1.Read(context.Background(), jsProt1486)
  3681      if err1487 != nil {
  3682        Usage()
  3683        return
  3684      }
  3685      value1 := argvalue1
  3686      arg1488 := flag.Arg(3)
  3687      mbTrans1489 := thrift.NewTMemoryBufferLen(len(arg1488))
  3688      defer mbTrans1489.Close()
  3689      _, err1490 := mbTrans1489.WriteString(arg1488)
  3690      if err1490 != nil {
  3691        Usage()
  3692        return
  3693      }
  3694      factory1491 := thrift.NewTJSONProtocolFactory()
  3695      jsProt1492 := factory1491.GetProtocol(mbTrans1489)
  3696      argvalue2 := interfaces.NewUint64()
  3697      err1493 := argvalue2.Read(context.Background(), jsProt1492)
  3698      if err1493 != nil {
  3699        Usage()
  3700        return
  3701      }
  3702      value2 := argvalue2
  3703      argvalue3 := []byte(flag.Arg(4))
  3704      value3 := argvalue3
  3705      arg1495 := flag.Arg(5)
  3706      mbTrans1496 := thrift.NewTMemoryBufferLen(len(arg1495))
  3707      defer mbTrans1496.Close()
  3708      _, err1497 := mbTrans1496.WriteString(arg1495)
  3709      if err1497 != nil {
  3710        Usage()
  3711        return
  3712      }
  3713      factory1498 := thrift.NewTJSONProtocolFactory()
  3714      jsProt1499 := factory1498.GetProtocol(mbTrans1496)
  3715      argvalue4 := interfaces.NewUint64()
  3716      err1500 := argvalue4.Read(context.Background(), jsProt1499)
  3717      if err1500 != nil {
  3718        Usage()
  3719        return
  3720      }
  3721      value4 := argvalue4
  3722      fmt.Print(client.DbIdxDoubleLowerbound(context.Background(), value0, value1, value2, value3, value4))
  3723      fmt.Print("\n")
  3724      break
  3725    case "db_idx_double_upperbound":
  3726      if flag.NArg() - 1 != 5 {
  3727        fmt.Fprintln(os.Stderr, "DbIdxDoubleUpperbound requires 5 args")
  3728        flag.Usage()
  3729      }
  3730      arg1501 := flag.Arg(1)
  3731      mbTrans1502 := thrift.NewTMemoryBufferLen(len(arg1501))
  3732      defer mbTrans1502.Close()
  3733      _, err1503 := mbTrans1502.WriteString(arg1501)
  3734      if err1503 != nil {
  3735        Usage()
  3736        return
  3737      }
  3738      factory1504 := thrift.NewTJSONProtocolFactory()
  3739      jsProt1505 := factory1504.GetProtocol(mbTrans1502)
  3740      argvalue0 := interfaces.NewUint64()
  3741      err1506 := argvalue0.Read(context.Background(), jsProt1505)
  3742      if err1506 != nil {
  3743        Usage()
  3744        return
  3745      }
  3746      value0 := argvalue0
  3747      arg1507 := flag.Arg(2)
  3748      mbTrans1508 := thrift.NewTMemoryBufferLen(len(arg1507))
  3749      defer mbTrans1508.Close()
  3750      _, err1509 := mbTrans1508.WriteString(arg1507)
  3751      if err1509 != nil {
  3752        Usage()
  3753        return
  3754      }
  3755      factory1510 := thrift.NewTJSONProtocolFactory()
  3756      jsProt1511 := factory1510.GetProtocol(mbTrans1508)
  3757      argvalue1 := interfaces.NewUint64()
  3758      err1512 := argvalue1.Read(context.Background(), jsProt1511)
  3759      if err1512 != nil {
  3760        Usage()
  3761        return
  3762      }
  3763      value1 := argvalue1
  3764      arg1513 := flag.Arg(3)
  3765      mbTrans1514 := thrift.NewTMemoryBufferLen(len(arg1513))
  3766      defer mbTrans1514.Close()
  3767      _, err1515 := mbTrans1514.WriteString(arg1513)
  3768      if err1515 != nil {
  3769        Usage()
  3770        return
  3771      }
  3772      factory1516 := thrift.NewTJSONProtocolFactory()
  3773      jsProt1517 := factory1516.GetProtocol(mbTrans1514)
  3774      argvalue2 := interfaces.NewUint64()
  3775      err1518 := argvalue2.Read(context.Background(), jsProt1517)
  3776      if err1518 != nil {
  3777        Usage()
  3778        return
  3779      }
  3780      value2 := argvalue2
  3781      argvalue3 := []byte(flag.Arg(4))
  3782      value3 := argvalue3
  3783      arg1520 := flag.Arg(5)
  3784      mbTrans1521 := thrift.NewTMemoryBufferLen(len(arg1520))
  3785      defer mbTrans1521.Close()
  3786      _, err1522 := mbTrans1521.WriteString(arg1520)
  3787      if err1522 != nil {
  3788        Usage()
  3789        return
  3790      }
  3791      factory1523 := thrift.NewTJSONProtocolFactory()
  3792      jsProt1524 := factory1523.GetProtocol(mbTrans1521)
  3793      argvalue4 := interfaces.NewUint64()
  3794      err1525 := argvalue4.Read(context.Background(), jsProt1524)
  3795      if err1525 != nil {
  3796        Usage()
  3797        return
  3798      }
  3799      value4 := argvalue4
  3800      fmt.Print(client.DbIdxDoubleUpperbound(context.Background(), value0, value1, value2, value3, value4))
  3801      fmt.Print("\n")
  3802      break
  3803    case "db_idx_double_end":
  3804      if flag.NArg() - 1 != 3 {
  3805        fmt.Fprintln(os.Stderr, "DbIdxDoubleEnd requires 3 args")
  3806        flag.Usage()
  3807      }
  3808      arg1526 := flag.Arg(1)
  3809      mbTrans1527 := thrift.NewTMemoryBufferLen(len(arg1526))
  3810      defer mbTrans1527.Close()
  3811      _, err1528 := mbTrans1527.WriteString(arg1526)
  3812      if err1528 != nil {
  3813        Usage()
  3814        return
  3815      }
  3816      factory1529 := thrift.NewTJSONProtocolFactory()
  3817      jsProt1530 := factory1529.GetProtocol(mbTrans1527)
  3818      argvalue0 := interfaces.NewUint64()
  3819      err1531 := argvalue0.Read(context.Background(), jsProt1530)
  3820      if err1531 != nil {
  3821        Usage()
  3822        return
  3823      }
  3824      value0 := argvalue0
  3825      arg1532 := flag.Arg(2)
  3826      mbTrans1533 := thrift.NewTMemoryBufferLen(len(arg1532))
  3827      defer mbTrans1533.Close()
  3828      _, err1534 := mbTrans1533.WriteString(arg1532)
  3829      if err1534 != nil {
  3830        Usage()
  3831        return
  3832      }
  3833      factory1535 := thrift.NewTJSONProtocolFactory()
  3834      jsProt1536 := factory1535.GetProtocol(mbTrans1533)
  3835      argvalue1 := interfaces.NewUint64()
  3836      err1537 := argvalue1.Read(context.Background(), jsProt1536)
  3837      if err1537 != nil {
  3838        Usage()
  3839        return
  3840      }
  3841      value1 := argvalue1
  3842      arg1538 := flag.Arg(3)
  3843      mbTrans1539 := thrift.NewTMemoryBufferLen(len(arg1538))
  3844      defer mbTrans1539.Close()
  3845      _, err1540 := mbTrans1539.WriteString(arg1538)
  3846      if err1540 != nil {
  3847        Usage()
  3848        return
  3849      }
  3850      factory1541 := thrift.NewTJSONProtocolFactory()
  3851      jsProt1542 := factory1541.GetProtocol(mbTrans1539)
  3852      argvalue2 := interfaces.NewUint64()
  3853      err1543 := argvalue2.Read(context.Background(), jsProt1542)
  3854      if err1543 != nil {
  3855        Usage()
  3856        return
  3857      }
  3858      value2 := argvalue2
  3859      fmt.Print(client.DbIdxDoubleEnd(context.Background(), value0, value1, value2))
  3860      fmt.Print("\n")
  3861      break
  3862    case "db_idx_long_double_store":
  3863      if flag.NArg() - 1 != 5 {
  3864        fmt.Fprintln(os.Stderr, "DbIdxLongDoubleStore requires 5 args")
  3865        flag.Usage()
  3866      }
  3867      arg1544 := flag.Arg(1)
  3868      mbTrans1545 := thrift.NewTMemoryBufferLen(len(arg1544))
  3869      defer mbTrans1545.Close()
  3870      _, err1546 := mbTrans1545.WriteString(arg1544)
  3871      if err1546 != nil {
  3872        Usage()
  3873        return
  3874      }
  3875      factory1547 := thrift.NewTJSONProtocolFactory()
  3876      jsProt1548 := factory1547.GetProtocol(mbTrans1545)
  3877      argvalue0 := interfaces.NewUint64()
  3878      err1549 := argvalue0.Read(context.Background(), jsProt1548)
  3879      if err1549 != nil {
  3880        Usage()
  3881        return
  3882      }
  3883      value0 := argvalue0
  3884      arg1550 := flag.Arg(2)
  3885      mbTrans1551 := thrift.NewTMemoryBufferLen(len(arg1550))
  3886      defer mbTrans1551.Close()
  3887      _, err1552 := mbTrans1551.WriteString(arg1550)
  3888      if err1552 != nil {
  3889        Usage()
  3890        return
  3891      }
  3892      factory1553 := thrift.NewTJSONProtocolFactory()
  3893      jsProt1554 := factory1553.GetProtocol(mbTrans1551)
  3894      argvalue1 := interfaces.NewUint64()
  3895      err1555 := argvalue1.Read(context.Background(), jsProt1554)
  3896      if err1555 != nil {
  3897        Usage()
  3898        return
  3899      }
  3900      value1 := argvalue1
  3901      arg1556 := flag.Arg(3)
  3902      mbTrans1557 := thrift.NewTMemoryBufferLen(len(arg1556))
  3903      defer mbTrans1557.Close()
  3904      _, err1558 := mbTrans1557.WriteString(arg1556)
  3905      if err1558 != nil {
  3906        Usage()
  3907        return
  3908      }
  3909      factory1559 := thrift.NewTJSONProtocolFactory()
  3910      jsProt1560 := factory1559.GetProtocol(mbTrans1557)
  3911      argvalue2 := interfaces.NewUint64()
  3912      err1561 := argvalue2.Read(context.Background(), jsProt1560)
  3913      if err1561 != nil {
  3914        Usage()
  3915        return
  3916      }
  3917      value2 := argvalue2
  3918      arg1562 := flag.Arg(4)
  3919      mbTrans1563 := thrift.NewTMemoryBufferLen(len(arg1562))
  3920      defer mbTrans1563.Close()
  3921      _, err1564 := mbTrans1563.WriteString(arg1562)
  3922      if err1564 != nil {
  3923        Usage()
  3924        return
  3925      }
  3926      factory1565 := thrift.NewTJSONProtocolFactory()
  3927      jsProt1566 := factory1565.GetProtocol(mbTrans1563)
  3928      argvalue3 := interfaces.NewUint64()
  3929      err1567 := argvalue3.Read(context.Background(), jsProt1566)
  3930      if err1567 != nil {
  3931        Usage()
  3932        return
  3933      }
  3934      value3 := argvalue3
  3935      argvalue4 := []byte(flag.Arg(5))
  3936      value4 := argvalue4
  3937      fmt.Print(client.DbIdxLongDoubleStore(context.Background(), value0, value1, value2, value3, value4))
  3938      fmt.Print("\n")
  3939      break
  3940    case "db_idx_long_double_update":
  3941      if flag.NArg() - 1 != 3 {
  3942        fmt.Fprintln(os.Stderr, "DbIdxLongDoubleUpdate requires 3 args")
  3943        flag.Usage()
  3944      }
  3945      tmp0, err1569 := (strconv.Atoi(flag.Arg(1)))
  3946      if err1569 != nil {
  3947        Usage()
  3948        return
  3949      }
  3950      argvalue0 := int32(tmp0)
  3951      value0 := argvalue0
  3952      arg1570 := flag.Arg(2)
  3953      mbTrans1571 := thrift.NewTMemoryBufferLen(len(arg1570))
  3954      defer mbTrans1571.Close()
  3955      _, err1572 := mbTrans1571.WriteString(arg1570)
  3956      if err1572 != nil {
  3957        Usage()
  3958        return
  3959      }
  3960      factory1573 := thrift.NewTJSONProtocolFactory()
  3961      jsProt1574 := factory1573.GetProtocol(mbTrans1571)
  3962      argvalue1 := interfaces.NewUint64()
  3963      err1575 := argvalue1.Read(context.Background(), jsProt1574)
  3964      if err1575 != nil {
  3965        Usage()
  3966        return
  3967      }
  3968      value1 := argvalue1
  3969      argvalue2 := []byte(flag.Arg(3))
  3970      value2 := argvalue2
  3971      fmt.Print(client.DbIdxLongDoubleUpdate(context.Background(), value0, value1, value2))
  3972      fmt.Print("\n")
  3973      break
  3974    case "db_idx_long_double_remove":
  3975      if flag.NArg() - 1 != 1 {
  3976        fmt.Fprintln(os.Stderr, "DbIdxLongDoubleRemove requires 1 args")
  3977        flag.Usage()
  3978      }
  3979      tmp0, err1577 := (strconv.Atoi(flag.Arg(1)))
  3980      if err1577 != nil {
  3981        Usage()
  3982        return
  3983      }
  3984      argvalue0 := int32(tmp0)
  3985      value0 := argvalue0
  3986      fmt.Print(client.DbIdxLongDoubleRemove(context.Background(), value0))
  3987      fmt.Print("\n")
  3988      break
  3989    case "db_idx_long_double_next":
  3990      if flag.NArg() - 1 != 1 {
  3991        fmt.Fprintln(os.Stderr, "DbIdxLongDoubleNext requires 1 args")
  3992        flag.Usage()
  3993      }
  3994      tmp0, err1578 := (strconv.Atoi(flag.Arg(1)))
  3995      if err1578 != nil {
  3996        Usage()
  3997        return
  3998      }
  3999      argvalue0 := int32(tmp0)
  4000      value0 := argvalue0
  4001      fmt.Print(client.DbIdxLongDoubleNext(context.Background(), value0))
  4002      fmt.Print("\n")
  4003      break
  4004    case "db_idx_long_double_previous":
  4005      if flag.NArg() - 1 != 1 {
  4006        fmt.Fprintln(os.Stderr, "DbIdxLongDoublePrevious requires 1 args")
  4007        flag.Usage()
  4008      }
  4009      tmp0, err1579 := (strconv.Atoi(flag.Arg(1)))
  4010      if err1579 != nil {
  4011        Usage()
  4012        return
  4013      }
  4014      argvalue0 := int32(tmp0)
  4015      value0 := argvalue0
  4016      fmt.Print(client.DbIdxLongDoublePrevious(context.Background(), value0))
  4017      fmt.Print("\n")
  4018      break
  4019    case "db_idx_long_double_find_primary":
  4020      if flag.NArg() - 1 != 4 {
  4021        fmt.Fprintln(os.Stderr, "DbIdxLongDoubleFindPrimary requires 4 args")
  4022        flag.Usage()
  4023      }
  4024      arg1580 := flag.Arg(1)
  4025      mbTrans1581 := thrift.NewTMemoryBufferLen(len(arg1580))
  4026      defer mbTrans1581.Close()
  4027      _, err1582 := mbTrans1581.WriteString(arg1580)
  4028      if err1582 != nil {
  4029        Usage()
  4030        return
  4031      }
  4032      factory1583 := thrift.NewTJSONProtocolFactory()
  4033      jsProt1584 := factory1583.GetProtocol(mbTrans1581)
  4034      argvalue0 := interfaces.NewUint64()
  4035      err1585 := argvalue0.Read(context.Background(), jsProt1584)
  4036      if err1585 != nil {
  4037        Usage()
  4038        return
  4039      }
  4040      value0 := argvalue0
  4041      arg1586 := flag.Arg(2)
  4042      mbTrans1587 := thrift.NewTMemoryBufferLen(len(arg1586))
  4043      defer mbTrans1587.Close()
  4044      _, err1588 := mbTrans1587.WriteString(arg1586)
  4045      if err1588 != nil {
  4046        Usage()
  4047        return
  4048      }
  4049      factory1589 := thrift.NewTJSONProtocolFactory()
  4050      jsProt1590 := factory1589.GetProtocol(mbTrans1587)
  4051      argvalue1 := interfaces.NewUint64()
  4052      err1591 := argvalue1.Read(context.Background(), jsProt1590)
  4053      if err1591 != nil {
  4054        Usage()
  4055        return
  4056      }
  4057      value1 := argvalue1
  4058      arg1592 := flag.Arg(3)
  4059      mbTrans1593 := thrift.NewTMemoryBufferLen(len(arg1592))
  4060      defer mbTrans1593.Close()
  4061      _, err1594 := mbTrans1593.WriteString(arg1592)
  4062      if err1594 != nil {
  4063        Usage()
  4064        return
  4065      }
  4066      factory1595 := thrift.NewTJSONProtocolFactory()
  4067      jsProt1596 := factory1595.GetProtocol(mbTrans1593)
  4068      argvalue2 := interfaces.NewUint64()
  4069      err1597 := argvalue2.Read(context.Background(), jsProt1596)
  4070      if err1597 != nil {
  4071        Usage()
  4072        return
  4073      }
  4074      value2 := argvalue2
  4075      arg1598 := flag.Arg(4)
  4076      mbTrans1599 := thrift.NewTMemoryBufferLen(len(arg1598))
  4077      defer mbTrans1599.Close()
  4078      _, err1600 := mbTrans1599.WriteString(arg1598)
  4079      if err1600 != nil {
  4080        Usage()
  4081        return
  4082      }
  4083      factory1601 := thrift.NewTJSONProtocolFactory()
  4084      jsProt1602 := factory1601.GetProtocol(mbTrans1599)
  4085      argvalue3 := interfaces.NewUint64()
  4086      err1603 := argvalue3.Read(context.Background(), jsProt1602)
  4087      if err1603 != nil {
  4088        Usage()
  4089        return
  4090      }
  4091      value3 := argvalue3
  4092      fmt.Print(client.DbIdxLongDoubleFindPrimary(context.Background(), value0, value1, value2, value3))
  4093      fmt.Print("\n")
  4094      break
  4095    case "db_idx_long_double_find_secondary":
  4096      if flag.NArg() - 1 != 4 {
  4097        fmt.Fprintln(os.Stderr, "DbIdxLongDoubleFindSecondary requires 4 args")
  4098        flag.Usage()
  4099      }
  4100      arg1604 := flag.Arg(1)
  4101      mbTrans1605 := thrift.NewTMemoryBufferLen(len(arg1604))
  4102      defer mbTrans1605.Close()
  4103      _, err1606 := mbTrans1605.WriteString(arg1604)
  4104      if err1606 != nil {
  4105        Usage()
  4106        return
  4107      }
  4108      factory1607 := thrift.NewTJSONProtocolFactory()
  4109      jsProt1608 := factory1607.GetProtocol(mbTrans1605)
  4110      argvalue0 := interfaces.NewUint64()
  4111      err1609 := argvalue0.Read(context.Background(), jsProt1608)
  4112      if err1609 != nil {
  4113        Usage()
  4114        return
  4115      }
  4116      value0 := argvalue0
  4117      arg1610 := flag.Arg(2)
  4118      mbTrans1611 := thrift.NewTMemoryBufferLen(len(arg1610))
  4119      defer mbTrans1611.Close()
  4120      _, err1612 := mbTrans1611.WriteString(arg1610)
  4121      if err1612 != nil {
  4122        Usage()
  4123        return
  4124      }
  4125      factory1613 := thrift.NewTJSONProtocolFactory()
  4126      jsProt1614 := factory1613.GetProtocol(mbTrans1611)
  4127      argvalue1 := interfaces.NewUint64()
  4128      err1615 := argvalue1.Read(context.Background(), jsProt1614)
  4129      if err1615 != nil {
  4130        Usage()
  4131        return
  4132      }
  4133      value1 := argvalue1
  4134      arg1616 := flag.Arg(3)
  4135      mbTrans1617 := thrift.NewTMemoryBufferLen(len(arg1616))
  4136      defer mbTrans1617.Close()
  4137      _, err1618 := mbTrans1617.WriteString(arg1616)
  4138      if err1618 != nil {
  4139        Usage()
  4140        return
  4141      }
  4142      factory1619 := thrift.NewTJSONProtocolFactory()
  4143      jsProt1620 := factory1619.GetProtocol(mbTrans1617)
  4144      argvalue2 := interfaces.NewUint64()
  4145      err1621 := argvalue2.Read(context.Background(), jsProt1620)
  4146      if err1621 != nil {
  4147        Usage()
  4148        return
  4149      }
  4150      value2 := argvalue2
  4151      argvalue3 := []byte(flag.Arg(4))
  4152      value3 := argvalue3
  4153      fmt.Print(client.DbIdxLongDoubleFindSecondary(context.Background(), value0, value1, value2, value3))
  4154      fmt.Print("\n")
  4155      break
  4156    case "db_idx_long_double_lowerbound":
  4157      if flag.NArg() - 1 != 5 {
  4158        fmt.Fprintln(os.Stderr, "DbIdxLongDoubleLowerbound requires 5 args")
  4159        flag.Usage()
  4160      }
  4161      arg1623 := flag.Arg(1)
  4162      mbTrans1624 := thrift.NewTMemoryBufferLen(len(arg1623))
  4163      defer mbTrans1624.Close()
  4164      _, err1625 := mbTrans1624.WriteString(arg1623)
  4165      if err1625 != nil {
  4166        Usage()
  4167        return
  4168      }
  4169      factory1626 := thrift.NewTJSONProtocolFactory()
  4170      jsProt1627 := factory1626.GetProtocol(mbTrans1624)
  4171      argvalue0 := interfaces.NewUint64()
  4172      err1628 := argvalue0.Read(context.Background(), jsProt1627)
  4173      if err1628 != nil {
  4174        Usage()
  4175        return
  4176      }
  4177      value0 := argvalue0
  4178      arg1629 := flag.Arg(2)
  4179      mbTrans1630 := thrift.NewTMemoryBufferLen(len(arg1629))
  4180      defer mbTrans1630.Close()
  4181      _, err1631 := mbTrans1630.WriteString(arg1629)
  4182      if err1631 != nil {
  4183        Usage()
  4184        return
  4185      }
  4186      factory1632 := thrift.NewTJSONProtocolFactory()
  4187      jsProt1633 := factory1632.GetProtocol(mbTrans1630)
  4188      argvalue1 := interfaces.NewUint64()
  4189      err1634 := argvalue1.Read(context.Background(), jsProt1633)
  4190      if err1634 != nil {
  4191        Usage()
  4192        return
  4193      }
  4194      value1 := argvalue1
  4195      arg1635 := flag.Arg(3)
  4196      mbTrans1636 := thrift.NewTMemoryBufferLen(len(arg1635))
  4197      defer mbTrans1636.Close()
  4198      _, err1637 := mbTrans1636.WriteString(arg1635)
  4199      if err1637 != nil {
  4200        Usage()
  4201        return
  4202      }
  4203      factory1638 := thrift.NewTJSONProtocolFactory()
  4204      jsProt1639 := factory1638.GetProtocol(mbTrans1636)
  4205      argvalue2 := interfaces.NewUint64()
  4206      err1640 := argvalue2.Read(context.Background(), jsProt1639)
  4207      if err1640 != nil {
  4208        Usage()
  4209        return
  4210      }
  4211      value2 := argvalue2
  4212      argvalue3 := []byte(flag.Arg(4))
  4213      value3 := argvalue3
  4214      arg1642 := flag.Arg(5)
  4215      mbTrans1643 := thrift.NewTMemoryBufferLen(len(arg1642))
  4216      defer mbTrans1643.Close()
  4217      _, err1644 := mbTrans1643.WriteString(arg1642)
  4218      if err1644 != nil {
  4219        Usage()
  4220        return
  4221      }
  4222      factory1645 := thrift.NewTJSONProtocolFactory()
  4223      jsProt1646 := factory1645.GetProtocol(mbTrans1643)
  4224      argvalue4 := interfaces.NewUint64()
  4225      err1647 := argvalue4.Read(context.Background(), jsProt1646)
  4226      if err1647 != nil {
  4227        Usage()
  4228        return
  4229      }
  4230      value4 := argvalue4
  4231      fmt.Print(client.DbIdxLongDoubleLowerbound(context.Background(), value0, value1, value2, value3, value4))
  4232      fmt.Print("\n")
  4233      break
  4234    case "db_idx_long_double_upperbound":
  4235      if flag.NArg() - 1 != 5 {
  4236        fmt.Fprintln(os.Stderr, "DbIdxLongDoubleUpperbound requires 5 args")
  4237        flag.Usage()
  4238      }
  4239      arg1648 := flag.Arg(1)
  4240      mbTrans1649 := thrift.NewTMemoryBufferLen(len(arg1648))
  4241      defer mbTrans1649.Close()
  4242      _, err1650 := mbTrans1649.WriteString(arg1648)
  4243      if err1650 != nil {
  4244        Usage()
  4245        return
  4246      }
  4247      factory1651 := thrift.NewTJSONProtocolFactory()
  4248      jsProt1652 := factory1651.GetProtocol(mbTrans1649)
  4249      argvalue0 := interfaces.NewUint64()
  4250      err1653 := argvalue0.Read(context.Background(), jsProt1652)
  4251      if err1653 != nil {
  4252        Usage()
  4253        return
  4254      }
  4255      value0 := argvalue0
  4256      arg1654 := flag.Arg(2)
  4257      mbTrans1655 := thrift.NewTMemoryBufferLen(len(arg1654))
  4258      defer mbTrans1655.Close()
  4259      _, err1656 := mbTrans1655.WriteString(arg1654)
  4260      if err1656 != nil {
  4261        Usage()
  4262        return
  4263      }
  4264      factory1657 := thrift.NewTJSONProtocolFactory()
  4265      jsProt1658 := factory1657.GetProtocol(mbTrans1655)
  4266      argvalue1 := interfaces.NewUint64()
  4267      err1659 := argvalue1.Read(context.Background(), jsProt1658)
  4268      if err1659 != nil {
  4269        Usage()
  4270        return
  4271      }
  4272      value1 := argvalue1
  4273      arg1660 := flag.Arg(3)
  4274      mbTrans1661 := thrift.NewTMemoryBufferLen(len(arg1660))
  4275      defer mbTrans1661.Close()
  4276      _, err1662 := mbTrans1661.WriteString(arg1660)
  4277      if err1662 != nil {
  4278        Usage()
  4279        return
  4280      }
  4281      factory1663 := thrift.NewTJSONProtocolFactory()
  4282      jsProt1664 := factory1663.GetProtocol(mbTrans1661)
  4283      argvalue2 := interfaces.NewUint64()
  4284      err1665 := argvalue2.Read(context.Background(), jsProt1664)
  4285      if err1665 != nil {
  4286        Usage()
  4287        return
  4288      }
  4289      value2 := argvalue2
  4290      argvalue3 := []byte(flag.Arg(4))
  4291      value3 := argvalue3
  4292      arg1667 := flag.Arg(5)
  4293      mbTrans1668 := thrift.NewTMemoryBufferLen(len(arg1667))
  4294      defer mbTrans1668.Close()
  4295      _, err1669 := mbTrans1668.WriteString(arg1667)
  4296      if err1669 != nil {
  4297        Usage()
  4298        return
  4299      }
  4300      factory1670 := thrift.NewTJSONProtocolFactory()
  4301      jsProt1671 := factory1670.GetProtocol(mbTrans1668)
  4302      argvalue4 := interfaces.NewUint64()
  4303      err1672 := argvalue4.Read(context.Background(), jsProt1671)
  4304      if err1672 != nil {
  4305        Usage()
  4306        return
  4307      }
  4308      value4 := argvalue4
  4309      fmt.Print(client.DbIdxLongDoubleUpperbound(context.Background(), value0, value1, value2, value3, value4))
  4310      fmt.Print("\n")
  4311      break
  4312    case "db_idx_long_double_end":
  4313      if flag.NArg() - 1 != 3 {
  4314        fmt.Fprintln(os.Stderr, "DbIdxLongDoubleEnd requires 3 args")
  4315        flag.Usage()
  4316      }
  4317      arg1673 := flag.Arg(1)
  4318      mbTrans1674 := thrift.NewTMemoryBufferLen(len(arg1673))
  4319      defer mbTrans1674.Close()
  4320      _, err1675 := mbTrans1674.WriteString(arg1673)
  4321      if err1675 != nil {
  4322        Usage()
  4323        return
  4324      }
  4325      factory1676 := thrift.NewTJSONProtocolFactory()
  4326      jsProt1677 := factory1676.GetProtocol(mbTrans1674)
  4327      argvalue0 := interfaces.NewUint64()
  4328      err1678 := argvalue0.Read(context.Background(), jsProt1677)
  4329      if err1678 != nil {
  4330        Usage()
  4331        return
  4332      }
  4333      value0 := argvalue0
  4334      arg1679 := flag.Arg(2)
  4335      mbTrans1680 := thrift.NewTMemoryBufferLen(len(arg1679))
  4336      defer mbTrans1680.Close()
  4337      _, err1681 := mbTrans1680.WriteString(arg1679)
  4338      if err1681 != nil {
  4339        Usage()
  4340        return
  4341      }
  4342      factory1682 := thrift.NewTJSONProtocolFactory()
  4343      jsProt1683 := factory1682.GetProtocol(mbTrans1680)
  4344      argvalue1 := interfaces.NewUint64()
  4345      err1684 := argvalue1.Read(context.Background(), jsProt1683)
  4346      if err1684 != nil {
  4347        Usage()
  4348        return
  4349      }
  4350      value1 := argvalue1
  4351      arg1685 := flag.Arg(3)
  4352      mbTrans1686 := thrift.NewTMemoryBufferLen(len(arg1685))
  4353      defer mbTrans1686.Close()
  4354      _, err1687 := mbTrans1686.WriteString(arg1685)
  4355      if err1687 != nil {
  4356        Usage()
  4357        return
  4358      }
  4359      factory1688 := thrift.NewTJSONProtocolFactory()
  4360      jsProt1689 := factory1688.GetProtocol(mbTrans1686)
  4361      argvalue2 := interfaces.NewUint64()
  4362      err1690 := argvalue2.Read(context.Background(), jsProt1689)
  4363      if err1690 != nil {
  4364        Usage()
  4365        return
  4366      }
  4367      value2 := argvalue2
  4368      fmt.Print(client.DbIdxLongDoubleEnd(context.Background(), value0, value1, value2))
  4369      fmt.Print("\n")
  4370      break
  4371    case "set_action_return_value":
  4372      if flag.NArg() - 1 != 1 {
  4373        fmt.Fprintln(os.Stderr, "SetActionReturnValue requires 1 args")
  4374        flag.Usage()
  4375      }
  4376      argvalue0 := []byte(flag.Arg(1))
  4377      value0 := argvalue0
  4378      fmt.Print(client.SetActionReturnValue(context.Background(), value0))
  4379      fmt.Print("\n")
  4380      break
  4381    case "get_code_hash":
  4382      if flag.NArg() - 1 != 2 {
  4383        fmt.Fprintln(os.Stderr, "GetCodeHash requires 2 args")
  4384        flag.Usage()
  4385      }
  4386      arg1692 := flag.Arg(1)
  4387      mbTrans1693 := thrift.NewTMemoryBufferLen(len(arg1692))
  4388      defer mbTrans1693.Close()
  4389      _, err1694 := mbTrans1693.WriteString(arg1692)
  4390      if err1694 != nil {
  4391        Usage()
  4392        return
  4393      }
  4394      factory1695 := thrift.NewTJSONProtocolFactory()
  4395      jsProt1696 := factory1695.GetProtocol(mbTrans1693)
  4396      argvalue0 := interfaces.NewUint64()
  4397      err1697 := argvalue0.Read(context.Background(), jsProt1696)
  4398      if err1697 != nil {
  4399        Usage()
  4400        return
  4401      }
  4402      value0 := argvalue0
  4403      argvalue1, err1698 := (strconv.ParseInt(flag.Arg(2), 10, 64))
  4404      if err1698 != nil {
  4405        Usage()
  4406        return
  4407      }
  4408      value1 := argvalue1
  4409      fmt.Print(client.GetCodeHash(context.Background(), value0, value1))
  4410      fmt.Print("\n")
  4411      break
  4412    case "get_block_num":
  4413      if flag.NArg() - 1 != 0 {
  4414        fmt.Fprintln(os.Stderr, "GetBlockNum requires 0 args")
  4415        flag.Usage()
  4416      }
  4417      fmt.Print(client.GetBlockNum(context.Background()))
  4418      fmt.Print("\n")
  4419      break
  4420    case "sha3":
  4421      if flag.NArg() - 1 != 2 {
  4422        fmt.Fprintln(os.Stderr, "Sha3 requires 2 args")
  4423        flag.Usage()
  4424      }
  4425      argvalue0 := []byte(flag.Arg(1))
  4426      value0 := argvalue0
  4427      tmp1, err1700 := (strconv.Atoi(flag.Arg(2)))
  4428      if err1700 != nil {
  4429        Usage()
  4430        return
  4431      }
  4432      argvalue1 := int32(tmp1)
  4433      value1 := argvalue1
  4434      fmt.Print(client.Sha3(context.Background(), value0, value1))
  4435      fmt.Print("\n")
  4436      break
  4437    case "blake2_f":
  4438      if flag.NArg() - 1 != 6 {
  4439        fmt.Fprintln(os.Stderr, "Blake2F requires 6 args")
  4440        flag.Usage()
  4441      }
  4442      argvalue0, err1701 := (strconv.ParseInt(flag.Arg(1), 10, 64))
  4443      if err1701 != nil {
  4444        Usage()
  4445        return
  4446      }
  4447      value0 := argvalue0
  4448      argvalue1 := []byte(flag.Arg(2))
  4449      value1 := argvalue1
  4450      argvalue2 := []byte(flag.Arg(3))
  4451      value2 := argvalue2
  4452      argvalue3 := []byte(flag.Arg(4))
  4453      value3 := argvalue3
  4454      argvalue4 := []byte(flag.Arg(5))
  4455      value4 := argvalue4
  4456      tmp5, err1706 := (strconv.Atoi(flag.Arg(6)))
  4457      if err1706 != nil {
  4458        Usage()
  4459        return
  4460      }
  4461      argvalue5 := int32(tmp5)
  4462      value5 := argvalue5
  4463      fmt.Print(client.Blake2F(context.Background(), value0, value1, value2, value3, value4, value5))
  4464      fmt.Print("\n")
  4465      break
  4466    case "k1_recover":
  4467      if flag.NArg() - 1 != 2 {
  4468        fmt.Fprintln(os.Stderr, "K1Recover requires 2 args")
  4469        flag.Usage()
  4470      }
  4471      argvalue0 := []byte(flag.Arg(1))
  4472      value0 := argvalue0
  4473      argvalue1 := []byte(flag.Arg(2))
  4474      value1 := argvalue1
  4475      fmt.Print(client.K1Recover(context.Background(), value0, value1))
  4476      fmt.Print("\n")
  4477      break
  4478    case "alt_bn128_add":
  4479      if flag.NArg() - 1 != 2 {
  4480        fmt.Fprintln(os.Stderr, "AltBn128Add requires 2 args")
  4481        flag.Usage()
  4482      }
  4483      argvalue0 := []byte(flag.Arg(1))
  4484      value0 := argvalue0
  4485      argvalue1 := []byte(flag.Arg(2))
  4486      value1 := argvalue1
  4487      fmt.Print(client.AltBn128Add(context.Background(), value0, value1))
  4488      fmt.Print("\n")
  4489      break
  4490    case "alt_bn128_mul":
  4491      if flag.NArg() - 1 != 2 {
  4492        fmt.Fprintln(os.Stderr, "AltBn128Mul requires 2 args")
  4493        flag.Usage()
  4494      }
  4495      argvalue0 := []byte(flag.Arg(1))
  4496      value0 := argvalue0
  4497      argvalue1 := []byte(flag.Arg(2))
  4498      value1 := argvalue1
  4499      fmt.Print(client.AltBn128Mul(context.Background(), value0, value1))
  4500      fmt.Print("\n")
  4501      break
  4502    case "alt_bn128_pair":
  4503      if flag.NArg() - 1 != 1 {
  4504        fmt.Fprintln(os.Stderr, "AltBn128Pair requires 1 args")
  4505        flag.Usage()
  4506      }
  4507      argvalue0 := []byte(flag.Arg(1))
  4508      value0 := argvalue0
  4509      fmt.Print(client.AltBn128Pair(context.Background(), value0))
  4510      fmt.Print("\n")
  4511      break
  4512    case "mod_exp":
  4513      if flag.NArg() - 1 != 3 {
  4514        fmt.Fprintln(os.Stderr, "ModExp requires 3 args")
  4515        flag.Usage()
  4516      }
  4517      argvalue0 := []byte(flag.Arg(1))
  4518      value0 := argvalue0
  4519      argvalue1 := []byte(flag.Arg(2))
  4520      value1 := argvalue1
  4521      argvalue2 := []byte(flag.Arg(3))
  4522      value2 := argvalue2
  4523      fmt.Print(client.ModExp(context.Background(), value0, value1, value2))
  4524      fmt.Print("\n")
  4525      break
  4526    case "":
  4527      Usage()
  4528      break
  4529    default:
  4530      fmt.Fprintln(os.Stderr, "Invalid function ", cmd)
  4531    }
  4532  }