/**
 * @fileoverview gRPC-Web generated client stub for to.v1
 * @enhanceable
 * @public
 */

// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
// versions:
// 	protoc-gen-grpc-web v1.4.2
// 	protoc              v3.20.3
// source: track_offical.proto


/* eslint-disable */
// @ts-nocheck



const grpc = {};
grpc.web = require('grpc-web');


var base_pb = require('./base_pb.js')
const proto = {};
proto.to = {};
proto.to.v1 = require('./track_offical_pb.js');

/**
 * @param {string} hostname
 * @param {?Object} credentials
 * @param {?grpc.web.ClientOptions} options
 * @constructor
 * @struct
 * @final
 */
proto.to.v1.ApiToClient =
    function(hostname, credentials, options) {
  if (!options) options = {};
  options.format = 'text';

  /**
   * @private @const {!grpc.web.GrpcWebClientBase} The client
   */
  this.client_ = new grpc.web.GrpcWebClientBase(options);

  /**
   * @private @const {string} The hostname
   */
  this.hostname_ = hostname.replace(/\/+$/, '');

};


/**
 * @param {string} hostname
 * @param {?Object} credentials
 * @param {?grpc.web.ClientOptions} options
 * @constructor
 * @struct
 * @final
 */
proto.to.v1.ApiToPromiseClient =
    function(hostname, credentials, options) {
  if (!options) options = {};
  options.format = 'text';

  /**
   * @private @const {!grpc.web.GrpcWebClientBase} The client
   */
  this.client_ = new grpc.web.GrpcWebClientBase(options);

  /**
   * @private @const {string} The hostname
   */
  this.hostname_ = hostname.replace(/\/+$/, '');

};


/**
 * @const
 * @type {!grpc.web.MethodDescriptor<
 *   !proto.to.v1.ToSendCodeToPhoneRequest,
 *   !proto.base.v1.DefaultReply>}
 */
const methodDescriptor_ApiTo_ToSendCodeToPhone = new grpc.web.MethodDescriptor(
  '/to.v1.ApiTo/ToSendCodeToPhone',
  grpc.web.MethodType.UNARY,
  proto.to.v1.ToSendCodeToPhoneRequest,
  base_pb.DefaultReply,
  /**
   * @param {!proto.to.v1.ToSendCodeToPhoneRequest} request
   * @return {!Uint8Array}
   */
  function(request) {
    return request.serializeBinary();
  },
  base_pb.DefaultReply.deserializeBinary
);


/**
 * @param {!proto.to.v1.ToSendCodeToPhoneRequest} request The
 *     request proto
 * @param {?Object<string, string>} metadata User defined
 *     call metadata
 * @param {function(?grpc.web.RpcError, ?proto.base.v1.DefaultReply)}
 *     callback The callback function(error, response)
 * @return {!grpc.web.ClientReadableStream<!proto.base.v1.DefaultReply>|undefined}
 *     The XHR Node Readable Stream
 */
proto.to.v1.ApiToClient.prototype.toSendCodeToPhone =
    function(request, metadata, callback) {
  return this.client_.rpcCall(this.hostname_ +
      '/to.v1.ApiTo/ToSendCodeToPhone',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToSendCodeToPhone,
      callback);
};


/**
 * @param {!proto.to.v1.ToSendCodeToPhoneRequest} request The
 *     request proto
 * @param {?Object<string, string>=} metadata User defined
 *     call metadata
 * @return {!Promise<!proto.base.v1.DefaultReply>}
 *     Promise that resolves to the response
 */
proto.to.v1.ApiToPromiseClient.prototype.toSendCodeToPhone =
    function(request, metadata) {
  return this.client_.unaryCall(this.hostname_ +
      '/to.v1.ApiTo/ToSendCodeToPhone',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToSendCodeToPhone);
};


/**
 * @const
 * @type {!grpc.web.MethodDescriptor<
 *   !proto.base.v1.GetSmsSendLeftTimeRequest,
 *   !proto.base.v1.GetSmsSendLeftTimeReply>}
 */
