def _make_data_stub(client):
 if (client.emulator_host is None):
  return make_secure_stub(client.credentials, client.user_agent, bigtable_pb2.BigtableStub, DATA_API_HOST, extra_options=_GRPC_MAX_LENGTH_OPTIONS)
 else:
  return make_insecure_stub(bigtable_pb2.BigtableStub, client.emulator_host)

def _make_data_stub ( client ) : if ( client . emulator_host is None ) : return make_secure_stub ( client . credentials , client . user_agent , bigtable_pb2 . BigtableStub , DATA_API_HOST , extra_options = _GRPC_MAX_LENGTH_OPTIONS ) else : return make_insecure_stub ( bigtable_pb2 . BigtableStub , client . emulator_host )
creates grpc stub to make requests to the data api .