const methodDescriptor_ApiTo_ToGetSmsSendLeftTime = new grpc.web.MethodDescriptor(
  '/to.v1.ApiTo/ToGetSmsSendLeftTime',
  grpc.web.MethodType.UNARY,
  base_pb.GetSmsSendLeftTimeRequest,
  base_pb.GetSmsSendLeftTimeReply,
  /**
   * @param {!proto.base.v1.GetSmsSendLeftTimeRequest} request
   * @return {!Uint8Array}
   */
  function(request) {
    return request.serializeBinary();
  },
  base_pb.GetSmsSendLeftTimeReply.deserializeBinary
);


/**
 * @param {!proto.base.v1.GetSmsSendLeftTimeRequest} request The
 *     request proto
 * @param {?Object<string, string>} metadata User defined
 *     call metadata
 * @param {function(?grpc.web.RpcError, ?proto.base.v1.GetSmsSendLeftTimeReply)}
 *     callback The callback function(error, response)
 * @return {!grpc.web.ClientReadableStream<!proto.base.v1.GetSmsSendLeftTimeReply>|undefined}
 *     The XHR Node Readable Stream
 */
proto.to.v1.ApiToClient.prototype.toGetSmsSendLeftTime =
    function(request, metadata, callback) {
  return this.client_.rpcCall(this.hostname_ +
      '/to.v1.ApiTo/ToGetSmsSendLeftTime',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToGetSmsSendLeftTime,
      callback);
};


/**
 * @param {!proto.base.v1.GetSmsSendLeftTimeRequest} request The
 *     request proto
 * @param {?Object<string, string>=} metadata User defined
 *     call metadata
 * @return {!Promise<!proto.base.v1.GetSmsSendLeftTimeReply>}
 *     Promise that resolves to the response
 */
proto.to.v1.ApiToPromiseClient.prototype.toGetSmsSendLeftTime =
    function(request, metadata) {
  return this.client_.unaryCall(this.hostname_ +
      '/to.v1.ApiTo/ToGetSmsSendLeftTime',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToGetSmsSendLeftTime);
};


/**
 * @const
 * @type {!grpc.web.MethodDescriptor<
 *   !proto.to.v1.ToSignInRequest,
 *   !proto.base.v1.SignInReply>}
 */
const methodDescriptor_ApiTo_ToSignIn = new grpc.web.MethodDescriptor(
  '/to.v1.ApiTo/ToSignIn',
  grpc.web.MethodType.UNARY,
  proto.to.v1.ToSignInRequest,
  base_pb.SignInReply,
  /**
   * @param {!proto.to.v1.ToSignInRequest} request
   * @return {!Uint8Array}
   */
  function(request) {
    return request.serializeBinary();
  },
  base_pb.SignInReply.deserializeBinary
);


/**
 * @param {!proto.to.v1.ToSignInRequest} request The
 *     request proto
 * @param {?Object<string, string>} metadata User defined
 *     call metadata
 * @param {function(?grpc.web.RpcError, ?proto.base.v1.SignInReply)}
 *     callback The callback function(error, response)
 * @return {!grpc.web.ClientReadableStream<!proto.base.v1.SignInReply>|undefined}
 *     The XHR Node Readable Stream
 */
proto.to.v1.ApiToClient.prototype.toSignIn =
    function(request, metadata, callback) {
  return this.client_.rpcCall(this.hostname_ +
      '/to.v1.ApiTo/ToSignIn',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToSignIn,
      callback);
};


/**
 * @param {!proto.to.v1.ToSignInRequest} request The
 *     request proto
 * @param {?Object<string, string>=} metadata User defined
 *     call metadata
 * @return {!Promise<!proto.base.v1.SignInReply>}
 *     Promise that resolves to the response
 */
proto.to.v1.ApiToPromiseClient.prototype.toSignIn =
    function(request, metadata) {
  return this.client_.unaryCall(this.hostname_ +
      '/to.v1.ApiTo/ToSignIn',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToSignIn);
};


/**
 * @const
 * @type {!grpc.web.MethodDescriptor<
 *   !proto.to.v1.ToSignOutRequest,
 *   !proto.base.v1.DefaultReply>}
 */
const methodDescriptor_ApiTo_ToSignOut = new grpc.web.MethodDescriptor(
  '/to.v1.ApiTo/ToSignOut',
  grpc.web.MethodType.UNARY,
  proto.to.v1.ToSignOutRequest,
  base_pb.DefaultReply,
  /**
   * @param {!proto.to.v1.ToSignOutRequest} request
   * @return {!Uint8Array}
   */
  function(request) {
    return request.serializeBinary();
  },
  base_pb.DefaultReply.deserializeBinary
);


/**
 * @param {!proto.to.v1.ToSignOutRequest} request The
 *     request proto
 * @param {?Object<string, string>} metadata User defined
 *     call metadata
 * @param {function(?grpc.web.RpcError, ?proto.base.v1.DefaultReply)}
 *     callback The callback function(error, response)
 * @return {!grpc.web.ClientReadableStream<!proto.base.v1.DefaultReply>|undefined}
 *     The XHR Node Readable Stream
 */
proto.to.v1.ApiToClient.prototype.toSignOut =
    function(request, metadata, callback) {
  return this.client_.rpcCall(this.hostname_ +
      '/to.v1.ApiTo/ToSignOut',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToSignOut,
      callback);
};


/**
 * @param {!proto.to.v1.ToSignOutRequest} request The
 *     request proto
 * @param {?Object<string, string>=} metadata User defined
 *     call metadata
 * @return {!Promise<!proto.base.v1.DefaultReply>}
 *     Promise that resolves to the response
 */
proto.to.v1.ApiToPromiseClient.prototype.toSignOut =
    function(request, metadata) {
  return this.client_.unaryCall(this.hostname_ +
      '/to.v1.ApiTo/ToSignOut',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToSignOut);
};


/**
 * @const
 * @type {!grpc.web.MethodDescriptor<
 *   !proto.base.v1.DefaultRequest,
 *   !proto.to.v1.ToActionListReply>}
 */
const methodDescriptor_ApiTo_ToActionList = new grpc.web.MethodDescriptor(
  '/to.v1.ApiTo/ToActionList',
  grpc.web.MethodType.UNARY,
  base_pb.DefaultRequest,
  proto.to.v1.ToActionListReply,
  /**
   * @param {!proto.base.v1.DefaultRequest} request
   * @return {!Uint8Array}
   */
  function(request) {
    return request.serializeBinary();
  },
  proto.to.v1.ToActionListReply.deserializeBinary
);


/**
 * @param {!proto.base.v1.DefaultRequest} request The
 *     request proto
 * @param {?Object<string, string>} metadata User defined
 *     call metadata
 * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToActionListReply)}
 *     callback The callback function(error, response)
 * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToActionListReply>|undefined}
 *     The XHR Node Readable Stream
 */
proto.to.v1.ApiToClient.prototype.toActionList =
    function(request, metadata, callback) {
  return this.client_.rpcCall(this.hostname_ +
      '/to.v1.ApiTo/ToActionList',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToActionList,
      callback);
};


/**
 * @param {!proto.base.v1.DefaultRequest} request The
 *     request proto
 * @param {?Object<string, string>=} metadata User defined
 *     call metadata
 * @return {!Promise<!proto.to.v1.ToActionListReply>}
 *     Promise that resolves to the response
 */
proto.to.v1.ApiToPromiseClient.prototype.toActionList =
    function(request, metadata) {
  return this.client_.unaryCall(this.hostname_ +
      '/to.v1.ApiTo/ToActionList',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToActionList);
};


/**
 * @const
 * @type {!grpc.web.MethodDescriptor<
 *   !proto.base.v1.IdRequest,
 *   !proto.to.v1.ToActionDetailReply>}
 */
const methodDescriptor_ApiTo_ToActionDetail = new grpc.web.MethodDescriptor(
  '/to.v1.ApiTo/ToActionDetail',
  grpc.web.MethodType.UNARY,
  base_pb.IdRequest,
  proto.to.v1.ToActionDetailReply,
  /**
   * @param {!proto.base.v1.IdRequest} request
   * @return {!Uint8Array}
   */
  function(request) {
    return request.serializeBinary();
  },
  proto.to.v1.ToActionDetailReply.deserializeBinary
);


/**
 * @param {!proto.base.v1.IdRequest} request The
 *     request proto
 * @param {?Object<string, string>} metadata User defined
 *     call metadata
 * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToActionDetailReply)}
 *     callback The callback function(error, response)
 * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToActionDetailReply>|undefined}
 *     The XHR Node Readable Stream
 */
proto.to.v1.ApiToClient.prototype.toActionDetail =
    function(request, metadata, callback) {
  return this.client_.rpcCall(this.hostname_ +
      '/to.v1.ApiTo/ToActionDetail',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToActionDetail,
      callback);
};


/**
 * @param {!proto.base.v1.IdRequest} request The
 *     request proto
 * @param {?Object<string, string>=} metadata User defined
 *     call metadata
 * @return {!Promise<!proto.to.v1.ToActionDetailReply>}
 *     Promise that resolves to the response
 */
proto.to.v1.ApiToPromiseClient.prototype.toActionDetail =
    function(request, metadata) {
  return this.client_.unaryCall(this.hostname_ +
      '/to.v1.ApiTo/ToActionDetail',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToActionDetail);
};


/**
 * @const
 * @type {!grpc.web.MethodDescriptor<
 *   !proto.base.v1.IdRequest,
 *   !proto.to.v1.ToActionUsersDetailReply>}
 */
const methodDescriptor_ApiTo_ToUsersInGameDetail = new grpc.web.MethodDescriptor(
  '/to.v1.ApiTo/ToUsersInGameDetail',
  grpc.web.MethodType.UNARY,
  base_pb.IdRequest,
  proto.to.v1.ToActionUsersDetailReply,
  /**
   * @param {!proto.base.v1.IdRequest} request
   * @return {!Uint8Array}
   */
  function(request) {
    return request.serializeBinary();
  },
  proto.to.v1.ToActionUsersDetailReply.deserializeBinary
);


/**
 * @param {!proto.base.v1.IdRequest} request The
 *     request proto
 * @param {?Object<string, string>} metadata User defined
 *     call metadata
 * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToActionUsersDetailReply)}
 *     callback The callback function(error, response)
 * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToActionUsersDetailReply>|undefined}
 *     The XHR Node Readable Stream
 */
proto.to.v1.ApiToClient.prototype.toUsersInGameDetail =
    function(request, metadata, callback) {
  return this.client_.rpcCall(this.hostname_ +
      '/to.v1.ApiTo/ToUsersInGameDetail',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToUsersInGameDetail,
      callback);
};


/**
 * @param {!proto.base.v1.IdRequest} request The
 *     request proto
 * @param {?Object<string, string>=} metadata User defined
 *     call metadata
 * @return {!Promise<!proto.to.v1.ToActionUsersDetailReply>}
 *     Promise that resolves to the response
 */
proto.to.v1.ApiToPromiseClient.prototype.toUsersInGameDetail =
    function(request, metadata) {
  return this.client_.unaryCall(this.hostname_ +
      '/to.v1.ApiTo/ToUsersInGameDetail',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToUsersInGameDetail);
};


/**
 * @const
 * @type {!grpc.web.MethodDescriptor<
 *   !proto.base.v1.IdRequest,
 *   !proto.to.v1.ToUserGpsQueryReply>}
 */
const methodDescriptor_ApiTo_ToUsersInGameGpsQuery = new grpc.web.MethodDescriptor(
  '/to.v1.ApiTo/ToUsersInGameGpsQuery',
  grpc.web.MethodType.UNARY,
  base_pb.IdRequest,
  proto.to.v1.ToUserGpsQueryReply,
  /**
   * @param {!proto.base.v1.IdRequest} request
   * @return {!Uint8Array}
   */
  function(request) {
    return request.serializeBinary();
  },
  proto.to.v1.ToUserGpsQueryReply.deserializeBinary
);


/**
 * @param {!proto.base.v1.IdRequest} request The
 *     request proto
 * @param {?Object<string, string>} metadata User defined
 *     call metadata
 * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToUserGpsQueryReply)}
 *     callback The callback function(error, response)
 * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToUserGpsQueryReply>|undefined}
 *     The XHR Node Readable Stream
 */
proto.to.v1.ApiToClient.prototype.toUsersInGameGpsQuery =
    function(request, metadata, callback) {
  return this.client_.rpcCall(this.hostname_ +
      '/to.v1.ApiTo/ToUsersInGameGpsQuery',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToUsersInGameGpsQuery,
      callback);
};


/**
 * @param {!proto.base.v1.IdRequest} request The
 *     request proto
 * @param {?Object<string, string>=} metadata User defined
 *     call metadata
 * @return {!Promise<!proto.to.v1.ToUserGpsQueryReply>}
 *     Promise that resolves to the response
 */
proto.to.v1.ApiToPromiseClient.prototype.toUsersInGameGpsQuery =
    function(request, metadata) {
  return this.client_.unaryCall(this.hostname_ +
      '/to.v1.ApiTo/ToUsersInGameGpsQuery',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToUsersInGameGpsQuery);
};


/**
 * @const
 * @type {!grpc.web.MethodDescriptor<
 *   !proto.to.v1.ToUsersInGameHistoryGpsQueryRequest,
 *   !proto.to.v1.ToUserGpsQueryReply>}
 */
const methodDescriptor_ApiTo_ToUsersInGameHistoryGpsQuery = new grpc.web.MethodDescriptor(
  '/to.v1.ApiTo/ToUsersInGameHistoryGpsQuery',
  grpc.web.MethodType.UNARY,
  proto.to.v1.ToUsersInGameHistoryGpsQueryRequest,
  proto.to.v1.ToUserGpsQueryReply,
  /**
   * @param {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} request
   * @return {!Uint8Array}
   */
  function(request) {
    return request.serializeBinary();
  },
  proto.to.v1.ToUserGpsQueryReply.deserializeBinary
);


/**
 * @param {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} request The
 *     request proto
 * @param {?Object<string, string>} metadata User defined
 *     call metadata
 * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToUserGpsQueryReply)}
 *     callback The callback function(error, response)
 * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToUserGpsQueryReply>|undefined}
 *     The XHR Node Readable Stream
 */
proto.to.v1.ApiToClient.prototype.toUsersInGameHistoryGpsQuery =
    function(request, metadata, callback) {
  return this.client_.rpcCall(this.hostname_ +
      '/to.v1.ApiTo/ToUsersInGameHistoryGpsQuery',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToUsersInGameHistoryGpsQuery,
      callback);
};


/**
 * @param {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} request The
 *     request proto
 * @param {?Object<string, string>=} metadata User defined
 *     call metadata
 * @return {!Promise<!proto.to.v1.ToUserGpsQueryReply>}
 *     Promise that resolves to the response
 */
proto.to.v1.ApiToPromiseClient.prototype.toUsersInGameHistoryGpsQuery =
    function(request, metadata) {
  return this.client_.unaryCall(this.hostname_ +
      '/to.v1.ApiTo/ToUsersInGameHistoryGpsQuery',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToUsersInGameHistoryGpsQuery);
};


/**
 * @const
 * @type {!grpc.web.MethodDescriptor<
 *   !proto.to.v1.ToAnyUserHistoryGpsQueryRequest,
 *   !proto.to.v1.ToUserGpsQueryReply>}
 */
const methodDescriptor_ApiTo_ToAnyUserHistoryGpsQuery = new grpc.web.MethodDescriptor(
  '/to.v1.ApiTo/ToAnyUserHistoryGpsQuery',
  grpc.web.MethodType.UNARY,
  proto.to.v1.ToAnyUserHistoryGpsQueryRequest,
  proto.to.v1.ToUserGpsQueryReply,
  /**
   * @param {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} request
   * @return {!Uint8Array}
   */
  function(request) {
    return request.serializeBinary();
  },
  proto.to.v1.ToUserGpsQueryReply.deserializeBinary
);


/**
 * @param {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} request The
 *     request proto
 * @param {?Object<string, string>} metadata User defined
 *     call metadata
 * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToUserGpsQueryReply)}
 *     callback The callback function(error, response)
 * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToUserGpsQueryReply>|undefined}
 *     The XHR Node Readable Stream
 */
proto.to.v1.ApiToClient.prototype.toAnyUserHistoryGpsQuery =
    function(request, metadata, callback) {
  return this.client_.rpcCall(this.hostname_ +
      '/to.v1.ApiTo/ToAnyUserHistoryGpsQuery',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToAnyUserHistoryGpsQuery,
      callback);
};


/**
 * @param {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} request The
 *     request proto
 * @param {?Object<string, string>=} metadata User defined
 *     call metadata
 * @return {!Promise<!proto.to.v1.ToUserGpsQueryReply>}
 *     Promise that resolves to the response
 */
proto.to.v1.ApiToPromiseClient.prototype.toAnyUserHistoryGpsQuery =
    function(request, metadata) {
  return this.client_.unaryCall(this.hostname_ +
      '/to.v1.ApiTo/ToAnyUserHistoryGpsQuery',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToAnyUserHistoryGpsQuery);
};


/**
 * @const
 * @type {!grpc.web.MethodDescriptor<
 *   !proto.base.v1.DefaultRequest,
 *   !proto.base.v1.DefaultReply>}
 */
const methodDescriptor_ApiTo_ToTest = new grpc.web.MethodDescriptor(
  '/to.v1.ApiTo/ToTest',
  grpc.web.MethodType.UNARY,
  base_pb.DefaultRequest,
  base_pb.DefaultReply,
  /**
   * @param {!proto.base.v1.DefaultRequest} request
   * @return {!Uint8Array}
   */
  function(request) {
    return request.serializeBinary();
  },
  base_pb.DefaultReply.deserializeBinary
);


/**
 * @param {!proto.base.v1.DefaultRequest} request The
 *     request proto
 * @param {?Object<string, string>} metadata User defined
 *     call metadata
 * @param {function(?grpc.web.RpcError, ?proto.base.v1.DefaultReply)}
 *     callback The callback function(error, response)
 * @return {!grpc.web.ClientReadableStream<!proto.base.v1.DefaultReply>|undefined}
 *     The XHR Node Readable Stream
 */
proto.to.v1.ApiToClient.prototype.toTest =
    function(request, metadata, callback) {
  return this.client_.rpcCall(this.hostname_ +
      '/to.v1.ApiTo/ToTest',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToTest,
      callback);
};


/**
 * @param {!proto.base.v1.DefaultRequest} request The
 *     request proto
 * @param {?Object<string, string>=} metadata User defined
 *     call metadata
 * @return {!Promise<!proto.base.v1.DefaultReply>}
 *     Promise that resolves to the response
 */
proto.to.v1.ApiToPromiseClient.prototype.toTest =
    function(request, metadata) {
  return this.client_.unaryCall(this.hostname_ +
      '/to.v1.ApiTo/ToTest',
      request,
      metadata || {},
      methodDescriptor_ApiTo_ToTest);
};


module.exports = proto.to.v1;

